Skip to content

ajneelansh/SimpleDEX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published