poolz-envelop-token
v2.0.1
Published
[](https://app.travis-ci.com/The-Poolz/synthetic-token) [Testnet tx (without a whitelist): link Testnet tx (with a whitelist): link
Transfer the original tokens to the envelope token contract
Using SetLockingDetails function allows us to transfer one-time original tokens to a contract of synthetic tokens.
// Can only use the owner address or Governer contract.
SetLockingDetails(
address _tokenAddress, // address of original token
uint64[] calldata _unlockTimes, // times when we can unlock original tokens
uint8[] calldata _ratios, // ratios for the time how much we take
uint256 _finishTime // after finish time we can transfer tokens
)Testnet tx: link
Get information about locking
getActivationResult is view function that returns main information about locking tokens.
- Total tokens
- Creditable amount
- Unlock times
- Unlock amounts
getActivationResult(uint _amountToActivate)
public
view
returns(uint TotalTokens, uint CreditableAmount, uint64[] memory unlockTimes, uint256[] memory unlockAmounts)Take original tokens
Each user that have synthetic tokens can “Open” the Envelope to receive the original token. User can open the Envelopes only after the expiration of the agreement by using Locked-Deal contract.
// try to take original tokens if time is up or create new locked pools
ActivateSynthetic(uint _amountToActivate)
//or
ActivateSynthetic() // _amountToActivate = balance of the tokens that the sender hasTestnet tx (without a creating new pool): link Testnet tx (with a creating new pool): link
License
The-Poolz Contracts is released under the MIT License.
