mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
Merge branch 'master' of https://github.com/InstaDApp/dsa-yield-contract
This commit is contained in:
commit
b73c7be2e1
|
@ -7,12 +7,7 @@ interface IProxy {
|
|||
|
||||
contract Deployer {
|
||||
|
||||
event LogNewProxy(
|
||||
address indexed owner,
|
||||
address indexed proxy,
|
||||
address indexed logic,
|
||||
address token
|
||||
);
|
||||
event LogNewProxy(address indexed owner, address indexed logic, address indexed token);
|
||||
|
||||
/**
|
||||
* @dev deploy create2 + minimal proxy
|
||||
|
@ -38,7 +33,7 @@ contract Deployer {
|
|||
proxy := create2(0, clone, 0x37, salt)
|
||||
}
|
||||
IProxy(proxy).setBasic(owner, token);
|
||||
emit LogNewProxy(owner, proxy, logic, token);
|
||||
emit LogNewProxy(owner, logic, token);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -135,7 +135,7 @@ contract PoolToken is ReentrancyGuard, DSMath, ERC20Pausable {
|
|||
uint _burnAmt;
|
||||
if (tknAmt == uint(-1)) {
|
||||
_burnAmt = _bal;
|
||||
_tknAmt = wdiv(_burnAmt, exchangeRate);
|
||||
_tknAmt = _tknBal;
|
||||
} else {
|
||||
require(tknAmt <= _tknBal, "balance-exceeded");
|
||||
_burnAmt = wmul(tknAmt, exchangeRate);
|
||||
|
|
|
@ -128,7 +128,7 @@ contract PoolToken is ReentrancyGuard, ERC20Pausable, DSMath {
|
|||
uint _burnAmt;
|
||||
if (tknAmt == uint(-1)) {
|
||||
_burnAmt = _bal;
|
||||
_tknAmt = wdiv(_burnAmt, exchangeRate);
|
||||
_tknAmt = _tknBal;
|
||||
} else {
|
||||
require(tknAmt <= _tknBal, "balance-exceeded");
|
||||
_burnAmt = wmul(tknAmt, exchangeRate);
|
||||
|
|
Loading…
Reference in New Issue
Block a user