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
newStakingrewardsfunction newStakingrewards(IStakingRewards newRewards) public This function sets a new StakingRewards address. Only the owner can call this.
newTreasury
newTreasuryfunction newTreasury(address payable newTrewasury) public This function sets a new Treasury address. Only the owner can call this.
newAlchemyFactory
newAlchemyFactoryfunction newAlchemyFactory(address newAlchemyAddress) publicThis function sets a new AlchemyDAOFactory address. Only the owner can call this.
newAlchemyFactoryOwner
newAlchemyFactoryOwnerfunction newAlchemyFactoryOwner(address payable newFactoryOwner) publicThis function sets a new AlchemyDAOFactory owner address. Only the owner can call this.
newOwner
newOwnerfunction newOwner(address newOwner) publicThis function sets a new owner address of the contract. Only the owner can call this.
Last updated
Was this helpful?