Nabla Docs
  • Nabla Finance
    • The problem Nabla solves
    • Benefits of using Nabla
  • Protocol Overview
    • Swap Algorithm
    • Liquidity Pools
      • Swap Pools
      • Backstop Pool
    • Oracle Details
      • Architecture
      • Pyth
      • Chainlink
      • EV:GO
  • Roadmap
  • Protocol-owned Liquidity (POL)
    • Trading Fees and LP Incentives
    • Nabla as an autonomous protocol
  • Security
    • Audits
    • Bug Bounty Program
  • Mainnet Alpha
    • Risks and Benefits of being a Mainnet Alpha LP
  • Monad Testnet
    • Add Monad Testnet to Metamask
    • Get Monad Test Tokens
    • Monad Testnet Tasks
  • Testnet Beta
    • Connect Wallet to Base Sepolia
    • Testnet Beta Tasks
    • Obtaining Base Sepolia Ether for Gas
    • Test Assets
    • Connect Wallet to Base Sepolia Testnet
    • Performing a Swap
    • Managing Swap Pool Liquidity
    • Redeem Swap Pool Shares via Backstop Pool
    • Managing Backstop Pool Liquidity
    • Withdraw Backstop Pool Liquidity via Excess Swap Pool
  • Testnet Alpha
    • Testnet Alpha Results
    • Whitelisting for testnet
      • Whitelist Campaigns List
      • $PYTH Stakers Whitelist
    • Connect Wallet to Sepolia Testnet
    • Requesting Testnet Gas
    • How to contribute to testing
    • Performing a Swap
    • Managing Swap Pool Liquidity
    • How to swap into a swap pool that is depleted
    • Managing Backstop Pool Liquidity
    • Redeem Swap Pool Shares via Backstop Pool
    • Withdraw Backstop Pool Liquidity via Excess Swap Pool
  • Liquidity Provision
  • $NABLA
    • $sNABLA Token Utility
    • Staking Mechanism
    • Fee Distribution
    • Tokenomics
    • Token Utility Summary
    • Governance
      • Initial Governance Implementation
      • Governance structure
      • Discussion and Proposal process
      • Voting process
      • Transparency and record-keeping
      • Code of conduct
      • Amendments to the Governance Framework
      • Template for a vote
  • $AMBER Onchain Points Program
    • Mainnet Alpha Rewards
      • Arbitrum-Mainnet Alpha Rewards
      • Base-Mainnet Alpha Rewards
    • $AMBER FAQ
  • 💻Developers
    • Integration Guide
    • NablaPortal
    • NablaRouter
    • SwapPool
    • GenericPool
    • NablaBackstopPool
    • PythAdapter
    • ISlippageCurve
    • Contract addresses
      • Arbitrum One
      • Base
      • Monad Testnet
    • Contract errors
  • Community
    • Linktree
    • Twitter
    • Discord
    • Telegram
  • Whitepaper
  • Legal
    • Privacy Policy
    • Terms of Service
Powered by GitBook
On this page
  • psi
  • inverseDiagonal
  • inverseHorizontal
  1. Developers

ISlippageCurve

psi

function psi(uint256 _b, uint256 _l, uint8 _decimals) external view returns (uint256 _psi)

Calculates the output of the function Psi for input values b and l

Parameters

Name
Type
Description

_b

uint256

the input value b

_l

uint256

the input value l

_decimals

uint8

the number of decimals used for _b and _l and also for the return value

Return Values

Name
Type
Description

_psi

uint256

the value Psi(b,l)


inverseDiagonal

function inverseDiagonal(uint256 _b, uint256 _l, uint256 _capitalB, uint8 _decimals) external view returns (uint256 _t)

Given b,l and B >= Psi(b, l), this function determines the unique t>=0 such that Psi(b+t, l+t) = B

Parameters

Name
Type
Description

_b

uint256

the input value b

_l

uint256

the input value l

_capitalB

uint256

the input value B

_decimals

uint8

the number of decimals used for _b, _l, _capitalB and also for the return value

Return Values

Name
Type
Description

_t

uint256

the number t


inverseHorizontal

function inverseHorizontal(uint256 _b, uint256 _l, uint256 _capitalB, uint8 _decimals) external view returns (uint256 _t)

Given b,l and B >= Psi(b, l), this function determines the unique t>=0 such that Psi(b+t, l) = B

Parameters

Name
Type
Description

_b

uint256

the input value b

_l

uint256

the input value l

_capitalB

uint256

the input value B

_decimals

uint8

the number of decimals used for _b, _l, _capitalB and also for the return value

Return Values

Name
Type
Description

_t

uint256

the number t

PreviousPythAdapterNextContract addresses

Last updated 8 months ago

💻