RugGame2

Verified contract

Active on Base with 29,771 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 2 additional slots
Native
Value $1,741.65
ERC-20
Value $0
ERC-20
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
0x2cbe2f31e6b5c3ccb99e560070539e4f77e6a0d08d18d5bf86f6eb707dd3050f
0xca2899884ddb7ca7ff8af361bda735bd860665312b55eb32b8f605fe916c24ea
0xbc02e6b552800f12113c6aee136eed5fa69ec3c86b0c87984fced4f8a0e5205d
0xca981a4eee24e20423c7771cfb0f425885bd6f66bab321993e8594c25b63648b
0xc09d27d80bf71105ff7026e102ff0ffd0371ad6452764fb6d51dbff45132427d
0xc133378d1362497afb22eb1c375ffa6589cf3f123168814a5b7131d6baf36e26
0xc8e16ea8ef5e1956a9c614e723d906ed8ee4ab0eac0d00116b4824dcbc9d91d9
0xbd2791a0f38462ee1d9c31e40b93310f1e524808b9540039c6c6d1b2482265b4
0x0101222531785d6228ef5e289ad3981d4eadcfb7df2b7674dee6cb04a62609d2
0x71f659e944db8b89cb1cea07fe4ef7a0c0adcdcb878bcc274ba0d7aba98ebd87

Functions
Getter at block 22809029
CONFIRM_GAME_TOKENS_ROLE(view returns (uint256)
2
GAME_START_ROLE(view returns (uint256)
1
burnAddress(view returns (address)
0x000000000000000000000000000000000000fade
gameConfig(view returns (struct IRugGame2GameConfig)
(14400, 7200, 86400, 3000000000000000000, 2000000000000000)
gameNumber(view returns (uint48)
2
maximumCreateTokenFee(view returns (uint256)
1000000000000000000
maximumGameTokenCount(view returns (uint8)
20
maximumPostGameBuyDuration(view returns (uint40)
2592000
maximumPresaleGoalAmount(view returns (uint256)
60000000000000000000
maximumTokenCreationDuration(view returns (uint40)
604800
maximumTopTokensPhaseDuration(view returns (uint40)
604800
minimumGameTokenCount(view returns (uint8)
3
minimumPostGameBuyDuration(view returns (uint40)
600
minimumPresaleGoalAmount(view returns (uint256)
100000000000000000
minimumTokenCreationDuration(view returns (uint40)
600
minimumTopTokensPhaseDuration(view returns (uint40)
600
owner(view returns (address result)
0xcbee7e934cd201c6f924faeb0bd6f765ac3e39cd
protocolFeeBalance(view returns (uint256)
67495741738900389
tokenImplementation(view returns (address)
0xa69e24d4c0723c9197b11aea87a746472042d0a6
uniswapPositionManager(view returns (address)
0x03a520b32c04bf3beef7beb72e919cf822ed34f1
uniswapV3Factory(view returns (address)
0x33128a8fc17869897dce68ed026d694621f6fdfd
weth(view returns (address)
0x4200000000000000000000000000000000000006
Read-only
gameNumberForToken(addressview returns (uint48)
gameStateForGameNumber(uint48 _gameNumberview returns (struct IRugGame2GameState)
hasAllRoles(address useruint256 rolesview returns (bool)
hasAnyRole(address useruint256 rolesview returns (bool)
ownershipHandoverExpiresAt(address pendingOwnerview returns (uint256 result)
positionInfoForToken(address tokenview returns (struct IRugGame2PositionInfo)
rolesOf(address userview returns (uint256 roles)
tokenConfirmed(addressview returns (bool)
tokenRaisedPresale(addressview returns (bool)
State-modifying
bump(address token
burnPresale(address tokenuint256 amount
calculateLPValue(address token
cancelOwnershipHandover(payable 
completeOwnershipHandover(address pendingOwnerpayable 
confirmGameTokens(address[] tokens
createToken(string namestring symbolstring imageUrlstring telegramIdstring twitterHandlepayable returns (address)
finalizeGame(
grantRoles(address useruint256 rolespayable 
initialize(address _uniswapV3Factoryaddress _uniswapPositionManageraddress _weth
mintPresale(address tokenaddress topayable 
renounceOwnership(payable 
renounceRoles(uint256 rolespayable 
requestOwnershipHandover(payable 
revokeRoles(address useruint256 rolespayable 
setGameConfig(struct IRugGame2GameConfig newConfig
startGame(
transferOwnership(address newOwnerpayable 
uniswapV3SwapCallback(int256 amount0Deltaint256 amount1Deltabytes
withdrawFees(address to
withdrawLPFees(address tokenaddress to
Events
Bumped(uint48 indexed gameNumberaddress indexed tokenaddress indexed bumperuint256 bumpAmount
GameConfigUpdated(struct IRugGame2GameConfig config
GameFinalized(uint48 indexed gameNumberaddress indexed lowestMarketCapTokenaddress indexed highestMarketCapTokenuint256 lowestMarketCapTokenInitialBuyAmountuint256 lowestMarketCapTokenTWAPAmountuint256 highestMarketCapTokenInitialBuyAmountuint256 highestMarketCapTokenTWAPAmountuint256 prizePoolFee
GameStarted(uint48 indexed gameNumber
GameTokensConfirmed(uint48 indexed gameNumberaddress[] tokens
OwnershipHandoverCanceled(address indexed pendingOwner
OwnershipHandoverRequested(address indexed pendingOwner
OwnershipTransferred(address indexed oldOwneraddress indexed newOwner
PositionCreated(uint48 indexed gameNumberaddress indexed tokenaddress indexed poolAddressuint256 lpTokenId
PresaleBurn(uint48 indexed gameNumberaddress indexed tokenaddress indexed fromuint256 amount
PresaleMint(uint48 indexed gameNumberaddress indexed tokenaddress indexed actoraddress touint256 amount
RolesUpdated(address indexed useruint256 indexed roles
TokenCreated(uint48 indexed gameNumberaddress indexed tokenstring namestring symbolstring imageUrlstring telegramIdstring twitterHandle
TokenPresaleReached(uint48 indexed gameNumberaddress indexed token
Constructor
constructor(
Fallback and receive
receive(
Errors
AlreadyBumpedThisBlock(
AlreadyInitialized(
BumpAmountTooLow(
BuyTooLow(
CannotBuyInactiveGame(
CannotBuyToZeroAddress(
CannotConfirmYet(
CannotCreateTokenWithAlreadyRaisedFunds(
CannotFinalizeYet(
CannotReceiveETH(
CreateTokenFeeTooHigh(
GameAlreadyFinalized(
GameIsNotOver(
GameNotFinalized(
GameTokensAlreadyConfirmed(
InsufficientBalance(
InvalidGame(
InvalidInitParameters(
InvalidUniswapCallbackCaller(
LPValueCalculated(address tokenuint256 wethBalanceuint256 tokenBalance
MinimumTokenCreationDurationTooLong(
MinimumTokenCreationDurationTooShort(
MustBeCalledByAnEOA(
MustBeCalledByChecker(address expectedaddress caller
MustBurnSomething(
NewOwnerIsZeroAddress(
NoFeesToWithdraw(
NoGameRunning(
NoHandoverRequest(
PoolNotFound(
PostGameBuyDurationTooLong(
PostGameBuyDurationTooShort(
PresaleGoalAmountTooHigh(
PresaleGoalAmountTooLow(
TokenAlreadyInGame(
TokenDoesNotExist(
TokenHasNotRaisedPresale(
TokenInWrongGame(
TokensAlreadyConfirmed(
TokensNotConfirmed(
TooFewTokensToStart(
TooManyTokensToStart(
TopTokensPhaseDurationTooLong(
TopTokensPhaseDurationTooShort(
Unauthorized(