Skip to content

Commit 910f064

Browse files
committed
rename stuff
1 parent 271ddd5 commit 910f064

File tree

5 files changed

+6
-109
lines changed

5 files changed

+6
-109
lines changed

projects/lfj/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ integration with lfg
1515
- "Swap 2 USDC to USDT on AVALANCHE"
1616
- "Swap all my USDC for 50 USDT on AVALANCHE"
1717
- "Swap all my USDC for 50 USDT on AVALANCHE and send it to vitalik.eth"
18+
- "Swap 2 USDC to USDT on AVALANCHE with a maximum slippage of 0.1%"
1819

1920
## Available Functions
2021

21-
- swapExact
22+
- swapTokens
2223

2324
## Installation
2425

projects/lfj/functions/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './swapExact';
1+
export * from './swapTokens';

projects/lfj/functions/swapExactIn.ts

-104
This file was deleted.

projects/lfj/functions/swapExact.ts projects/lfj/functions/swapTokens.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface Props {
1818
outputTokenAddress: Address;
1919
}
2020

21-
export async function swapExact(
21+
export async function swapTokens(
2222
{ chainName, account, amount, inputTokenAddress, outputTokenAddress, isExactIn, maxSlippageInPercentage = '0.5', recipient = account }: Props,
2323
{ sendTransactions, notify, getProvider }: FunctionOptions,
2424
): Promise<FunctionReturn> {

projects/lfj/tools.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { supportedChains } from './constants';
33

44
export const tools: AiTool[] = [
55
{
6-
name: 'swapExact',
7-
description: '',
6+
name: 'swapTokens',
7+
description: 'Swap tokens using lfj.gg',
88
required: ['isExactIn', 'chainName', 'account', 'amount', 'recipient', 'maxSlippageInPercentage', 'inputTokenAddress', 'outputTokenAddress'],
99
props: [
1010
{

0 commit comments

Comments
 (0)