descent-js
Version:
A Typescript library for interacting with the Descent Protocol
376 lines • 532 kB
JSON
{
"abi": [
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
}
],
"name": "getCollateralInfo",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "getCollateralRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "getHealthFactor",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "getMaxBorrowable",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "getMaxWithdrawable",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "getVault",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_reliedUpon",
"type": "address"
}
],
"name": "isReliedUpon",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": {
"object": "0x608060405234801561001057600080fd5b50610e27806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063a6e91adf1161005b578063a6e91adf14610120578063b09758f014610141578063c03d887114610154578063f44364c51461016757600080fd5b8063347c5d431461008257806354510b9d146100b55780635d242b97146100d8575b600080fd5b610095610090366004610a63565b61017a565b604080519384526020840192909252908201526060015b60405180910390f35b6100c86100c3366004610a63565b6101d7565b60405190151581526020016100ac565b6100eb6100e6366004610aae565b61022c565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016100ac565b61013361012e366004610a63565b610284565b6040519081526020016100ac565b6100c861014f366004610a63565b61034a565b610133610162366004610a63565b6103c8565b610133610175366004610a63565b6104b7565b60008060008061018b8787876104fe565b9050600061019988886105ce565b905060006101a88983856106cb565b50905060008184604001516101bd9190610afd565b8451602090950151949b949a509850929650505050505050565b6000806101e58585856104fe565b905060006101f386866105ce565b905080610140015161020a57600192505050610225565b6000610216828461072a565b60409092015190911115925050505b9392505050565b6000806000806000806000806102428a8a6105ce565b60808101515161010082015182516020840151604085015160e086015160c090960151929d50909b509950929750909550935091505092959891949750929550565b6000806102928585856104fe565b905060006102a086866105ce565b90508061014001516102b757600092505050610225565b60006102c48783856106cb565b509050600081846040015185602001516102de9190610afd565b6102e89190610afd565b905060006102f68483610796565b9050600084604001516012600a61030d9190610bf4565b610318906001610c00565b6103229084610c00565b61032c9190610c17565b865190915061033c908290610c39565b9a9950505050505050505050565b604051635881fc3360e01b81526001600160a01b038381166004830152828116602483015260009190851690635881fc3390604401602060405180830381865afa15801561039c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c09190610c75565b949350505050565b6000806103d68585856104fe565b905060006103e486866105ce565b825190915015806103f85750806101400151155b1561040857600092505050610225565b600061041482846107ef565b905060006104246012600a610bf4565b61042f906001610c00565b604084015161043e9084610c00565b6104489190610c17565b905060006104578985876106cb565b509050600081866040015187602001516104719190610afd565b61047b9190610afd565b905060006104898285610c39565b905060008113801561049e5750808660e00151125b1561033c575060e08501519a9950505050505050505050565b6000806104c58585856104fe565b905060006104d386866105ce565b90508061014001516104ea57600092505050610225565b6104f4818361072a565b9695505050505050565b6105296040518060800160405280600081526020016000815260200160008152602001600081525090565b60405163e2c7283f60e01b81526001600160a01b038481166004830152838116602483015260009182918291829189169063e2c7283f90604401608060405180830381865afa158015610580573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a49190610c90565b60408051608081018252948552602085019390935291830152606082015298975050505050505050565b6105d66109cd565b60008060008060008060008060008060008d6001600160a01b031663c665471f8e6040518263ffffffff1660e01b815260040161062291906001600160a01b0391909116815260200190565b6101a060405180830381865afa158015610640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106649190610cc6565b60408051610160810182529b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c086015260e085015261010084015261012083015215156101408201529b5050505050505050505050505b92915050565b60008060006106da8686610840565b905060006106ea6012600a610bf4565b6106f5906001610c00565b602086015160608701516107099085610db0565b6107139190610c00565b61071d9190610c17565b9791965090945050505050565b600080826040015183602001516107419190610afd565b9050806000036107555760009150506106c5565b600061076185856107ef565b905061078d6107726012600a610bf4565b61077d906001610c00565b6107879084610c00565b826108c2565b95945050505050565b6000806107d76107a86012600a610bf4565b6107b3906001610c00565b6107bd9085610c00565b64e8d4a510008660c001516107d29190610c00565b6108c2565b90506103c081856101200151600a6107d29190610bf4565b6000806107fe6012600a610bf4565b610809906001610c00565b64e8d4a510008560c00151610822878760000151610902565b61082c9190610c00565b6108369190610c00565b6103c09190610c17565b600080826080015160400151426108579190610db0565b6080840151516108679190610c00565b83608001516020015161087a9190610afd565b9050600061088785610920565b9050600081604001514261089b9190610db0565b82516108a79190610c00565b82602001516108b69190610afd565b90506104f48184610afd565b6000816000036108d157600080fd5b826000036108e1575060006106c5565b816108ed600185610db0565b6108f79190610c17565b610225906001610afd565b6000826101200151600a6109169190610bf4565b6102259083610c00565b61094460405180606001604052806000815260200160008152602001600081525090565b6000806000846001600160a01b03166313f60c9a6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610987573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ab9190610dc3565b6040805160608101825293845260208401929092529082015295945050505050565b60405180610160016040528060008152602001600081526020016000815260200160008152602001610a1960405180606001604052806000815260200160008152602001600081525090565b815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b6001600160a01b0381168114610a6057600080fd5b50565b600080600060608486031215610a7857600080fd5b8335610a8381610a4b565b92506020840135610a9381610a4b565b91506040840135610aa381610a4b565b809150509250925092565b60008060408385031215610ac157600080fd5b8235610acc81610a4b565b91506020830135610adc81610a4b565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106c5576106c5610ae7565b600181815b80851115610b4b578160001904821115610b3157610b31610ae7565b80851615610b3e57918102915b93841c9390800290610b15565b509250929050565b600082610b62575060016106c5565b81610b6f575060006106c5565b8160018114610b855760028114610b8f57610bab565b60019150506106c5565b60ff841115610ba057610ba0610ae7565b50506001821b6106c5565b5060208310610133831016604e8410600b8410161715610bce575081810a6106c5565b610bd88383610b10565b8060001904821115610bec57610bec610ae7565b029392505050565b60006102258383610b53565b80820281158282048414176106c5576106c5610ae7565b600082610c3457634e487b7160e01b600052601260045260246000fd5b500490565b8181036000831280158383131683831282161715610c5957610c59610ae7565b5092915050565b80518015158114610c7057600080fd5b919050565b600060208284031215610c8757600080fd5b61022582610c60565b60008060008060808587031215610ca657600080fd5b505082516020840151604085015160609095015191969095509092509050565b60008060008060008060008060008060008b8d036101a0811215610ce957600080fd5b8c519b5060208d01519a5060408d0151995060608d015198506060607f1982011215610d1457600080fd5b506040516060810181811067ffffffffffffffff82111715610d4657634e487b7160e01b600052604160045260246000fd5b806040525060808d0151815260a08d0151602082015260c08d015160408201528097505060e08c015195506101008c015194506101208c015193506101408c015192506101608c01519150610d9e6101808d01610c60565b90509295989b509295989b9093969950565b818103818111156106c5576106c5610ae7565b600080600060608486031215610dd857600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220873e05c52747f221e2c63fda8be354559ce7f2ac168392dce05b9ae644519a7764736f6c63430008150033",
"sourceMap": "391:14243:53:-:0;;;;;;;;;;;;;;;;;;;",
"linkReferences": {}
},
"deployedBytecode": {
"object": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063a6e91adf1161005b578063a6e91adf14610120578063b09758f014610141578063c03d887114610154578063f44364c51461016757600080fd5b8063347c5d431461008257806354510b9d146100b55780635d242b97146100d8575b600080fd5b610095610090366004610a63565b61017a565b604080519384526020840192909252908201526060015b60405180910390f35b6100c86100c3366004610a63565b6101d7565b60405190151581526020016100ac565b6100eb6100e6366004610aae565b61022c565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016100ac565b61013361012e366004610a63565b610284565b6040519081526020016100ac565b6100c861014f366004610a63565b61034a565b610133610162366004610a63565b6103c8565b610133610175366004610a63565b6104b7565b60008060008061018b8787876104fe565b9050600061019988886105ce565b905060006101a88983856106cb565b50905060008184604001516101bd9190610afd565b8451602090950151949b949a509850929650505050505050565b6000806101e58585856104fe565b905060006101f386866105ce565b905080610140015161020a57600192505050610225565b6000610216828461072a565b60409092015190911115925050505b9392505050565b6000806000806000806000806102428a8a6105ce565b60808101515161010082015182516020840151604085015160e086015160c090960151929d50909b509950929750909550935091505092959891949750929550565b6000806102928585856104fe565b905060006102a086866105ce565b90508061014001516102b757600092505050610225565b60006102c48783856106cb565b509050600081846040015185602001516102de9190610afd565b6102e89190610afd565b905060006102f68483610796565b9050600084604001516012600a61030d9190610bf4565b610318906001610c00565b6103229084610c00565b61032c9190610c17565b865190915061033c908290610c39565b9a9950505050505050505050565b604051635881fc3360e01b81526001600160a01b038381166004830152828116602483015260009190851690635881fc3390604401602060405180830381865afa15801561039c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c09190610c75565b949350505050565b6000806103d68585856104fe565b905060006103e486866105ce565b825190915015806103f85750806101400151155b1561040857600092505050610225565b600061041482846107ef565b905060006104246012600a610bf4565b61042f906001610c00565b604084015161043e9084610c00565b6104489190610c17565b905060006104578985876106cb565b509050600081866040015187602001516104719190610afd565b61047b9190610afd565b905060006104898285610c39565b905060008113801561049e5750808660e00151125b1561033c575060e08501519a9950505050505050505050565b6000806104c58585856104fe565b905060006104d386866105ce565b90508061014001516104ea57600092505050610225565b6104f4818361072a565b9695505050505050565b6105296040518060800160405280600081526020016000815260200160008152602001600081525090565b60405163e2c7283f60e01b81526001600160a01b038481166004830152838116602483015260009182918291829189169063e2c7283f90604401608060405180830381865afa158015610580573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a49190610c90565b60408051608081018252948552602085019390935291830152606082015298975050505050505050565b6105d66109cd565b60008060008060008060008060008060008d6001600160a01b031663c665471f8e6040518263ffffffff1660e01b815260040161062291906001600160a01b0391909116815260200190565b6101a060405180830381865afa158015610640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106649190610cc6565b60408051610160810182529b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c086015260e085015261010084015261012083015215156101408201529b5050505050505050505050505b92915050565b60008060006106da8686610840565b905060006106ea6012600a610bf4565b6106f5906001610c00565b602086015160608701516107099085610db0565b6107139190610c00565b61071d9190610c17565b9791965090945050505050565b600080826040015183602001516107419190610afd565b9050806000036107555760009150506106c5565b600061076185856107ef565b905061078d6107726012600a610bf4565b61077d906001610c00565b6107879084610c00565b826108c2565b95945050505050565b6000806107d76107a86012600a610bf4565b6107b3906001610c00565b6107bd9085610c00565b64e8d4a510008660c001516107d29190610c00565b6108c2565b90506103c081856101200151600a6107d29190610bf4565b6000806107fe6012600a610bf4565b610809906001610c00565b64e8d4a510008560c00151610822878760000151610902565b61082c9190610c00565b6108369190610c00565b6103c09190610c17565b600080826080015160400151426108579190610db0565b6080840151516108679190610c00565b83608001516020015161087a9190610afd565b9050600061088785610920565b9050600081604001514261089b9190610db0565b82516108a79190610c00565b82602001516108b69190610afd565b90506104f48184610afd565b6000816000036108d157600080fd5b826000036108e1575060006106c5565b816108ed600185610db0565b6108f79190610c17565b610225906001610afd565b6000826101200151600a6109169190610bf4565b6102259083610c00565b61094460405180606001604052806000815260200160008152602001600081525090565b6000806000846001600160a01b03166313f60c9a6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610987573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ab9190610dc3565b6040805160608101825293845260208401929092529082015295945050505050565b60405180610160016040528060008152602001600081526020016000815260200160008152602001610a1960405180606001604052806000815260200160008152602001600081525090565b815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b6001600160a01b0381168114610a6057600080fd5b50565b600080600060608486031215610a7857600080fd5b8335610a8381610a4b565b92506020840135610a9381610a4b565b91506040840135610aa381610a4b565b809150509250925092565b60008060408385031215610ac157600080fd5b8235610acc81610a4b565b91506020830135610adc81610a4b565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106c5576106c5610ae7565b600181815b80851115610b4b578160001904821115610b3157610b31610ae7565b80851615610b3e57918102915b93841c9390800290610b15565b509250929050565b600082610b62575060016106c5565b81610b6f575060006106c5565b8160018114610b855760028114610b8f57610bab565b60019150506106c5565b60ff841115610ba057610ba0610ae7565b50506001821b6106c5565b5060208310610133831016604e8410600b8410161715610bce575081810a6106c5565b610bd88383610b10565b8060001904821115610bec57610bec610ae7565b029392505050565b60006102258383610b53565b80820281158282048414176106c5576106c5610ae7565b600082610c3457634e487b7160e01b600052601260045260246000fd5b500490565b8181036000831280158383131683831282161715610c5957610c59610ae7565b5092915050565b80518015158114610c7057600080fd5b919050565b600060208284031215610c8757600080fd5b61022582610c60565b60008060008060808587031215610ca657600080fd5b505082516020840151604085015160609095015191969095509092509050565b60008060008060008060008060008060008b8d036101a0811215610ce957600080fd5b8c519b5060208d01519a5060408d0151995060608d015198506060607f1982011215610d1457600080fd5b506040516060810181811067ffffffffffffffff82111715610d4657634e487b7160e01b600052604160045260246000fd5b806040525060808d0151815260a08d0151602082015260c08d015160408201528097505060e08c015195506101008c015194506101208c015193506101408c015192506101608c01519150610d9e6101808d01610c60565b90509295989b509295989b9093969950565b818103818111156106c5576106c5610ae7565b600080600060608486031215610dd857600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220873e05c52747f221e2c63fda8be354559ce7f2ac168392dce05b9ae644519a7764736f6c63430008150033",
"sourceMap": "391:14243:53:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7936:667;;;;;;:::i;:::-;;:::i;:::-;;;;944:25:56;;;1000:2;985:18;;978:34;;;;1028:18;;;1021:34;932:2;917:18;7936:667:53;;;;;;;;2616:555;;;;;;:::i;:::-;;:::i;:::-;;;1231:14:56;;1224:22;1206:41;;1194:2;1179:18;2616:555:53;1066:187:56;8682:705:53;;;;;;:::i;:::-;;:::i;:::-;;;;2010:25:56;;;2066:2;2051:18;;2044:34;;;;2094:18;;;2087:34;;;;2152:2;2137:18;;2130:34;;;;2195:3;2180:19;;2173:35;2239:3;2224:19;;2217:35;2283:3;2268:19;;2261:35;1997:3;1982:19;8682:705:53;1695:607:56;6506:1193:53;;;;;;:::i;:::-;;:::i;:::-;;;2451:25:56;;;2439:2;2424:18;6506:1193:53;2307:175:56;9432:181:53;;;;;;:::i;:::-;;:::i;4113:1813::-;;;;;;:::i;:::-;;:::i;3245:468::-;;;;;;:::i;:::-;;:::i;7936:667::-;8063:7;8072;8081;8104:30;8137:58;8154:14;8170:16;8188:6;8137:16;:58::i;:::-;8104:91;;8205:40;8248:55;8270:14;8286:16;8248:21;:55::i;:::-;8205:98;;8350:27;8382:58;8404:14;8420:11;8433:6;8382:21;:58::i;:::-;8349:91;;;8450:20;8494:19;8473:6;:18;;;:40;;;;:::i;:::-;8532:26;;8560:21;;;;;8532:26;;8560:21;;-1:-1:-1;8560:21:53;-1:-1:-1;7936:667:53;;-1:-1:-1;;;;;;;7936:667:53:o;2616:555::-;2750:4;2770:30;2803:58;2820:14;2836:16;2854:6;2803:16;:58::i;:::-;2770:91;;2871:40;2914:55;2936:14;2952:16;2914:21;:55::i;:::-;2871:98;;2985:11;:18;;;2980:36;;3012:4;3005:11;;;;;;2980:36;3027:24;3054:40;3074:11;3087:6;3054:19;:40::i;:::-;3132:32;;;;;3112:52;;;;;-1:-1:-1;;;2616:555:53;;;;;;:::o;8682:705::-;8802:7;8811;8820;8829;8838;8847;8856;8879:40;8922:55;8944:14;8960:16;8922:21;:55::i;:::-;9004:20;;;;:25;9061:38;;;;9131:36;;9181:31;;;;9226:32;;;;9272:23;;;;9353:17;;;;;9131:36;;-1:-1:-1;9181:31:53;;-1:-1:-1;9226:32:53;-1:-1:-1;9272:23:53;;-1:-1:-1;9004:25:53;;-1:-1:-1;9061:38:53;-1:-1:-1;9353:17:53;-1:-1:-1;;8682:705:53;;;;;;;;;;:::o;6506:1193::-;6643:6;6665:30;6698:58;6715:14;6731:16;6749:6;6698:16;:58::i;:::-;6665:91;;6766:40;6809:55;6831:14;6847:16;6809:21;:55::i;:::-;6766:98;;6880:11;:18;;;6875:33;;6907:1;6900:8;;;;;;6875:33;6956:27;6988:58;7010:14;7026:11;7039:6;6988:21;:58::i;:::-;6955:91;;;7056:23;7127:19;7106:6;:18;;;7082:6;:21;;;:42;;;;:::i;:::-;:64;;;;:::i;:::-;7056:90;;7213:42;7258:67;7296:11;7309:15;7258:37;:67::i;:::-;7213:112;;7376:50;7492:11;:32;;;463:2;513;:22;;;;:::i;:::-;508:28;;:1;:28;:::i;:::-;7442:46;;:34;:46;:::i;:::-;7441:83;;;;:::i;:::-;7612:26;;7376:148;;-1:-1:-1;7605:87:53;;7376:148;;7605:87;:::i;:::-;7598:94;6506:1193;-1:-1:-1;;;;;;;;;;6506:1193:53:o;9432:181::-;9559:47;;-1:-1:-1;;;9559:47:53;;-1:-1:-1;;;;;5705:15:56;;;9559:47:53;;;5687:34:56;5757:15;;;5737:18;;;5730:43;9536:4:53;;9559:26;;;;;;5622:18:56;;9559:47:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9552:54;9432:181;-1:-1:-1;;;;9432:181:53:o;4113:1813::-;4248:6;4270:30;4303:58;4320:14;4336:16;4354:6;4303:16;:58::i;:::-;4270:91;;4371:40;4414:55;4436:14;4452:16;4414:21;:55::i;:::-;4531:26;;4371:98;;-1:-1:-1;4531:31:53;;:54;;;4567:11;:18;;;4566:19;4531:54;4527:68;;;4594:1;4587:8;;;;;;4527:68;4641:34;4678:50;4708:11;4721:6;4678:29;:50::i;:::-;4641:87;-1:-1:-1;4792:42:53;513:22;463:2;513;:22;:::i;:::-;508:28;;:1;:28;:::i;:::-;4879:32;;;;4850:61;;:26;:61;:::i;:::-;4849:75;;;;:::i;:::-;4792:132;;4972:27;5004:58;5026:14;5042:11;5055:6;5004:21;:58::i;:::-;4971:91;;;5072:23;5143:19;5122:6;:18;;;5098:6;:21;;;:42;;;;:::i;:::-;:64;;;;:::i;:::-;5072:90;-1:-1:-1;5173:26:53;5202:68;5072:90;5209:34;5202:68;:::i;:::-;5173:97;;5512:1;5490:19;:23;:80;;;;;5551:19;5524:11;:23;;;5517:53;5490:80;5486:164;;;-1:-1:-1;5615:23:53;;;;5900:19;4113:1813;-1:-1:-1;;;;;;;;;;4113:1813:53:o;3245:468::-;3382:7;3405:30;3438:58;3455:14;3471:16;3489:6;3438:16;:58::i;:::-;3405:91;;3506:40;3549:55;3571:14;3587:16;3549:21;:55::i;:::-;3506:98;;3620:11;:18;;;3615:33;;3647:1;3640:8;;;;;;3615:33;3666:40;3686:11;3699:6;3666:19;:40::i;:::-;3659:47;3245:468;-1:-1:-1;;;;;;3245:468:53:o;606:466::-;740:23;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;740:23:53;902:53;;-1:-1:-1;;;902:53:53;;-1:-1:-1;;;;;5705:15:56;;;902:53:53;;;5687:34:56;5757:15;;;5737:18;;;5730:43;780:27:53;;;;;;;;902;;;;;5622:18:56;;902:53:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;973:92;;;;;;;;;;;;;;;;;;;;;;;;;;;606:466;-1:-1:-1;;;;;;;;606:466:53:o;1362:1037::-;1485:28;;:::i;:::-;1543:32;1589:27;1630:28;1672:24;1710:30;1754:16;1784:13;1811:19;1844:34;1892:37;1943:11;1967:14;-1:-1:-1;;;;;1967:32:53;;2000:16;1967:50;;;;;;;;;;;;;;-1:-1:-1;;;;;7036:32:56;;;;7018:51;;7006:2;6991:18;;6857:218;1967:50:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2035:357;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;1362:1037:53;;;;;:::o;12167:530::-;12347:7;12356;12375:36;12414:66;12452:14;12468:11;12414:37;:66::i;:::-;12375:105;-1:-1:-1;12491:20:53;513:22;463:2;513;:22;:::i;:::-;508:28;;:1;:28;:::i;:::-;12594:21;;;;12559:31;;;;12528:62;;:28;:62;:::i;:::-;12527:88;;;;:::i;:::-;12526:102;;;;:::i;:::-;12491:137;12661:28;;-1:-1:-1;12167:530:53;;-1:-1:-1;;;;;12167:530:53:o;9887:977::-;10037:7;10406:22;10455:6;:18;;;10431:6;:21;;;:42;;;;:::i;:::-;10406:67;;10487:14;10505:1;10487:19;10483:33;;10515:1;10508:8;;;;;10483:33;10641:34;10678:50;10708:11;10721:6;10678:29;:50::i;:::-;10641:87;-1:-1:-1;10793:64:53;513:22;463:2;513;:22;:::i;:::-;508:28;;:1;:28;:::i;:::-;10801:26;;:14;:26;:::i;:::-;10830;10793:6;:64::i;:::-;10786:71;9887:977;-1:-1:-1;;;;;9887:977:53:o;11604:423::-;11757:7;;11835:78;513:22;463:2;513;:22;:::i;:::-;508:28;;:1;:28;:::i;:::-;11843:19;;:7;:19;:::i;:::-;595:4;11866:11;:17;;;:45;;;;:::i;:::-;11835:6;:78::i;:::-;11780:133;;11931:89;11938:32;11978:11;:41;;;11972:2;:47;;;;:::i;11011:446::-;11171:7;;513:22;463:2;513;:22;:::i;:::-;508:28;;:1;:28;:::i;:::-;595:4;11324:11;:17;;;11245:76;11281:11;11294:6;:26;;;11245:35;:76::i;:::-;:96;;;;:::i;:::-;:140;;;;:::i;:::-;11231:176;;;;:::i;12903:928::-;13061:7;13177:41;13320:11;:20;;;:35;;;13302:15;:53;;;;:::i;:::-;13273:20;;;;:25;:83;;;;:::i;:::-;13221:11;:20;;;:36;;;:136;;;;:::i;:::-;13177:180;;13368:36;13407:32;13424:14;13407:16;:32::i;:::-;13368:71;;13531:35;13654:13;:28;;;13636:15;:46;;;;:::i;:::-;13614:18;;:69;;;;:::i;:::-;13581:13;:29;;;:103;;;;:::i;:::-;13531:153;-1:-1:-1;13761:63:53;13531:153;13761:33;:63;:::i;14454:178::-;14516:10;14542:2;14548:1;14542:7;14538:21;;14551:8;;;14538:21;14573:2;14579:1;14573:7;14569:21;;-1:-1:-1;14589:1:53;14582:8;;14569:21;14622:2;14612:6;14617:1;14612:2;:6;:::i;:::-;14611:13;;;;:::i;:::-;14606:19;;:1;:19;:::i;13950:245::-;14100:7;14146:11;:41;;;14140:2;:47;;;;:::i;:::-;14130:58;;:6;:58;:::i;1078:278::-;1148:22;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;1148:22:53;1183:12;1197:23;1222:22;1248:14;-1:-1:-1;;;;;1248:27:53;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1295:54;;;;;;;;;;;;;;;;;;;;;;;1078:278;-1:-1:-1;;;;;1078:278:53:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:138:56:-;-1:-1:-1;;;;;96:31:56;;86:42;;76:70;;142:1;139;132:12;76:70;14:138;:::o;157:580::-;264:6;272;280;333:2;321:9;312:7;308:23;304:32;301:52;;;349:1;346;339:12;301:52;388:9;375:23;407:38;439:5;407:38;:::i;:::-;464:5;-1:-1:-1;521:2:56;506:18;;493:32;534:40;493:32;534:40;:::i;:::-;593:7;-1:-1:-1;652:2:56;637:18;;624:32;665:40;624:32;665:40;:::i;:::-;724:7;714:17;;;157:580;;;;;:::o;1258:432::-;1356:6;1364;1417:2;1405:9;1396:7;1392:23;1388:32;1385:52;;;1433:1;1430;1423:12;1385:52;1472:9;1459:23;1491:38;1523:5;1491:38;:::i;:::-;1548:5;-1:-1:-1;1605:2:56;1590:18;;1577:32;1618:40;1577:32;1618:40;:::i;:::-;1677:7;1667:17;;;1258:432;;;;;:::o;3239:127::-;3300:10;3295:3;3291:20;3288:1;3281:31;3331:4;3328:1;3321:15;3355:4;3352:1;3345:15;3371:125;3436:9;;;3457:10;;;3454:36;;;3470:18;;:::i;3501:422::-;3590:1;3633:5;3590:1;3647:270;3668:7;3658:8;3655:21;3647:270;;;3727:4;3723:1;3719:6;3715:17;3709:4;3706:27;3703:53;;;3736:18;;:::i;:::-;3786:7;3776:8;3772:22;3769:55;;;3806:16;;;;3769:55;3885:22;;;;3845:15;;;;3647:270;;;3651:3;3501:422;;;;;:::o;3928:806::-;3977:5;4007:8;3997:80;;-1:-1:-1;4048:1:56;4062:5;;3997:80;4096:4;4086:76;;-1:-1:-1;4133:1:56;4147:5;;4086:76;4178:4;4196:1;4191:59;;;;4264:1;4259:130;;;;4171:218;;4191:59;4221:1;4212:10;;4235:5;;;4259:130;4296:3;4286:8;4283:17;4280:43;;;4303:18;;:::i;:::-;-1:-1:-1;;4359:1:56;4345:16;;4374:5;;4171:218;;4473:2;4463:8;4460:16;4454:3;4448:4;4445:13;4441:36;4435:2;4425:8;4422:16;4417:2;4411:4;4408:12;4404:35;4401:77;4398:159;;;-1:-1:-1;4510:19:56;;;4542:5;;4398:159;4589:34;4614:8;4608:4;4589:34;:::i;:::-;4659:6;4655:1;4651:6;4647:19;4638:7;4635:32;4632:58;;;4670:18;;:::i;:::-;4708:20;;3928:806;-1:-1:-1;;;3928:806:56:o;4739:131::-;4799:5;4828:36;4855:8;4849:4;4828:36;:::i;4875:168::-;4948:9;;;4979;;4996:15;;;4990:22;;4976:37;4966:71;;5017:18;;:::i;5048:217::-;5088:1;5114;5104:132;;5158:10;5153:3;5149:20;5146:1;5139:31;5193:4;5190:1;5183:15;5221:4;5218:1;5211:15;5104:132;-1:-1:-1;5250:9:56;;5048:217::o;5270:200::-;5336:9;;;5309:4;5364:9;;5392:10;;5404:12;;;5388:29;5427:12;;;5419:21;;5385:56;5382:82;;;5444:18;;:::i;:::-;5382:82;5270:200;;;;:::o;5784:164::-;5860:13;;5909;;5902:21;5892:32;;5882:60;;5938:1;5935;5928:12;5882:60;5784:164;;;:::o;5953:202::-;6020:6;6073:2;6061:9;6052:7;6048:23;6044:32;6041:52;;;6089:1;6086;6079:12;6041:52;6112:37;6139:9;6112:37;:::i;6484:368::-;6581:6;6589;6597;6605;6658:3;6646:9;6637:7;6633:23;6629:33;6626:53;;;6675:1;6672;6665:12;6626:53;-1:-1:-1;;6698:16:56;;6754:2;6739:18;;6733:25;6798:2;6783:18;;6777:25;6842:2;6827:18;;;6821:25;6698:16;;6733:25;;-1:-1:-1;6821:25:56;;-1:-1:-1;6484:368:56;-1:-1:-1;6484:368:56:o;7080:1375::-;7264:6;7272;7280;7288;7296;7304;7312;7320;7328;7336;7344:7;7389:9;7380:7;7376:23;7419:3;7415:2;7411:12;7408:32;;;7436:1;7433;7426:12;7408:32;7465:9;7459:16;7449:26;;7515:2;7504:9;7500:18;7494:25;7484:35;;7559:2;7548:9;7544:18;7538:25;7528:35;;7603:2;7592:9;7588:18;7582:25;7572:35;;7642:2;7635:3;7631:8;7627:2;7623:17;7619:26;7616:46;;;7658:1;7655;7648:12;7616:46;;7691:2;7685:9;7733:2;7725:6;7721:15;7802:6;7790:10;7787:22;7766:18;7754:10;7751:34;7748:62;7745:185;;;7852:10;7847:3;7843:20;7840:1;7833:31;7887:4;7884:1;7877:15;7915:4;7912:1;7905:15;7745:185;7950:10;7946:2;7939:22;;8006:3;7995:9;7991:19;7985:26;7977:6;7970:42;8066:3;8055:9;8051:19;8045:26;8040:2;8032:6;8028:15;8021:51;8126:3;8115:9;8111:19;8105:26;8100:2;8092:6;8088:15;8081:51;8151:6;8141:16;;;8197:3;8186:9;8182:19;8176:26;8166:36;;8242:3;8231:9;8227:19;8221:26;8211:36;;8287:3;8276:9;8272:19;8266:26;8256:36;;8332:3;8321:9;8317:19;8311:26;8301:36;;8377:3;8366:9;8362:19;8356:26;8346:36;;8402:47;8444:3;8433:9;8429:19;8402:47;:::i;:::-;8391:58;;7080:1375;;;;;;;;;;;;;;:::o;8460:128::-;8527:9;;;8548:11;;;8545:37;;;8562:18;;:::i;8593:306::-;8681:6;8689;8697;8750:2;8738:9;8729:7;8725:23;8721:32;8718:52;;;8766:1;8763;8756:12;8718:52;8795:9;8789:16;8779:26;;8845:2;8834:9;8830:18;8824:25;8814:35;;8889:2;8878:9;8874:18;8868:25;8858:35;;8593:306;;;;;:::o",
"linkReferences": {}
},
"methodIdentifiers": {
"getCollateralInfo(address,address)": "5d242b97",
"getCollateralRatio(address,address,address)": "f44364c5",
"getHealthFactor(address,address,address)": "54510b9d",
"getMaxBorrowable(address,address,address)": "c03d8871",
"getMaxWithdrawable(address,address,address)": "a6e91adf",
"getVault(address,address,address)": "347c5d43",
"isReliedUpon(address,address,address)": "b09758f0"
},
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract Vault\",\"name\":\"_vaultContract\",\"type\":\"address\"},{\"internalType\":\"contract ERC20\",\"name\":\"_collateralToken\",\"type\":\"address\"}],\"name\":\"getCollateralInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract Vault\",\"name\":\"_vaultContract\",\"type\":\"address\"},{\"internalType\":\"contract ERC20\",\"name\":\"_collateralToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"getCollateralRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract Vault\",\"name\":\"_vaultContract\",\"type\":\"address\"},{\"internalType\":\"contract ERC20\",\"name\":\"_collateralToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"getHealthFactor\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract Vault\",\"name\":\"_vaultContract\",\"type\":\"address\"},{\"internalType\":\"contract ERC20\",\"name\":\"_collateralToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"getMaxBorrowable\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract Vault\",\"name\":\"_vaultContract\",\"type\":\"address\"},{\"internalType\":\"contract ERC20\",\"name\":\"_collateralToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"getMaxWithdrawable\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract Vault\",\"name\":\"_vaultContract\",\"type\":\"address\"},{\"internalType\":\"contract ERC20\",\"name\":\"_collateralToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract Vault\",\"name\":\"_vaultContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_reliedUpon\",\"type\":\"address\"}],\"name\":\"isReliedUpon\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getCollateralInfo(address,address)\":{\"details\":\"returns a the relevant info for a collateral\"},\"getCollateralRatio(address,address,address)\":{\"details\":\"returns the collateral ratio of a vault\"},\"getHealthFactor(address,address,address)\":{\"details\":\"returns health factor (if a vault is liquidatable or not) of a vault\"},\"getMaxBorrowable(address,address,address)\":{\"details\":\"returns the max amount of currency a vault owner can mint for that vault without the tx reverting due to the vault's health factor falling below the min health factorif it's a negative number then the vault is below the min health factor already and paying back the additive inverse of the result will pay back both borrowed amount and interest accrued\"},\"getMaxWithdrawable(address,address,address)\":{\"details\":\"returns the max amount of collateral a vault owner can withdraw from a vault without the tx reverting due to the vault's health factor falling below the min health factorif it's a negative number then the vault is below the min health factor already and depositing the additive inverse will put the position at the min health factor saving it from liquidation.the recommended way to do this is to burn/pay back the additive inverse of the result of `getMaxBorrowable()` that way interest would not accrue after payment.\"},\"getVault(address,address,address)\":{\"details\":\"returns a vault's relevant info i.e the depositedCollateral, borrowedAmount, and updated accruedFeesrecommended to read the accrued fees from here as it'll be updated before being returned.\"},\"isReliedUpon(address,address,address)\":{\"details\":\"returns if\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/vaultGetters.sol\":\"VaultGetters\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/protocol-core/lib/openzeppelin-contracts/\",\":@openzeppelin/contracts/=lib/protocol-core/lib/openzeppelin-contracts/contracts/\",\":descent-collective/protocol-core/=lib/protocol-core/src/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/protocol-core/lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts/=lib/protocol-core/lib/openzeppelin-contracts/\",\":protocol-core/=lib/protocol-core/\"]},\"sources\":{\"lib/protocol-core/lib/openzeppelin-contracts/contracts/access/AccessControl.sol\":{\"keccak256\":\"0xa0e92d42942f4f57c5be50568dac11e9d00c93efcb458026e18d2d9b9b2e7308\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://46326c0bb1e296b67185e81c918e0b40501b8b6386165855df0a3f3c634b6a80\",\"dweb:/ipfs/QmTwyrDYtsxsk6pymJTK94PnEpzsmkpUxFuzEiakDopy4Z\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/access/IAccessControl.sol\":{\"keccak256\":\"0xb6b36edd6a2999fd243ff226d6cbf84bd71af2432bbd0dfe19392996a1d9cb41\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1fd2f35495652e57e3f99bc6c510bc5f7dd398a176ea2e72d8ed730aebc6ca26\",\"dweb:/ipfs/QmTQV6X4gkikTib49cho5iDX3JvSQbdsoEChoDwrk3CbbH\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol\":{\"keccak256\":\"0x92aa1df62dc3d33f1656d63bede0923e0df0b706ad4137c8b10b0a8fe549fd92\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c5c0f29195ad64cbe556da8e257dac8f05f78c53f90323c0d2accf8e6922d33a\",\"dweb:/ipfs/QmQ61TED8uaCZwcbh8KkgRSsCav7x7HbcGHwHts3U4DmUP\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol\":{\"keccak256\":\"0x60c65f701957fdd6faea1acb0bb45825791d473693ed9ecb34726fdfaa849dd7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ea290300e0efc4d901244949dc4d877fd46e6c5e43dc2b26620e8efab3ab803f\",\"dweb:/ipfs/QmcLLJppxKeJWqHxE2CUkcfhuRTgHSn8J4kijcLa5MYhSt\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xc3e1fa9d1987f8d349dfb4d6fe93bf2ca014b52ba335cfac30bfe71e357e6f80\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c5703ccdeb7b1d685e375ed719117e9edf2ab4bc544f24f23b0d50ec82257229\",\"dweb:/ipfs/QmTdwkbQq7owpCiyuzE7eh5LrD2ddrBCZ5WHVsWPi1RrTS\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xc6a8ff0ea489379b61faa647490411b80102578440ab9d84e9a957cc12164e70\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0ea104e577e63faea3b69c415637e99e755dcbf64c5833d7140c35a714d6d90c\",\"dweb:/ipfs/Qmau6x4Ns9XdyynRCNNp3RhLqijJjFm7z5fyZazfYFGYdq\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Permit.sol\":{\"keccak256\":\"0xc858a86a35701004d89022a5e98819aac46ccbdc4072fc9dd43928a676b1a2ee\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://18acebb483c512c0eaafcb437f09c839972c3f0d36f0201ea7baa2926b987dd2\",\"dweb:/ipfs/Qmd9bf2noaDSYDtf6FMSzKu7LPhuf91jsVNmcoCuTCuGic\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0xaa761817f6cd7892fcf158b3c776b34551cde36f48ff9703d53898bc45a94ea2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0ad7c8d4d08938c8dfc43d75a148863fb324b80cf53e0a36f7e5a4ac29008850\",\"dweb:/ipfs/QmcrhfPgVNf5mkdhQvy1pMv51TFokD3Y4Wa5WZhFqVh8UV\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"keccak256\":\"0x6008dabfe393240d73d7dd7688033f72740d570aa422254d29a7dce8568f3aff\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f5196ec75139918c6c7bb4251b36395e668f1fa6d206beba7e7520e74913940d\",\"dweb:/ipfs/QmSyqjksXxmm2mCG6qRd1yuwLykypkSVBbnBnGqJRcuJMi\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x37bb49513c49c87c4642a891b13b63571bc87013dde806617aa1efb54605f386\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b3036b3a83b7c48f96641f2a9002b9f2dcb6a5958dd670894ada21ae8229b3d0\",\"dweb:/ipfs/QmUNfSBdoVtjhETaUJCYcaC7pTMgbhht926tJ2uXJbiVd3\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/Address.sol\":{\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b7bd24e224f67f65bfadf85dc2929fa965456bb2415478bd0125471b5ce35245\",\"dweb:/ipfs/QmRaydGr8BTHs1kvaZfsNU69pKzUAGFrvABn1KiRSbE51y\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/Context.sol\":{\"keccak256\":\"0x75a4ee64c68dbd5f38bddd06e664a64c8271b4caa554fb6f0607dfd672bb4bf3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0c4e6cb30d3601e2f7af5af09e265508147cb275a8dcd99d6f7363645cc56867\",\"dweb:/ipfs/QmNgFkoXNWoUbAyw71rr1sKQ95Rj2GfvYiWg79xEYDn2NY\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/Nonces.sol\":{\"keccak256\":\"0x0082767004fca261c332e9ad100868327a863a88ef724e844857128845ab350f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://132dce9686a54e025eb5ba5d2e48208f847a1ec3e60a3e527766d7bf53fb7f9e\",\"dweb:/ipfs/QmXn1a2nUZMpu2z6S88UoTfMVtY2YNh86iGrzJDYmMkKeZ\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol\":{\"keccak256\":\"0x18a7171df639a934592915a520ecb97c5bbc9675a1105607aac8a94e72bf62c6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7478e1f13da69a2867ccd883001d836b75620362e743f196376d63ed0c422a1c\",\"dweb:/ipfs/QmWywcQ9TNfwtoqAxbn25d8C5VrV12PrPS9UjtGe6pL2BA\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1ae50c8b562427df610cc4540c9bf104acca7ef8e2dcae567ae7e52272281e9c\",\"dweb:/ipfs/QmTHiadFCSJUPpRjNegc5SahmeU8bAoY8i9Aq6tVscbcKR\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/Strings.sol\":{\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e52e0a7765c943ef14e5bcf11e46e6139fa044be564881378349236bf2e3453\",\"dweb:/ipfs/QmZEeeXoFPW47amyP35gfzomF9DixqqTEPwzBakv6cZw6i\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol\":{\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ba80ba06c8e6be852847e4c5f4492cef801feb6558ae09ed705ff2e04ea8b13c\",\"dweb:/ipfs/QmXRJDv3xHLVQCVXg1ZvR35QS9sij5y9NDWYzMfUfAdTHF\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol\":{\"keccak256\":\"0x999f705a027ed6dc2d4e0df2cc4a509852c6bfd11de1c8161bf88832d0503fd0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0798def67258d9a3cc20b2b4da7ebf351a5cefe0abfdd665d2d81f8e32f89b21\",\"dweb:/ipfs/QmPEvJosnPfzHNjKvCv2D3891mA2Ww8eUwkqrxBjuYdHCt\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/cryptography/MessageHashUtils.sol\":{\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2ceacff44c0fdc81e48e0e0b1db87a2076d3c1fb497341de077bf1da9f6b406c\",\"dweb:/ipfs/QmRUo1muMRAewxrKQ7TkXUtknyRoR57AyEkoPpiuZQ8FzX\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol\":{\"keccak256\":\"0x9e8778b14317ba9e256c30a76fd6c32b960af621987f56069e1e819c77c6a133\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1777404f1dcd0fac188e55a288724ec3c67b45288e49cc64723e95e702b49ab8\",\"dweb:/ipfs/QmZFdC626GButBApwDUvvTnUzdinevC3B24d7yyh57XkiA\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x4296879f55019b23e135000eb36896057e7101fb7fb859c5ef690cf14643757b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87b3541437c8c443ccd36795e56a338ed12855eec17f8da624511b8d1a7e14df\",\"dweb:/ipfs/QmeJQCtZrQjtJLr6u7ZHWeH3pBnjtLWzvRrKViAi7UZqxL\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/math/Math.sol\":{\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ece9f0b9c8daca08c76b6b5405a6446b6f73b3a15fab7ff56e296cbd4a2c875\",\"dweb:/ipfs/QmQyRpyPRL5SQuAgj6SHmbir3foX65FJjbVTTQrA2EFg6L\"]},\"lib/protocol-core/lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol\":{\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7d533a1c97cd43a57cd9c465f7ee8dd0e39ae93a8fb8ff8e5303a356b081cdcc\",\"dweb:/ipfs/QmVBEei6aTnvYNZp2CHYVNKyZS4q1KkjANfY39WVXZXVoT\"]},\"lib/protocol-core/src/currency.sol\":{\"keccak256\":\"0xcff030c4bad135b27acbe405aba19da1184c406c30fe6839b17ffcb8548938d4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://8ca7791099d9f9851622964e2668477dbe07441c4d687621eaff725c7e25d48b\",\"dweb:/ipfs/QmdsMzD9aVqBym5bS4QnYnGtN8872iBck94NFeyfLirJ8Y\"]},\"lib/protocol-core/src/helpers/pausable.sol\":{\"keccak256\":\"0x8acce52dcd450c73da0f77d9539962826da23aca05aa7d0c7568614e89aed997\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://35e2f674e01c0d6107f31d1c32bb2780d442420b7d26636f560a4eb1007f4a8b\",\"dweb:/ipfs/QmWwVLUGiJq6Q3fK6Zhx4pc6kaqC73pkZ1ntfVA3QCHTpd\"]},\"lib/protocol-core/src/interfaces/ICurrency.sol\":{\"keccak256\":\"0x3b7adace3df08c34906612358d435ffff3b90b5eec0eae34b6335cc8dcd0e7ed\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://370c80ec5636bd95342256d4116f703e633e6b0467ee530397e9b5cada37f998\",\"dweb:/ipfs/QmPQ5KY37JpfuSAXpJ16kBXAQVJcE253cfjYGcBEcMLERz\"]},\"lib/protocol-core/src/interfaces/IVault.sol\":{\"keccak256\":\"0x0b07e90c8de2bb57e62990839bdc52077d067d9e38db6fd2a8c684dbaf74f1b4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://50a4e4b3745f623e7ea99800c1472b5d2fdbc3332ceecc1e4eb1cb2546d6b7b5\",\"dweb:/ipfs/Qma91VRTUw3bJzxanpErFXze7R3N9gHE9pnmWm3oFwcC6g\"]},\"lib/protocol-core/src/vault.sol\":{\"keccak256\":\"0xb42eb135923431b43ccd78a05d5937dc7faf98717fabd0b3a50a030b15db7977\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://7a1cadec603bec32da036fc3f095454601105ed00b90def95fa0912ac2ea7d6d\",\"dweb:/ipfs/QmYLDswPYNPuG2RguyZbtD7cWumTZXhPmNfvwsJDr3vGyv\"]},\"src/vaultGetters.sol\":{\"keccak256\":\"0xd5a2034232827459dc6be1be1c198d194ba14b79c998279609588899e5415019\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bf1442432016865737ef31f04f3928d0b8c8e4337494f4f8f156fdaa1a3b397c\",\"dweb:/ipfs/QmaDQPgEiu7akKyvFv4KSK31NmJiEnXJzsS6kReKJkXVkq\"]}},\"version\":1}",
"metadata": {
"compiler": {
"version": "0.8.21+commit.d9974bed"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"name": "getCollateralInfo",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
]
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"name": "getCollateralRatio",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
]
},
{
"inputs": [
{
"internalType": "contract Vault",
"name": "_vaultContract",
"type": "address"
},
{
"internalType": "contract ERC20",
"name": "_collateralToken",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"name": "getHealthFactor",
"outputs": [
{
"internalType": "bool",
"name"