DonationsStaking
Any ETH/DAI sent to this contract address is donated to the GoodDollar DAO and will generate interest to fund UBI.
Last updated
Any ETH/DAI sent to this contract address is donated to the GoodDollar DAO and will generate interest to fund UBI.
Last updated
The funds are periodically staked in the staking contract by calling the stakeDonations
method.
Emitted when donation is staked.
Parameter name | Annotation |
---|---|
The funds are periodically staked in the GoodStaking contract by calling the stakeDonations
method.
Stake all available funds on the contract. It take balance in native token and buy DAI from Uniswap then stake outstanding DAI balance.
Total DAI value staked. Returns: DAI value staked.
Parameter name | Annotation |
---|---|
caller
The user who staked.
stakedDAI
The balance of the contract in DAI that was staked.
ethDonated
Amount of the donated native token.
daiDonated
Amount of the donated DAI.
_minDAIAmount
Enforce expected return from Uniswap when converting native token balance to DAI.