BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

Default Price for Volume Conversion = 0.0001, != 0 #194

Closed patrickdugan closed 4 years ago

patrickdugan commented 4 years ago

Instead of dividing by 0 and creating a crash bug, if there's no volume for property 0 (BTC or LTC) against property xyz to figure the volume, assume that the property is worth 0.0001 of the property instead of 0.

santos177 commented 4 years ago

@Galuf1 where is located this bug? exactly?

Galuf1 commented 4 years ago

Trying to find the place, but should be in the Vesting functions when you add all the LTC volume. One does a triangulation from token/LTC, and that price can be 0 causing the crash.

santos177 commented 4 years ago

working on default-price branch