This commit is contained in:
Samyak Jain 2020-08-30 01:24:23 +10:00
commit b73c7be2e1
3 changed files with 4 additions and 9 deletions

View File

@ -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);
}
/**

View File

@ -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);

View File

@ -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);