An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
alpha-wallet-ios/Trust/Models/TokenBalance.swift

23 lines
463 B

// Copyright SIX DAY LLC. All rights reserved.
import Foundation
struct TokenBalance: BalanceProtocol {
let token: ExchangeToken
let data: String
init(token: ExchangeToken, data: String) {
self.token = token
self.data = data
}
var amount: String {
return TokensFormatter.from(token: token, amount: data) ?? ""
}
var amountFull: String {
// TODO Implement full amount
return amount
}
}