block-quote On this pagechevron-down
copy Copy chevron-down
Technical Reference chevron-right Core chevron-right Fee & Reward distribution FeeDistributor FeeDistributor receives fees from Pair and distributes them to the DAO wallet and Bribe. The owner can adjust the fee distribution rate to the DAO, the DAO wallet address, the Bribe contract address, and the associated pair.
setFeeRateToDao
Allows the owner to set the fee rate for DAO.
Copy function setFeeRateToDao (
uint _feeRateToDao ) external onlyOwner Parameters:
New fee rate for DAO, stored in 1e18.
Allows the owner to set the DAO wallet address.
Copy function setDaoWallet (
address _daoWallet ) external onlyOwner Parameters:
New address for the DAO wallet.
Allows the owner to set the Bribe contract address.
Parameters:
New address for the Bribe contract.
Allows the owner to set the DysonPair contract address, along with the corresponding pair tokens.
Parameters:
New address for the DysonPair contract.
Distributes fees collected from the DysonPair to the DAO wallet and Bribe according to the feeRateToDao.
Internal function to calculate the fee distribution to DAO and Bribe for a given token.
Parameters:
Return Values:
Fee amount to be sent to the DAO.
Fee amount to be sent to the Bribe contract.