Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 1.29 KB

CHANGELOG.md

File metadata and controls

26 lines (23 loc) · 1.29 KB

Changelog

Legend

[✅] New feature or enhancement to existing [🔃] Change to existing functionality

2.0.0

  • ✅ Upgrades to v2 contracts
  • ✅ Adds createLiquidityPool
  • ✅ Adds createStakingPool( acc, opts ) export
  • ✅ Adds fetchStakingPool( acc, opts ) export
  • ✅ New utility exports parseAddress, parseCurrency, formatAddress, formatCurrency
  • ✅ Adds checkPoolWillOverflow to check whether swap values might trigger a maths overflow.
    • Returns a boolean as well as the largest value the pool can swap without overflowing
    • Tests for values up to 10M (or largest token balance in pool).
  • 🔃 Now emits a SIGNING_EVENT message to the onProgress callback of some transactions.
    • Message can be used to inform end-users when a connected wallet is expected to sign a transaction, or just filtered out.
  • 🔃 initHumbleSDK( opts ) options now accept an optional walletFallback property
  • 🔃 Renames calculateAmountIn to calculateOtherAmount
  • 🔃 Renames fetchPool to fetchLiquidityPool
    • Only two arguments are now accepted (instead of three)
    • poolAddress is now expected in opts
  • 🔃 Renames performSwap to swapTokens
    • swapTokens no longer requires a poolAddress in addition to pool data
  • ⚙️ Adds more unit-tests