Comment on page
Downpayment
This is the entrance contract for down payment
function buy(address adapter,uint256 borrowAmount,bytes calldata data,Sig calldata sig) external payable;
Buy nft from the marketplace with downpayment
Name | Type | Description |
---|---|---|
adapter | address | address of the marketplace adapter |
borrowAmount | uint256 | amount of borrowed from lending pool (max borrowable amount: lendPool.getNftCollateralData.availableBorrowsInReserve) |
data | bytes | |
sig | IDownpayment.Sig |
function addAdapter(address adapter) external nonpayable
add new adapter
Parameters
Name | Type | Description |
---|---|---|
adapter | address | address of the marketplace adapter |
function removeAdapter(address adapter) external nonpayable
remove adapter
Parameters
Name | Type | Description |
---|---|---|
adapter | address | address of the marketplace adapter |
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call
onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (
newOwner
). Can only be called by the current owner.Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
function WETH() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
WETH | address | address of the WETH ("Wrapped Ether") contract |
function getFee(address adapter) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
adapter | address | address of the marketplace adapter |
Returns
Name | Type | Description |
---|---|---|
fee | uint256 | protocol fee (e.g., 200 = 2%) |
function getFeeCollector() external view returns (address)
Returns
feeCollector | address | address of fee collector |
function getBendLendPool() external view returns (ILendPool)
Returns
Name | Type | Description |
---|---|---|
bendLendPool | contract ILendPool | address of bend lend pool |
function getAaveLendPool() external view returns (IAaveLendPool)
Returns
Name | Type | Description |
---|---|---|
aaveLendPool | contract IAaveLendPool | address of aave lend pool |
function nonces(address owner) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
owner | address | address of the owner |
Returns
Name | Type | Description |
---|---|---|
nonce | uint256 | next nonce of owner |