CrushGame

Verified contract

Active on Base with 14,388 txns
Deployed by via 0x5f01919a at 21671650
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
-
variable spans 3 additional slots
ERC-20
--
0x17d7b85af1e9374eda6595d49abb44a6c04e8e69ce7a89a14ff81bcc0c000937
0x27e34d3ad1c75dcd147af0eac96e17eb143d12356c01bb6645df8b0a1ea775e3
0xdb6eebd91737ba77bc004cf3a53b61e0089313c0d252c3e69fea46a061ac1cfd
0x73632a0c0c79bae3e39597099af0f5e56c3417dc7ab1f4c46df7ea2806d7a90a
0x039ac3de0649ba361f5a52d7c84edf608d8e41a0e9b40d5dd21269e90fd37e30
0x4377d1b1ef40c96b88eb6a1ec7c069af4dba933a6f982099905a85f1fbeed94a
0x6e304e0d7e8b812f3fb2059fedfd3d464e5f52fc5cc7fb63b9ee0073baaa2f18
0x8060dba80d112ee90aa1ab1cd45bef3b68cc2b20887e4bf62de79d1706257a22
0x48ffc4aa9c4a99fbc462c1c8c51083ee5c37aa4c7bdac12ee8a55ea41b51b5bd
0x71885ae37389beeabdf7788d4b771d2b8afeacea986ef1b70cacbb689a3377ca

Functions
Getter at block 22012254
_contracts(view returns (address crappyBirdaddress crappsTokenaddress crappyCousinsaddress crappyAchievements)
(crappyBird=0xc8e51fefd7d595c217c7ab641513faa4ad522b26, crappsToken=0xd53f464b4c87dc7b253fdbf51bc5cc1c38684069, crappyCousins=0x200dbec90d7034d708d952f1c9d60eb1a6ce4e3f, crappyAchievements=0x14547ec813f217763054411b1cea8ea9e4d2224d)
_coordinator(view returns (address)
0x69a2109046adb668d7c0ee4653a78c15b2713200
_settings(view returns (uint32 roundDurationuint32 minBreakDurationuint32 breakDurationFactoruint128 crappsFactoruint256 maximumBetSize)
(roundDuration=69, minBreakDuration=5, breakDurationFactor=1, crappsFactor=10, maximumBetSize=500000000000000000000000)
contracts(view returns (struct ICrushGameContracts)
(0xc8e51fefd7d595c217c7ab641513faa4ad522b26, 0xd53f464b4c87dc7b253fdbf51bc5cc1c38684069, 0x200dbec90d7034d708d952f1c9d60eb1a6ce4e3f, 0x14547ec813f217763054411b1cea8ea9e4d2224d)
coordinator(view returns (address)
0x69a2109046adb668d7c0ee4653a78c15b2713200
owner(view returns (address)
0xa81cfe9d29efa7bca56d68f9de45306fa5446f65
round(view returns (struct ICrushGameRound)
(1730813853, 1730813922, 0, true, 0x5b30f1c070881beb9a514149ce78fe179450f55d23379789e327ca6cf87a624a, 0, 0)
roundId(view returns (uint256)
6773
settings(view returns (struct ICrushGameSettings)
(69, 5, 1, 10, 500000000000000000000000)
status(view returns (bool isActivebool isReady)
(isActive=true, isReady=false)
toResolve(view returns (uint256)
0
Read-only
bets(uint256 idaddress userview returns (struct ICrushGameBet)
betters(uint256 idview returns (address[])
calculateMultiplier(uint256 randomNumberpure returns (uint16)
rounds(uint256 idview returns (struct ICrushGameRound)
State-modifying
changeSettings(struct ICrushGameSettings newSettings
changeTokens(struct ICrushGameContracts newTokens
endRound(uint256 randomNumber
placeBet(uint256 amountuint16 multiplier
renounceOwnership(
resolve(uint256 count
startRound(bytes32 randomNumberHash
transferOwnership(address newOwner
withdraw(address accountuint256 amount
Events
CrushGameAutomationCoordinatorChanged(address indexed previousCoordinatoraddress indexed newCoordinator
CrushGameBetPlaced(uint256 indexed idaddress indexed userstruct ICrushGameBet bet
CrushGameRoundBatchResolved(uint256 indexed iduint256 startIndexuint256 resolvedCount
CrushGameRoundEnded(uint256 indexed iduint256 randomNumberuint16 multiplieruint64 breakDuration
CrushGameRoundStarted(uint256 indexed id
CrushGameSettingsChanged(struct ICrushGameSettings previousSettingsstruct ICrushGameSettings newSettings
CrushGameTokensChanged(struct ICrushGameContracts previousContractsstruct ICrushGameContracts newContracts
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address initialCoordinatorstruct ICrushGameSettings initialSettingsstruct ICrushGameContracts initialTokens
Fallback and receive

This contract contains no fallback and receive objects.

Errors
CrushGameAutomationCoordinatorInvalid(
CrushGameBetAmountTooLarge(uint256 maximumAmount
CrushGameBetAmountTooSmall(uint256 minimumAmount
CrushGameBetMultiplierTooLarge(uint16 maximumMultiplier
CrushGameBetMultiplierTooSmall(uint16 minimumMultiplier
CrushGameInvalidRoundId(uint256 id
CrushGameNothingToResolve(uint256 id
CrushGameRoundActive(uint256 id
CrushGameRoundBetAlready(struct ICrushGameBet existingBet
CrushGameRoundBreakOngoing(uint256 id
CrushGameRoundNotActive(uint256 id
CrushGameRoundOngoing(uint256 id
CrushGameSettingsInvalidRoundDuration(uint32 minimumDuration
CrushGameUnresolvedRound(uint256 id
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account