mirror of
				https://github.com/Instadapp/yield-contract.git
				synced 2024-07-29 21:47:29 +00:00 
			
		
		
		
	set exchange rate logic done
This commit is contained in:
		
							parent
							
								
									d5eaf43bcb
								
							
						
					
					
						commit
						a3da8614d6
					
				|  | @ -3,16 +3,14 @@ pragma solidity ^0.6.8; | |||
| 
 | ||||
| import { DSMath } from "../../../libs/safeMath.sol"; | ||||
| 
 | ||||
| interface PoolInterface { | ||||
|     function setExchangeRate() external; | ||||
| } | ||||
| 
 | ||||
| contract LogicOne { | ||||
| 
 | ||||
|     address poolToken; | ||||
| 
 | ||||
|     function setExchangeRate() public { | ||||
|         // run setExchangeRate in address(this) | ||||
|     } | ||||
| 
 | ||||
|     constructor (address ethPool) public { | ||||
|         poolToken = address(ethPool); | ||||
|     function setExchangeRate() public payable { | ||||
|         PoolInterface(address(this)).setExchangeRate(); | ||||
|     } | ||||
| 
 | ||||
|     receive() external payable {} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Samyak Jain
						Samyak Jain