Closed therealwolf42 closed 5 years ago
Changed some things up and will write the tests tomorrow+ make lint.
We should consider active power downs in the max RC and Mana calculations I just fixed this in the steemauto: https://github.com/mahdiyari/steemauto/commit/da4e61d4ac0c12086def9131650452250855bb33#diff-8c7713ecea14e3e5605b9abb67cac6c3
@mahdiyari Fixed. Thanks for the input!
Merged and included in the 0.11.0 release. FYI @therealwolf42 the rc_api test fails with
11) rc_api
calculateVPMana:
Error: Invalid asset 'undefined'
at Function.from (src/steem/asset.ts:89:20)
at Object.getVests (src/steem/misc.ts:251:40)
at RCAPI.calculateVPMana (src/helpers/rc.ts:66:34)
at Context.<anonymous> (test/rc.ts:34:29)
There's a couple of other tests failing as well related to how steemd is currently a bit schizophrenic about Asset serialisation, some APIs will return/expect the new "NAI" style and some the old asset strings. I don't have the bandwidth to fix those now and hope that the SMT release will just remove the old assets completely and we can deal with the migration then
This the same PR as before, just without /doc & /dist.