approveMeta -> permit

call factory for fee logic

fail on balances > max112

add skim

use reserves in burnLiquidity
This commit is contained in:
Noah Zinsmeister
2019-12-13 17:25:04 -05:00
parent 467e15b931
commit 5b15d59773
9 changed files with 42 additions and 45 deletions

View File

@ -5,10 +5,6 @@ library Math {
z = x <= y ? x : y;
}
function clamp112(uint y) internal pure returns (uint112 z) {
z = y <= uint112(-1) ? uint112(y) : uint112(-1);
}
function sqrt(uint y) internal pure returns (uint z) {
if (y > 3) {
uint x = (y + 1) / 2;