Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.05 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.05 KB

XPR/USD Price Oracle Smart Contract

An on-chain option to get the exchange rate of XPR/USD.

The xprprice smart contract lets you know the approximate USD value of your XPR tokens.

You can test the smart contract on the Proton Testnet xprprice account.

User Story

@benobi wants to know how much are his XPR tokens worth in USD.

Actions

Action Description
usdtoxpr Converts a certain amount of USD to the equivalent on XPR
usdtoxprlog Logs the equivalent in XPR and the rate used
xprtousd Converts a certain amount of XPR to the equivalent on USD
xprtousdlog Logs the equivalent in USD and the rate used