How it Works

Easy Mode wraps the core PlazmCreateAndStake contract so that swapping, fee deduction, position creation, and refunds all happen atomically in a single transaction.

Easy Create

  1. Send ETH, ESHARES, or any supported token — Easy Mode accepts the input you have on hand.

  2. Automatic swap — If you send a token other than ETH or ESHARES, the contract swaps it to ETH (or uses ESHARES directly) via Uniswap V2 or V3.

  3. Fee deduction — A small convenience fee (currently 0.50 %) is taken from the input and forwarded to the genesis wallet.

  4. Create execution — The remaining value is forwarded to createPlazm, which locks it for your chosen Power level and duration (1 – 77 days).

  5. Position recorded — An Easy Mode position ID is assigned so you can track, claim, or compound it later.

  6. Refund — Any excess ETH that wasn't needed is automatically returned to your wallet.

Easy Stake

  1. Send ETH or any supported token — Easy Mode determines how much Plazm it can acquire and how much ETH is needed for the staking fee.

  2. Optimal split — A binary-search algorithm on-chain calculates the best split between buying Plazm and reserving ETH for the required stake fee, maximising the amount you stake.

  3. Swap execution — The contract swaps the appropriate portions through Uniswap V2 or V3.

  4. Fee deduction — The convenience fee is taken either in ETH or in the input token (your choice via payFeeInEth).

  5. Stake execution — The acquired Plazm is staked for your chosen duration, and the ESHARES-equivalent fee is paid in ETH.

  6. Position recorded & refund — A position ID is created, and any leftover ETH or tokens are returned.

Last updated