Skip to content

Commit

Permalink
fix(swap 3): min fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Nov 23, 2020
1 parent 12e40ff commit f0a9a1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export default ({
if (step !== 'ENTER_AMOUNT') {
const pair = S.getSBPair(yield select())
const method = S.getSBPaymentMethod(yield select())
const from = S.getSwapAccount(yield select())
if (pair) {
yield put(
A.setStep({
Expand All @@ -355,7 +356,8 @@ export default ({
fiatCurrency: getFiatFromPair(pair.pair),
pair,
method,
orderType: values?.orderType
orderType: values?.orderType,
swapAccount: from
})
)
yield take(AT.INITIALIZE_CHECKOUT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const getMaxMinSell = (
const minCrypto = new BigNumber(pair.sellMin)
.dividedBy(rate)
.toFixed(Currencies[coin].units[coin].decimal_digits)
const minFiat = pair.sellMin
const minFiat = convertBaseToStandard('FIAT', pair.sellMin)

return { FIAT: minFiat, CRYPTO: minCrypto }
}
Expand Down

0 comments on commit f0a9a1f

Please sign in to comment.