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
We are running into issues when people don't send correct amounts to the swap address, or send a transaction with low fee which doesn't get confirmed in time - because of this we need to process those swaps manually & could lead to loss of funds for the user. This solution fixes those issues.
Expected complexity
Medium
Comments
We will keep using the direct payment when people use browser wallet, as we have full control of the amount being sent and fee being paid.
For swaps from external wallets we will use ephemeral bitcoin address, which will receive the transaction first, when received, the front-end checks the amount & fee, if valid sends the funds to the swap address, if invalid prompts the user to refund (here the user can also have an option to create a new swap and use the funds directly, or just deposit the rest in a separate transaction), this also allows multi-LP swaps.
The ephemeral needs to be produced from a signature over a known message by the Smart chain wallet - this requires the wallet to use determinstic nonce (this works for Solana wallets), this way the user can recover his bitcoin funds (if they ever become stranded) from any browser, if he uses the same Smart chain wallet.
The text was updated successfully, but these errors were encountered:
Why do we need this?
We are running into issues when people don't send correct amounts to the swap address, or send a transaction with low fee which doesn't get confirmed in time - because of this we need to process those swaps manually & could lead to loss of funds for the user. This solution fixes those issues.
Expected complexity
Medium
Comments
We will keep using the direct payment when people use browser wallet, as we have full control of the amount being sent and fee being paid.
For swaps from external wallets we will use ephemeral bitcoin address, which will receive the transaction first, when received, the front-end checks the amount & fee, if valid sends the funds to the swap address, if invalid prompts the user to refund (here the user can also have an option to create a new swap and use the funds directly, or just deposit the rest in a separate transaction), this also allows multi-LP swaps.
The ephemeral needs to be produced from a signature over a known message by the Smart chain wallet - this requires the wallet to use determinstic nonce (this works for Solana wallets), this way the user can recover his bitcoin funds (if they ever become stranded) from any browser, if he uses the same Smart chain wallet.
The text was updated successfully, but these errors were encountered: