Swaps
Getting a Quote
import { Token } from '@storyhunt/sdk-core';
interface ExampleConfig {
rpc: {
local: string;
mainnet: string;
};
tokens: {
in: Token;
amountIn: number;
out: Token;
poolFee: number;
};
}
export const CurrentConfig: ExampleConfig = {
rpc: {
local: 'http://localhost:8545',
testnet: 'https://odyssey.storyrpc.io',
},
tokens: {
in: USDC_TOKEN,
amountIn: 1000,
out: WIP_TOKEN,
poolFee: FeeAmount.MEDIUM,
},
};