UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

188 lines (187 loc) 3.79 kB
[ { "inputs": [ { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "interestRateMode", "type": "uint256" }, { "internalType": "uint256", "name": "referral", "type": "uint256" }, { "internalType": "address", "name": "onBehalfOf", "type": "address" } ], "name": "borrow", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "interestRateMode", "type": "uint256" }, { "internalType": "uint16", "name": "referral", "type": "uint16" }, { "internalType": "address", "name": "onBehalfOf", "type": "address" } ], "name": "borrow", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "receiverAddress", "type": "address" }, { "internalType": "address[]", "name": "assets", "type": "address[]" }, { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "modes", "type": "uint256[]" }, { "internalType": "address", "name": "onBehalfOf", "type": "address" }, { "internalType": "bytes", "name": "params", "type": "bytes" }, { "internalType": "uint256", "name": "referral", "type": "uint256" } ], "name": "flashLoan", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "receiverAddress", "type": "address" }, { "internalType": "address[]", "name": "assets", "type": "address[]" }, { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "modes", "type": "uint256[]" }, { "internalType": "address", "name": "onBehalfOf", "type": "address" }, { "internalType": "bytes", "name": "params", "type": "bytes" }, { "internalType": "uint16", "name": "referral", "type": "uint16" } ], "name": "flashLoan", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "collateralAsset", "type": "address" }, { "internalType": "address", "name": "debtAsset", "type": "address" }, { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "debtToCover", "type": "uint256" }, { "internalType": "bool", "name": "receiveDepositToken", "type": "bool" } ], "name": "liquidationCall", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]