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

Duplicate code #137

Closed Motokoder closed 1 year ago

Motokoder commented 1 year ago

Duplicate code:

let okx = Okx;
assert!(okx.supports_ipv6());
let okx = Okx;
assert!(okx.supports_ipv6());

https://github.com/dfinity/exchange-rate-canister/blob/6af2af5cccaefde0e0128ae1b3d0a90c95946868/src/xrc/src/exchanges.rs#L495

THLO commented 1 year ago

Good catch! It'll be fixed in an upcoming PR.

THLO commented 1 year ago

Fixed in this PR.