Price per token should be ETH not the token name #1961

pull/1969/head
Vladyslav shepitko 4 years ago
parent dc0969d6f3
commit 2917f5eada
  1. 2
      AlphaWallet/Sell/ViewControllers/EnterSellTokensCardPriceQuantityViewController.swift
  2. 1
      AlphaWallet/Sell/ViewModels/EnterSellTokensCardPriceQuantityViewControllerViewModel.swift

@ -49,7 +49,7 @@ class EnterSellTokensCardPriceQuantityViewController: UIViewController, TokenVer
return viewModel.token.server
}
let assetDefinitionStore: AssetDefinitionStore
lazy var pricePerTokenField = AmountTextField(tokenObject: viewModel.token)
lazy var pricePerTokenField = AmountTextField(tokenObject: viewModel.ethToken)
let paymentFlow: PaymentFlow
weak var delegate: EnterSellTokensCardPriceQuantityViewControllerDelegate?

@ -7,6 +7,7 @@ struct EnterSellTokensCardPriceQuantityViewControllerViewModel {
private let server: RPCServer
private let assetDefinitionStore: AssetDefinitionStore
lazy var ethToken: TokenObject = TokensDataStore.token(forServer: server)
let token: TokenObject
let tokenHolder: TokenHolder
var ethCost: Ether = .zero

Loading…
Cancel
Save