BNB Chain
0xd9a952e776adb3442be30d7c95ff52ec19004ad9
Decompiled Solidity recovered from this contract's runtime bytecode. Best-effort reconstruction — confirm behaviour against on-chain state.
Decompilation outputBNB Chain · 0xd9a952e7…19004ad920.8 KB94.7 s
This result is permanently available athttps://decompiler.exvul.com/bsc/0xd9a952e776adb3442be30d7c95ff52ec19004ad9
[
{
"type": "function",
"name": "DEFAULT_ADMIN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GOVERNANCE_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GUARDIAN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MAX_VESTING_TERM",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MIN_VESTING_TERM",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_0a9e3866",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_0e6c3109",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_197dbd4e",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_1aa5bb66",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_1ac7e1cb",
"inputs": [
{
"name": "arg0",
"type": "uint32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "Unknown_29155e30",
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "Unknown_2a729d04",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_2d67a17e",
"inputs": [
{
"name": "arg0",
"type": "bool"
},
{
"name": "arg1",
"type": "uint16"
},
{
"name": "arg2",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "Unknown_2e0b955a",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_3344ae30",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_361edd8e",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_3a749d1c",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint64"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_4800126d",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "Unknown_4915bfb4",
"inputs": [
{
"name": "arg0",
"type": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "Unknown_58c772a1",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_69da1c46",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_76721df1",
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_78e9a312",
"inputs": [
{
"name": "arg0",
"type": "uint64"
},
{
"name": "arg1",
"type": "uint16"
},
{
"name": "arg2",
"type": "uint16"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "Unknown_86ae4f42",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_9010d07c",
"inputs": [
{
"name": "arg0",
"type": "uint256"
},
{
"name": "arg1",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_94f05c8c",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_a3246ad3",
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_c1152196",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "Unknown_d3d6207e",
"inputs": [
{
"name": "arg0",
"type": "bool"
},
{
"name": "arg1",
"type": "uint16"
},
{
"name": "arg2",
"type": "uint16"
},
{
"name": "arg3",
"type": "uint16"
},
{
"name": "arg4",
"type": "uint256"
},
{
"name": "arg5",
"type": "uint64"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "Unknown_d8df4564",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_da6a9106",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_e7926e1e",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_e8a372ab",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "Unknown_f8f69a32",
"inputs": [
{
"name": "arg0",
"type": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "Unknown_fa8326fd",
"inputs": [
{
"name": "arg0",
"type": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "availableSurplus",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "claim",
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "claimReferral",
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "claimable",
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "currentDebt",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "depositsPaused",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "discountBps",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleAdmin",
"inputs": [
{
"name": "role",
"type": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleMemberCount",
"inputs": [
{
"name": "role",
"type": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "grantRole",
"inputs": [
{
"name": "role",
"type": "bytes32"
},
{
"name": "account",
"type": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "hasOpenPositions",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "hasRole",
"inputs": [
{
"name": "role",
"type": "bytes32"
},
{
"name": "account",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "interfaceVersion",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "inviteRatio",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "lastDecayBlock",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "lpToken",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "maxDebt",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "maxDiscountBps",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "maxPayoutBps",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "minDiscountBps",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint16"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "moduleKey",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "pauseDeposits",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "poolPrice",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "pricingMode",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "protocolRegistry",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "protocolToken",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "renounceRole",
"inputs": [
{
"name": "role",
"type": "bytes32"
},
{
"name": "account",
"type": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "reserveBalance",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "revokeRole",
"inputs": [
{
"name": "role",
"type": "bytes32"
},
{
"name": "account",
"type": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "stakeType",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "totalDebt",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalLiability",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "unpauseDeposits",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "usdc",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "vestCount",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "vestingTerm",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint64"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "Event_099d537b",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": false
},
{
"name": "arg1",
"type": "uint256",
"indexed": false
},
{
"name": "arg2",
"type": "uint256",
"indexed": false
},
{
"name": "arg3",
"type": "uint256",
"indexed": false
},
{
"name": "arg4",
"type": "uint256",
"indexed": false
},
{
"name": "arg5",
"type": "uint256",
"indexed": false
},
{
"name": "arg6",
"type": "uint256",
"indexed": false
},
{
"name": "arg7",
"type": "uint256",
"indexed": false
},
{
"name": "arg8",
"type": "uint256",
"indexed": false
},
{
"name": "arg9",
"type": "uint256",
"indexed": false
},
{
"name": "arg10",
"type": "uint256",
"indexed": false
},
{
"name": "arg11",
"type": "uint256",
"indexed": false
},
{
"name": "arg12",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_09f5caaa",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": false
},
{
"name": "arg1",
"type": "uint256",
"indexed": false
},
{
"name": "arg2",
"type": "uint256",
"indexed": false
},
{
"name": "arg3",
"type": "uint256",
"indexed": false
},
{
"name": "arg4",
"type": "uint256",
"indexed": false
},
{
"name": "arg5",
"type": "uint256",
"indexed": false
},
{
"name": "arg6",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_18faec9a",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": false
},
{
"name": "arg1",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_30c01542",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": false
},
{
"name": "arg1",
"type": "uint256",
"indexed": false
},
{
"name": "arg2",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_88e0a2c7",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": false
},
{
"name": "arg1",
"type": "uint256",
"indexed": false
},
{
"name": "arg2",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_8fa6b767",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": true
},
{
"name": "arg1",
"type": "uint256",
"indexed": true
},
{
"name": "arg2",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_b823d2c2",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": false
},
{
"name": "arg1",
"type": "uint256",
"indexed": false
},
{
"name": "arg2",
"type": "uint256",
"indexed": false
},
{
"name": "arg3",
"type": "uint256",
"indexed": false
},
{
"name": "arg4",
"type": "uint256",
"indexed": false
},
{
"name": "arg5",
"type": "uint256",
"indexed": false
},
{
"name": "arg6",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_c8cf2e95",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": true
},
{
"name": "arg1",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "Event_d22b1d4d",
"inputs": [
{
"name": "arg0",
"type": "uint256",
"indexed": true
},
{
"name": "arg1",
"type": "uint256",
"indexed": true
},
{
"name": "arg2",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleGranted",
"inputs": [
{
"name": "arg0",
"type": "bytes32",
"indexed": true
},
{
"name": "arg1",
"type": "address",
"indexed": true
},
{
"name": "arg2",
"type": "address",
"indexed": true
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleRevoked",
"inputs": [
{
"name": "arg0",
"type": "bytes32",
"indexed": true
},
{
"name": "arg1",
"type": "address",
"indexed": true
},
{
"name": "arg2",
"type": "address",
"indexed": true
}
],
"anonymous": false
},
{
"type": "error",
"name": "AccessControlBadConfirmation",
"inputs": []
},
{
"type": "error",
"name": "AccessControlUnauthorizedAccount",
"inputs": [
{
"name": "arg0",
"type": "address"
},
{
"name": "arg1",
"type": "bytes32"
}
]
},
{
"type": "error",
"name": "CustomError_00000000000000000000000000000000000000000000000000000000360dc47f",
"inputs": []
},
{
"type": "error",
"name": "CustomError_000000000000000000000000000000000000000000000000000000004c445fca",
"inputs": []
},
{
"type": "error",
"name": "CustomError_000000000000000000000000000000000000000000000000000000005f51c44e",
"inputs": []
},
{
"type": "error",
"name": "CustomError_0000000000000000000000000000000000000000000000000000000065874b70",
"inputs": []
},
{
"type": "error",
"name": "CustomError_000000000000000000000000000000000000000000000000000000007d6f95b5",
"inputs": []
},
{
"type": "error",
"name": "CustomError_00000000000000000000000000000000000000000000000000000000ae90e98f",
"inputs": []
},
{
"type": "error",
"name": "CustomError_00000000000000000000000000000000000000000000000000000000b9a0d67c",
"inputs": []
},
{
"type": "error",
"name": "CustomError_00000000000000000000000000000000000000000000000000000000c4e1aef9",
"inputs": []
},
{
"type": "error",
"name": "CustomError_00000000000000000000000000000000000000000000000000000000ce94b572",
"inputs": []
},
{
"type": "error",
"name": "CustomError_00000000000000000000000000000000000000000000000000000000f4050bec",
"inputs": []
},
{
"type": "error",
"name": "Insolvent",
"inputs": []
},
{
"type": "error",
"name": "InvalidOraclePrice",
"inputs": []
},
{
"type": "error",
"name": "InvalidPricingConfig",
"inputs": []
},
{
"type": "error",
"name": "NotReferralOwner",
"inputs": []
},
{
"type": "error",
"name": "NothingClaimable",
"inputs": []
},
{
"type": "error",
"name": "ReentrancyGuardReentrantCall",
"inputs": []
},
{
"type": "error",
"name": "SafeERC20FailedOperation",
"inputs": [
{
"name": "arg0",
"type": "address"
}
]
}
]