-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from router-protocol/update/pf-testnet
update: pf slippageTolerance
- Loading branch information
Showing
4 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -598,6 +598,7 @@ const getQuote = async () => { | |
amount: '10000000000000', // source amount | ||
fromTokenChainId: '80001', // Mumbai | ||
toTokenChainId: '43113', // Fuji | ||
slippageTolerance: 1, // optional | ||
additionalGasLimit: '100000', // Additional gas limit to execute instruction on dest chain | ||
partnerId: 0, // (Optional) - For any partnership, get your unique partner id by contacting us on Telegram or emailing us at [email protected] | ||
}; | ||
|
@@ -629,7 +630,6 @@ const getTransaction = async (quoteData) => { | |
try { | ||
const res = await axios.post(txDataUrl, { | ||
...quoteData, | ||
slippageTolerance: 0.5, | ||
senderAddress: '<sender-address>', | ||
receiverAddress: '<receiver-address>', | ||
contractMessage: '<contract-message or instruction>', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters