Oracles

syde.fi utilizes the decentralized Pyth, which provides up-to-date token prices data to smart contracts on TON.

We take the current hash of the price of any coin that we have (example:

const btcId = "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43";

), then at the smart contract level we check the price of 19 signatures of Pyth validators. If the price matches and is current, then we update the price.

Last updated