Skip to content

edenia/proton-xprprice

Repository files navigation

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

About

XPR/USD price oracle contract 💰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published