set exchange rate logic done

This commit is contained in:
Samyak Jain 2020-09-12 01:52:48 +10:00
parent d5eaf43bcb
commit a3da8614d6

View File

@ -3,16 +3,14 @@ pragma solidity ^0.6.8;
import { DSMath } from "../../../libs/safeMath.sol";
contract LogicOne {
address poolToken;
function setExchangeRate() public {
// run setExchangeRate in address(this)
interface PoolInterface {
function setExchangeRate() external;
}
constructor (address ethPool) public {
poolToken = address(ethPool);
contract LogicOne {
function setExchangeRate() public payable {
PoolInterface(address(this)).setExchangeRate();
}
receive() external payable {}