VotingEscrow
Contract details
Measure the veVRH voting power at a historic block height
This function is taken from the MiniMe ERC20 implementation and is required for compatibility with Aragon.
addr
: User wallet address_block
: Block to calculate the voting power at
Deposits VRH into the contract and creates a new lock. A new lock cannot be created if an existing lock already exists.
Prerequisite: The contract must be approved to transfer at least
_value
VRH_value
: The amount of VRH to deposit_unlock_time
: The epoch time when the tokens unlock, this value is rounded down to the nearest whole week. The minimum duration of a lock is 1 yrs. The maximum duration of a lock is 4 years.
Any user can deposit VRH into the contract and creates a new lock for others. Be aware that only
for
user can withdraw all VRH when the lock expired.Prerequisite: The contract must be approved to transfer at least
_value
VRH_value
: The amount of VRH to deposit_unlock_time
: The epoch time when the tokens unlock, this value is rounded down to the nearest whole week. The minimum duration of a lock is 1 yrs. The maximum duration of a lock is 4 years.
Last modified 1yr ago