Fee
Last updated
Last updated
Var | Type |
---|---|
No description
Declaration:
Modifiers:
Modifier |
---|
Deposit amount to target user.
Declaration:
Modifiers:
Args:
Withdraw amount from target user.
Declaration:
Modifiers:
Args:
Estimate wtihdrawable timestamp, if the estimation fails, return 0.
Declaration:
Modifiers: No modifiers
Args:
Estimate wtihdrawable amount.
Declaration:
Modifiers: No modifiers
Args:
Estimate user fee.
Declaration:
Modifiers: No modifiers
Args:
Estimate user usage
Declaration:
Modifiers: No modifiers
Args:
Consume user fee, can only be called by the system caller.
Declaration:
Modifiers:
Args:
Emit when user deposits.
Modifier |
---|
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Arg | Type | Description |
---|---|---|
Arg | Type | Description |
---|---|---|
Arg | Type | Description |
---|---|---|
Arg | Type | Description |
---|---|---|
Modifier |
---|
Arg | Type | Description |
---|---|---|
Param | Type | Indexed | Description |
---|---|---|---|
Param | Type | Indexed | Description |
---|---|---|---|
userTotalAmount
mapping(address => uint256)
userUsage
mapping(address => struct IFee.UsageInfo)
userDeposit
mapping(address => mapping(address => struct IFee.DepositInfo))
totalAmount
uint256
Only
nonReentrant
user
address
Target user address
nonReentrant
user
address
Target user address
desiredAmount
uint256
Desired withdraw amount
minAmount
uint256
Min withdraw amount
user
address
Target user address
from
address
From user address
user
address
Target user address
timestamp
uint256
Current timestamp
user
address
User address
timestamp
uint256
Current timestamp
ui
struct IFee.UsageInfo
Usage information
timestamp
uint256
Current timestamp
nonReentrant
onlyRouter
user
address
User address
usage
uint256
Number of usage fee
by
address
Deposit user
to
address
Receiver user
amount
uint256
Deposit amount
### Withdraw
Emit when user withdraws.
by
address
Withdraw user
from
address
From user
amount
uint256
Withdraw amount