You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now String types are used everywhere for coin tickers, and in most places there's no clear validation for them. Even if validation is done, it's unclear where or how it's happening. Using a wrapper type for coin tickers would be much more appropriate.
Just a simple/quick ref for the wrapper type:
structCoinTicker(String);implCoinTicker{fnnew(ticker:String) -> Result<Self,Error>{// various validationsOk(Self(ticker))}}
This way, by default, every ticker used in KDF will be enforced to be validated.
The text was updated successfully, but these errors were encountered:
Right now
String
types are used everywhere for coin tickers, and in most places there's no clear validation for them. Even if validation is done, it's unclear where or how it's happening. Using a wrapper type for coin tickers would be much more appropriate.Just a simple/quick ref for the wrapper type:
This way, by default, every ticker used in KDF will be enforced to be validated.
The text was updated successfully, but these errors were encountered: