FlatPriceSale
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
9
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 8 additional slots
-
variable spans 3 additional slots
Balances ($0.00)
No balances found for "FlatPriceSale"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "FlatPriceSale"
ABI
ABI objects
Getter at block 21403707
BASE_CURRENCY_DECIMALS() view returns (uint256)
8
VERSION() view returns (string)
2.0
baseCurrency() view returns (string)
config() view returns (address recipient, bytes32 merkleRoot, uint256 saleMaximum, uint256 userMaximum, uint256 purchaseMinimum, uint256 startTime, uint256 endTime, uint256 maxQueueTime, string URI)
(recipient=0x0000000000000000000000000000000000000000, merkleRoot=0x0000000000000000000000000000000000000000000000000000000000000000, saleMaximum=0, userMaximum=0, purchaseMinimum=0, startTime=0, endTime=0, maxQueueTime=0, URI=)
isOpen() view returns (bool)
false
isOver() view returns (bool)
false
metrics() view returns (uint256 purchaseCount, uint256 buyerCount, uint256 purchaseTotal)
(purchaseCount=0, buyerCount=0, purchaseTotal=0)
nativeTokenPriceOracle() view returns (address)
0x0000000000000000000000000000000000000000
owner() view returns (address)
0x0000000000000000000000000000000000000000
total() view returns (uint256)
0
Read-only
buyerTotal(address user) view returns (uint256)
generatePseudorandomValue(bytes32 merkleRoot) view returns (uint160)
getFairQueueTime(address buyer) view returns (uint256)
getOraclePrice(address oracle) view returns (uint256)
getPaymentToken(address token) view returns (struct PaymentTokenInfo)
isValidMerkleProof(bytes32 root, address account, bytes data, bytes32[] proof) pure returns (bool)
paymentTokens(address) view returns (address oracle, uint8 decimals)
payments(address dest) view returns (uint256)
tokensToBaseCurrency(uint256 tokenQuantity, uint256 tokenDecimals, address oracle) view returns (uint256 value)
State-modifying
Events buyWithNative(bytes data, bytes32[] proof) payable
buyWithToken(address token, uint256 quantity, bytes data, bytes32[] proof)
initialize(address _owner, struct Config _config, string _baseCurrency, bool _nativePaymentsEnabled, address _nativeTokenPriceOracle, address[] tokens, address[] oracles, uint8[] decimals)
renounceOwnership()
sweepNative()
sweepToken(address token)
transferOwnership(address newOwner)
update(struct Config _config)
withdrawPayments(address payee)
Buy(address indexed buyer, address indexed token, uint256 baseCurrencyValue, uint256 tokenValue, uint256 tokenFee)
ImplementationConstructor(address indexed feeRecipient, uint256 feeBips)
Initialize(struct Config config, string baseCurrency, address nativeOracle, bool nativePaymentsEnabled)
Initialized(uint8 version)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SetPaymentTokenInfo(address token, struct PaymentTokenInfo paymentTokenInfo)
SweepNative(uint256 amount)
SweepToken(address indexed token, uint256 amount)
Update(struct Config config)
constructor(uint256 _feeBips, address _feeRecipient)
This contract contains no fallback and receive objects.
This contract contains no error objects.