BlockPo / BlockPo-to-Tradelayer

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

upnl wrong numbers #8

Closed Galuf1 closed 5 years ago

Galuf1 commented 5 years ago

uPNL is showing wrong numbers in the getupnl rpc, way too high according to the formula.

lihkir commented 5 years ago

Issue fixed. We are using now the old way to calculate the status for the PNL function and we remove the FormatShort passed by reference to LoopForEntryPrice in order to use the int64_t number for the corresponding calculus.