KingOfTheDegens

Verified contract

Active on Base with 3,621 txns
Deployed by via 0xa1deb1ea at 13920335
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 12 additional slots
-
variable spans 2 additional slots
ERC-20
Value $0.09
ERC-20
Value $0.06
ERC-20
Value $0.05
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
0xf48c03c9b0705dbcdd91ff40c93e0ae0bad60bab2758293905cbe47abed2ea00
0x33975a77cecbffb6a01a445c2d8de9e557f9d8070e4b86389ca4ae475d5d9d7f
0xd3dd3f32ee8d67cf8908c009e587cd7d78863da95cc585a4f9210c74e9435b72
0x9bae8d90aac6396f650e6a7676a5318fcb9b5d340ac24739be4c8c669265a17d
0xe1409ec6ad8fe672e7dab9ee3df7199acc9d3e57f8bbba16ed779c31fcb34c83
0x3b8f5a3dc1cdd85635e3cb3528265951a840bef086a78875c9568f2e4bbb77c9
0x739266acc4ed71bb029aa38dffd493943da1dede8c1b3db08a23a860cbf30a92
0x31fe2280c6055c223ef141c64a8d360353a0139aa646250aa36f487aa2042ca9
0x6b68462b78bfd99bb0000f471e13cfba873ed39e2f678c10f4575323e5c1a62b
0x3047d7e08d976e73d7d618971c21ab55facd0138781813452443d13860a75055

Functions
Getter at block 23845140
DOMAIN_SEPARATOR(view returns (bytes32)
0xeaa0019aaf3627782afe8c06516856c3c0244335d060bba18ba61496e4c15aa3
WETH(view returns (address)
0x4200000000000000000000000000000000000006
activePointAllocationTemplate(view returns (uint8)
3
custom1(view returns (address[1])
[0x4a3e6E66f8C32bC05A50879f872B1177A1573CDF]
custom2(view returns (address[1])
[0x0023c7a54de83e945cd8D6C08FCaED141F925E4B]
custom3(view returns (address[1])
[0x0000000000000000000000000000000000000000]
defaultPointAllocationTemplate(view returns (uint8)
3
degenToken(view returns (address)
0x4ed4e862860bed51a9570b96d89af5e1b0efefed
 
fullCourt(view returns (address[13])
gameAssets(view returns (uint256)
1062796649270612014007338
gameDurationBlocks(view returns (uint256)
1339200
gameEndBlock(view returns (uint256)
15233432
gameLastBlock(view returns (uint256)
15233431
gameStartBlock(view returns (uint256)
13894232
 
getCourtMemberPoints(view returns (uint256[13])
getKingRange(view returns (uint256)
500
isGameActive(view returns (bool)
false
isGameEnded(view returns (bool)
true
isGameStarted(view returns (bool)
true
jester(view returns (address[1])
[0x4a3e6E66f8C32bC05A50879f872B1177A1573CDF]
king(view returns (address[1])
[0xDE0921Bea476036eee30721c528125F6565367ed]
kingProtectionBlocks(view returns (uint256)
10800
knights(view returns (address[3])
[0xD8d6d47cF096c8a78bB232b59ea7bd26170Be9d4, 0xabE8886B6F8Dc7FFFed07C47680FfFC45eBd8ed1, 0xD76104786A14393bBE7D0fDdf269f89Ce5cDa933]
lords(view returns (address[2])
[0x2917814B19Ea662dCb781531e749Bb094841Ae95, 0x2943E07Ca68FeBC79533d321F5D427136995ECB6]
owner(view returns (address)
0x1af758c720d6fdb9652143320d9e00a0a4a89383
paused(view returns (bool)
false
protocolFeePercent(view returns (uint256)
1000
redeemAfterGameEndedBlocks(view returns (uint256)
1296000
stormFee(view returns (uint256)
2000000000000000
stormFrequencyBlocks(view returns (uint256)
1800
storms(view returns (uint256)
3445
totalAssets(view returns (uint256)
1062796649270612014007338
totalPoints(view returns (uint256)
1339200000000000000000000
totalPointsPerBlock(view returns (uint256)
1000000000000000000
townsfolk(view returns (address[4])
[0x4CeDF18Ff6E67817D37b889ec256E7C3A9aE32D6, 0x0D9A5b29Db1A5d109a3f6E3D3D5141691461d44d, 0x1E4942503fdA9FEf427A92AF001fb5Aed5cc0d77, 0x2550d50d0FA9477e4BCdC21626F2edFB94F3Cbf7]
Read-only
calculatePointsEarned(uint8 courtRoleuint256 startBlockview returns (uint256)
calculatePointsEarned(uint8 courtRoleuint256 startBlockuint8 pointAllocationTemplateview returns (uint256)
convertPointsToAssets(uint256 pointsview returns (uint256)
court(uint256view returns (address)
courtRoleOddsCeilings(uint256view returns (uint256)
courtRoles(addressview returns (uint8)
determineCourtRole(address accountAddressuint256 _randomSeedview returns (uint8)
findCourtRole(address accountAddressuint8 desiredCourtRoleview returns (uint256)
getCourtRoleFromCourtIndex(uint256 indexview returns (uint8)
getCourtRoleIndexes(uint8 courtRoleview returns (uint256 startuint256 end)
getCourtRolePointAllocation(uint8 courtRoleview returns (uint256)
getCourtRolePointAllocation(uint8 courtRoleuint8 pointAllocationTemplateview returns (uint256)
getIndexOfAddressInCourt(address accountAddressview returns (int256)
getPoints(address accountAddressview returns (uint256)
indexOfAddressInRole(uint8 courtRoleaddress accountAddressview returns (uint256)
pointAllocationTemplates(uint8uint256view returns (uint256)
pointsBalance(addressview returns (uint256)
roleCounts(uint8view returns (uint256)
roleIndexCeiling(uint8view returns (uint256)
roleStartBlock(addressview returns (uint256)
stormBlock(addressview returns (uint256)
State-modifying
attackKing(struct TrustusTrustusPacket packetpayable 
collectProtocolFees(
depositDegenToGameAssets(uint256 degenAmountWei
initGameState(uint256 _stormsaddress[] _accountAddressesuint256[] _pointsuint256[] _stormBlocks
protocolRedeem(
redeem(
rotateInCourtMember(address accountAddressuint8 courtRole
runCourtRoleAction(struct TrustusTrustusPacket packetpayable 
runGameStateAction(struct TrustusTrustusPacket packetpayable 
setActivePointAllocationTemplate(uint8 _pointAllocationTemplate
setCourtRoleOdds(uint256[4] _courtRoleOdds
setGameAssets(uint256 _gameAssets
setGameDurationBlocks(uint256 blocks
setIsTrusted(address trustedAddressbool isTrusted
setJesterRole(struct TrustusTrustusPacket packetpayable 
setKingProtectionBlocks(uint256 _kingProtectionBlocks
setPointAllocationTemplates(uint256[7][5] _pointAllocationTemplates
setPointStrategy(struct TrustusTrustusPacket packetpayable 
setPointsBalance(address accountAddressuint256 points
setProtocolFeePercent(uint256 _protocolFeePercent
setRoleStartBlock(address accountAddressuint256 blockNumber
setStormBlock(address accountAddressuint256 blockNumber
setStormFee(struct TrustusTrustusPacket packetpayable 
setStormFee(uint256 _stormFee
setStormFrequency(uint256 blocks
setTotalPointsPerBlock(uint256 _totalPointsPerBlock
startGame(address[1] _kingaddress[2] _lordsaddress[3] _knightsaddress[4] _townsfolkuint256 _gameDurationBlocksuint256 _startBlock
stormTheCastle(struct TrustusTrustusPacket packetpayable 
swapCourtMember(address accountAddressuint256 courtIndex
togglePause(
transferOwnership(address newOwner
Events
Action(address indexed accountAddressaddress indexed outAddressuint256 indexed outDatastring actionType
CourtRoleAction(address indexed accountAddressaddress indexed inAddressaddress indexed outAddressuint256 fid
GameStateAction(address indexed accountAddressuint256 indexed fidstring actionType
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[4] _courtRoleOddsuint256[7] _roleCountsuint256[7][5] _pointAllocationTemplates
Fallback and receive
receive(
Errors
AlreadyCourtMember(address accountAddressuint8 courtRole
ArrayLengthMismatch(uint256 length1uint256 length2
GameIsActive(
GameNotActive(uint256 gameStartBlockuint256 gameEndBlockuint256 currentBlock
InsufficientBalance(
InsufficientFunds(uint256 valueSent
InvalidPercentage(uint256 percentageTotal
RedeemEnded(
RedeemStillActive(
TooFrequentStorms(uint256 nextBlockAlloweduint256 currentBlockNumber
Trustus__InvalidPacket(