Implementation of the NToken for the ParaSpace protocol
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.
Name | Type | Description |
---|---|---|
Claim rewards for array of MAYC NFTs and send to recipient
Name | Type | Description |
---|---|---|
Withdraw staked ApeCoin from the MAYC pool. If withdraw is total staked amount, performs an automatic claim.
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"]]_
Claim rewards for array of Paired NFTs and send to recipient
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
return token type`of xToken
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_nfts
struct ApeCoinStaking.SingleNft[]
Array of SingleNft structs
_nfts
uint256[]
Array of NFTs owned and committed by the msg.sender
_recipient
address
Address to send claim reward to
_nfts
struct ApeCoinStaking.SingleNft[]
Array of MAYC NFT's with staked amounts
_recipient
address
Address to send withdraw amount and claim to
_nftPairs
struct ApeCoinStaking.PairNftWithAmount[]
Array of PairNftWithAmount structs
_nftPairs
struct ApeCoinStaking.PairNft[]
Array of Paired MAYC NFTs owned and committed by the msg.sender
_recipient
address
Address to send claim reward to
_nftPairs
struct ApeCoinStaking.PairNftWithAmount[]
Array of Paired MAYC NFT's with staked amounts
_apeRecipient
address