Contract in charge of handling the initial bootstrap of CTX for the users that minted the TCAP Token.
Address of the reward.
Address of the vault.
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.
Tracks the total supply of the minted TCAPs.
Tracks the amount of TCAP minted 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 TCAP is minted and staked to earn rewards
An event emitted when TCAP is burned and removed of stake.
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.
Reverts if the caller is not a vault.
Returns the total amount of TCAP tokens minted and getting reward on this vault.
Returns the amount of TCAP tokens minted and getting reward 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.
Called when TCAP is minted, adds the minted value as stake. Only vault can call it. Updates reward on call.
Removes all stake and transfers all rewards to the staker. Only vault can call it.
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.
Called when TCAP is burned or liquidated, removes the burned value as stake. Only vault can call it. Updates rewards on call.
Called when TCAP is burned or liquidated, transfers to the staker the current amount of rewards tokens earned. Only vault can call it. Updates rewards on call.
Transfers to the caller the current amount of rewards tokens earned. Updates rewards on call.