Closed andywer closed 3 years ago
Just thought about it and we should probably change the withdrawal code, so that the withdrawal amount is only deducted from the Pendulum account at the very end of the process when we know that the payout transaction on Stellar has been successful. Might need to block that amount of the balance between withdrawal initiation and settlement or re-mint those funds in case of failure.
Anyway, good enough as a proof of concept for now. Still need to fix those new merge conflicts, though.
Implementation of withdrawals from Pendulum to Stellar.
Limitations
Will always send XLM right now – need to add code to translate between Stellar and Pendulum assetsHow to use it
Developer
=>Extrinsics
stellarBridge
=>withdrawToStellar
, select account, amount and asset, finally sign and submitAfter a couple of seconds the Stellar account with the same public key as the withdrawing Pendulum account should have received the payout. The Pendulum account's balance should have been deducted.