Provider
Folks Feed Provider is a Python server that allows Folks Feed Server the integration of Algorand assets price feeds.
We can consider the server divided into 3 services running simultaneously:
Search for new pools: this routine searches, within the supported DEXs, for pools that include the desired token. A pool is considered valid if the pair is between the desired token and one among ALGO, USDC, USDt, GOUSD, gALGO as well the pool holds a minimum TVL of $5000.
Prices generation: for each token as many prices will be generated as there are valid pools, rechecking the pool's TVL and saving it. Each generated price is calculated by performing a TWAP on the price of the pool itself.
Request response: the server will expose an API for the FFO server, this will send the desired token prices. Every token price will be generated by calculating a weighted average on the TVL of the pools.
Last updated