-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from SweeprFi/baseswap
Baseswap
- Loading branch information
Showing
35 changed files
with
816 additions
and
736 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.19; | ||
|
||
// ========================================================== | ||
// ====================== BaseswapAMM.sol =================== | ||
// ========================================================== | ||
|
||
/** | ||
* @title Baseswap AMM | ||
* @dev Interactions with BaseSwap | ||
*/ | ||
|
||
import "./UniswapAMM.sol"; | ||
|
||
contract BaseswapAMM is UniswapAMM { | ||
|
||
constructor( | ||
address _sweep, | ||
address _base, | ||
address _sequencer, | ||
address _pool, | ||
address _oracleBase, | ||
uint256 _oracleBaseUpdateFrequency, | ||
address _liquidityHelper, | ||
address _router | ||
) UniswapAMM( | ||
_sweep, _base, _sequencer, _pool, _oracleBase, | ||
_oracleBaseUpdateFrequency, _liquidityHelper, _router | ||
) {} | ||
} |
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
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,28 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.19; | ||
|
||
// ==================================================================== | ||
// ===================== BaseswapMarketMaker.sol ====================== | ||
// ==================================================================== | ||
|
||
/** | ||
* @title Baseswap Market Maker | ||
* @dev Implementation: | ||
* Mints a new LP. | ||
* Increases and decreases the liquidity for the LP created. | ||
* Collects fees from the LP. | ||
*/ | ||
|
||
import { UniswapMarketMaker } from "./UniswapMarketMaker.sol"; | ||
|
||
contract BaseswapMarketMaker is UniswapMarketMaker { | ||
|
||
constructor( | ||
string memory _name, | ||
address _sweep, | ||
address _usdx, | ||
address _oracleUsdx, | ||
address _positionManager, | ||
address _borrower | ||
) UniswapMarketMaker(_name, _sweep, _usdx, _oracleUsdx, _positionManager, _borrower) {} | ||
} |
Oops, something went wrong.