You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description Swappa provides smart contracts and a javascript library that allows consumers to find and execute trades on CELO at the best price.
Swappa includes an interface ISwappaPair that provides an abstraction over a "connector" to a specific dex and exposes methods to get the expected output amount and execute a swap.
Swappa contains an existing contract PairMento that implements the ISwappaPair interface and enables the retrieval and swaps using Mento exchanges.
As Swappa is fully open source we can add a new contract, PairMentoV2, that implements the ISwappaPair interfaces and allows the swappa router to query and execute swaps against MentoV2.
TODO: @bayological
Look into how TS classes are used and determine how to create a new class MentoV2.ts that provides necessary functions. Maybe ask ZViad or DiWu about this, may be as simple as inheriting from Pair and implementing base functions.
Acceptance Criteria
A new contract PairMentoV2, that implements ISwappaPair is created and allows consumers to query the broker for prices and execute trades on behalf of the user
The new contract is deployed, with its address added to a new json file in tools/deployed
The text was updated successfully, but these errors were encountered:
Description
Swappa provides smart contracts and a javascript library that allows consumers to find and execute trades on CELO at the best price.
Swappa includes an interface ISwappaPair that provides an abstraction over a "connector" to a specific dex and exposes methods to get the expected output amount and execute a swap.
Swappa contains an existing contract PairMento that implements the ISwappaPair interface and enables the retrieval and swaps using Mento exchanges.
As Swappa is fully open source we can add a new contract, PairMentoV2, that implements the ISwappaPair interfaces and allows the swappa router to query and execute swaps against MentoV2.
TODO: @bayological
Look into how TS classes are used and determine how to create a new class MentoV2.ts that provides necessary functions. Maybe ask ZViad or DiWu about this, may be as simple as inheriting from Pair and implementing base functions.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: