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:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user