# SolvBTC Based Oracle on EVM

<figure><img src="/files/USQJscez9SLMJSYNUS03" alt=""><figcaption></figcaption></figure>

## SolvBTC LST Function related to the Oracle

#### Code URL

{% embed url="<https://github.com/solv-finance/SolvBTC/blob/main/contracts/SolvBTCYieldToken.sol>" %}

### Values based on shares

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

### Decimals of values

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

### Contract address of LST Oracle

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

## LST Oracle Contract

#### Code URL

{% embed url="<https://github.com/solv-finance/SolvBTC/blob/main/contracts/oracle/SolvBTCYieldTokenOracleForSFT.sol>" %}

### Get Nav

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

### Nav Decimals

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

## Pool Nav Oracle

#### Code URL

{% embed url="<https://github.com/solv-finance-dev/solv-contracts-v3/blob/main/markets/open-fund-market/contracts/oracle/NavOracle.sol>" %}

### Get Nav

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

### Set Nav

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.solv.finance/developer-guide/oracle-mechanism/lst-oracle-mechanism.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
