STETH Pool's ABI
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldController",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newController",
"type": "address"
}
],
"name": "ControllerRoleTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldOwner",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "oldRouter",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newRouter",
"type": "address"
}
],
"name": "changedRouter",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "first",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "second",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "third",
"type": "uint256"
}
],
"name": "rewardPortionUpdated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "registryAddress",
"type": "address"
}
],
"name": "changeRegistryContractAddr",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "claimRewardsFor",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "decimal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "duration",
"type": "uint256"
}
],
"name": "config",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "createNewEpoch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "depositFor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochNumber",
"type": "uint256"
},
{
"internalType": "address",
"name": "firstWinner",
"type": "address"
},
{
"internalType": "address",
"name": "secondWinner",
"type": "address"
},
{
"internalType": "address",
"name": "thirdWinner",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalPrize",
"type": "uint256"
}
],
"name": "finalizeEpoch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochNumber",
"type": "uint256"
}
],
"name": "finalizeEpochTicketandParticipantInfo",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochNumber",
"type": "uint256"
},
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getAccumulatedTicketwithoutDecimal",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256",
"name": "epochNumber",
"type": "uint256"
}
],
"name": "getBalanceChangeHistory",
"outputs": [
{
"components": [
{
"internalType": "bool",
"name": "changedwithinEpoch",
"type": "bool"
},
{
"components": [
{
"internalType": "uint256",
"name": "oldAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "newAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedBlock",
"type": "uint256"
}
],
"internalType": "struct stETHPool.ChangeArray[]",
"name": "historyArray",
"type": "tuple[]"
}
],
"internalType": "struct stETHPool.userChangeHistory",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getClaimable",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentEpochReward",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochNumber",
"type": "uint256"
}
],
"name": "getEpochInfo",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "address",
"name": "winner",
"type": "address"
},
{
"internalType": "uint256",
"name": "prizeAmount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "claimed",
"type": "bool"
}
],
"internalType": "struct stETHPool.PrizeDetails",
"name": "first",
"type": "tuple"
},
{
"components": [
{
"internalType": "address",
"name": "winner",
"type": "address"
},
{
"internalType": "uint256",
"name": "prizeAmount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "claimed",
"type": "bool"
}
],
"internalType": "struct stETHPool.PrizeDetails",
"name": "second",
"type": "tuple"
},
{
"components": [
{
"internalType": "address",
"name": "winner",
"type": "address"
},
{
"internalType": "uint256",
"name": "prizeAmount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "claimed",
"type": "bool"
}
],
"internalType": "struct stETHPool.PrizeDetails",
"name": "third",
"type": "tuple"
},
{
"internalType": "bool",
"name": "finalized",
"type": "bool"
},
{
"internalType": "uint256",
"name": "totalPrize",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "duration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "createdTimeStamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalParticipant",
"type": "uint256"
}
],
"internalType": "struct stETHPool.EpochResult",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getEpochLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestEpoch",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPoolTVL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRewardAllocationPercentage",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "first",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "second",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "third",
"type": "uint256"
}
],
"internalType": "struct stETHPool.rewardAllocation",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochNumber",
"type": "uint256"
},
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getTicketAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTokenUsing",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getUserAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getUserDepositInfo",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "userAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "DepositAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "registeredDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "Lastupdated",
"type": "uint256"
}
],
"internalType": "struct stETHPool.userInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getUserID",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getWinningHistory",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "EpochNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "position",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "PrizeAmount",
"type": "uint256"
}
],
"internalType": "struct stETHPool.rewardHistory[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "userIDnow",
"type": "uint256"
}
],
"name": "getuserByID",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "registryAddress",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "firstP",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "secondP",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "thirdP",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "percentageSUM",
"type": "uint256"
}
],
"name": "setRewardRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "withdrawFor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]Last updated