Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Latest commit

 

History

History
218 lines (190 loc) · 6.28 KB

BondPool.md

File metadata and controls

218 lines (190 loc) · 6.28 KB

BondPool.sol

View Source: contracts/pool/Bond/BondPool.sol

↗ Extends: BondPoolBase

BondPool

Functions

function (IStore s) public nonpayable BondPoolBase 

Arguments

Name Type Description
s IStore
Source Code
constructor(IStore s) BondPoolBase(s) {}

createBond

function createBond(uint256 lpTokens, uint256 minNpmDesired) external nonpayable nonReentrant 

Arguments

Name Type Description
lpTokens uint256
minNpmDesired uint256
Source Code
function createBond(uint256 lpTokens, uint256 minNpmDesired) external override nonReentrant {
    // @suppress-acl Marking this as publicly accessible

    s.mustNotBePaused();

    uint256[] memory values = s.createBondInternal(lpTokens, minNpmDesired);
    emit BondCreated(msg.sender, lpTokens, values[0], values[1]);
  }

claimBond

function claimBond() external nonpayable nonReentrant 

Arguments

Name Type Description
Source Code
function claimBond() external override nonReentrant {
    // @suppress-acl Marking this as publicly accessible
    s.mustNotBePaused();

    uint256[] memory values = s.claimBondInternal();
    emit BondClaimed(msg.sender, values[0]);
  }

Contracts