ADDRESSES_PROVIDER
contract IPoolAddressesProvider ADDRESSES_PROVIDER
POOL_REVISION
uint256 POOL_REVISION
ReserveUsedAsCollateralEnabled
event ReserveUsedAsCollateralEnabled(address reserve, address user)
ReserveUsedAsCollateralDisabled
event ReserveUsedAsCollateralDisabled(address reserve, address user)
constructor
constructor(contract IPoolAddressesProvider provider) public
Constructor.
Parameters
Name | Type | Description |
---|
| contract IPoolAddressesProvider | The address of the PoolAddressesProvider contract |
getRevision
function getRevision() internal pure virtual returns (uint256)
Returns the revision number of the contract
Needs to be defined in the inherited class as a constant.
Return Values
withdrawApeCoin
function withdrawApeCoin(address nftAsset, struct ApeCoinStaking.SingleNft[] _nfts) external
claimApeCoin
function claimApeCoin(address nftAsset, uint256[] _nfts) external
withdrawBAKC
function withdrawBAKC(address nftAsset, struct ApeCoinStaking.PairNftWithAmount[] _nftPairs) external
claimBAKC
function claimBAKC(address nftAsset, struct ApeCoinStaking.PairNft[] _nftPairs) external
BorrowAndStakeLocalVar
struct BorrowAndStakeLocalVar {
address nTokenAddress;
contract IERC20 apeCoin;
uint256 beforeBalance;
contract IERC721 bakcContract;
struct DataTypes.ReserveCache apeReserveCache;
}
borrowApeAndStake
function borrowApeAndStake(struct IPoolApeStaking.StakingInfo stakingInfo, struct ApeCoinStaking.SingleNft[] _nfts, struct ApeCoinStaking.PairNftWithAmount[] _nftPairs) external
unstakeApePositionAndRepay
function unstakeApePositionAndRepay(address nftAsset, uint256 tokenId) external
repayAndSupply
function repayAndSupply(address underlyingAsset, address repayAsset, address onBehalfOf, uint256 repayAmount, uint256 supplyAmount) external
setSApeUseAsCollateral
function setSApeUseAsCollateral(address user) internal
getUserHf
function getUserHf(address user) internal view returns (uint256)
checkSApeIsNotPaused
function checkSApeIsNotPaused(struct DataTypes.PoolStorage ps) internal view