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
The contract "StableAssetApplication" proposes a swap of token "x" to token "y cross pools by depositing token "x in pool "In" and withdrawing token "y" from pool "Out" using "tapETH".
The idea is to replace this process by swapping token "x" to ETH from the pool "In" and swapping ETH to token "y" from the pool "Out".
Motivation
The default cross swap should use the swap functions to generate swap fee.
Action plan
Change the function "swapCrossPool" in the contract "StableAssetApplication" to use the swap function instea of "mint" and "redeem" functions.
Update unit tests for this function.
Detailed design
Swap token "x" to "WETH" from the pool "In".
Swap "WETH" to token "y" from the pool "Out".
Implementation Timeline
2 days
The text was updated successfully, but these errors were encountered:
Mars12-dev
changed the title
[RFC] SwapCrossPool
[RFC] Swap Cross Pools With ETH
Nov 15, 2023
It doesn't make sense to me: we are doing mint/redeemSingle and I think it's better in our use case. we have a mint fee of 0 and the 2*swap fee > redeem fee. plus, using two swaps actually moves some eth around.
if we use redeem single, we aren't moving any unrelated funds (i.e. eth).
traders should pay the swap fee. The objectif is not to reduce fee and propose for traders a swap alternative with less fee. Moreover, the mint fee cannot be set to zero. Indeed, in this case a trader can mint tapETH for free and do a single side redeem to recieve a token different of his deposit token, so he do a swap with a fee less than the swap fee.
Summary
The contract "StableAssetApplication" proposes a swap of token "x" to token "y cross pools by depositing token "x in pool "In" and withdrawing token "y" from pool "Out" using "tapETH".
The idea is to replace this process by swapping token "x" to ETH from the pool "In" and swapping ETH to token "y" from the pool "Out".
Motivation
Action plan
Detailed design
Implementation Timeline
2 days
The text was updated successfully, but these errors were encountered: