Skip to content

Latest commit

 

History

History
executable file
·
11 lines (6 loc) · 1.4 KB

routers.md

File metadata and controls

executable file
·
11 lines (6 loc) · 1.4 KB

Main Router

Main Router is an on-chain program that handles the creation, updates, and deletion of all metadata objects: tokens, pools, farms, vaults, program IDs, and generic key-value records, such as user or vault stats.

Interaction with the Main Router can be done via Farm Control CLI, Rust Client, or calling instructions directly. The list of instructions can be found here.

Protocol Routers

Protocol Routers are on-chain programs with a common interface for interaction with Raydium, Saber, and Orca Pools and Farms. They perform in and out amounts calculations and safety checks for tokens spent and received. They don't hold user funds but validate, wrap, and send instructions to the AMMs and Farms.

Interaction with Protocol Routers can be done via Farm Client CLI, Rust Client, HTTP Client, or calling instructions directly. The list of instructions can be found here.