Ocean Primitives

Ocean Primitives are specific types of primitives designed to interact with Ocean. At a minimum, they must implement the computeOutputAmount and computeInputAmount functions from the IOceanPrimitive interface.

Their main role is to compute exchange rates. For instance, in the context of an AMM, they are tasked with determining the swap rate. Conversely, the Ocean's responsibility lies in updating the balances of users, the AMM, and any other associated primitives.

Ocean Primitives can be classified into two categories:

  1. Shell Primitives: These are first-party primitives built specifically for The Ocean.

  2. Community Primitives: Open to development by any interested parties.

Last updated