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
  1. Bonding Curve

Locks

You can confirm token locks by calling following functions on the feeOwner Contract (once a token has migrated):

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

Where LockNativeInfo has following entries:

struct LockInfo {
        uint256 amount;
        uint256 unlockTime;       
    }

Where you will get a return like for example

0:
uint256: amount 1000000000000000000000000
1:
uint256: unlockTime 1771143648

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 lockedTokensTotal(address token) public view returns (uint256)
PreviousSlightly DeflationaryNextDeposit, Claim, and Withdraw

Last updated 25 days ago