Skip to content

Files

Latest commit

 

History

History
303 lines (258 loc) · 8.56 KB

IBondPool.md

File metadata and controls

303 lines (258 loc) · 8.56 KB

IBondPool.sol

View Source: contracts/interfaces/IBondPool.sol

↗ Extends: IMember ↘ Derived Contracts: BondPoolBase

IBondPool

Events

event BondPoolSetup(address[]  addresses, uint256[]  values);
event BondCreated(address indexed account, uint256  lpTokens, uint256  npmToVest, uint256  unlockDate);
event BondClaimed(address indexed account, uint256  amount);

Functions

setup

function setup(address[] addresses, uint256[] values) external nonpayable

Arguments

Name Type Description
addresses address[]
values uint256[]
Source Code
function setup(address[] calldata addresses, uint256[] calldata values) external;

createBond

function createBond(uint256 lpTokens, uint256 minNpmDesired) external nonpayable

Arguments

Name Type Description
lpTokens uint256
minNpmDesired uint256
Source Code
function createBond(uint256 lpTokens, uint256 minNpmDesired) external;

claimBond

function claimBond() external nonpayable

Arguments

Name Type Description
Source Code
function claimBond() external;

getNpmMarketPrice

function getNpmMarketPrice() external view
returns(uint256)

Arguments

Name Type Description
Source Code
function getNpmMarketPrice() external view returns (uint256);

calculateTokensForLp

function calculateTokensForLp(uint256 lpTokens) external view
returns(uint256)

Arguments

Name Type Description
lpTokens uint256
Source Code
function calculateTokensForLp(uint256 lpTokens) external view returns (uint256);

getInfo

function getInfo(address forAccount) external view
returns(addresses address[], values uint256[])

Arguments

Name Type Description
forAccount address
Source Code
function getInfo(address forAccount) external view returns (address[] calldata addresses, uint256[] calldata values);

Contracts