I wanted to look at a clean way to add DEFI++ as an option to buy/sell in the main exchange modal.
Reviewing the codebase, the reason it does not appear is because the setting preferMintOverBuy is set to true
Changing this setting adds the token to the swap list on Tokensswap.svelte and Exchange.svelte, as we want. It also has the following effects on Dashboard.svelte:
When opening up the list of products (Pies list on Dashboard.svelte), clicking the buy button links directly to the swap page, instead of to the DEFI++ page:
I wanted to look at a clean way to add DEFI++ as an option to buy/sell in the main exchange modal.
Reviewing the codebase, the reason it does not appear is because the setting
preferMintOverBuy
is set totrue
Changing this setting adds the token to the swap list on
Tokensswap.svelte
andExchange.svelte
, as we want. It also has the following effects onDashboard.svelte
:Dashboard.svelte
), clicking thebuy
button links directly to the swap page, instead of to the DEFI++ page:In summary: it appears to me to be absolutely fine to make this change, enabling the wider functionality