additive fees; burnSwapAmounts fix
This commit is contained in:
@@ -900,7 +900,7 @@ contract LMSRStabilizedTest is Test {
|
||||
int128 alpha = ABDKMath64x64.divu(1, 100); // 1%
|
||||
int128 S = _computeSizeMetric(s.qInternal);
|
||||
|
||||
(int128 payout, int128 burned) = s.swapAmountsForBurn(0, alpha);
|
||||
(int128 burned, int128 payout) = s.swapAmountsForBurn(0, alpha);
|
||||
|
||||
// burned should equal alpha * S
|
||||
assertEq(burned, alpha.mul(S), "burned size-metric mismatch");
|
||||
@@ -921,7 +921,7 @@ contract LMSRStabilizedTest is Test {
|
||||
_updateCachedQInternal(mockQInternal);
|
||||
|
||||
int128 alpha = ABDKMath64x64.divu(1, 100); // 1%
|
||||
(int128 payout, int128 burned) = s.swapAmountsForBurn(0, alpha);
|
||||
(int128 burned, int128 payout) = s.swapAmountsForBurn(0, alpha);
|
||||
|
||||
// Should still burn the size metric
|
||||
int128 S = _computeSizeMetric(mockQInternal);
|
||||
|
||||
Reference in New Issue
Block a user