There is the implementation of a single function named execute() that consolidates all actions like Swap, Liquidity, Vote, Bribe, and Reward claim into one convenient transaction. This design makes it straightforward and user-friendly.
For users who are not accustomed to this approach, we have included additional functions compatible with the commonly used Solidly router interface. These functions allow you to specify Token A/B and choose between Volatile or Stable pairs for swaps and adding liquidity, utilizing familiar commands.
For more advanced actions or to optimize gas costs by combining multiple actions in a single transaction, the execute() function is available and is also integrated into our frontend interface. Comprehensive instructions for its usage are provided at the end of the document.
ABI file :
1. Getting pair address for two tokens.
Pool itself is a Gauge.
We DON'T USE WETH. Use address(0) as token address to find native ETH pairs.