Skip to content

Commit fc10666

Browse files
committed
fix: use symbol in examples
1 parent e846b10 commit fc10666

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/actions/mayan/swap.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const swapAction: Action = {
1313
input: {
1414
amount: "0.02",
1515
fromChain: "solana",
16-
fromToken: "0x0000000000000000000000000000000000000000",
16+
fromToken: "SOL",
1717
toChain: "polygan",
18-
toToken: "0x0000000000000000000000000000000000000000",
18+
toToken: "pol",
1919
dstAddr: "0x0cae42c0ce52e6e64c1e384ff98e686c6ee225f0",
2020
},
2121
output: {
@@ -24,15 +24,15 @@ const swapAction: Action = {
2424
url: "https://explorer.mayan.finance/swap/3JywZA6om5t1c5gT1bkFX91bEewHGmntJAqRZniEzETDEBMERvzxBeXVUUMFaernRCmvniZTKsAM7TVG3CTumc12",
2525
},
2626
explanation:
27-
"swap 0.02 0x0000000000000000000000000000000000000000 from solana to 0x0000000000000000000000000000000000000000 polygon destination 0x0cae42c0ce52e6e64c1e384ff98e686c6ee225f0",
27+
"swap 0.02 SOL from solana to pol polygon destination 0x0cae42c0ce52e6e64c1e384ff98e686c6ee225f0",
2828
},
2929
{
3030
input: {
3131
amount: "0.02",
3232
fromChain: "solana",
33-
fromToken: "0x0000000000000000000000000000000000000000",
33+
fromToken: "sol",
3434
toChain: "solana",
35-
toToken: "HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3",
35+
toToken: "hnt",
3636
dstAddr: "4ZgCP2idpqrxuQNfsjakJEm9nFyZ2xnT4CrDPKPULJPk",
3737
},
3838
output: {
@@ -41,7 +41,7 @@ const swapAction: Action = {
4141
url: "https://explorer.mayan.finance/swap/2GLNqs5gXCBSwRt6VjtfQRnLWYbcU1gzkgjWMWautv1RUj13Di4qJPjV29YRpoAdMYxgXj8ArMLzF3bCCZmVUXHz",
4242
},
4343
explanation:
44-
"swap 0.02 0x0000000000000000000000000000000000000000 from solana to HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3 solana destination 4ZgCP2idpqrxuQNfsjakJEm9nFyZ2xnT4CrDPKPULJPk",
44+
"swap 0.02 sol from solana to hnt solana destination 4ZgCP2idpqrxuQNfsjakJEm9nFyZ2xnT4CrDPKPULJPk",
4545
},
4646
],
4747
[

src/langchain/mayan/swap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export class SolanaCrossChainSwapTool extends Tool {
88
Inputs ( input is a JSON string):
99
amount: string, eg "0.02" or "7"
1010
fromChain: string, eg "solana" or "ethereum"
11-
fromToken: string, eg "0x0000000000000000000000000000000000000000" or "hntyVP6YFm1Hg25TN9WGLqM12b8TQmcknKrdu1oxWux" or "sol" or "Pol"
11+
fromToken: string, eg "sol" or "Pol" or "0x0000000000000000000000000000000000000000" or "hntyVP6YFm1Hg25TN9WGLqM12b8TQmcknKrdu1oxWux"
1212
toChain: string, eg "solana" or "ethereum"
13-
toToken: string, eg "0x0000000000000000000000000000000000000000" or "0x6b175474e89094c44da98b954eedeac495271d0f" or "SOL" or "eth"
13+
toToken: string, eg "SOL" or "eth" or "0x0000000000000000000000000000000000000000" or "0x6b175474e89094c44da98b954eedeac495271d0f"
1414
dstAddr: string, eg "4ZgCP2idpqrxuQNfsjakJEm9nFyZ2xnT4CrDPKPULJPk" or "0x0cae42c0cE52E6E64C1e384fF98e686C6eE225f0"
1515
slippageBps: number, eg 10 (optional)`;
1616

src/tools/mayan/swap.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ async function swapEVM(
215215
dstAddr,
216216
null,
217217
signer,
218-
// TODO: permit.
219-
null,
218+
permit,
220219
null,
221220
null,
222221
);

0 commit comments

Comments
 (0)