KingOfTheDegens

Verified contract

Active on Base with 5,028 txns
Deployed by via 0xee0147d4 at 13205553
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 2 additional slots
-
variable spans 3 additional slots
ERC-20
Value $0.94
ERC-20
Value $0.23
ERC-20
Value $0.08
ERC-20
Value $0.05
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
0x74ab45e42c21e63eb04c93bf1c98edaf73911e6f303ada825a3eccc5bc580e51
0xb08cecb11126aaafe9d15d510c4a8c191d03e97e1b77489a5f66e2eeeb41ceb4
0x6731d510a2621991e411f514259c501b77c17e18ef048af2f50ef4c524a66acd
0xe3e85d0f484a74c161d1a83b4d8ea5545c9bf671d74cc6a61ceee50bf1a62591
0x769b4a1a2f248ca9fa0382061b5890de46a54ace62aed9d24ebaa1c2316c0b09
0x8d4e3f43dcf15eded52e71dc5d1e1cb4b4a15407262edf407bd94da4df015382
0x8e8b4d21c85523a3680d7d8a0322f4564586fd0efe266765baefc06e2009c073
0xe73982cd4cc69d7958eadd609007290fed87bd214cbe2fa5df441d2564f5c60a
0x708c7eccf609add7212b857a7f433aa838c2e7aa204654a4cb78c3cf38fe9aef
0xbd75ac2d7b5c8480328633f632a74ce87001ca063d60ecd8e71409e69a92bbf9

Functions
Getter at block 23118082
DOMAIN_SEPARATOR(view returns (bytes32)
0x47d7033953ad53631d536271f39b95d847cf8c474506a59ddbd803d3da9f2f4b
TRUSTUS_STORM(view returns (bytes32)
0xeb8042f25b217795f608170833efd195ff101fb452e6483bf545403bf6d8f49b
WETH(view returns (address)
0x4200000000000000000000000000000000000006
degenToken(view returns (address)
0x4ed4e862860bed51a9570b96d89af5e1b0efefed
gameAssets(view returns (uint256)
916895634855064258655404
gameDurationBlocks(view returns (uint256)
888300
gameEndBlock(view returns (uint256)
13900320
gameLastBlock(view returns (uint256)
13900319
gameStartBlock(view returns (uint256)
13012020
getCourtAddresses(view returns (address[10])
[0x830Feb1AA1fa1f0e04A7D19652c0891a611f9C54, 0x4a3e6E66f8C32bC05A50879f872B1177A1573CDF, 0x0Db5E7924d87d2EC27876882E7af911A58050Dd1, 0xf894d5C988ac2F019A68d23cC8B47E902C5F7702, 0x43E7a2b5B7FB53E2b18Fc3918db0372C7A17F40c, 0xfCa21091Ca742B5Fd1d029c3a5ba8c4DD5773363, 0x0e0E34094e42F47Fe25Da3cC1b441FaF15f8551A, 0x6c67DbF1d8430Da43A0b8c54f464b2A089Dd4C2B, 0x2943E07Ca68FeBC79533d321F5D427136995ECB6, 0x7799ef8C136606c020cD9E845410AD82125B5Af2]
 
getCourtMemberPoints(view returns (uint256[10])
isGameActive(view returns (bool)
false
isGameEnded(view returns (bool)
true
isGameStarted(view returns (bool)
true
minPlayAmount(view returns (uint256)
1000000000000000
owner(view returns (address)
0x1af758c720d6fdb9652143320d9e00a0a4a89383
paused(view returns (bool)
false
protocolFee(view returns (uint256)
100000000000000
protocolFeeBalance(view returns (uint256)
0
redeemAfterGameEndedBlocks(view returns (uint256)
2592000
stormFrequencyBlocks(view returns (uint256)
1800
storms(view returns (uint256)
7152
totalAssets(view returns (uint256)
916895634855064258655404
totalPoints(view returns (uint256)
888300000000000000000000
totalPointsPerBlock(view returns (uint256)
1000000000000000000
Read-only
calculatePointsEarned(address accountAddressuint256 endBlockNumberuint8 courtRoleview returns (uint256)
convertPoints(uint256 pointsview returns (uint256)
courtBps(uint8view returns (uint256)
courtRoles(addressview returns (uint8)
determineCourtRole(address accountAddressuint256 _randomSeedview returns (uint8)
getCourtRoleFromAddressesIndex(uint256 indexpure returns (uint8)
getPointsPerBlock(uint8 courtRoleview returns (uint256)
king(uint256view returns (address)
knights(uint256view returns (address)
lords(uint256view returns (address)
pointsBalance(addressview returns (uint256)
roleRanges(uint256view returns (uint8)
roleStartBlock(addressview returns (uint256)
stormBlock(addressview returns (uint256)
townsfolk(uint256view returns (address)
State-modifying
collectProtocolFees(
depositDegenToGameAssets(uint256 degenAmountWei
initGameState(uint256 _stormsaddress[] _accountAddressesuint256[] _pointsuint256[] _stormBlocks
protocolRedeem(
redeem(
setCourtBps(uint256[4] _courtBps
setCourtRolePercentages(uint8[4] _courtRolePercentages
setIsTrusted(address trustedAddressbool isTrusted
setStormFrequency(uint256 blocks
startGame(address[1] _kingaddress[2] _lordsaddress[3] _knightsaddress[4] _townsfolkuint256 _startBlock
stormTheCastle(struct TrustusTrustusPacket packetpayable 
togglePause(
transferOwnership(address newOwner
Events
OwnershipTransferred(address indexed useraddress indexed newOwner
Paused(address account
Redeemed(address indexed accountAddressuint256 indexed amountRedeemeduint256 indexed pointsRedeemed
StormTheCastle(address indexed accountAddressuint8 indexed courtRoleaddress indexed outAddressuint256 fid
Unpaused(address account
Constructor
constructor(uint256 _gameDurationBlocksuint256 _minPlayAmountuint256 _protocolFeeuint256 _stormFrequencyBlocksuint256 _redeemAfterGameEndedBlocksuint256[4] _courtBpsuint8[4] _courtRolePercentages
Fallback and receive
receive(
Errors
AlreadyCourtMember(address accountAddressuint8 courtRole
ArrayLengthMismatch(uint256 length1uint256 length2
BadCourtRole(uint8 courtRole
BadCourtRolePercentages(uint8 percentageTotal
BadZeroAddress(
CourtRoleMismatch(address accountAddressuint8 courtRoleuint8 expectedCourtRole
GameIsActive(
GameNotActive(uint256 gameStartBlockuint256 gameEndBlockuint256 currentBlock
InsufficientBalance(
InsufficientFunds(uint256 valueSent
RedeemEnded(
RedeemStillActive(uint256 redeemEndedBlock
TooFrequentStorms(uint256 nextBlockAlloweduint256 currentBlockNumber
Trustus__InvalidPacket(