Swap tokens on Velodrome.
npm install @goat-sdk/plugin-velodrome
yarn add @goat-sdk/plugin-velodrome
pnpm add @goat-sdk/plugin-velodrome
import { velodrome } from "@goat-sdk/plugin-velodrome";
const tools = await getOnChainTools({
wallet: // ...
plugins: [velodrome()],
});
For improved integration to work seamlessly with the ERC20 plugin, you can configure your tools as follows:
import { MODE, erc20 } from "@goat-sdk/plugin-erc20";
import { modeGovernance } from "@goat-sdk/plugin-mode-governance";
const tools = await getOnChainTools({
wallet: // ...
plugins: [
erc20({ tokens: [MODE] }),
modeGovernance()
]
});
- Add liquidity
- Swap tokens