Introduction

Token Functions

Providing liquidity

The function allows LPs to provide liquidity to the pool. They receive pool tokens in exchange, based on the amount the transfer interactions hold. The process sends back the tokens in case the LP did not provide an equivalent value of tokens, unless the reserves are empty (in this case the LP sets the initial price)

Swapping

This function lets users swap between two tokens.

Withdrawing liquidity