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

function distribute() internal

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

function deposit() external payable

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() external payable

Basic fallback function. The function only calls distribute() if the contract balancer is greater than 0.1ETH.

receive

receive() external payable

Basic receive function. The function only calls distribute() if the contract balancer is greater than 0.1ETH.

newStakingrewards

This function sets a new StakingRewards address. Only the owner can call this.

newTreasury

This function sets a new Treasury address. Only the owner can call this.

newAlchemyFactory

This function sets a new AlchemyDAOFactory address. Only the owner can call this.

newAlchemyFactoryOwner

This function sets a new AlchemyDAOFactory owner address. Only the owner can call this.

newOwner

This function sets a new owner address of the contract. Only the owner can call this.

Last updated

Was this helpful?