StarknetByExample
StarknetByExample copied to clipboard
Improvement: Constant Product AMM
Adds more explanations for the Constant Product AMM example.
Details to be Explained:
- approve() the router to spend tokens from the user
- How the swap function works: based on the constant product formula (x * y = k).
- Number of shares / token ratios for add/rm liquidity. Definition of pool