Kylix-Finance / kylix-finance-substrate

Kylix Finance is a substrate lending app that connects borrowers and lenders, enabling them to supply and borrow assets across the Polkadot chain.
MIT No Attribution
4 stars 0 forks source link

Consider asset decimals in math operation over asset-balance #71

Open kylixfinance opened 6 days ago

kylixfinance commented 6 days ago

Asset balance is a floating number stored as integer and number of decimal is stored in asset-metadata. While performing mathematica operations on asset-balance, asset-decimal should be taken care of.

Runtime logic as well the test cases needs to be updated