Lockup
state.rs
state.rs
Stores all relevant contract parameters.
owner
: the owner address of this contract.
share_token
: address of the DP token contract used by this lockup pool.
reward_token
: token contract address of the token emitted by this pool after a minimum lockup period has passed.
start_time
: timestamp of which lockup logic will be valid from.
cliff_time
: timestamp of which reward_token
distribution logic will be valid from.
finish_time
: timestamp of which lockup logic will expire
reward_rate
: defines at which rate reward_token
will be given out to lockup
contract depositors
total_deposit
: total principal tokens deposited.
last_update_time
: last reward tokens distribution timestamp.
reward_per_token_stored
: number of reward tokens to be sent out per deposit token (DP tokens).
amount
: the number of DP tokens a user has deposited.
reward
: the number of reward tokens distributed.
reward_per_token_paid
: the number of reward tokens already paid per token.
Last updated