Skip to content

Latest commit

 

History

History
268 lines (244 loc) · 8.79 KB

USDTPriceFeed.md

File metadata and controls

268 lines (244 loc) · 8.79 KB

USDTPriceFeed.sol

View Source: contracts/feeds/USDTPriceFeed.sol

↗ Extends: IPriceFeedsExt

USDTPriceFeed contract

The Price Feed USDT contract.

  • This contract implements USDT query functionality, getting the price and the last timestamp from a trivial formula, always returning 1 and now.

Contract Members

Constants & Variables

uint256 private constant USDT_RATE;

Functions


latestAnswer

undefined

Get the USDT price. *

function latestAnswer() external view
returns(uint256)
Source Code
function latestAnswer() external view returns (uint256) {
        return USDT_RATE;
    }

latestTimestamp

Get the las time the price was updated.

function latestTimestamp() external view
returns(uint256)
Source Code
function latestTimestamp() external view returns (uint256) {
        return now;
    }

Contracts