Contract in charge of handling CTX rewards for liquidity providers.
|ETH Liquidty Reward||0xc8bb1cd417d20116387a5e0603e195ca4f3cf59a|
|ETH Liquidty Reward||0x7Cc49304b0Ef50f1e3F808D1E494149Ca177DFf7|
|WBTC Liquidty Reward||0x318B42b5b32EeFF0692bD427F0E4056e4DA590e2|
|DAI Liquidty Reward||0x2E0a511DD1d4aB8EB3F9c0441CfCcde19C9544F0|
|CTX Liquidty Reward||TBD|
Address of the reward.
Address of the staking token.
Tracks the period where users stop earning rewards.
Tracks the current reward rate.
How long the rewards lasts, it updates when more rewards are added.
Last time rewards were updated.
Amount of reward calculated per token stored.
Track the rewards paid to users.
Tracks the user rewards.
Time were vesting ends.
tracks vesting amount per user.
Tracks the total supply of staked tokens.
Tracks the amount of staked tokens per user.
Events are called each time the state changes on the contract.
An event emitted when a reward is added.
An event emitted when tokens are staked to earn rewards
An event emitted when staked tokens are withdrawn.
An event emitted when reward is paid to a user.
An event emitted when the rewards duration is updated.
An event emitted when a erc20 token is recovered.
Updates the reward and time on call.
Returns the total amount of staked tokens.
Returns the amount of staked tokens from specific user.
Returns the Reward rate multiplied by the rewards duration time.
Returns the minimun between current block timestamp or the finish period of rewards.
Returns the calculated reward per token deposited.
Returns the amount of reward tokens a
_account has earned.
Returns the minimun between two variables.
Called once the contract it's deployed, sets the orchestrator as owner.
Transfer staking token to contract. Updates reward on call.
Removes all stake and transfers all rewards to the staker.
Claims all vesting amount.
Notifies the contract that reward has been added to be given. Only owner can call it. Increases duration of rewards.
Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders.
Updates the reward duration. Only owner can call it. Previous rewards must be complete.
Remove staking token and transfer back to staker. Updates rewards on call.
Transfers to the caller the current amount of rewards tokens earned. Updates rewards on call. Only 70% of reward is inmediate transfered the rest is locked into vesting