@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
99 lines (98 loc) • 2.9 kB
JSON
{
"contractName": "PolynomialInterestSetter",
"abi": [
{
"inputs": [
{
"components": [
{
"internalType": "uint128",
"name": "maxAPR",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "coefficients",
"type": "uint128"
}
],
"internalType": "struct PolynomialInterestSetter.PolyStorage",
"name": "params",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "borrowWei",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "supplyWei",
"type": "uint256"
}
],
"name": "getInterestRate",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"internalType": "struct Interest.Rate",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getMaxAPR",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getCoefficients",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"networks": {}
}