ngmitam / remitano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REMITANO

Description

This is an Anchor contract functionality for swapping tokens on the Solana blockchain. It supports the following functionality:

  • Swap tokens
  • Add liquidity
  • Remove liquidity

Usage

How to swap tokens

yarn swap <token> <amount> <moveTokenAccount>
  • token: The token used to swap
  • amount: The amount of token to swap
  • moveTokenAccount: The account to send/receive the move token

Example:

yarn swap sol 0.001 36eHekjRz2cQuE9vqYohGpXRnDBN839eRPCayAsFRVz4
yarn swap move 0.01 36eHekjRz2cQuE9vqYohGpXRnDBN839eRPCayAsFRVz4
  • requires the user have set path to the anchor wallet
ANCHOR_WALLET=/Users/ngmitam/.config/solana/id.json

About


Languages

Language:Rust 56.0%Language:TypeScript 30.5%Language:JavaScript 13.5%