mastercoin-MSC / mastercore

mastercore info
mastercoin.org
MIT License
24 stars 11 forks source link

Slightly increased MSC/TMSC balance, but only from the node's POV #204

Closed dexX7 closed 9 years ago

dexX7 commented 9 years ago

When trading and involving MSC or TMSC, the MSC and TMSC balance of the node increases proportional to the output value sent to Exodus.

This scewed point of view is only given for the node that creates the trade, but other nodes report correct balances.

Example:`

A has 0.00000000 MSC
A has 0.00000000 TMSC
A has 1.00000000 OtherToken

A offers 1.00000000 OtherToken for 1.00000000 TMSC.

A's balance is now:

A has 0.00054600 MSC
A has 0.00054600 TMSC
A has 0.00000000 OtherToken and 1.00000000 OtherToken reserved

It works both ways, so offering 1.0 TMSC and desiring something else still increases the MSC and TMSC balance.

dexX7 commented 9 years ago

This is based on gettrade_MP. Every time it's called inbetween, the balance increases by 0.00054600. Multiple calls of gettrade_MP = 0.00054600 * n.