Liquis Documentation
Developer Docs
Developer Docs
  • Developer Documentation
  • Smart Contracts
    • 🧙‍♂️Core
      • BaseRewardPool4626
      • CrvDepositor
      • LIQ Locker
      • Booster
    • 🦸Peripheral
      • LitDepositorHelper
      • FlashOptionExerciser
      • PooledOptionsExerciser
      • ClaimFeesHelper
      • BoosterHelper
      • LiquisClaimZap
      • LiquisViewHelpers
    • 👷‍♂️Diagrams
    • 💰vAPR
      • 🤩oLIT Rewards
      • 🌊LIQ Rewards
      • ⚡Swap APR
      • 🚀liqLIT Rewards
    • 😎vlLIQ
      • 📈Rewards
      • 💸Bribes
Powered by GitBook
On this page
  1. Smart Contracts
  2. Peripheral

LitDepositorHelper

Converts LIT -> balBPT and then wraps to liqLIT via the crvDepositor

A user deposits LIT into the crvDepositor by first converting them into LIT-WETH BPT. Can also decide if wants to _lock them in veLIT or paying a fee to the locker by only depositing them, the user can also decide if staking the liqLIT token into liqLIT reward pool or getting them back.

 function deposit(
        uint256 _amount,
        uint256 _minOut,
        bool _lock,
        address _stakeAddress
    ) external returns (uint256 bptOut) 

Allows to deposit on behalf of some other user, for the rest it works as function deposit above

function depositFor(
        address _for,
        uint256 _amount,
        uint256 _minOut,
        bool _lock,
        address _stakeAddress
    ) external returns (uint256 bptOut) 

Allows to convert LILT into LIT-WETH and sends BPT back to the user

function convertLitToBpt(
        uint256 _amount, 
        uint256 _minOut
     ) external returns (uint256 bptOut)
PreviousPeripheralNextFlashOptionExerciser

Last updated 1 year ago

🦸