RugGame

Verified contract

Active on Base with 17,486 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 $5,071.4
ERC-20
--
ERC-20
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
0x9c463f9eb008f490a2d013cfd082651e02e991eaead3830367ba8b1044ecb47c
0x82fd9f12ced1301936988eee124096ad718b10e5cd56cb7179e02cbe871943dd
0x778f3bd1495f0f9c51b07730fe399fbd292d4262ade13330e28daa686e20a4bf
0x6565e6187da6a639d0046b7b44fa40f48496a2776f7f64c47627ed7e677d375c
0x38e4e38aad4c0d8f8ed2d353fe5574de8301ee030345e731fa4e66ace900f9ef
0x56cb1e5ac159c52fa3776a153671665200b37dc3655d1da6c2a2b4224e5cced5
0xd84d9f45906237c536e4ff97df55140685c591be48b0b7084cf97a29e79e2d03
0x740885556c352d0f6db473a027d7e5b385cd045428995f3fe3cae97bf496e010
0xd800ccda2b5c183fbbce50a718ad012187feecd4abbefb91743d95cd9ad009d8
0x307601c3acbfba800ac47da6e213f19cb62f0e57449c318d2ccf6f51d5e0d901

Functions
Getter at block 21754322
CONFIRM_GAME_TOKENS_ROLE(view returns (uint256)
2
GAME_START_ROLE(view returns (uint256)
1
 
gameConfig(view returns (struct IRugGameGameConfig)
gameNumber(view returns (uint256)
2
maximumGameDuration(view returns (uint256)
1209600
maximumGameTokenCount(view returns (uint256)
20
maximumTradeTaxAmount(view returns (uint256)
9000
maximumTradeTaxAmountsLength(view returns (uint256)
72
minimumConfirmTokensTime(view returns (uint256)
180
minimumGameDuration(view returns (uint256)
600
minimumGameTokenCount(view returns (uint256)
3
minimumTimeLeftToConfirmTokens(view returns (uint256)
300
minimumTradeTaxAmountsLength(view returns (uint256)
2
owner(view returns (address result)
0x0a062965075f24af358a50c64f6d5f17ad73a7a6
tokenImplementation(view returns (address)
0xebc15f7b44dabd8048402c93ecdd4932b76ff56d
uniswapPositionManager(view returns (address)
0x03a520b32c04bf3beef7beb72e919cf822ed34f1
uniswapV3Factory(view returns (address)
0x33128a8fc17869897dce68ed026d694621f6fdfd
weth(view returns (address)
0x4200000000000000000000000000000000000006
Read-only
calculateTaxRate(uint256 confirmedAtuint256 endTimeuint256 currentTimeuint256[] taxValuespure returns (uint256)
gameNumberForToken(addressview returns (uint256)
gameStateForGameNumber(uint256 _gameNumberview returns (struct IRugGameGameState)
hasAllRoles(address useruint256 rolesview returns (bool)
hasAnyRole(address useruint256 rolesview returns (bool)
ownershipHandoverExpiresAt(address pendingOwnerview returns (uint256 result)
rolesOf(address userview returns (uint256 roles)
tokenConfirmed(address tokenAddressview returns (bool)
tokensForGameNumber(uint256 _gameNumberview returns (address[])
State-modifying
buyToken(address tokenaddress topayable 
cancelOwnershipHandover(payable 
completeOwnershipHandover(address pendingOwnerpayable 
confirmGameTokens(address[] tokenAddresses
createToken(string namestring symbolstring imageUripayable returns (address)
depositToRugPool(payable 
emergencyFinalizeUnconfirmedGame(
finalizeGame(
grantRoles(address useruint256 rolespayable 
initialize(address _uniswapV3Factoryaddress _uniswapPositionManageraddress _weth
refundToken(address tokenAddressuint256 amount
removeTransferRestrictionForToken(address tokenAddress
renounceOwnership(payable 
renounceRoles(uint256 rolespayable 
requestOwnershipHandover(payable 
revokeRoles(address useruint256 rolespayable 
setGameConfig(struct IRugGameGameConfig newConfig
startGame(
swapTokens(address fromTokenAddressaddress toTokenAddressuint256 amount
transferOwnership(address newOwnerpayable 
uniswapV3SwapCallback(int256 amount0Deltaint256 amount1Deltabytes
withdrawFees(address tokenAddressaddress to
Events
GameConfigUpdated(struct IRugGameGameConfig config
GameFinalized(uint256 indexed gameNumberaddress indexed winneraddress indexed loser
GameLiquidityUpdated(uint256 indexed gameNumberuint256 indexed newLiquidity
GameStarted(uint256 indexed gameNumberuint256 indexed startTimeuint256 indexed endTime
GameTokensConfirmed(uint256 indexed gameNumberaddress[] tokenAddresses
OwnershipHandoverCanceled(address indexed pendingOwner
OwnershipHandoverRequested(address indexed pendingOwner
OwnershipTransferred(address indexed oldOwneraddress indexed newOwner
PositionCreated(uint256 indexed gameNumberaddress indexed tokenAddressaddress indexed poolAddressuint256 lpTokenId
RolesUpdated(address indexed useruint256 indexed roles
RugPoolAmountUpdated(uint256 indexed gameNumberuint256 indexed newAmount
RugPoolDeposited(uint256 indexed gameNumberaddress indexed depositoruint256 indexed amount
SupplyUpdated(uint256 indexed gameNumberaddress indexed tokenAddressuint256 indexed newSupply
TokenCreated(uint256 indexed gameNumberaddress indexed tokenAddressstring namestring symbolstring imageUri
TokenRefunded(uint256 indexed gameNumberaddress indexed tokenAddressaddress indexed touint256 amountuint256 ethAmount
TokenSwapped(uint256 indexed gameNumberaddress indexed fromTokenAddressaddress indexed toTokenAddressaddress actoraddress accountuint256 inAmountuint256 outAmountuint256 rugPoolFee
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyInitialized(
CannotBuyUnconfirmedToken(
CannotConfirmYet(
CannotSwapUnconfirmedToken(
ConfirmTokensTimeTooLong(
ConfirmTokensTimeTooShort(
DurationTooLong(
DurationTooShort(
GameAlreadyFinalized(
GameIsNotOver(
GameIsOver(
GameNotFinalized(
GameTokensAlreadyConfirmed(
GameTokensNotConfirmed(
InvalidAmount(
InvalidGame(
InvalidInitParameters(
InvalidRecipient(
InvalidToken(
InvalidUniswapCallbackCaller(
MustSwapDifferentTokens(
NewOwnerIsZeroAddress(
NewTokensDisabled(
NoGameRunning(
NoHandoverRequest(
NotEnoughTimeToConfirmTokens(
PoolNotFound(
TaxValuesMustBeIncreasing(
TokenAlreadyInGame(
TokenFromWrongGame(
TokenInWrongGame(
TokenNotEligibleForRefund(
TooFewTaxValues(
TooFewTokensToStart(
TooManyTaxValues(
TooManyTokensToStart(
TradeTaxValueTooHigh(
Unauthorized(