blockchainethereumblockchain-walleterc20erc721walletxdaidappdecentralizederc1155erc875iosswifttokens
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.
23 lines
463 B
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
|
|
}
|
|
}
|
|
|