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
distribute
This 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
deposit
This 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
fallback
Basic fallback function. The function only calls distribute() if the contract balancer is greater than 0.1ETH.
receive
receive
Basic receive function. The function only calls distribute() if the contract balancer is greater than 0.1ETH.
newStakingrewards
newStakingrewards
This function sets a new StakingRewards address. Only the owner can call this.
newTreasury
newTreasury
This function sets a new Treasury address. Only the owner can call this.
newAlchemyFactory
newAlchemyFactory
This function sets a new AlchemyDAOFactory address. Only the owner can call this.
newAlchemyFactoryOwner
newAlchemyFactoryOwner
This function sets a new AlchemyDAOFactory owner address. Only the owner can call this.
newOwner
newOwner
This function sets a new owner address of the contract. Only the owner can call this.
Last updated