CochilliGameBeta

Verified contract

Active on Base with 225 txns
Deployed by via 0xe2bba67a at 2156368
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
0x90991c56889dc28bd705e5e33ecdf05e91064077dbffbbb2c14244149129de43
0x101a673fbf09ac1af0947d9deb7667f5ef172f533f03db983d2f60b52e93d54e
0xbfd2bf108b20d472261b986ec594083345b67b72a4c38fcc6e19088ade3def68
0xbd5ea3ed6005305d799947aa6cdddbe5ee0241fc411cdc91bd6cfe80fa9caab1
0xa8e6b5c79fe0fd943b351c90372571e3009e9cf7f2b72e2aca156fec04a2c25f
0xaf7e0940c4473f2f41ee9a11cad99b565aba0a43f640990334d3aaf6ef82ab6f
0x2f97ff89cf8b123fc6081abbe6762342277668144fec93a06b5b7ec400782f1c
0xf58a9bc1834c95670d83e45b850a577471fde44d5a1d7925ac625a16ffd1a186
0xc8b40c63df8dba100ebd9744550fe5b09a5e703930c135a133a31d040940d825
0x619f60840b838d7adcdf596a7fcbd5c1f4eddf8330b41944059b71c7afe65480

Functions
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(addressview returns (uint256)
betIds(uint256view returns (uint256 amountuint256 payoutuint64 startTimeuint64 endTimeint64 openPriceint64 closePriceaddress userbytes8 pairbool isLongbool active)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
pairIds(bytes8view returns (bytes32)
supportsInterface(bytes4 interfaceIdview returns (bool)
userBetIds(addressuint256view returns (uint256)
State-modifying
addPairs(bytes8[] pairsbytes32[] ids
cancelBet(uint256 betId
deletePairs(bytes8[] pairs
deposit(uint256 amount
executeBet(uint256 betIdbytes openPriceVaabytes closePriceVaapayable 
grantRole(bytes32 roleaddress account
pause(
placeBet(uint256 amountbytes8 pairuint256 intervalbool isLongreturns (uint256 betId)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setAmounts(uint256 _minAmountuint256 _maxAmount
setIntervals(uint16 _minIntervaluint16 _maxInterval
setLeverage(uint16 _leverage
unPause(
withdraw(uint256 amount
Events
BetCancelled(uint256 indexed betIdaddress indexed user
BetExecuted(uint256 indexed betIdaddress indexed userbool indexed wonuint256 payout
BetPlaced(uint256 indexed betIdaddress indexed userbytes8 indexed pairuint256 startTimeuint256 endTimeuint256 runTime
Deposit(address indexed useruint256 amount
PairsAdded(bytes8[] pairsbytes32[] ids
PairsDeleted(bytes8[] pairs
Paused(address account
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Unpaused(address account
UpdatedAmounts(uint256 minAmountuint256 maxAmount
UpdatedIntervals(uint16 minIntervaluint16 maxInterval
UpdatedLeverage(uint16 leverage
Withdrawal(address indexed useruint256 amount
Constructor
constructor(address _tokenAddressaddress _pyth
Fallback and receive

This contract contains no fallback and receive objects.

Errors
DepositFailed(
DuplicatePair(bytes8 pair
InactiveBet(
InsufficientBalance(
InsufficientLiquidity(
InvalidAmount(
InvalidFee(
InvalidInterval(
InvalidLeverage(
InvalidPair(bytes8 pair
InvalidPrice(
PayoutFailed(
TransferFailed(
Unauthorized(
UnelapsedBet(
WithdrawalFailed(