Solv Protocol
  • Welcome to Solv
    • Introduction
    • State of Bitcoin Staking
    • The On-Chain Bitcoin Reserve
  • SOLV Token
    • SOLV Tokenomics
    • Claiming SOLV
      • Claiming SOLV from a Multi-sig Wallet
      • Claiming SOLV as Flexible Voucher Holders
    • Governance
  • Key Products
    • SolvBTC
      • SolvBTC Fund flow
    • SolvBTC LSTs
      • LST Suite
        • xSolvBTC Fund Flow
      • Yield Related Address
    • DeFi Vaults
    • Bitcoin Reserve Offerings
  • Staking Abstraction Layer (SAL)
    • Introduction
      • The Challenges with Bitcoin Staking
      • What is SAL?
    • Architecture
      • The Ecological View
        • The Staking Protocols
        • The LST Issuers
        • The Staking Guardians
        • The Yield Distributors
      • The Technical Architecture
        • The Staking Abstraction Matrix
        • LST Issuance Services
        • Staking Verification Services
        • Transaction Building Services
        • Yield Distribution Services
      • Diverse Yield Streams Accessible Through SAL
  • Security
    • Solv Guard
    • Smart Contract Governance
    • Smart Contract Audits
      • Audits
  • USER GUIDE
    • Deposit BTCB in Binance MegaDrop
    • Claim BABY as xSolvBTC Holders
  • Developer Guide
    • Core Components
      • Price Oracles
      • Cross-chain Bridge
    • Smart Contracts
      • Technical Architecture
      • Asset Storage & Representation
      • LST Oracle Mechanism
      • Contract Addresses
    • Integrations
      • SolvBTC and SolvBTC.LSTs
      • Data Services
        • SolvBTC/SolvBTC.LSTs storage pools
        • User Assets
      • SAL Services
    • Code Repo
  • Legal
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Disclaimer
Powered by GitBook
On this page
  • Overall Architecture
  • SolvBTC LST Function related to the Oracle
  • Values based on shares
  • Decimals of values
  • Contract address of LST Oracle
  • LST Oracle Contract
  • Get Nav
  • Nav Decimals
  • Pool Nav Oracle
  • Get Nav
  • Set Nav

Was this helpful?

  1. Developer Guide
  2. Smart Contracts

LST Oracle Mechanism

PreviousAsset Storage & RepresentationNextContract Addresses

Last updated 8 months ago

Was this helpful?

Overall Architecture

SolvBTC LST Function related to the Oracle

Code URL

Values based on shares

/**
 * @notice Get amount of underlying asset for a given amount of shares.
 */
    function getValueByShares(uint256 shares) external view returns (uint256 value);

Decimals of values

/**
 * @notice Get the decimals of the values.
 */
function getOracleDecimals() external view returns (uint8);

Contract address of LST Oracle

/**
 * @notice Get the address of LST Oracle.
 */
function getOracle() public view returns (address);

LST Oracle Contract

Code URL

Get Nav

function getNav(address erc20) external view returns (uint256);

Nav Decimals

function navDecimals(address erc20) external view returns (uint8);

Pool Nav Oracle

Code URL

Get Nav

function getSubscribeNav(bytes32 poolId_, uint256 time_) 
    external view returns (uint256 nav_, uint256 navTime_);

Set Nav

function setSubscribeNavOnlyMarket(bytes32 poolId_, uint256 time_, uint256 nav_) external;

https://github.com/solv-finance-dev/solv-contracts-v3/blob/main/markets/open-fund-market/contracts/oracle/NavOracle.solgithub.com
SolvBTC/contracts/SolvBTCYieldToken.sol at main · solv-finance/SolvBTCGitHub
SolvBTC/contracts/oracle/SolvBTCYieldTokenOracleForSFT.sol at main · solv-finance/SolvBTCGitHub
Logo
Logo