@positionex/posi-token
v1.1.4
Published
Position token smart contract is a mixture of RFI tokenomics with the added function of mint and burn.
Downloads
15
Keywords
Readme
Position Token
Position token smart contract is a mixture of RFI tokenomics with the added function of mint and burn.
Staking Contract with Vesting Schedule
To use Vesting Schedule:
- Import this package by
npm i @positionex/posi-token --save dev
- Import & extend
VestingScheduleBase
from@positionex/posi-token
- Use
_addSchedules
method to add vesting schedules Eg. - Override
_transferLockedToken
method to transfer locked tokens
Example:
function _transferLockedToken(address _to, uint192 _amount) internal override {
_rewardERC20.transfer(_to, uint256(_amount));
}
Example: See PosiStakingManagerV2.sol
Note: You can override _addSchedules
method to modify vesting schedule.
Architecture
See VestingScheduleBase.sol