mirror of
https://github.com/Instadapp/fluid-contracts-public.git
synced 2024-07-29 21:57:37 +00:00
269 lines
342 KiB
JSON
269 lines
342 KiB
JSON
|
{
|
||
|
"address": "0x2Cc710218F2e3a82CcC77Cc4B3B93Ee6Ba9451CD",
|
||
|
"abi": [
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "liquidity_",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "vaultAdminImplementation_",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "vaultSecondaryImplementation_",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "constructor"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "colLiquidated",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "debtLiquidated",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "FluidLiquidateResult",
|
||
|
"type": "error"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "errorId_",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "FluidVaultError",
|
||
|
"type": "error"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "vault",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "vaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "supplyToken",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"indexed": true,
|
||
|
"internalType": "address",
|
||
|
"name": "borrowToken",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "VaultT1Deployed",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "ADDRESS_THIS",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "ADMIN_IMPLEMENTATION",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "LIQUIDITY",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "SECONDARY_IMPLEMENTATION",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "supplyToken_",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "borrowToken_",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "vaultT1",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "vaultCreationBytecode_",
|
||
|
"type": "bytes"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "vaultT1CreationBytecode",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "",
|
||
|
"type": "bytes"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"transactionHash": "0x1050e6ad41624532f6e278f02d2cbfb96197ff73f837e5db228ea6fc07740463",
|
||
|
"receipt": {
|
||
|
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
|
||
|
"from": "0x0Ed35B1609Ec45c7079E80d11149a52717e4859A",
|
||
|
"contractAddress": null,
|
||
|
"transactionIndex": 5,
|
||
|
"gasUsed": "8713291",
|
||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"blockHash": "0x8050e659e49518f5e6c243df8057e8013d1f84c7e44fa243563c9769270ff7d4",
|
||
|
"transactionHash": "0x1050e6ad41624532f6e278f02d2cbfb96197ff73f837e5db228ea6fc07740463",
|
||
|
"logs": [],
|
||
|
"blockNumber": 220375821,
|
||
|
"cumulativeGasUsed": "9267776",
|
||
|
"status": 1,
|
||
|
"byzantium": true
|
||
|
},
|
||
|
"args": [
|
||
|
"0x52Aa899454998Be5b000Ad077a46Bbe360F4e497",
|
||
|
"0x5dDf07980ADD152D518AE463269e1A97e93EE1a9",
|
||
|
"0xbd6C8ee7CB9a13333e043C4d5fCf3ac125f7f890"
|
||
|
],
|
||
|
"numDeployments": 1,
|
||
|
"solcInputHash": "1989963ad64c4704dbe1170530c79d20",
|
||
|
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"liquidity_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"vaultAdminImplementation_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"vaultSecondaryImplementation_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"colLiquidated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debtLiquidated\",\"type\":\"uint256\"}],\"name\":\"FluidLiquidateResult\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"errorId_\",\"type\":\"uint256\"}],\"name\":\"FluidVaultError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"vault\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"vaultId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"supplyToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"borrowToken\",\"type\":\"address\"}],\"name\":\"VaultT1Deployed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADDRESS_THIS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ADMIN_IMPLEMENTATION\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LIQUIDITY\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SECONDARY_IMPLEMENTATION\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"supplyToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"borrowToken_\",\"type\":\"address\"}],\"name\":\"vaultT1\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"vaultCreationBytecode_\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vaultT1CreationBytecode\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"VaultT1Deployed(address,uint256,address,address)\":{\"params\":{\"borrowToken\":\"The address of the borrow token.\",\"supplyToken\":\"The address of the supply token.\",\"vault\":\"The address of the newly deployed vault.\",\"vaultId\":\"The id of the newly deployed vault.\"}}},\"kind\":\"dev\",\"methods\":{\"vaultT1(address,address)\":{\"params\":{\"borrowToken_\":\"The address of the borrow token.\",\"supplyToken_\":\"The address of the supply token.\"},\"returns\":{\"vaultCreationBytecode_\":\" Returns the bytecode of the new vault to deploy.\"}}},\"stateVariables\":{\"VAULT_T1_CREATIONCODE_ADDRESS_1\":{\"details\":\"SSTORE2 pointer for the VaultT1 creation code. Stored externally to reduce factory bytecode (in 2 parts)\"}},\"version\":1},\"userdoc\":{\"errors\":{\"FluidLiquidateResult(uint256,uint256)\":[{\"notice\":\"used to simulate liquidation to find the maximum liquidatable amounts\"}]},\"events\":{\"VaultT1Deployed(address,uint256,address,address)\":{\"notice\":\"Emitted when a new vaultT1 is deployed.\"}},\"kind\":\"user\",\"methods\":{\"ADDRESS_THIS()\":{\"notice\":\"address of this contract\"},\"ADMIN_IMPLEMENTATION()\":{\"notice\":\"address of Admin implementation\"},\"LIQUIDITY()\":{\"notice\":\"address of liquidity contract\"},\"SECONDARY_IMPLEMENTATION()\":{\"notice\":\"address of Secondary implementation\"},\"vaultT1(address,address)\":{\"notice\":\"Computes vaultT1 bytecode for the given supply token (`supplyToken_`) and borrow token (`borrowToken_`). This will be called by the VaultFact
|
||
|
"bytecode": "0x6101406040523480156200001257600080fd5b50604051620073df380380620073df833981016040819052620000359162000331565b6001600160a01b0380841660c05282811660e052811661010052604051600090620000636020820162000306565b6020820181038252601f19601f82011660405250519050620000c2620000bc60405180602001620000949062000306565b601f1982820381018352601f909101166040526000620000b660028662000391565b6200013e565b6200025b565b6001600160a01b03166080526040516200012290620000bc90620000e96020820162000306565b601f1982820381018352601f909101166040526200010960028562000391565b6200011660028662000391565b620000b69086620003b4565b6001600160a01b031660a0525050306101205250620004569050565b6060816200014e81601f620003d0565b1015620001935760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064015b60405180910390fd5b6200019f8284620003d0565b84511015620001e55760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016200018a565b60608215801562000206576040519150600082526020820160405262000252565b6040519150601f8416801560200281840101858101878315602002848b0101015b818310156200024157805183526020928301920162000227565b5050858452601f01601f1916604052505b50949350505050565b6000808260405160200162000271919062000418565b604051602081830303815290604052905060008160405160200162000297919062000434565b60405160208183030381529060405290508051602082016000f092506001600160a01b038316620002ff5760405162461bcd60e51b81526020600482015260116024820152701111541313d65351539517d19052531151607a1b60448201526064016200018a565b5050919050565b61621f80620011c083390190565b80516001600160a01b03811681146200032c57600080fd5b919050565b6000806000606084860312156200034757600080fd5b620003528462000314565b9250620003626020850162000314565b9150620003726040850162000314565b90509250925092565b634e487b7160e01b600052601160045260246000fd5b600082620003af57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115620003ca57620003ca6200037b565b92915050565b80820180821115620003ca57620003ca6200037b565b6000815160005b81811015620004095760208185018101518683015201620003ed565b50600093019283525090919050565b6000815260006200042d6001830184620003e6565b9392505050565b6a600b5981380380925939f360a81b815260006200042d600b830184620003e6565b60805160a05160c05160e0516101005161012051610d00620004c06000396000818161010901526101df01526000818160e2015261035d0152600081816101300152610333015260008181607c0152610308015260006101980152600061016f0152610d006000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063cc025f7c11610050578063cc025f7c14610104578063cc2fe94b1461012b578063f9f872f51461015257600080fd5b80632861c7d11461007757806368f4787e146100c8578063a07ddc17146100dd575b600080fd5b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100d0610165565b6040516100bf9190610a03565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b6100d0610160366004610a79565b6101c6565b60606101c16101937f00000000000000000000000000000000000000000000000000000000000000006108d5565b6101bc7f00000000000000000000000000000000000000000000000000000000000000006108d5565b610903565b905090565b606073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163003610240576040517f60121cca00000000000000000000000000000000000000000000000000000000815261753760048201526024015b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036102a9576040517f60121cca0000000000000000000000000000000000000000000000000000000081526175336004820152602401610237565b604080516101a081018252600060a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820181905261018082015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811682523060208301527f00000000
|
||
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063cc025f7c11610050578063cc025f7c14610104578063cc2fe94b1461012b578063f9f872f51461015257600080fd5b80632861c7d11461007757806368f4787e146100c8578063a07ddc17146100dd575b600080fd5b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100d0610165565b6040516100bf9190610a03565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b6100d0610160366004610a79565b6101c6565b60606101c16101937f00000000000000000000000000000000000000000000000000000000000000006108d5565b6101bc7f00000000000000000000000000000000000000000000000000000000000000006108d5565b610903565b905090565b606073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163003610240576040517f60121cca00000000000000000000000000000000000000000000000000000000815261753760048201526024015b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036102a9576040517f60121cca0000000000000000000000000000000000000000000000000000000081526175336004820152602401610237565b604080516101a081018252600060a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820181905261018082015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811682523060208301527f00000000000000000000000000000000000000000000000000000000000000008116928201929092527f000000000000000000000000000000000000000000000000000000000000000082166060820152908416608082018190527fffffffffffffffffffffffff1111111111111111111111111111111111111112016103ba576012610429565b8373ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104299190610ab2565b60ff1660c082015273ffffffffffffffffffffffffffffffffffffffff831660a082018190527fffffffffffffffffffffffff11111111111111111111111111111111111111120161047c5760126104eb565b8273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104eb9190610ab2565b60ff1660e0820152604080517f8d65402300000000000000000000000000000000000000000000000000000000815290513091638d6540239160048083019260209291908290030181865afa158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190610adc565b61010082018190526040517fe6bd26a2000000000000000000000000000000000000000000000000000000008152600091309163e6bd26a2916105b59160040190815260200190565b602060405180830381865afa1580156105d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f69190610af5565b90506107e18282604080516101a081018252600080825260208083018290528284018290526060808401839052608080850184905260a0850184905260c0850184905260e08501849052610100850184905261012085018490526101408501849052610160850184905261018085019390935291860151845173ffffffffffffffffffffffffffffffffffffffff909116818301526005818601528451808203860181529201909352805192019190912061012084015260a08301516040805173ffffffffffffffffffffffffffffffffffffffff909216602080840191909152600583830152815180840383018152606090930190915281519101206101408401526080808401516040805173ffffffffffffffffffffffffffffffffffffffff808716602080840191909152600883850152835180840385018152606084018552805190820120919094169482019490945260a0808201949094528151808203909401845260c0019052815191012061016084015260a0808401516040805173ffffffffffffffffffffffffffffffffffffffff808716602080840191909152600983850152835180840385018152606084018552805190820120919094166080830152818501528151808203909401845260c001905281519101206101808401525090919050565b91506107eb610165565b82604051602001
|
||
|
"devdoc": {
|
||
|
"events": {
|
||
|
"VaultT1Deployed(address,uint256,address,address)": {
|
||
|
"params": {
|
||
|
"borrowToken": "The address of the borrow token.",
|
||
|
"supplyToken": "The address of the supply token.",
|
||
|
"vault": "The address of the newly deployed vault.",
|
||
|
"vaultId": "The id of the newly deployed vault."
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"kind": "dev",
|
||
|
"methods": {
|
||
|
"vaultT1(address,address)": {
|
||
|
"params": {
|
||
|
"borrowToken_": "The address of the borrow token.",
|
||
|
"supplyToken_": "The address of the supply token."
|
||
|
},
|
||
|
"returns": {
|
||
|
"vaultCreationBytecode_": " Returns the bytecode of the new vault to deploy."
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"stateVariables": {
|
||
|
"VAULT_T1_CREATIONCODE_ADDRESS_1": {
|
||
|
"details": "SSTORE2 pointer for the VaultT1 creation code. Stored externally to reduce factory bytecode (in 2 parts)"
|
||
|
}
|
||
|
},
|
||
|
"version": 1
|
||
|
},
|
||
|
"userdoc": {
|
||
|
"errors": {
|
||
|
"FluidLiquidateResult(uint256,uint256)": [
|
||
|
{
|
||
|
"notice": "used to simulate liquidation to find the maximum liquidatable amounts"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"events": {
|
||
|
"VaultT1Deployed(address,uint256,address,address)": {
|
||
|
"notice": "Emitted when a new vaultT1 is deployed."
|
||
|
}
|
||
|
},
|
||
|
"kind": "user",
|
||
|
"methods": {
|
||
|
"ADDRESS_THIS()": {
|
||
|
"notice": "address of this contract"
|
||
|
},
|
||
|
"ADMIN_IMPLEMENTATION()": {
|
||
|
"notice": "address of Admin implementation"
|
||
|
},
|
||
|
"LIQUIDITY()": {
|
||
|
"notice": "address of liquidity contract"
|
||
|
},
|
||
|
"SECONDARY_IMPLEMENTATION()": {
|
||
|
"notice": "address of Secondary implementation"
|
||
|
},
|
||
|
"vaultT1(address,address)": {
|
||
|
"notice": "Computes vaultT1 bytecode for the given supply token (`supplyToken_`) and borrow token (`borrowToken_`). This will be called by the VaultFactory via .delegateCall"
|
||
|
},
|
||
|
"vaultT1CreationBytecode()": {
|
||
|
"notice": "returns the stored VaultT1 creation bytecode"
|
||
|
}
|
||
|
},
|
||
|
"version": 1
|
||
|
},
|
||
|
"storageLayout": {
|
||
|
"storage": [],
|
||
|
"types": null
|
||
|
}
|
||
|
}
|