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);

Withdraw()

This event is emitted when a withdraw is received.

 event Withdraw(address indexed token, address indexed user, uint256 amount,
 uint256 balance);

Transfer()

This event is emitted when a transfer is received.

  event Transfer(address indexed token, address indexed user,
  address indexed beneficiary, uint256 amount, uint256 userBalance,
  uint256 beneficiaryBalance);

Functions

deposit()

This function updates the 'balances' map based on the input. Note: If the deposit is for ETH the token address is (0x0).

 function deposit(address token, uint256 amount, address beneficiary,
 address referral) public payable

withdraw()

This function updates the 'balances' map based on the input. Note: If the withdraw is for ETH the token address is (0x0).

 function withdraw(address token, uint amount) public

transfer()

This is a function used for the transfer of assets between two users inside the exchange.

 function transfer(address token, address to, uint256 amount) external payable

Last updated