WinoGarcia / CryptoPay

Cryptocurrency payment system based on @cryptobot in Telegram
MIT License
18 stars 8 forks source link

Fix exception: The JSON value could not be converted to CryptoPay.Types.Assets. #14

Closed BloodShadow174 closed 7 months ago

BloodShadow174 commented 7 months ago

When called into the GetExchangeRatesAsync method, it constantly throws an exception if the CryptoBot developers add a new Asset. Maybe create some new enum converter instead of JsonStringEnumConverter so that it marks such values as Unknown or something like that?

BloodShadow174 commented 7 months ago

Now the bot developers have added a new Asset KGS 😅