Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 321 Bytes

design_pattern_decisions.md

File metadata and controls

10 lines (5 loc) · 321 Bytes

Design patterns used:

1)Inter-Contract Execution: SwapTokens Contract calls TokenA and TokenB functions by importing them (aka dependency injection).

  1. Inheritance and Interfaces: TokenA and TokenB contracts are ERC20 tokens, they inherit from @openzeppelin/contracts/token/ERC20/ERC20.sol contract.