mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-27 23:25:51 +00:00
add better error handling and double token amm functionality
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<table>
|
||||
<table style="padding-bottom: 400px;">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<td>
|
||||
@@ -107,27 +107,84 @@
|
||||
Currency
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="standbyCurrencyField" size="40" value="USD"></input>
|
||||
<input type="text" id="standbyCurrencyField" size="40"></input>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p align="left">
|
||||
<textarea id="standbyResultField" cols="60" rows="20" style="resize: none;"></textarea>
|
||||
</p>
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td align="right">
|
||||
Asset 1 Currency
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="asset1CurrencyField" size="40"></input>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
Asset 1 Issuer
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="asset1IssuerField" size="40"></input>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
Asset 1 Amount
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="asset1AmountField" size="40"></input>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
Asset 2 Currency
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="asset2CurrencyField" size="40"></input>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
Asset 2 Issuer
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="asset2IssuerField" size="40"></input>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
Asset 2 Amount
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="asset2AmountField" size="40"></input>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p align="left">
|
||||
<textarea id="standbyResultField" cols="80" rows="20" ></textarea>
|
||||
</p>
|
||||
</td>
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td align="center" valign="top">
|
||||
<br><br><br><br>
|
||||
<td align="center" valign="top" style="padding-top: 165px;">
|
||||
<br>
|
||||
<button type="button" onClick="sendXRP()">Send XRP></button>
|
||||
<br/><br/>
|
||||
<button type="button" onClick="createTrustline()">Create TrustLine</button>
|
||||
<br/>
|
||||
<button type="button" onClick="sendCurrency()">Send Currency</button>
|
||||
<br/>
|
||||
<button type="button" onClick="getBalances()">Get Balances</button>
|
||||
<button type="button" onClick="getBalances()" style="margin-bottom: 160px;">Get Balances</button>
|
||||
<br/>
|
||||
<button type="button" onClick="checkAMM()">Check AMM</button>
|
||||
<br/>
|
||||
@@ -142,13 +199,13 @@
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<table style="padding-bottom: 350px;">
|
||||
<tr>
|
||||
<td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" valign="top">
|
||||
<td align="center" valign="top" style="padding-bottom: 100px;">
|
||||
<button type="button" onClick="oPsendXRP()">< Send XRP</button>
|
||||
<br/><br/>
|
||||
<button type="button" onClick="oPcreateTrustline()">Create TrustLine</button>
|
||||
@@ -219,12 +276,14 @@
|
||||
Currency
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="operationalCurrencyField" size="40" value="USD"></input>
|
||||
<input type="text" id="operationalCurrencyField" size="40"></input>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p align="right">
|
||||
<textarea id="operationalResultField" cols="80" rows="20" ></textarea>
|
||||
<textarea id="operationalResultField" cols="60" rows="20" style="resize: none;"></textarea>
|
||||
<br><br>
|
||||
<textarea id="ammInfoField" cols="60" rows="20" style="resize: none;"></textarea>
|
||||
</p>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user