Tutorial 1: Building a Simple Aggregator

In this tutorial, we will demonstrate how to implement a simple aggregator by using Universal Rabbit Hole, step by step.

  • The core logic is less than 100 lines of code

    • RaydiumFarm

    • OrcaFarm

    • TulupVault

  • See how simple it is to use gateway to make your own aggregator

  • What's next?

    • Develop higher level DeFi composability

    • Explore other supported protocols

    • Compose!

Things you will be doing

  • Instantiate DeFi instances in 1 line of code

  • Switch to different DeFi protocol in 1 line of code

  • Compose different DeFi protocols in less than 5 lines of code

Things you will NOT be doing

  • You won't touch the details of various SDK

  • You won't have to encode / decode the on-chain account data

  • You won't have to figure out how to assemble the instruction

Last updated