mirror of
				https://github.com/Instadapp/yield-contract.git
				synced 2024-07-29 21:47:29 +00:00 
			
		
		
		
	code refactor
This commit is contained in:
		
							parent
							
								
									1cf3106273
								
							
						
					
					
						commit
						581de54d23
					
				|  | @ -85,8 +85,7 @@ contract PoolToken is ReentrancyGuard, ERC20Pausable, DSMath { | |||
|       insuranceAmt = sub(insuranceAmt, difTkn); | ||||
|       _currentRate = _previousRate; | ||||
|     } else { | ||||
|       uint fee = registry.insureFee(address(this)); | ||||
|       uint insureFeeAmt = wmul(sub(_totalToken, tokenBalance), fee); | ||||
|       uint insureFeeAmt = wmul(sub(_totalToken, tokenBalance), registry.insureFee(address(this))); | ||||
|       insuranceAmt = add(insuranceAmt, insureFeeAmt); | ||||
|       tokenBalance = sub(_totalToken, insureFeeAmt); | ||||
|       _currentRate = wdiv(totalSupply(), tokenBalance); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Thrilok Kumar
						Thrilok Kumar