🔵DEX methods
The core entrypoints
Investing
Any user could invest their own liquidity to contract and receive Liquidity Pool Token (LPT). LPT allows earning interest from Swapping and imbalanced invests/divests.
Balanced invest
If user performs investment in corresponding ratios (example from Examples hint [4 TBC
; 2 TXZ
; 1 TEH
] is balanced input), it is expected to no additional fees are charged.
Imbalanced invest
If there is any LPT already exists, and invest is imbalanced (example from Examples hint [1 TBC
; 2 TXZ
; 1 TEH
] and [1 TXZ
] and [8 TXZ
; 4 TEH
] is all imbalanced inputs) the additional fee charged for balancing pool reserves.
More info about invest entrypoint written out on the corresponding page.
investSwapping
The main idea of DEX is to swap between different liquidity entries. This contract used swap math, which tried to keep math calculations as close as possible to Curve math. Each swap has a 0.05% fee that goes to liquidity providers (this part of the reward stays in liquidity pool), QUIPU pool stakers (if no one had staked yet, this part of the fee goes to liquidity providers), referral (if not provided goes to default referral address), and to the developer.
swapDivesting
The liquidity provider could take back his liquidity by performing divest operation. The provider could choose a more convenient divest method from 3 variants: balanced/imbalanced/in one coin. Info about the difference of variants described at Divesting page.
📤DivestingAdditional interest
Participators of DEX pools are allowed to earn additional rewards as referrals or by staking QUIPU tokens. For more information about earning rewards in this way, follow the page under this text.
🤑DEX rewardsLast updated