BendApeStaking
Contract used for pairing the ape & ape coin holder
function matchWithBakcAndCoin(
DataTypes.ApeOffer calldata apeOffer,
DataTypes.BakcOffer calldata bakcOffer,
DataTypes.CoinOffer calldata coinOffer
) external
Match ape & bakc & coin offers and stake
Name | Type | Description |
---|---|---|
apeOffer | DataTypes.ApeOffer | the offer of ape holder |
bakcOffer | DataTypes.BakcOffer | the offer of bakc holder |
coinOffer | DataTypes.CoinOffer | the offer of coin holder |
function matchWithBakc(
DataTypes.ApeOffer calldata apeOffer,
DataTypes.BakcOffer calldata bakcOffer
) external
Match ape & bakc offers and stake
Parameters
Name | Type | Description |
---|---|---|
apeOffer | DataTypes.ApeOffer | the offer of ape holder |
bakcOffer | DataTypes.BakcOffer | the offer of bakc holder |
function matchWithCoin(
DataTypes.ApeOffer calldata apeOffer,
DataTypes.CoinOffer calldata coinOffer
) external
Match ape & coin offers and stake
Parameters
Name | Type | Description |
---|---|---|
apeOffer | DataTypes.ApeOffer | the offer of ape holder |
coinOffer | DataTypes.CoinOffer | the offer of coin holder |
function stakeSelf(
address apeCollection,
uint256 apeTokenId,
uint256 bakcTokenId,
uint256 apeCoinAmount
) external
Stake with own assets
Parameters
Name | Type | Description |
---|---|---|
apeCollection | address | the address of ape collection |
apeTokenId | uint256 | the token id of ape collection |
bakcTokenId | uint256 | the token id of bakc, and should be type(uint256).max if no bakc offered |
apeCoinAmount | uint256 | the amount of ape coin |
function cancelOffers(uint256[] calldata offerNonces) external
Cancel offers on chain
Name | Type | Description |
---|---|---|
offerNonces | uint256[] | the nonce array of offers to be canceled |
function isCancelled(address user, uint256 offerNonce) external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
isCancelled | bool | whether the offer cancelled of not |
Last modified 5mo ago