PaymentV2
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
6
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "PaymentV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "PaymentV2"
ABI
ABI objects
Getter at block 21209187
owner() view returns (address)
0x0000000000000000000000000000000000000000
treasury() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
discounts(address, uint256) view returns (uint256)
getAmount(address token, uint256 unitPriceInUsd) view returns (uint256)
getTokenAmountPerItem(address token, uint256 itemId) view returns (uint256)
getUsdPrice(address token) view returns (uint256)
items(uint256) view returns (uint256 price, bool isRegistered, bool isUnlimited, uint256 dailyLimit)
priceFeeds(address) view returns (address)
userDailyPayCount(address, uint256) view returns (uint256)
userPayTime(address, uint256) view returns (uint256)
State-modifying
Events addItem(uint256 itemId, uint256 price, bool isUnlimited, uint256 dailyLimit)
addItems(uint256[] itemIds, uint256[] prices, bool[] isUnlimited, uint256[] dailyLimits)
initialize(address initialOwner, address _treasury, address[] tokens, address[] oracles)
pay(uint256 itemId, address token, uint256 maxAmount, string payload) payable
renounceOwnership()
transferOwnership(address newOwner)
updateDiscount(address token, uint256 itemId, uint256 discount)
updateDiscounts(address[] tokens, uint256[] itemIds, uint256[] discounts)
updateItem(uint256 itemId, uint256 price, bool isUnlimited, uint256 dailyLimit)
updateItems(uint256[] itemIds, uint256[] prices, bool[] isUnlimited, uint256[] dailyLimits)
updateOracle(address token, address oracle)
AddItem(uint256 itemId, uint256 price, bool isUnlimited, uint256 dailyLimit)
Initialized(uint64 version)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Pay(address userAddress, uint256 itemId, uint256 price, uint256 refund, string payload, address token, uint256 amount)
UpdateDiscount(address token, uint256 itemId, uint256 discount)
UpdateItem(uint256 itemId, uint256 price, bool isUnlimited, uint256 dailyLimit)
UpdateOracle(address token, address oracle)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
AddressEmptyCode(address target)
AddressInsufficientBalance(address account)
FailedInnerCall()
InvalidInitialization()
NotInitializing()
OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall()
SafeERC20FailedOperation(address token)