Learn/Developers

Smart Contract Function Reference

Smart contract function reference for developers

8 min readDevelopers

All DEADBOX smart contracts are verified on-chain and audited by CertiK. This reference covers the key functions developers need when integrating with the ecosystem.

DEAD Token (0xf019...Af6F)

Key functions: balanceOf(address), totalSupply(), burn(amount), burnFrom(account, amount), claimIdleTokens(target) for Grave Digging, getClaimableAmount(target), isClaimable(target), getTimeUntilClaimable(target), lastTransferTime(account). The token implements LayerZero OFT for cross-chain bridging via send() and quoteSend(). SUPPLY_CAP returns the 1 billion max supply.

uDEAD Token (0xc338...ad24)

Key functions: burnToMint(deadAmount) burns DEAD at 2:1 ratio to mint uDEAD. BURN_RATIO returns 2. claim() triggers manual dividend claim. withdrawableDividendOf(account) returns pending dividends. getAccountDividendsInfo(account) returns full dividend info tuple. getTotalDividendsDistributed() returns lifetime payouts for current reward token. Also implements LayerZero OFT for bridging.

DividendTracker (0xa83f...7a68)

The DividendTracker is a cloned proxy contract that handles dividend accounting. Key functions: totalDividendsDistributed() returns total without token filter. withdrawableDividendOf(owner) returns claimable amount. getAccount(account) returns full account info (index, iterations, withdrawable, total, lastClaim, nextClaim, secondsUntilClaim). getNumberOfTokenHolders() returns eligible holder count.

CertiK Audited

Both the SwitchBox and Deaderal Reserve Protocol contracts have been audited by CertiK. Audit reports are available at skynet.certik.com/projects/switch-box and skynet.certik.com/projects/deaderal-reserve-protocol.