BendApeStaking
Contract used for pairing the ape & ape coin holder
Methods
matchWithBakcAndCoin
Match ape & bakc & coin offers and stake
Parameters
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 |
matchWithBakc
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 |
matchWithCoin
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 |
stakeSelf
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 |
cancelOffers
Cancel offers on chain
Parameters
Name | Type | Description |
---|---|---|
offerNonces | uint256[] | the nonce array of offers to be canceled |
View methods
isCancelled
Returns
Name | Type | Description |
---|---|---|
isCancelled | bool | whether the offer cancelled of not |
Last updated