@perp/curie-deployments
Version:
Perpetual Protocol Curie (v2) contract artifacts (ABIs) and deployed addresses
212 lines (211 loc) • 4.54 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IInsuranceFund",
"sourceName": "contracts/interface/IInsuranceFund.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "borrower",
"type": "address"
}
],
"name": "BorrowerChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "distributionThreshold",
"type": "uint256"
}
],
"name": "DistributionThresholdChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "surplus",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "insuranceFundCapacity",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "insuranceFundFreeCollateral",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "distributionThreshold",
"type": "uint256"
}
],
"name": "FeeDistributed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "repaidAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenBalanceAfterRepaid",
"type": "uint256"
}
],
"name": "Repaid",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "surplusBeneficiary",
"type": "address"
}
],
"name": "SurplusBeneficiaryChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "vault",
"type": "address"
}
],
"name": "VaultChanged",
"type": "event"
},
{
"inputs": [],
"name": "distributeFee",
"outputs": [
{
"internalType": "uint256",
"name": "surplus",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getBorrower",
"outputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDistributionThreshold",
"outputs": [
{
"internalType": "uint256",
"name": "distributionThreshold",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getInsuranceFundCapacity",
"outputs": [
{
"internalType": "int256",
"name": "capacityX10_S",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getSurplusBeneficiary",
"outputs": [
{
"internalType": "address",
"name": "surplusBeneficiary",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getToken",
"outputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVault",
"outputs": [
{
"internalType": "address",
"name": "vault",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "repay",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}