Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.38 KB

README.md

File metadata and controls

37 lines (20 loc) · 1.38 KB

SimpleDEX

STEP 1 => Deployed the Token contracts for TokenA and TokenB and copied its address to deploy the SimpleDEX contract.

Screenshot from 2024-09-08 15-52-26 STEP 2 =>

Deploying SimpleDEX.sol with Contract address of TokenA and TokenB with exchange rate 5.

Screenshot from 2024-09-08 15-57-02 STEP 3 =>

Approving and transferring the tokens to SimpleDEX contract.

Screenshot from 2024-09-08 16-03-35 STEP 4 =>

Interacting with SimpleDEX.sol and intiating exchangeTokenAForTokenB function with 500 amount of token.

Screenshot from 2024-09-08 16-08-04 STEP 5 =>

Verifying the updated balance of TokenA and TokenB , Here TokenA has 10500 after exchange TokenB has 7500 after exchange as exchange rate was 5 hence 5*500 = 2500 deducted. Updated Balances can be verified under balanceOf function of both tokens.

Screenshot from 2024-09-08 16-04-49

Screenshot from 2024-09-08 16-05-13