Locker
Multi-signature custodial wallets
With multi-signature custodial wallets, we ensure that tokens are securely locked by a third party until the moment they are released and allowed to be sold.
We strive to organize professional custodians to implement regulated procedures on the market. Locking will be through smart contracts in the future where it will be self-controlled and release tokens per the defined schedules in the contract.
The Locker smart contract is a key component of the liquidity pool management system. It allows users to lock their LP tokens for a certain period of time, and then withdraw them once the lock period has expired.
initialize(address _lpAddress, uint256 _amount, uint256 _unlockDate, address _lpOwner, uint256 _extendLockerFee)
:
This function is called to set up the contract's initial values and can only be called once. It takes in several arguments including the address of the LP token, the amount of tokens to be locked, the unlock date, the owner of the tokens and the extend locker fee.
withdrawLP()
:
This function allows the owner of the locked tokens to withdraw them once the unlock date has passed.
extendLockerTime(uint256 newDateInTimestamp)
:
This function allows the owner of the locked tokens to extend the unlock date by paying an extend locker fee and passing the new date in timestamp.
In addition to these functions, the contract also emits several events that can be used to track important actions on the contract. For example, when tokens are locked, the
LPTokensLocked
event is emitted with information about the LP token address, amount, and unlock date.The Locker contract can be interacted with through our dApp (decentralized application) that has been built to interact with the contract. In order to use the Locker contract on the platform, users will first need to connect their web3 wallet (such as MetaMask) to the platform.
Once connected, users will be able to interact with the contract by calling its various functions. For example, users may want to lock their LP tokens by calling the
initialize
function and passing in the necessary arguments. They would then be able to view the status of their locked tokens by calling the withdrawLP
function and checking the LPTokensLocked
event.If the user wants to extend the lock period of their tokens, they can call the
extendLockerTime
function and passing in the new date in timestamp, they will also need to pay the extend locker fee.Overall, the Locker contract provides a convenient and secure way for users to manage their LP tokens on the platform. By using the contract's various functions and events, users can easily lock and unlock their tokens, and track the status of their locked tokens.
Last modified 8mo ago