feat(curve): Get coin indexes from static attributes

This way we don't need extra RPC calls to get these values

Took 57 minutes
This commit is contained in:
Diana Carvalho
2025-05-19 13:29:18 +01:00
parent ae4602f668
commit fcaacf21fb
5 changed files with 81 additions and 115 deletions

View File

@@ -1,4 +1,4 @@
use std::io;
use std::{io, str::Utf8Error};
use thiserror::Error;
@@ -33,3 +33,9 @@ impl From<serde_json::Error> for EncodingError {
EncodingError::FatalError(err.to_string())
}
}
impl From<Utf8Error> for EncodingError {
fn from(err: Utf8Error) -> Self {
EncodingError::FatalError(err.to_string())
}
}