PowerMaker
  • PowerMaker Document Hub
  • Disclaimer
  • Resources
  • Quick Start
    • FAQ
    • Providing Liquidity
    • Tutorial: Perform a Trade
    • Tutorial: Providing Liquidity
    • Tutorial: Create a Market
  • Concepts
    • Power Perpetuals
      • PPT - Power Perpetual Token
    • Example Use Cases
      • Hedging Uniswap V3
  • Protocol
    • Overview
    • Capped Power Invariant
    • Understanding Returns
    • Security
    • Protocol Participants
    • Smart Contracts
      • Factory
      • Pair
      • ImmutableState
      • JumpRate
      • Lendgine
      • LendgineRouter
      • LiquidityManager
    • Deployed Contracts
  • Discord
  • Twitter
  • Github
Powered by GitBook
On this page
  • Lendgines
  • Power Perpetuals
  • Liquidity Provider (LP) Shares
  • Interest Rate Curve
  1. Protocol

Overview

PreviousHedging Uniswap V3NextCapped Power Invariant

Last updated 1 year ago

PowerMaker is a fully autonomous protocol built to run on the Ethereum Virtual Machine. It is implemented in a system of non-upgradeable smart contracts. It obviates the need for trusted intermediaries, prioritizing decentralization, censorship resistance, and security. PowerMaker is open-source software licensed under the .

Each PowerMaker lendgine--short for lending engine--manages a liquidity pool made up of reserves of two tokens as well as the borrowers of this liquidity.

Lendgines

Each lendgine is described by two ERC20 token address, each with a exponential that is essentially a multiplier. Tokens in a lendgine are not interchangeable, meaning that depending on the order in which they are entered, an entirely different market can be created. This is different from Uniswap or Curve markets because they are essentially symmetrical. The first token is the quote token or the token that is being shorted. The second token is the base token or the token that is being longed. Token exponentials are required for precision in accounting logic and are in most cases equivalent to 18 - decimals in a token.

Lendgines also have an upper bound parameter. This upper bound is the price at which the underlying automated market maker is swapped entirely into the quote token. For Power Token holders, this is the price at which leverage stops constantly adjusting. Above the upper bound, a Power Perpetual will have leverage that is less than 2.

Power Perpetuals

Each Power Token is implemented as an ERC20. There is one Power Token per lendgine and they are completely fungible.

Liquidity Provider (LP) Shares

Each liquidity provider position is a custom struct that contains the size of the position, the rewardPerSize of the last accrual of the position, and the amount of tokens owed to the position.

Interest Rate Curve

σ=2φ√αβ(6)σ = 2φ √ α β (6) σ=2φ√αβ(6)

So using the most recent data on the most liquid pairs on the .3% fee tier, we estimate 105.1% to be the average implied volatility and used that to determine our parameters.

Variable
Value

Kink

.8

Multiplier

1.375

Jump multiplier

44.5

The interest rate between liquidity providers and Power Token holders is determined using the . PowerMaker uses static parameters for the jump rate model that we determined using historical backtesting data.

In the research blog , it is demonstrated that LP positions are analogous selling an option and pricing follows a Geometric Brownian Motion. Using the liquidity on token pairs on Uniswap V3, we have derived the on-chain historical implied volatility, σ for each token pair. Jump rate parameters are found by taking the square root of the quotient of daily volume α over the tick liquidity β multiplied by the fee tier φ * 2. The equation is as follows:

jump rate model
On-chain Volatility and Uniswap v3
GPL
ERC-20