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:
Allows the owner to set the DAO wallet address.
Copy function setDaoWallet (
address _daoWallet ) external onlyOwner Parameters:
Allows the owner to set the Bribe contract address.
Parameters:
Allows the owner to set the DysonPair contract address, along with the corresponding pair tokens.
Parameters:
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: