AlchemyRouter
The Alchemy Router has the task to split the incoming rewards.
The rewards will go 50% to the treasury and 50% to the StakingRewards contract.
distribute
distributefunction distribute() internalThis function distributes the contract balance between the StakingRewards contract and the treasury. The split is done 50%:50%. This function also calls the notifyRewardAmount on the staking contract.
deposit
depositfunction deposit() external payableThis function is called after a buyout or sale of an NFT happens. The function only calls distribute() if the contract balancer is greater than 0.1ETH.
fallback
fallbackfallback() external payableBasic fallback function. The function only calls distribute() if the contract balancer is greater than 0.1ETH.
receive
receivereceive() external payableBasic receive function. The function only calls distribute() if the contract balancer is greater than 0.1ETH.
newStakingrewards
newStakingrewardsThis function sets a new StakingRewards address. Only the owner can call this.
newTreasury
newTreasuryThis function sets a new Treasury address. Only the owner can call this.
newAlchemyFactory
newAlchemyFactoryThis function sets a new AlchemyDAOFactory address. Only the owner can call this.
newAlchemyFactoryOwner
newAlchemyFactoryOwnerThis function sets a new AlchemyDAOFactory owner address. Only the owner can call this.
newOwner
newOwnerThis function sets a new owner address of the contract. Only the owner can call this.
Last updated
Was this helpful?