CochilliGameBeta

Verified contract

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

No balances found for "CochilliGameBeta"

0xe30cc6756407370283549e2113e5c49d9a48dbce19d0443896b7cdfef6d84083
0x34789e7bb327ce5dd6add428f4dfae24557dfa9b7898ce3d3de8963931dfb290
0x27f6da3113abdf3f6ecec5d25c7138a8a7a27c410a0b2d1232df5f1960925d00
0x846c04e314c21625bfe57ba313e4ce8808f630f7a56a667c75be81b6671f9129
0x8c6ddff16a345d9ac9dcfb15de913602004681263ca57ecd0cd206d05c61cca4
0x4eedc83499e37c8be4326eaec4bfe233c2e5438b4cbdbc06e2ad24476555613f
0x33e2735a390d67e7a3a0981722c5c61e3ac223f5bf101622e0cd12e69abd185b
0xaffdd7c104b17e7094e42a8ad613a4da2ee8bb828b636e175b0c65e6dd1c4d22
0xf4f4e58af9334a9c636e6180d7f7e78ad8bb6c8d53e1eae2f10533d3f321a928
0xb7791e7796863b3099be8743df8707da5fb36c581472f8b6d7d86b1c5fcd4208

Functions
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(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(
PayoutFailed(
TransferFailed(
Unauthorized(
UnelapsedBet(
WithdrawalFailed(