dfinity / exchange-rate-canister

The exchange rate canister (XRC) makes use of the HTTP requests feature to provide exchange rates as a service to the IC.
Apache License 2.0
37 stars 10 forks source link

refactor: Check for cycles earlier in the call. #140

Closed dfinity-ryancroote closed 1 year ago

dfinity-ryancroote commented 1 year ago

This is a minor refactor to have get_exchange_rate to exit early if there are not enough cycles attach to the request.