BlockPo / BlockPo-to-Tradelayer

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

Hardcoded ALL price in Pegged Currency Interest Function #139

Open patrickdugan opened 4 years ago

patrickdugan commented 4 years ago

int mastercore::addInterestPegged(int nBlockPrev, const CBlockIndex* pBlockIndex) { allPrice = 888;

Line 894

Surely this is a placeholder? Needs to be connected to the procedural pricing Lihki worked on.

patrickdugan commented 4 years ago

This is vestigial to the dCurrency interest function which we are going to have to revise when we're clearing out dUSD type tickets for the last two milestones. We'll probably take this value out of either the All/dUSD token trading vector or a soup of that, the LTC/dUSD vector, the ALL/LTC raw pair etc.

patrickdugan commented 2 years ago

@santos177 This is still an issue if I recall your last PR? We need to substitute in the native mark price?