[✅] New feature or enhancement to existing [🔃] Change to existing functionality
- ✅ 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).
- Returns a
- 🔃 Now emits a
SIGNING_EVENT
message to theonProgress
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 optionalwalletFallback
property - 🔃 Renames
calculateAmountIn
tocalculateOtherAmount
- 🔃 Renames
fetchPool
tofetchLiquidityPool
- Only two arguments are now accepted (instead of three)
poolAddress
is now expected inopts
- 🔃 Renames
performSwap
toswapTokens
swapTokens
no longer requires apoolAddress
in addition topool
data
- ⚙️ Adds more unit-tests