You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use safe arithmetics to increment/decrement assets to prevent overflow (asset operator +=, -= are safe)
Token resides in system token contract, it can be issued while emission. Token transferred to polls with normal transfers.
Vesting must have calculated total amount (total_vesting), valid in each action (update it on vesting amount change: conversion/withdraw/burn). Vesting is not liquid, so if implement it based on system token contract, additional restrictions must be added (preventing direct transfers).
2. Configurable properties (per Token)
Vesting Withdrawal
Number of intervals
Seconds in interval
Min amount to withdraw
Min balance amount to allow withdraw
Voting power (Power considered as resource)
Capacity (100%)
Regeneration seconds (5 days)
Max value used per vote (0.5%)
Delegation
Min amount
Min seconds
Max interest (%)
Seconds to return
3. Methods
Current price
Args: (token)
Returns: total_vesting / total_vesting_fund_token
Convert Token to Vesting
Args: (from, to, token_amount)
Token to Vesting with delegators reward
Args: (from, to, token_amount)
Withdraw Vesting to Token
Args: (from, to, vesting_amount)
Burn Vesting
Args: (owner, amount)
Delegate
Args: (delegator, delegatee, amount, rate)
Return Delegation
Args: (delegator, delegatee, amount)
Consume Power
Args: (power_amount)
Returns: used power in vesting
The text was updated successfully, but these errors were encountered:
1. Requirements
asset operator +=, -=
are safe)total_vesting
), valid in each action (update it on vesting amount change: conversion/withdraw/burn). Vesting is not liquid, so if implement it based on system token contract, additional restrictions must be added (preventing direct transfers).2. Configurable properties (per Token)
3. Methods
(token)
total_vesting / total_vesting_fund_token
(from, to, token_amount)
(from, to, token_amount)
(from, to, vesting_amount)
(owner, amount)
(delegator, delegatee, amount, rate)
(delegator, delegatee, amount)
(power_amount)
used power in vesting
The text was updated successfully, but these errors were encountered: