CochilliGameBeta
Verified contract
Active on
Base with 225 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
USDC | ERC-20 | 102.7773K | -- | -- |
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 2408543 | a year ago | | | <0.00000001 | 0.000000000412080000 | |
| 2408510 | a year ago | | | 0 | 0.000018258814 | |
| 2405113 | a year ago | | | <0.00000001 | 0.000000000428844000 | |
| 2405036 | a year ago | | | <0.00000001 | 0.000000000428832000 | |
| 2404958 | a year ago | | | 0 | 0.000018261212 | |
| 2404899 | a year ago | | | 0 | 0.000017780011 | |
| 2404883 | a year ago | | | 0 | 0.000019971213 | |
| 2403037 | a year ago | | | <0.00000001 | 0.000000000423984000 | |
| 2403004 | a year ago | | | 0 | 0.00030706951 | |
| 2402991 | a year ago | | | <0.00000001 | 0.000000000441562000 |
ABI
ABI objects
Getter at block 22904384
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
LP_ROLE() view returns (bytes32)
0xb0296ea8dd3227371927b1c1cea2b12ea394743ddf2f32f58024ce26f83a24a6
availableLiquidity() view returns (uint256)
102760300000000000000000
cancelBuffer() view returns (uint16)
300
leverage() view returns (uint16)
1700
lockedLiquidity() view returns (uint256)
17000000000000000000
maxBet() view returns (uint256)
1800000000000000000000
maxInterval() view returns (uint16)
600
minBet() view returns (uint256)
1000000000000000000
minInterval() view returns (uint16)
60
nextBetId() view returns (uint256)
112
paused() view returns (bool)
false
pyth() view returns (address)
0x8250f4af4b972684f7b336503e2d6dfedeb1487a
token() view returns (address)
0xe06f2029e8fd9c4cb2c3372e1c66e39a0b25a778
Read-only
balances(address) view returns (uint256)
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)
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)
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()