LFG.CLUB
  • Hello there
  • Bonding Curve
    • How it works
    • Displayed Token
    • Create Token
    • Metadata
    • Buy and Sell
    • Bonding Curve Math
    • Migration
    • Slightly Deflationary
    • Locks
  • Deposit Contract
    • Deposit, Claim, and Withdraw
  • LFG Token
    • Tokenomics
  • Deployments and liquidity lock
  • Locks
  • Deployment Addresses
    • Testnet
    • All Chains
  • Links
    • Links
Powered by GitBook
On this page

Locks

You can confirm LFG token locks by calling following functions on the feeOwner Contract:

function nativeLocks(address token, uint256 id) public view returns (LockNativeInfo)

Where LockNativeInfo has following entries:

struct LockNativeInfo {
        uint256 amount;
        uint256 unlockTime;       
        address tokenOwner; 
    }

Where you will get a return like for example

0:
uint256: amount 2500000000000000000000000
1:
uint256: unlockTime 1771143648
2:
address: tokenOwner 0x0

where amount is the amount of tokens locked in this ID, unlockTime is the unlockTime in Unix format, and tokenOwner the current owner of this lock.

To see how many tokens in total are currently locked call

function lockedNativeTokensTotal(address token) public view returns (uint256)
PreviousDeployments and liquidity lockNextTestnet

Last updated 25 days ago