0x0ff3726ff76AFdAD513885F49F1601A8E4bB75f7
: SimpleDEX deployed address0xB1Ccc1d09721D695233DcD688F59814Bae4b9464
: TokenB deployed address0x838F9b8228a5C95a7c431bcDAb58E289f5D2A4DC
: TokenA deployed address0x5B38Da6a701c568545dCfcB03FcB875f56beddC4
: Address of account 1 responsible for deploying TokenA0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2
: Address of account 2 responsible for deploying TokenB
-
Created two ERC-20 tokens tokenA and tokenB each having 1000 initial mint.
-
Created a contract called SimpleDEX which handles the functionality of exchanging these tokens (A to B for a provided exchange Rate).
-
The below picture showing all the deployed contracts which include the 2 ERC-20 tokens along with the SimpleDEX contract
- Below picture showing me fund the contract for 5 out of the 1000 minted tokens of B to ensure we can exchange via the SimpleDEX contract, some tokens of A to tokens of B provided a given exchange rate
- Below picture approving the SimpleDEX contract to spend given number of tokensA (for exchange of A to B)
- Below logs confirming successful transaction of tokens A to tokens B for given fixed exchange rate which here is given 1 for easy debugging