Skip to main content
DeFi options protocol known for Squeeth (squared ETH), a power perpetual that provides leveraged ETH exposure without liquidations.

What it offers

  • burnSqueeth: Burn oSQTH to close/reduce a squeeth position
  • withdrawCollateral: Withdraw ETH collateral from a vault
  • mintSqueeth: Mint oSQTH (open squeeth position) by depositing ETH collateral
  • deposit: Deposit additional ETH collateral to an existing vault

Notes

  • Squeeth = squared ETH exposure (ETH^2), providing leveraged upside without liquidations
  • Funding rate applies instead of liquidations - long positions pay short positions
  • oSQTH is the ERC-20 power perpetual token
  • Vaults hold ETH collateral backing minted oSQTH
  • vaultId=0 in mintPowerPerpAmount creates a new vault
  • Can use Uniswap V3 LP NFTs as collateral via uniTokenId parameter

Its names in a program

On Ethereum, Opyn is a namespace: its contracts need no import.

Deployments

ABI

ControllerABI

import ControllerABI from "./protocols/opyn/ControllerABI.json"; Speaks for: controller.
  • mintPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _uniTokenId) payable returns (uint256, uint256)
  • burnPowerPerpAmount(uint256 _vaultId, uint256 _powerPerpAmount, uint256 _withdrawAmount) returns (uint256 wPowerPerpAmount)
  • deposit(uint256 _vaultId) payable
  • withdraw(uint256 _vaultId, uint256 _amount)

Next steps