money-on-chain / main-RBTC-contract

DoC - Dollar on Chain - Stablecoin contract collateralized in RBTC.
Other
24 stars 16 forks source link

Fees with moc #26

Closed pmprete closed 4 years ago

pmprete commented 4 years ago

Adding calcSize to view the contract size to avoid them being over 24kb Force 8.12.0 node version Rename BtcPriceProvider to PriceProvider as it's now used also for the MoC Token Calculate comissions acording to payment method and function Set the comission rates in MocInrate Allow the user to pay in MoC or rBTC for mint and redeem of DOC, BPRO and BPROX Add MocPrice and MocComision in the mint and redeem events of DOC, BPRO and BPROX Add MocToken to MocState Create structs to use less variable to avoid Stack too deep error on MocExhance.sol A refactor of MoC.sol will be needed in the near future as it's getting close to 24 kb Add test for all of the mentioned above Don't bail on test failure, this allows to see exactly what is failing and get events information from the failing tests

pmprete commented 4 years ago

Created a squashed version of this PR https://github.com/money-on-chain/main-RBTC-contract/pull/27