Skip to content

BigNumber of features

Pre-release
Pre-release
Compare
Choose a tag to compare
@szerintedmi szerintedmi released this 20 May 16:22
· 24 commits to master since this release
1f3230c

New features

  • LoanManager class #53
    augmint.loanManager.getAllProducts() and getActiveProducts()
  • LoanProduct class #55
    calculateLoanFromCollateral(_collateralAmount: BN, ethFiatRate: BN): ILoanValues
    calculateLoanFromDisbursedAmount(_disbursedAmount: BN, ethFiatRate: BN): ILoanValues
  • unit classes: Tokens, Wei, Ratio #59
  • Exchange improvements (#56 , #67)

Breaking changes

  • unit classes: Tokens, Wei, Ratio #59 and use of BN from bn.js in the background see #44 & #46
    This is a breaking change in almost all interfaces. E.g.:
    • Rates.getEthFiatRate : renamed and returns Tokens instead of BigNumber
    • Rates.getAugmintRate : returns Rate for .rate instead of BigNumber
    • Exchange.getOrderBook : returns a different object
    • Exchange.matchMultipleOrders : accepts Orders in new format from getOrderBook

Internal improvements

  • readme updates #54
  • legacy contract connections and tests #51
  • use @augmint/contracts version to determine docker image name #58
  • ignore node types in greenkeeper #63
  • fix module declarations (#61)
  • fix some linter warnings (#64)
  • handle web3 connect with http , trustwallet and coinbase wallet providers #68
  • fix type declaration path (#70)

Component upgrades