Skip to content

Commit

Permalink
IOS-7619 Use StakingConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
Balashov152 committed Oct 4, 2024
1 parent 37e90b4 commit 6271296
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extension StakingFeatureProvider {
return "solana-sol-native-multivalidator-staking"
case (.cosmos, .none):
return "cosmos-atom-native-staking"
case (.ethereum, TangemStaking.Constants.polygonContactAddress):
case (.ethereum, StakingConstants.polygonContactAddress):
return "ethereum-matic-native-staking"
case (.tron, .none):
return "tron-trx-native-staking"
Expand Down
4 changes: 2 additions & 2 deletions TangemStaking/Services/StakeKitMapper/StakeKitMapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ struct StakeKitMapper {
address: validator.address,
name: validator.name ?? "No name",
preferred: validator.preferred ?? false,
partner: validator.address == Constants.partnerValidator,
partner: validator.address == StakingConstants.partnerValidator,
iconURL: validator.image.flatMap { URL(string: $0) },
apr: validator.apr
)
Expand Down Expand Up @@ -359,7 +359,7 @@ struct StakeKitMapper {
case .cosmos: .seconds(min: 5, max: 12)
case .tron: .daily
case .binance: .daily
case .ethereum where item.contractAddress == Constants.polygonContactAddress: .daily
case .ethereum where item.contractAddress == StakingConstants.polygonContactAddress: .daily
default: .generic(type.rawValue)
}
}
Expand Down
2 changes: 1 addition & 1 deletion tangem-app-config

0 comments on commit 6271296

Please sign in to comment.