test-contracts-sovryn
Version:
Smart contracts for the Sovryn protocol and external integrations.
313 lines (312 loc) • 12.5 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "LoanTokenBase",
"sourceName": "contracts/connectors/loantoken/LoanTokenBase.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "baseRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "checkpointSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "initialPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "kinkLevel",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "loanParamsIds",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "loanTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "lowUtilBaseRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "lowUtilRateMultiplier",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxScaleRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "rateMultiplier",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "targetLevel",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "transactionLimit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x60806040526001600090815561001c6001600160e01b0361006f16565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610073565b3390565b6105b1806100826000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80637e37c08c116100a2578063ba0e43bf11610071578063ba0e43bf14610265578063d759dbeb1461026d578063e41b07e314610275578063ef2b0b391461029b578063f2fde38b146102a357610116565b80637e37c08c146102315780638da5cb5b146102395780638f32d59b1461024157806395d89b411461025d57610116565b80633291c11a116100e95780633291c11a146101d8578063330691ac146101f557806356e07d70146101fd578063797bf385146102055780637b7933b41461022957610116565b806306fdde031461011b5780631d0806ae146101985780631f68f20a146101b2578063313ce567146101ba575b600080fd5b6101236102cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a0610356565b60408051918252519081900360200190f35b6101a061035c565b6101c2610362565b6040805160ff9092168252519081900360200190f35b6101a0600480360360208110156101ee57600080fd5b503561036b565b6101a061037d565b6101a0610383565b61020d610389565b604080516001600160a01b039092168252519081900360200190f35b6101a061039d565b6101a06103a3565b61020d6103a9565b6102496103b8565b604080519115158252519081900360200190f35b6101236103de565b6101a0610439565b6101a061043f565b6101a06004803603602081101561028b57600080fd5b50356001600160a01b0316610445565b6101a0610457565b6102c9600480360360208110156102b957600080fd5b50356001600160a01b031661045d565b005b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561034e5780601f106103235761010080835404028352916020019161034e565b820191906000526020600020905b81548152906001019060200180831161033157829003601f168201915b505050505081565b600e5481565b60055481565b60045460ff1681565b60106020526000908152604090205481565b60065481565b600a5481565b60045461010090046001600160a01b031681565b600d5481565b60085481565b6001546001600160a01b031690565b6001546000906001600160a01b03166103cf6104b1565b6001600160a01b031614905090565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561034e5780601f106103235761010080835404028352916020019161034e565b60095481565b60075481565b60126020526000908152604090205481565b600b5481565b6104656103b8565b6104a5576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6104ae816104b5565b50565b3390565b6001600160a01b0381166104fa5760405162461bcd60e51b81526004018080602001828103825260268152602001806105576026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72315820db1f775504900bcdd29f613cf6b93b693a0edc3f4a89487f54c567702560fc1864736f6c63430005110032",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c80637e37c08c116100a2578063ba0e43bf11610071578063ba0e43bf14610265578063d759dbeb1461026d578063e41b07e314610275578063ef2b0b391461029b578063f2fde38b146102a357610116565b80637e37c08c146102315780638da5cb5b146102395780638f32d59b1461024157806395d89b411461025d57610116565b80633291c11a116100e95780633291c11a146101d8578063330691ac146101f557806356e07d70146101fd578063797bf385146102055780637b7933b41461022957610116565b806306fdde031461011b5780631d0806ae146101985780631f68f20a146101b2578063313ce567146101ba575b600080fd5b6101236102cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a0610356565b60408051918252519081900360200190f35b6101a061035c565b6101c2610362565b6040805160ff9092168252519081900360200190f35b6101a0600480360360208110156101ee57600080fd5b503561036b565b6101a061037d565b6101a0610383565b61020d610389565b604080516001600160a01b039092168252519081900360200190f35b6101a061039d565b6101a06103a3565b61020d6103a9565b6102496103b8565b604080519115158252519081900360200190f35b6101236103de565b6101a0610439565b6101a061043f565b6101a06004803603602081101561028b57600080fd5b50356001600160a01b0316610445565b6101a0610457565b6102c9600480360360208110156102b957600080fd5b50356001600160a01b031661045d565b005b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561034e5780601f106103235761010080835404028352916020019161034e565b820191906000526020600020905b81548152906001019060200180831161033157829003601f168201915b505050505081565b600e5481565b60055481565b60045460ff1681565b60106020526000908152604090205481565b60065481565b600a5481565b60045461010090046001600160a01b031681565b600d5481565b60085481565b6001546001600160a01b031690565b6001546000906001600160a01b03166103cf6104b1565b6001600160a01b031614905090565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561034e5780601f106103235761010080835404028352916020019161034e565b60095481565b60075481565b60126020526000908152604090205481565b600b5481565b6104656103b8565b6104a5576040805162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6104ae816104b5565b50565b3390565b6001600160a01b0381166104fa5760405162461bcd60e51b81526004018080602001828103825260268152602001806105576026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a72315820db1f775504900bcdd29f613cf6b93b693a0edc3f4a89487f54c567702560fc1864736f6c63430005110032",
"linkReferences": {},
"deployedLinkReferences": {}
}