CBR rates on demand
A contract cannot reach the internet itself: every node must get the same result. So a rate arrives in two steps, and this page shows both.
- You call requestRate: the contract asks the supreme oracle whether it may use the relayer and creates a request (RelayerRequest event).
- The cbr-rates relayer sees the request, fetches the rate from cbr.ru and sends it to the contract in its own transaction (fulfill).
- The contract checks that the answer came from an operator of the relayer and stores the rate. This usually takes a few seconds.