Skip to content

Commit

Permalink
Merge branch 'main' of github.com:BreadchainCoop/bread2gnosispay
Browse files Browse the repository at this point in the history
  • Loading branch information
RonTuretzky committed Mar 17, 2024
2 parents beed53d + 011e9e1 commit 7f3d3a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<h2>Bread2Gnosis Token Swap</h2>

<div>
<label for="amount">SAFE Wallet:</label>
<label for="amount">Gnosis Pay address:</label>
<input type="text" id="safeWallet" placeholder="0xSafeWalletAddress">
</div>
<div>
<label for="amount">Amount (BREAD):</label>
<label for="amount"><a href="https://breadchain.xyz">BREAD</a> amount to redeem:</label>
<input type="text" id="amount" placeholder="1.0">
</div>
<div>
<label for="minDy">Minimum Received (GBPe):</label>
<label for="minDy">Minimum accepted GBPe after slippage:</label>
<input type="text" id="minDy" placeholder="0.9">
</div>
<button id="swapButton">Swap and Transfer</button>
Expand Down Expand Up @@ -62,8 +62,10 @@ <h2>Bread2Gnosis Token Swap</h2>
console.log(`Swap and transfer transaction sent. Waiting for confirmation... Tx: ${tx.hash}`);
await tx.wait();
console.log(`Transaction successful. Tx: ${tx.hash}`);
alert("Swap successful!");
} catch (error) {
console.error(`Transaction failed: ${error.message}`);
alert("Transaction failed. Please check the browser console for more details.")
}
}

Expand Down

0 comments on commit 7f3d3a3

Please sign in to comment.