🔮Overview

A router system which consolidates protocol interactions within a secure Router/Agent architecture in a single transaction.

Protocolink is protocol-agnostic. All protocol-related code is defined in the protocolink-logics repository instead of in the contracts. Protocolink also offers Protocolink API and Protocolink SDK for developers to create transactions.

When a user tries to execute a transaction

  • ERC-20 tokens are transferred through the Permit2.

  • The data is passed to an exclusive Agent through the Router.

  • The Agent transfers tokens from the user and executes the data.

  • After the data is executed, the Agent returns tokens back to the user.

Protocolink contracts consist of

  • Router: The single entry point for users to interact with. The Router forwards the data to an Agent when executing a transaction.

  • Agent: The execution unit of user transactions. The Agent executes the data like token transfer, liquidity provision, and yield farming.

  • Callback: The entry point for protocol callbacks to re-enter the Agent in a transaction.

  • Utility: The extensions for the Agent to perform extra actions like interacting with specific protocols, calculating token prices, and managing user data.

You can find the details of each component on the following pages.

Last updated