πŸ’±Deployed from factory DEX

This contract would be deployed after calling add_pool the Factory entrypoint. Contract is almost close to Standalone version of DEX contract by ABI and storage. The distinction of contracts described in The main difference in implementations.

Initialization of contract

The initialization section describes methods that are called only by the Factory contract. These methods are included in start_dex call and used for initial setup and start DEX pool.

🟑Initializationchevron-right

Contract storage

Storage of contract differs from Standalone only with excluding developer config in exchange of adding factory address and pausing of contract.

πŸ“„Storage and types overviewchevron-right

Core DEX methods

Main methods of DEX, that are able to use by anyone. These methods include investing, swapping, and divesting. Also, there are additional methods for staking QUIPU tokens for earning additional rewards and claiming referral rewards.

πŸ”΅DEX methodschevron-right

Developer method

circle-exclamation

This entrypoint is designed to claim developer rewards from a specific contract (DEX pool).

claim_developerchevron-right

Admin methods

circle-exclamation

The next section is about entrypoints for managing fees, "A" constant change, editing the manager list, and changing an admin address.

πŸ›‘Admin methodschevron-right

Last updated