Skip to main content

ISlpManager Interface

The ISlpManager interface defines the functions available in the SlpManager contract, which manages the Staked Liquidity Provider (SLP) token system for the Satoshi Perps protocol.

Liquidity Management

Adds liquidity to the protocol and mints SLP tokens.
Burns SLP tokens and returns the underlying assets.

AUM and Price Calculation

Calculates the total Assets Under Management (AUM) of the protocol.
Calculates the AUM in terms of the pool token.
Calculates the price of SLP tokens based on the AUM and total supply.

Fee and AUM Management

Sets the cooldown duration for SLP token redemptions.
Sets adjustments to the AUM calculation for accurate pricing.

State Access

Returns the cooldown duration for SLP token redemptions.
Returns the amount added to the AUM calculation.
Returns the amount deducted from the AUM calculation.
Returns the address of the SLP token.
Returns the address of the Vault contract.

Usage Notes

  • The SlpManager acts as the minting and burning authority for SLP tokens.
  • Liquidity providers receive SLP tokens representing their share of the pool.
  • SLP tokens accrue value as the protocol earns fees.
  • Withdrawals are subject to a cooldown period to prevent flash loan attacks.
  • The AUM calculation determines the value backing SLP tokens, including assets in the Vault and any adjustments.

Security Considerations

  • The cooldown period protects the protocol from potential flash loan exploits.
  • AUM adjustments should be used carefully as they directly affect the price of SLP tokens.
  • Minimum output values protect users from slippage during liquidity operations.