CochilliGameBeta
Verified contract
Active on
Base with 406 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) |
---|---|---|---|---|---|---|---|
| 3272827 | a year ago | | | 0 | 0.0000046063601 | |
| 3247575 | a year ago | | | 0 | 0.0000048227112 | |
| 3247524 | a year ago | | | <0.00000001 | 0.000038477566 | |
| 3247370 | a year ago | | | 0 | 0.00031656755 | |
| 3246375 | a year ago | | | <0.00000001 | 0.000038476335 | |
| 3246221 | a year ago | | | 0 | 0.00031656755 | |
| 3245235 | a year ago | | | <0.00000001 | 0.000036148381 | |
| 3245137 | a year ago | | | <0.00000001 | 0.000038972434 | |
| 3244984 | a year ago | | | 0 | 0.00029087335 | |
| 3244659 | a year ago | | | <0.00000001 | 0.000038962586 |
ABI
ABI objects
Getter at block 22781031
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
LP_ROLE() view returns (bytes32)
0xb0296ea8dd3227371927b1c1cea2b12ea394743ddf2f32f58024ce26f83a24a6
availableLiquidity() view returns (uint256)
1275000000
cancelBuffer() view returns (uint16)
300
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)
193
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)
setIntervals(uint16 _minInterval, uint16 _maxInterval)
setLeverage(uint16 _leverage)
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()
PayoutFailed()
TransferFailed()
Unauthorized()
UnelapsedBet()
WithdrawalFailed()