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";
|
import { DSMath } from "../../../libs/safeMath.sol";
|
||||||
|
|
||||||
contract LogicOne {
|
interface PoolInterface {
|
||||||
|
function setExchangeRate() external;
|
||||||
address poolToken;
|
|
||||||
|
|
||||||
function setExchangeRate() public {
|
|
||||||
// run setExchangeRate in address(this)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor (address ethPool) public {
|
contract LogicOne {
|
||||||
poolToken = address(ethPool);
|
|
||||||
|
function setExchangeRate() public payable {
|
||||||
|
PoolInterface(address(this)).setExchangeRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
receive() external payable {}
|
receive() external payable {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user