TokenSale

Verified contract

Active on Ethereum with 2,190 txns
Deployed by via 0x7dcea26e at 20869289
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
5 additional variables
Native
Value $381,978.39
ERC-20
Value $4,262.9
ERC-20
Value $1,061.22
0xe928a88a22a6fc0baeea4f57bee3e91be02f09643739c9508947d252183162e3
0xd2760097911b0e844ff04d7c9ce4cfde1d3d0321d7677dbf85ad0c0ec5f54434
0x9666b24d813e762014710ccfc1be340f8b9d19bc1dfd7e8866df37f7aab37448
0xc3a5ca7c9ee9f441ab9c35d30acc4b0051f6e7cace9e13463390a6bfc9a3d27c
0xb51273f3ea782cbac6a6080565190d153511018a061d9732fba5c997c271bfec
0x4890435cf9bc056f57093e6ea95b81310b518aa1d32c7690d08bfc70745371b2
0xea5f0d1d1b5954852be984e436f199f6594331442102141ce24cbd580a740011
0x00d5f0b907773b7c452e47ab13b447e339fbc6e638294f0ba3ae38a7f6186335
0x619a43f5161f9d88c1e8361c72ae1d13148da66052e05c7a7893b0e685c72109
0x2f260feab47c7f201cfc53bebe811a94ae4b3cad7967674881b8113cc1603dff

Functions
Getter at block 21384848
getAutoWithdrawRaisedFunds(view returns (bool)
false
getChainId(view returns (uint256)
1
getMerkleRoot(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
getPaymentTokens(view returns (address[])
[0xdAC17F958D2ee523a2206206994597C13D831ec7, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, 0x0000000000000000000000000000000000000000]
getPurchaseSettings(view returns (bool isReleaseAllowedbool isBuyAllowedbool isBuyWithProofAllowedbool isBuyWithPriceAllowed)
(isReleaseAllowed=true, isBuyAllowed=true, isBuyWithProofAllowed=true, isBuyWithPriceAllowed=true)
 
getSaleStages(view returns (struct TokenSaleStagesSaleStageDataView[] stages)
getSaleState(view returns (uint256 stagesuint256 currentStageIduint256 sold)
(stages=3, currentStageId=2, sold=28391962795663891163244236)
getSellableToken(view returns (bool isFrozenaddress tokenuint8 decimals)
(isFrozen=false, token=0x6eb935f5b649fc98bc7a3079f0211f5255c8b3ea, decimals=18)
getSigner(view returns (address)
0x44f83dc311b6d0b70765946caac09c5aed320445
getTeamWallet(view returns (bool isFrozenaddress teamWallet)
(isFrozen=false, teamWallet=0x44f83dc311b6d0b70765946caac09c5aed320445)
getTokenVesting(view returns (address tokenVestingbool tokenVestingFrozen)
(tokenVesting=0xf8246dcc165f300b1e2f0f714a388fa70ec57ac4, tokenVestingFrozen=false)
isDepositsEnabled(view returns (bool)
true
isWhitelistingByDepositEnabled(view returns (bool)
true
owner(view returns (address)
0x44f83dc311b6d0b70765946caac09c5aed320445
paused(view returns (bool)
false
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
tokenSaleType(pure returns (string)
full
tokenSaleVersion(pure returns (string)
1
Read-only
calculateTokensToBuy(uint256 priceuint256 tokensToPayview returns (uint256 tokensToBuy)
calculateTokensToBuyAtStage(uint256 stageIdaddress tokenuint256 tokensToPayview returns (uint256 tokensToBuyuint256 price)
calculateTokensToPay(uint256 priceuint256 tokensToBuyview returns (uint256 tokensToPay)
calculateTokensToPayAtStage(uint256 stageIdaddress tokenuint256 tokensToBuyview returns (uint256 tokensToPayuint256 price)
checkSignatureBuyWithPrice(address useruint256 stageIdaddress tokenuint256 priceuint256 tokensToPaybytes signatureview returns (bool)
checkSignatureRelease(address useruint256 stageIduint256 tokensToBuybytes signatureview returns (bool)
getRaisedUnclaimedFunds(address[] tokens_view returns (address[] tokensuint256[] funds)
getRecoverableFunds(address tokenview returns (uint256)
getSaleStage(uint256 stageIdview returns (bool whitelistuint256 startAtuint256 durationuint256 capuint256 soldaddress[] tokensuint256[] prices)
getTotalDeposits(address[] tokens_view returns (address[] tokensuint256[] deposits)
getUserDeposits(address useraddress[] tokens_view returns (address[] tokensuint256[] deposits)
getUserSignatureNonce(address userview returns (uint256)
isPaymentToken(address tokenview returns (bool)
isWhitelisted(address userview returns (bool)
verifyWhitelistProof(address userbytes32[] merkleProofview returns (bool)
State-modifying
acceptOwnership(
addPaymentTokens(address[] tokens
buy(uint256 stageIdaddress tokenuint256 tokensToPaypayable 
buyWithPermit(uint256 stageIdaddress tokenuint256 tokensToPayuint256 deadlineuint8 vbytes32 rbytes32 s
buyWithPrice(uint256 stageIdaddress tokenuint256 priceuint256 tokensToPaybytes signaturepayable 
buyWithPricePermit(uint256 stageIdaddress tokenuint256 priceuint256 tokensToPayuint256 deadlineuint8 vbytes32 rbytes32 sbytes signature
buyWithProof(uint256 stageIdaddress tokenuint256 tokensToPaybytes32[] merkleProofpayable 
buyWithProofPermit(uint256 stageIdaddress tokenuint256 tokensToPayuint256 deadlineuint8 vbytes32 rbytes32 sbytes32[] merkleProof
cancelDeposit(address[] tokens
cancelDepositForced(address[] usersaddress[] tokens
createNextSaleStage(uint256 stageIdbool whitelistuint256 startAtuint256 durationuint256 capaddress[] tokensuint256[] prices
createNextSaleStagesBatch(struct TokenSaleStagesSaleStageSchedule[] schedules
deleteLastSaleStage(
deleteSaleStagePrices(uint256 stageIdaddress[] tokens
deposit(address tokenuint256 amountpayable 
depositWithPermit(address tokenuint256 amountuint256 deadlineuint8 vbytes32 rbytes32 s
freezeSellableToken(
freezeTeamWallet(
freezeTokenVesting(
grantWhitelist(address[] users
recoverFunds(address useraddress tokenuint256 amountreturns (bool)
release(uint256 stageIduint256 tokensToBuybytes signature
removePaymentTokens(address[] tokens
renounceOwnership(
revokeWhitelist(address[] users
setAutoWithdrawRaisedFunds(bool status
setCurrentStageId(uint256 newCurrentStageId
setDepositsEnabled(bool status
setMerkleRoot(bytes32 merkleRoot
setPause(bool status
setPurchaseSettings(bool isReleaseAllowedbool isBuyAllowedbool isBuyWithProofAllowedbool isBuyWithPriceAllowed
setSellableToken(address tokenuint8 decimals
setSigner(address newSigner
setTeamWallet(address teamWallet
setTokenVesting(address tokenVesting
setWhitelistingByDeposit(bool status
transferOwnership(address newOwner
updateSaleStage(uint256 stageIdbool whitelistuint256 startAtuint256 durationuint256 capaddress[] tokensuint256[] prices
updateSaleStagePrices(uint256 stageIdaddress[] tokensuint256[] prices
withdrawRaisedFunds(address[] tokens
Events
AutoWithdrawnRaisedFundsUpdated(bool status
CurrentStageIdUpdated(uint256 currentStageId
FundsRecovered(address indexed useraddress indexed tokenuint256 amount
MerkleRootUpdated(bytes32 indexed merkleRoot
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
PaymentTokenAdded(address token
PaymentTokenRemoved(address token
PurchaseSettingsUpdated(bool isReleaseAllowedbool isBuyAllowedbool isBuyWithProofAllowedbool isBuyWithPriceAllowed
RaisedFundsDeposited(address indexed tokenuint256 amount
RaisedFundsWithdrawn(address indexed useraddress indexed tokenuint256 amount
SaleStageDeleted(uint256 stageId
SaleStagePriceUpdated(uint256 stageIdaddress tokenuint256 price
SaleStageUpdated(uint256 stageIdbool whitelistuint256 startAtuint256 durationuint256 cap
SellableTokenFrozen(
SellableTokenUpdated(address tokenuint8 decimals
SignerUpdated(address signer
TeamWalletFrozen(
TeamWalletUpdated(address teamWallet
TokenVestingFrozen(
TokenVestingUpdated(address tokenVesting
TokensBought(address indexed useruint256 indexed stageIdaddress indexed tokenuint256 priceuint256 amount
TokensReleased(address indexed useruint256 indexed stageIduint256 amount
Unpaused(address account
UpdatedDepositsEnabled(bool status
UserFundsDeposited(address indexed useraddress indexed tokenuint256 amount
UserFundsWithdrawn(address indexed useraddress indexed tokenuint256 amount
UserSignatureNonceUsed(address indexed useruint256 nonce
WhitelistGranted(address indexed user
WhitelistRevoked(address indexed user
WhitelistingByDepositUpdated(bool status
Constructor
constructor(address sellableTokenuint8 sellableTokenDecimals
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
AmountExceedsRecoverableFunds(
CapCannotBeLessThanSold(
DepositsDisabled(
ECDSAInvalidSignature(
ECDSAInvalidSignatureLength(uint256 length
ECDSAInvalidSignatureS(bytes32 s
EnforcedPause(
ExpectedPause(
FailedInnerCall(
InsufficientDepositBalance(
InsufficientFunds(
InvalidTokenAmount(
NotAuthorized(
NotWhitelisted(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
ParametersMismatch(
PaymentTokenNotFound(address token
PaymentTokenPriceIsZero(
RecipientIsZeroAddress(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token
SafeERC20PermitDidNotSucceed(address token
SellableTokenDecimalsIsZero(
SellableTokenIsFrozen(
SellableTokenIsZero(
SignerIsZeroAddress(
StageAlreadyUsed(
StageIsNotActive(
StageNotExists(
TeamWalletIsFrozen(
TeamWalletIsZero(
ThisPurchaseMethodIsDisabled(
TokenVestingIsFrozen(
TokenVestingIsZero(
TooSmallPurchaseAmount(
WrongStageId(
WrongStartTime(