NTokenMAYC

Implementation of the NToken for the ParaSpace protocol

constructor

constructor(contract IPool pool, address apeCoinStaking) public

depositApeCoin

function depositApeCoin(struct ApeCoinStaking.SingleNft[] _nfts) external

Deposit ApeCoin to the MAYC Pool

Commits 1 or more MAYC NFTs, each with an ApeCoin amount to the MAYC pool. Each MAYC committed must attach an ApeCoin amount >= 1 ApeCoin and <= the MAYC pool cap amount.

Parameters

claimApeCoin

function claimApeCoin(uint256[] _nfts, address _recipient) external

Claim rewards for array of MAYC NFTs and send to recipient

Parameters

withdrawApeCoin

function withdrawApeCoin(struct ApeCoinStaking.SingleNft[] _nfts, address _recipient) external

Withdraw staked ApeCoin from the MAYC pool. If withdraw is total staked amount, performs an automatic claim.

Parameters

depositBAKC

function depositBAKC(struct ApeCoinStaking.PairNftWithAmount[] _nftPairs) external

Deposit ApeCoin to the Pair Pool, where Pair = (MAYC + BAKC)

_Commits 1 or more Pairs, each with an ApeCoin amount to the Pair pool. Each BAKC committed must attach an ApeCoin amount >= 1 ApeCoin and <= the Pair pool cap amount. Example: MAYC + BAKC + 1 ApeCoin: [[0, 0, "1000000000000000000"]]_

Parameters

claimBAKC

function claimBAKC(struct ApeCoinStaking.PairNft[] _nftPairs, address _recipient) external

Claim rewards for array of Paired NFTs and send to recipient

Parameters

withdrawBAKC

function withdrawBAKC(struct ApeCoinStaking.PairNftWithAmount[] _nftPairs, address _apeRecipient) external

Withdraw staked ApeCoin from the Pair pool. If withdraw is total staked amount, performs an automatic claim.

if pairs have split ownership and BAKC is attempting a withdraw, the withdraw must be for the total staked amount

Parameters

POOL_ID

function POOL_ID() internal pure virtual returns (uint256)

getXTokenType

function getXTokenType() external pure returns (enum XTokenType)

return token type`of xToken