Releases: Augmint/augmint-js
Releases · Augmint/augmint-js
augmint-contracts to 1.1.1
upgrade augmint-contracts to 1.1.1 #112
margin-under-the-hood
- bugfix: do not convert borrower address in Loan to decimal number
- minor changes needed for under-the-hood pages (under-the-hood support for new margin-loanmanagers)
Margin loan release
- move loan methods from web to augmint-js
- upgrade bn.js to 5.0
- expose new eth backed loan on augmint js
- new eth backed loan with min rate!
- fix Wei's toNumber and extend Tokens with toNumber
- update Loan to handle margin loan
- units: rounding modes for mul and div, tests
- use Tokens.toString() instead of internal BN.toString()
- connect contract with ethersjs
- margin call rate calculator
- throw plain error on evironment configuration error instead of MissingContractError
- optimize chunked query
Market order matching estimates and documentation
New features
Component upgrades
- upgrade rollup to 1.12.4 #80
Check out our new documentation at https://docs.augmint.org/ !
Units and zeros
- units: handle real-world parsing
- units: can be converted to null if the value is zero (bc EVM cannot send null)
NPM autopublish fix
The v0.3.0 was published automatically from github (which is good) but it wasn't built (which is bad).
This release try to fix the empty package on npm.
BigNumber of features
New features
LoanManager
class #53
augmint.loanManager.getAllProducts()
andgetActiveProducts()
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 ofBN
frombn.js
in the background see #44 & #46
This is a breaking change in almost all interfaces. E.g.:Rates.getEthFiatRate
: renamed and returnsTokens
instead ofBigNumber
Rates.getAugmintRate
: returnsRate
for.rate
instead ofBigNumber
Exchange.getOrderBook
: returns a different objectExchange.matchMultipleOrders
: accepts Orders in new format fromgetOrderBook
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
- upgrade to @Augmint/contracts v1.0.12 #57
- upgrade to rollup 1.12.1 #62
- upgrade rollup-plugin-typescript2 to 0.21.1 #66
- upgrade rollup to 1.12.3 #71
place order and deployedEnvironment
New features
Exchange.placeSellTokenOrder
&placeBuyTokenOrder
#42
Breaking changes
Augmint.environment
becameAugmint.deployedEnvironment.name
Transaction.onConfirmation
callback doesn't includereceipt
anymore #48
Internal improvements
- Create and use environment types #33, #47
- test updates: run ganache container with --blockTime 1 (which is closer how real chains work) #36
- Use
@augmint/contracts
npm package instead of abiniser folder copy-paste #47
Component upgrades
Petty tweaks
A Small One
- fix repo url and
augmint-cli
path inpackage.json
#30