XDEFI Badges

Verified contract

Active on Ethereum with 8,164 txns
Deployed by via 0x3a969f01 at 14257076
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $670,041.64
0x970dc82b64f64b639f04cf4e4d1a441dbca27d5e8313652c425fddd1d70780f1
0x1de557d9972c784013b67cf8456e0eaa7b4f7635acf589910c2d889eb9f09ac2
0xa8aa2e86a3ed98601df96d97cc01b5df08e09ca88958a3e8487503c49ef67595
0x338d6004f889b378d66f2efb3a9534e89a9cf469e641d7d5339c37f3ccdd9b25
0xa5bd81fdabcffe76056ab87135f335e0e34b0f01857e44d092551f80cb06e137
0x756d47cc0fd6e657fd2d34fee424dcd81050c89a2e13f1c27ff8c923266a110b
0x54f635d36c52b33c9ff984cb60bf0092e074602bcfe5e7c7e4104344e07503e9
0x12c2027a0c4b173bd2a519cae4176ee83e33bcba9e0f3cf3da03ba121e4fe446
0x14fbadccdb9d3b6a346f0a500387eeec3f343530861b8fee807a2ec91fa281e3
0x1478013f8ecda001dd50e21144a3cc104c4442a8552036704e0f171def28e04c

Functions
Getter at block 21292472
DOMAIN_SEPARATOR(view returns (bytes32)
0x5e45f0ffc5dd07026136d7ab4929cc6765dd281e0a5a02560cff3c5913411960
MINIMUM_UNITS(view returns (uint256)
1000000000000000000
baseURI(view returns (string)
https://staking-api.xdefi.io/
contractURI(view returns (string contractURI_)
https://staking-api.xdefi.io/info
distributableXDEFI(view returns (uint256)
2799756626038681850934392
inEmergencyMode(view returns (bool)
true
name(view returns (string)
XDEFI Badges
owner(view returns (address)
0x11998af21307e9561cf8c131f8fb9be754615d3f
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
symbol(view returns (string)
bXDEFI
totalDepositedXDEFI(view returns (uint256)
8045850953733029052457980
totalSupply(view returns (uint256)
2868
totalUnits(view returns (uint256)
15572198193214283952060206
xdefi(view returns (address)
0x72b886d09c117654ab7da13a14d603001de0b777
Read-only
attributesOf(uint256 tokenId_view returns (uint256 tier_uint256 credits_uint256 withdrawable_uint256 expiry_)
balanceOf(address ownerview returns (uint256)
bonusMultiplierOf(uint256view returns (uint256)
consumePermitNonce(uint256view returns (uint256)
creditsOf(uint256view returns (uint256)
getApproved(uint256 tokenIdview returns (address)
getBonusMultiplierOf(uint256 tokenId_view returns (uint256 bonusMultiplier_)
getCredits(uint256 amount_uint256 duration_pure returns (uint256 credits_)
getTier(uint256 credits_pure returns (uint256 tier_)
isApprovedForAll(address owneraddress operatorview returns (bool)
ownerOf(uint256 tokenIdview returns (address)
positionOf(uint256 tokenId_view returns (struct IXDEFIDistributionPosition position_)
supportsInterface(bytes4 interfaceIdview returns (bool)
tokenByIndex(uint256 indexview returns (uint256)
tokenOfOwnerByIndex(address owneruint256 indexview returns (uint256)
tokenURI(uint256 tokenId_view returns (string tokenURI_)
withdrawableOf(uint256 tokenId_view returns (uint256 withdrawableXDEFI_)
State-modifying
acceptOwnership(
activateEmergencyMode(
approve(address touint256 tokenId
consume(uint256 tokenId_uint256 amount_returns (uint256 remainingCredits_)
consumeWithPermit(uint256 tokenId_uint256 amount_uint256 limit_uint256 deadline_uint8 v_bytes32 r_bytes32 s_returns (uint256 remainingCredits_)
emergencyUnlock(uint256 tokenId_address destination_returns (uint256 amountUnlocked_)
lock(uint256 amount_uint256 duration_uint256 bonusMultiplier_address destination_returns (uint256 tokenId_)
lockWithPermit(uint256 amount_uint256 duration_uint256 bonusMultiplier_address destination_uint256 deadline_uint8 v_bytes32 r_bytes32 s_returns (uint256 tokenId_)
merge(uint256[] tokenIds_returns (uint256 tokenId_uint256 credits_)
proposeOwnership(address newOwner_
relock(uint256 tokenId_uint256 lockAmount_uint256 duration_uint256 bonusMultiplier_address destination_returns (uint256 amountUnlocked_uint256 newTokenId_)
relockBatch(uint256[] tokenIds_uint256 lockAmount_uint256 duration_uint256 bonusMultiplier_address destination_returns (uint256 amountUnlocked_uint256 newTokenId_)
safeTransferFrom(address fromaddress touint256 tokenId
safeTransferFrom(address fromaddress touint256 tokenIdbytes _data
setApprovalForAll(address operatorbool approved
setBaseURI(string baseURI_
setLockPeriods(uint256[] durations_uint256[] multipliers_
transferFrom(address fromaddress touint256 tokenId
unlock(uint256 tokenId_address destination_returns (uint256 amountUnlocked_)
unlockBatch(uint256[] tokenIds_address destination_returns (uint256 amountUnlocked_)
updateDistribution(
Events
Approval(address indexed owneraddress indexed approveduint256 indexed tokenId
ApprovalForAll(address indexed owneraddress indexed operatorbool approved
BaseURISet(string baseURI
CreditsConsumed(uint256 indexed tokenIdaddress indexed consumeruint256 amount
DistributionUpdated(address indexed calleruint256 amount
EmergencyModeActivated(
LockPeriodSet(uint256 indexed durationuint256 indexed bonusMultiplier
LockPositionCreated(uint256 indexed tokenIdaddress indexed owneruint256 amountuint256 indexed duration
LockPositionWithdrawn(uint256 indexed tokenIdaddress indexed owneruint256 amount
OwnershipAccepted(address indexed previousOwneraddress indexed owner
OwnershipProposed(address indexed owneraddress indexed pendingOwner
TokensMerged(uint256[] mergedTokenIdsuint256 tokenIduint256 credits
Transfer(address indexed fromaddress indexed touint256 indexed tokenId
Constructor
constructor(address xdefi_string baseURI_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
BeyondConsumeLimit(
CannotUnlock(
ConsumePermitExpired(
EmptyArray(
IncorrectBonusMultiplier(
InsufficientAmountUnlocked(
InsufficientCredits(
InvalidConsumePermit(
InvalidDuration(
InvalidMultiplier(
InvalidToken(
LockResultsInTooFewUnits(
LockingIsDisabled(
MustMergeMultiple(
NoReentering(
NoUnitSupply(
NotApprovedOrOwnerOfToken(
NotInEmergencyMode(
PositionAlreadyUnlocked(
PositionStillLocked(
TokenDoesNotExist(
Unauthorized(