ExchangeMovements.sol
Events
Deposit()
This event is emitted when a deposit is received.
event Deposit(address indexed token, address indexed user, address indexed referral,
address beneficiary, uint256 amount, uint256 balance);parameter
type
token
address
user
address
referral
address
beneficiary
address
amount
uint256
balance
uint256
Withdraw()
This event is emitted when a withdraw is received.
event Withdraw(address indexed token, address indexed user, uint256 amount,
uint256 balance);parameter
type
token
address
user
address
amount
uint256
balance
uint256
Transfer()
This event is emitted when a transfer is received.
parameter
type
token
address
user
address
beneficiary
address
amount
uint256
userBalance
uint256
beneficiaryBalance
uint256
Functions
deposit()
This function updates the 'balances' map based on the input. Note: If the deposit is for ETH the token address is (0x0).
parameter
type
token
address
amount
uint256
beneficiary
address
referral
address
withdraw()
This function updates the 'balances' map based on the input. Note: If the withdraw is for ETH the token address is (0x0).
parameter
type
token
address
amount
uint
transfer()
This is a function used for the transfer of assets between two users inside the exchange.
parameter
type
token
address
to
address
amount
uint256
Last updated
Was this helpful?