Updating tokens table view cell to show ECR 875 tokens

pull/6/head
Oguzhan Gungor 7 years ago
parent c30691a983
commit 11198d6084
  1. 10
      Trust/Tokens/ViewModels/TokenViewCellViewModel.swift

@ -32,6 +32,9 @@ struct TokenViewCellViewModel {
}
var amount: String {
if self.isStormBird {
return self.token.balance.count.toString() + " tickets"
}
return shortFormatter.string(from: BigInt(token.value) ?? BigInt(), decimals: token.decimals)
}
@ -79,10 +82,15 @@ struct TokenViewCellViewModel {
}
var placeHolder: UIImage? {
return R.image.ethereumToken()
return self.isStormBird ? R.image.stormbirdToken() : R.image.ethereumToken()
}
var imageUrl: URL? {
return ticker?.imageURL
}
var isStormBird: Bool {
return token.isStormBird
}
}

Loading…
Cancel
Save