[accelerator] fix fee paid calculation
This commit is contained in:
		
							parent
							
								
									ebe54d47d8
								
							
						
					
					
						commit
						36839fdcb9
					
				@ -95,7 +95,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
 | 
				
			|||||||
          const minExtraBoost = nextRoundNumber(Math.max(estimation.cost * 2, estimation.txSummary.effectiveFee));
 | 
					          const minExtraBoost = nextRoundNumber(Math.max(estimation.cost * 2, estimation.txSummary.effectiveFee));
 | 
				
			||||||
          const DEFAULT_BID_RATIO = 2;
 | 
					          const DEFAULT_BID_RATIO = 2;
 | 
				
			||||||
          this.maxBidBoost = minExtraBoost * DEFAULT_BID_RATIO;
 | 
					          this.maxBidBoost = minExtraBoost * DEFAULT_BID_RATIO;
 | 
				
			||||||
          this.cost = this.maxBidBoost * DEFAULT_BID_RATIO + estimation.mempoolBaseFee + estimation.vsizeFee;
 | 
					          this.cost = this.maxBidBoost + estimation.mempoolBaseFee + estimation.vsizeFee;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user