AthanorLabs / atomic-swap

💫 ETH-XMR atomic swap implementation
GNU Lesser General Public License v3.0
341 stars 44 forks source link

ensure XMR taker has sufficient funds (including all gas costs) #437

Closed dimalinux closed 1 year ago

dimalinux commented 1 year ago

We should verify that the XMR taker has enough funds for all of the following before allowing her to take an offer: Provided amount + NewSwap Gas + SetRead Gas + Refund Gas

Right now we only verify that the taker has enough ETH for the provided amount.