Closed jordaniza closed 2 years ago
Some additional changes:
swap
from the BCP page.Outstanding issues:
@Alexintosh I updated the PR based on our discussion:
exitswapPoolAmountIn
contract call instead of the other oneBased on comments I have added two further changes:
sellToken
allowance: await approveMax(sellToken.address, spender);
sellToken.allowance = ethers.constants.MaxUint256;
This prevents the issue whereby the user is waiting for approvals to update, straight after approving the contract.
isConfirmingTx
which will cause the swap button to be disabled and render Swap in Progress...
until the swap resolves. This at the very least gives visual feedback to the user that the swap is happening and prevents accidentally wasting gas on a double spend
The swap modal for DEFI+S/L => DEFI++ is now extended to multiple assets, whilst requiring a single buy token.
This means we can swap:
The swap modal is configured to add a flexible launcher and take a contract address. It can therefore be reused in several places as needed.