PaymentV2

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x3f949378 at 20438766
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "PaymentV2"

No transactions found for "PaymentV2"


Functions
Getter at block 21209187
owner(view returns (address)
0x0000000000000000000000000000000000000000
treasury(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
discounts(addressuint256view returns (uint256)
getAmount(address tokenuint256 unitPriceInUsdview returns (uint256)
getTokenAmountPerItem(address tokenuint256 itemIdview returns (uint256)
getUsdPrice(address tokenview returns (uint256)
items(uint256view returns (uint256 pricebool isRegisteredbool isUnlimiteduint256 dailyLimit)
priceFeeds(addressview returns (address)
userDailyPayCount(addressuint256view returns (uint256)
userPayTime(addressuint256view returns (uint256)
State-modifying
addItem(uint256 itemIduint256 pricebool isUnlimiteduint256 dailyLimit
addItems(uint256[] itemIdsuint256[] pricesbool[] isUnlimiteduint256[] dailyLimits
initialize(address initialOwneraddress _treasuryaddress[] tokensaddress[] oracles
pay(uint256 itemIdaddress tokenuint256 maxAmountstring payloadpayable 
renounceOwnership(
transferOwnership(address newOwner
updateDiscount(address tokenuint256 itemIduint256 discount
updateDiscounts(address[] tokensuint256[] itemIdsuint256[] discounts
updateItem(uint256 itemIduint256 pricebool isUnlimiteduint256 dailyLimit
updateItems(uint256[] itemIdsuint256[] pricesbool[] isUnlimiteduint256[] dailyLimits
updateOracle(address tokenaddress oracle
Events
AddItem(uint256 itemIduint256 pricebool isUnlimiteduint256 dailyLimit
Initialized(uint64 version
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Pay(address userAddressuint256 itemIduint256 priceuint256 refundstring payloadaddress tokenuint256 amount
UpdateDiscount(address tokenuint256 itemIduint256 discount
UpdateItem(uint256 itemIduint256 pricebool isUnlimiteduint256 dailyLimit
UpdateOracle(address tokenaddress oracle
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
FailedInnerCall(
InvalidInitialization(
NotInitializing(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token