fluid-contracts-public/deployments/mainnet/dump/0x3cfa1CdeF7FE0635C028ebaf05C7A03FC960676d.json

264 lines
324 KiB
JSON
Raw Normal View History

{
"address": "0x3cfa1CdeF7FE0635C028ebaf05C7A03FC960676d",
"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": [],
"name": "VAULT_T1_CREATIONCODE_ADDRESS",
"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"
}
],
"transactionHash": "0xb74f0d3dfb3ad62114120090a5a9f6686f404adaa2db5dac54c269dda14c1086",
"receipt": {
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"from": "0x0Ed35B1609Ec45c7079E80d11149a52717e4859A",
"contractAddress": null,
"transactionIndex": 96,
"gasUsed": "6208004",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xced896296e46e7f3083a7ac88300b41da8ceeb0178091ff357e53012db7b8501",
"transactionHash": "0xb74f0d3dfb3ad62114120090a5a9f6686f404adaa2db5dac54c269dda14c1086",
"logs": [],
"blockNumber": 19245798,
"cumulativeGasUsed": "13894679",
"status": 1,
"byzantium": true
},
"args": [
"0x52Aa899454998Be5b000Ad077a46Bbe360F4e497",
"0x8730d7a5aF435678b2686289eEB6A74A042081e6",
"0x7726A2Da967c695531CEe326d081B72ec0F115DD"
],
"numDeployments": 2,
"solcInputHash": "44b0a3a3fe870efe09bba0440ae9443d",
"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\":[],\"name\":\"VAULT_T1_CREATIONCODE_ADDRESS\",\"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\"}],\"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.\"}}},\"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\"},\"VAULT_T1_CREATIONCODE_ADDRESS()\":{\"notice\":\"SSTORE2 pointer for the VaultT1 creation code. Stored externally to reduce factory bytecode\"},\"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\"}}
"bytecode": "0x6101206040523480156200001257600080fd5b5060405162006f6738038062006f67833981016040819052620000359162000170565b6001600160a01b0380841660a05282811660c052811660e0526040516200007d90620000646020820162000145565b601f1982820381018352601f9091011660405262000097565b6001600160a01b031660805250503061010052506200022a565b60008082604051602001620000ad9190620001ec565b6040516020818303038152906040529050600081604051602001620000d3919062000208565b60405160208183030381529060405290508051602082016000f092506001600160a01b0383166200013e5760405162461bcd60e51b81526020600482015260116024820152701111541313d65351539517d19052531151607a1b604482015260640160405180910390fd5b5050919050565b615fcb8062000f9c83390190565b80516001600160a01b03811681146200016b57600080fd5b919050565b6000806000606084860312156200018657600080fd5b620001918462000153565b9250620001a16020850162000153565b9150620001b16040850162000153565b90509250925092565b6000815160005b81811015620001dd5760208185018101518683015201620001c1565b50600093019283525090919050565b600081526000620002016001830184620001ba565b9392505050565b6a600b5981380380925939f360a81b8152600062000201600b830184620001ba565b60805160a05160c05160e05161010051610d0d6200028f6000396000818161011b015261019d01526000818160cd015261032b0152600081816101420152610301015260008181607c01526102d601526000818160f4015261085e0152610d0d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063cc025f7c11610050578063cc025f7c14610116578063cc2fe94b1461013d578063f9f872f51461016457600080fd5b80632861c7d114610077578063a07ddc17146100c8578063af290973146100ef575b600080fd5b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b6101776101723660046109fb565b610184565b6040516100bf9190610a58565b606073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001630036101fe576040517f60121cca00000000000000000000000000000000000000000000000000000000815261753760048201526024015b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610267576040517f60121cca00000000000000000000000000000000000000000000000000000000815261753360048201526024016101f5565b604080516101e081018252600060a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820181905261018082018190526101a082018190526101c082015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811682523060208301527f00000000000000000000000000000000000000000000000000000000000000008116928201929092527f000000000000000000000000000000000000000000000000000000000000000082166060820152908416608082018190527fffffffffffffffffffffffff1111111111111111111111111111111111111112016103885760126103f7565b8373ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f79190610aa9565b60ff1660c082015273ffffffffffffffffffffffffffffffffffffffff831660a082018190527fffffffffffffffffffffffff11111111111111111111111111111111111111120161044a5760126104b9565b8273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b99190610aa9565b60ff1660e0820152604080517f8d65402300000000000000000000000000000000000000000000000000000000815290513091638d6540239160048083019260209291908290030181865afa158015610516573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053a9190610ad3565b61010082018190526040517fe6bd26a20000000000000000000000000000000000000000000000000000000081
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063cc025f7c11610050578063cc025f7c14610116578063cc2fe94b1461013d578063f9f872f51461016457600080fd5b80632861c7d114610077578063a07ddc17146100c8578063af290973146100ef575b600080fd5b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b6101776101723660046109fb565b610184565b6040516100bf9190610a58565b606073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001630036101fe576040517f60121cca00000000000000000000000000000000000000000000000000000000815261753760048201526024015b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610267576040517f60121cca00000000000000000000000000000000000000000000000000000000815261753360048201526024016101f5565b604080516101e081018252600060a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820181905261018082018190526101a082018190526101c082015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811682523060208301527f00000000000000000000000000000000000000000000000000000000000000008116928201929092527f000000000000000000000000000000000000000000000000000000000000000082166060820152908416608082018190527fffffffffffffffffffffffff1111111111111111111111111111111111111112016103885760126103f7565b8373ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f79190610aa9565b60ff1660c082015273ffffffffffffffffffffffffffffffffffffffff831660a082018190527fffffffffffffffffffffffff11111111111111111111111111111111111111120161044a5760126104b9565b8273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b99190610aa9565b60ff1660e0820152604080517f8d65402300000000000000000000000000000000000000000000000000000000815290513091638d6540239160048083019260209291908290030181865afa158015610516573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053a9190610ad3565b61010082018190526040517fe6bd26a2000000000000000000000000000000000000000000000000000000008152600091309163e6bd26a2916105839160040190815260200190565b602060405180830381865afa1580156105a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c49190610aec565b90506108578282604080516101e081018252600080825260208083018290528284018290526060808401839052608080850184905260a0850184905260c0850184905260e08501849052610100850184905261012085018490526101408501849052610160850184905261018085018490526101a085018490526101c085019390935291860151845173ffffffffffffffffffffffffffffffffffffffff909116818301526007818601528451808203860181529201909352805192019190912061012084015260a08301516040805173ffffffffffffffffffffffffffffffffffffffff9092166020808401919091526007838301528151808403830181526060909301909152815191012061014084015260808301516040805173ffffffffffffffffffffffffffffffffffffffff9092166020808401919091526005838301528151808403830181526060909301909152815191012061016084015260a08301516040805173ffffffffffffffffffffffffffffffffffffffff909216602080840191909152600583830152815180840383018152606090930190915281519101206101808401526080808401516040805173ffffffffffffffffffffffffffffffffffffffff808716602080840191909152600883850152835180840385018152606084018552805190820120919094169482019490945260a0808201949094528151808203909401845260c001905281519101206101a084015260a0808401516040805173ffffffff
"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."
}
}
},
"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"
},
"VAULT_T1_CREATIONCODE_ADDRESS()": {
"notice": "SSTORE2 pointer for the VaultT1 creation code. Stored externally to reduce factory bytecode"
},
"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"
}
},
"version": 1
},
"storageLayout": {
"storage": [],
"types": null
}
}