-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added trade protection to swap functions
- Loading branch information
1 parent
bd9e309
commit 090a4ce
Showing
3 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.6; | ||
|
||
import "../PrizePoolLiquidator.sol"; | ||
|
||
contract PrizePoolLiquidatorHarness is PrizePoolLiquidator { | ||
|
||
function swapExactAmountInAtTime(IPrizePool _prizePool, uint256 amountIn, uint256 amountOutMin, uint256 currentTime) external returns (uint256) { | ||
return _swapExactAmountInAtTime(_prizePool, amountIn, amountOutMin, currentTime); | ||
} | ||
|
||
function swapExactAmountOutAtTime( | ||
IPrizePool _prizePool, | ||
uint256 amountOut, | ||
uint256 amountInMax, | ||
uint256 currentTime | ||
) external returns (uint256) { | ||
return _swapExactAmountOutAtTime(_prizePool, amountOut, amountInMax, currentTime); | ||
} | ||
} |