Posts

F.R.I.D.A.Y for LeoFinance - A Small Update

avatar of @deathwing
25
@deathwing
·
·
0 views
·
1 min read


After seeing some comments from people looking to find CUB price easily, I added an additional feature to FRIDAY's LeoFinance instance. (@khaleelkazi will love this, probably)

Before this, you could technically check the price by using the regular FRIDAY commands, but then again, having to type is worse than just glancing at it. So --- there's that. Now, if anyone is wondering about the current CUB price, just take a look at FRIDAY :)

API and How Prices Work

FRIDAY currently uses an API to receive the data, most of the data is taken from Pancakeswap's API and converted so that it can be usable for FRIDAY. Though, this also has some downsides. One of the major ones is if something happens to Pancakeswap, then the prices might be inaccurate and/or API delay (Pancakeswap sometimes has delayed API, about 10-15 minutes, not always though.) (this does not affect CUB positions, just prices)

If there is enough interest (in bLEO, CUB and bHIVE as a whole) I might just stream Binance Smart Chain (technically Ethereum, GraphQL is using Ethereum with a BSC node to "work" for BSC) and process the data myself as opposed to relying on Pancakeswap.

We'll see :)

Posted Using LeoFinance Beta