End data consumers - Mainnet
(If you are a price consumer then follow below steps)
Go to "Explore data feeds" and click on "View Feeds".
Now choose the available feeds by category.
Choose the Index Pair.
Integrate your wallet.
Copy and save the contract.
In the next page, click on the "Connect Wallet to Deposit" button by pointing your XDCPay to mainnet with your registered wallet address. In the resultant page choose "XDCPay Wallet".
Now, you can Deposit PLI within the minimum & maximum range as highlighted.
Deploy this IntegrationSample.sol using Remix.
Call the function "getPriceInfo", this should trigger oracle contract and write the data in "currentValue".
Call the function "show" to pull the current market price in your contract and go from there!
Note: the value you see from "Show", is multipled with 10000 to include fractional values. So when you are using this value in your contract, make sure to apply safemath(div) operator to use the actual value.
For ex - 310 / 10000 => 0.0310 would be the actual XDC price, as of today. This price may vary, when you execute.