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";
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 {}