CochilliGameBeta
Verified contract
Active on
Base with 296 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
No balances found for "CochilliGameBeta"
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 3688738 | a year ago | | | 0 | 0.0000076184841 | |
| 3688722 | a year ago | | | 0 | 0.0000057903963 | |
| 3688149 | a year ago | | | <0.00000001 | 0.000040199723 | |
| 3687969 | a year ago | | | 0 | 0.000024277802 | |
| 3687932 | a year ago | | | <0.00000001 | 0.000044304782 | |
| 3687929 | a year ago | | | <0.00000001 | 0.000042703988 | |
| 3687852 | a year ago | | | 0 | 0.000022777364 | |
| 3687023 | a year ago | | | 0 | 0.0000049202349 | |
| 3646652 | a year ago | | | <0.00000001 | 0.000044862597 | |
| 3646649 | a year ago | | | <0.00000001 | 0.000042919590 |
ABI
ABI objects
Getter at block 22960745
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
LP_ROLE() view returns (bytes32)
0xb0296ea8dd3227371927b1c1cea2b12ea394743ddf2f32f58024ce26f83a24a6
availableLiquidity() view returns (uint256)
1275000000
cancelBuffer() view returns (uint24)
86400
leverage() view returns (uint16)
1700
lockedLiquidity() view returns (uint256)
0
maxBet() view returns (uint256)
250000000
maxInterval() view returns (uint16)
600
maxUtilizedLiquidity() view returns (uint256)
1275000000
minBet() view returns (uint256)
5000000
minInterval() view returns (uint16)
60
nextBetId() view returns (uint256)
146
paused() view returns (bool)
true
pyth() view returns (address)
0x8250f4af4b972684f7b336503e2d6dfedeb1487a
token() view returns (address)
0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca
Read-only
betIds(uint256) view returns (uint256 amount, uint256 payout, uint64 startTime, uint64 endTime, int64 openPrice, int64 closePrice, address user, bytes8 pair, bool isLong, bool active)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
pairIds(bytes8) view returns (bytes32)
supportsInterface(bytes4 interfaceId) view returns (bool)
userBetIds(address, uint256) view returns (uint256)
State-modifying
Events addPairs(bytes8[] pairs, bytes32[] ids)
cancelBet(uint256 betId)
deletePairs(bytes8[] pairs)
deposit(uint256 amount)
executeBet(uint256 betId, bytes openPriceVaa, bytes closePriceVaa) payable
grantRole(bytes32 role, address account)
pause()
placeBet(uint256 amount, bytes8 pair, uint256 interval, bool isLong) returns (uint256 betId)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setAmounts(uint256 _minAmount, uint256 _maxAmount, uint256 _maxUtilzedAmount)
setLeverage(uint16 _leverage)
setTimes(uint16 _minInterval, uint16 _maxInterval, uint24 _cancelBuffer)
unPause()
withdraw(uint256 amount)
BetCancelled(uint256 indexed betId, address indexed user)
BetExecuted(uint256 indexed betId, address indexed user, bool indexed won, uint256 payout)
BetPlaced(uint256 indexed betId, address indexed user, bytes8 indexed pair, uint256 startTime, uint256 endTime, uint256 runTime)
Deposit(address indexed user, uint256 amount)
PairsAdded(bytes8[] pairs, bytes32[] ids)
PairsDeleted(bytes8[] pairs)
Paused(address account)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Unpaused(address account)
UpdatedAmounts(uint256 minAmount, uint256 maxAmount, uint256 maxUtilizedLiquidity)
UpdatedIntervals(uint16 minInterval, uint16 maxInterval)
UpdatedLeverage(uint16 leverage)
Withdrawal(address indexed user, uint256 amount)
constructor(address _tokenAddress, address _pyth)
This contract contains no fallback and receive objects.
DepositFailed()
DuplicatePair(bytes8 pair)
InactiveBet()
InsufficientBalance()
InsufficientLiquidity()
InvalidAmount()
InvalidFee()
InvalidInterval()
InvalidLeverage()
InvalidPair(bytes8 pair)
InvalidPrice()
InvalidTimestamp()
PayoutFailed()
TransferFailed()
Unauthorized()
WithdrawalFailed()