Sentre Legacy
  • πŸ₯³Welcome
  • Getting Started
  • DApp Manifest
  • Folder Structure
  • Available Scripts
  • Development
    • View
    • Model & Controllers
    • Providers
      • UI Provider
      • Wallet Provider
      • Account Provider
      • Mint Provider
    • Static
    • Global variables
    • Configs
  • Advanced Usage
    • β˜€οΈTheme
    • πŸ‘˜Customizing Styles
    • πŸͺHooks
  • 🀩Submitting DApps
  • References
  • Best Practices
  • Troubleshoots
  • 🎨Design Pricinples
    • Button
    • Card
    • Checkbox
    • Color
    • Corner radius
    • Drawer
    • Dropdown
    • Grid
    • Icons
    • Input
    • List
    • Menu
    • Modal
    • Radio
    • Select
    • Shadow
    • Spacing
    • Switch
    • Tabs
    • Tooltip
    • Table
    • Typography
  • πŸ“„Litepaper
    • Introduction
    • Industry Problems
    • Sentre: An All-in-one Solution
      • The Open Protocol
      • Liquidity Efficiency
    • SEN as the Heart of the Ecosystem
      • Asymmetric Deposit
      • Adaptive Fee Model
      • The Triad Pool
      • Simulated Mesh Trading
      • Token Use Cases
    • Conclusion
Powered by GitBook
On this page
  1. Litepaper
  2. SEN as the Heart of the Ecosystem

The Triad Pool

Swap any and every pairs. Never think about how you should divide your portfolio ever again.

PreviousAdaptive Fee ModelNextSimulated Mesh Trading

Last updated 3 years ago

Recall that the most well-adopted CPF is two-dimensional where RAΓ—RB=kR_A\times{R_B}=kRA​×RB​=k. In Sentre, however, the pool can be optionally organized into three tokens. It’s now the pool of triad and the CPF turns to three-dimensional where the third dimension is for SENSENSEN as in Fig. 5.

Fig. 5. A visualization of the 3D CPF.

Definition 3. For a pool of AAA, BBB, and compulsory SENSENSEN, the 3D constant product function is:

(33) RAΓ—RBΓ—RSEN=kR_A\times{R_B}\times{R_{SEN}}=kRA​×RB​×RSEN​=k​,

where kkk is a constant.

When a trader swaps AAA from BBB, for example, the third token, which is SENSENSEN​ in this case, will be ignored. The formula is boiled down to RAΓ—RB=kRSEN=kβ€²R_A\times{R_B}=\frac{k}{R_{SEN}}=k'RA​×RB​=RSEN​k​=k′​, where kβ€²k'kβ€² is a constant as well.

Assume a trader swaps rAr_ArA​ for rBr_BrB​, the newest state of token AAA would be RAβ€²=RA+rAR'_A=R_A+r_ARA′​=RA​+rA​​. Because of the CPF, we have:

(34) RBβ€²=RARBRAβ€²=RARBRA+rAR'_B=\frac{R_AR_B}{R'_A}=\frac{R_AR_B}{R_A+r_A}RB′​=RA′​RA​RB​​=RA​+rA​RA​RB​​.

To deposit to the pool, a liquidity provider (LP) theoretically needs to divide their portfolio into three equal portions regarding value. However, LPs never worry about this due to Simulated Single Exposure which allows people to deposit even on one side (see ). Especially, although the formula has a higher dimension, the formula isn’t much different from the 2D CPF in trading.

πŸ“„
Asymmetric Deposit