CochilliGameBeta

Verified contract

Active on Base with 296 txns
Deployed by via 0xbfe21d41 at 3271854
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "CochilliGameBeta"

0x2458aa4d4d9211ce69949387f465f9bc46d08e66d6a37b5808133dcd3399df9d
0xcf5c5d72d9d9c0817e854e11b35f389fc2b1e75fd3c23f4322ca4281b29eaefe
0xe2e215b5ef6c212f8a122b85a783f77097fd96315135a32e95df3e1853b16dd3
0x81c2de1fcd190fa8e53e44923ad84b99f077467a5c0ccde779ac7a0f6afeeec2
0x44acf75f53eb8de854b52a428b2a0c0133dc8077506ed274e6b9fb4afe2b8c06
0x988c52602138f1cb1df6aeaae709b07df19a3dd1a8989891e7d3576a93e62803
0x2bd2ee15da06ea64a84136c74e7eee33860533807d4862d2bc127c43be33a8df
0x4c850f334ca188e0ca9492071f2b5fc40183a39d6dab672dac4c87bde9db0344
0xb7f919dd4ba43f47361ea9567ae9cad2a3e2f99bad5787417dce84d272422711
0xa76441f8779c937aed0383a4d9ed26bcf38b68afd7f47617a6081e5519c6b9a4

Functions
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(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 _maxAmountuint256 _maxUtilzedAmount
setLeverage(uint16 _leverage
setTimes(uint16 _minIntervaluint16 _maxIntervaluint24 _cancelBuffer
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 maxAmountuint256 maxUtilizedLiquidity
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(
InvalidTimestamp(
PayoutFailed(
TransferFailed(
Unauthorized(
WithdrawalFailed(