CochilliGameBeta

Verified contract

Active on Base with 76 txns
Deployed by via 0x3bab01fd at 3004083
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $194.56
ERC-20
Value $25.46
ERC-20
Value $13.01
ERC-20
Value $0.42
ERC-20
Value $0.13
ERC-20
Value $0.07
ERC-20
Value $0.06
ERC-20
Value $0.03
ERC-20
Value $0.01
ERC-20
Value $0
0x1461a0f330313e4f2ed0df03b8c4ec3633fdd79c9b95e6098e08f5d5e90e2748
0x2b2ab7659b281d65697f432a87c2a6196f5e7a28b1d0863fc2108baab7c84b31
0xb911cddac04e31dabae8204e88bb1bc99a047dc8e8b79bf31bac4b32721669f5
0xcdd2ecb149e446b8bf08b742c2e60ba3cea1b58ef780021aa3436482b06632be
0xcc8b218d1a6476df75c9881a33a7bc0b0a28f1160e1657d1361827a4fa3fe448
0x6d8dc14b94235caedb395b0b4d4e69f73fe685aaa493a4645435c732463797e4
0x2a5483d5c046436f74a40a0466dfac0a25cda39bef850681292649a9dd28f98b
0x8894393859bdbbb6115e3cc6b375acc83a4445dc4acea0ac1084ec53eafd6ed2
0xde61c4accc9ca0d4c729aa6440ee2be3fdda991db7f794f9777b2b86d22d51f8
0x6b34dc40118f1514783f5f6355d31f389cc08880fad669c3ec0b7bf8dbe85c0a

Functions
Getter at block 22914332
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
LP_ROLE(view returns (bytes32)
0xb0296ea8dd3227371927b1c1cea2b12ea394743ddf2f32f58024ce26f83a24a6
availableLiquidity(view returns (uint256)
16204367700000000000000000
cancelBuffer(view returns (uint16)
600
leverage(view returns (uint16)
1700
lockedLiquidity(view returns (uint256)
795632300000000000000000
maxBet(view returns (uint256)
5000000000000000000000000
maxInterval(view returns (uint16)
600
maxUtilizedLiquidity(view returns (uint256)
17000000000000000000000000
minBet(view returns (uint256)
400000000000000000000000
minInterval(view returns (uint16)
60
nextBetId(view returns (uint256)
99
paused(view returns (bool)
true
pyth(view returns (address)
0x8250f4af4b972684f7b336503e2d6dfedeb1487a
token(view returns (address)
0x8544fe9d190fd7ec52860abbf45088e81ee24a8c
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
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 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(