StarknetByExample icon indicating copy to clipboard operation
StarknetByExample copied to clipboard

Improvement: Constant Product AMM

Open julio4 opened this issue 8 months ago • 3 comments

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

julio4 avatar Jun 08 '24 07:06 julio4