@@ -8,7 +8,7 @@ final class StakingPayoutConfirmationPresenter {
88 var wireframe : StakingPayoutConfirmationWireframeProtocol !
99 var interactor : StakingPayoutConfirmationInteractorInputProtocol !
1010
11- private var priceData : [ PriceData ] = [ ]
11+ private var pricesData : [ PriceData ] = [ ]
1212
1313 private let balanceViewModelFactory : BalanceViewModelFactoryProtocol
1414 private let payoutConfirmViewModelFactory : StakingPayoutConfirmationViewModelFactoryProtocol
@@ -90,8 +90,8 @@ extension StakingPayoutConfirmationPresenter: StakingPayoutConfirmationPresenter
9090extension StakingPayoutConfirmationPresenter : StakingPayoutConfirmationInteractorOutputProtocol {
9191 func didReceivePriceData( result: Result < [ PriceData ] , Error > ) {
9292 switch result {
93- case let . success( priceData ) :
94- self . priceData = priceData
93+ case let . success( pricesData ) :
94+ self . pricesData = pricesData
9595 provideFee ( )
9696 provideViewModel ( )
9797 case let . failure( error) :
@@ -142,7 +142,7 @@ extension StakingPayoutConfirmationPresenter: StakingPayoutConfirmationModelStat
142142
143143 func provideFee( ) {
144144 if let fee = viewModelState. fee {
145- let price = priceData . first ( where: { $0. priceId == chainAsset. chain. utilityChainAssets ( ) . first? . asset. priceId } )
145+ let price = pricesData . first ( where: { $0. priceId == chainAsset. chain. utilityChainAssets ( ) . first? . asset. priceId } )
146146 let viewModel = balanceViewModelFactory. balanceFromPrice ( fee, priceData: price, usageCase: . detailsCrypto)
147147 view? . didReceive ( feeViewModel: viewModel)
148148 } else {
@@ -151,7 +151,7 @@ extension StakingPayoutConfirmationPresenter: StakingPayoutConfirmationModelStat
151151 }
152152
153153 func provideViewModel( ) {
154- let price = priceData . first ( where: { $0. priceId == chainAsset. asset. priceId } )
154+ let price = pricesData . first ( where: { $0. priceId == chainAsset. asset. priceId } )
155155
156156 let viewModel = payoutConfirmViewModelFactory. createPayoutConfirmViewModel (
157157 viewModelState: viewModelState,
0 commit comments