-
Notifications
You must be signed in to change notification settings - Fork 42
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 #111 from cryptoalgebra/paladin-fixes
Paladin fixes
- Loading branch information
Showing
73 changed files
with
947 additions
and
432 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
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,27 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity =0.8.20; | ||
pragma abicoder v1; | ||
|
||
import './interfaces/vault/IAlgebraVaultFactory.sol'; | ||
|
||
/// @title Algebra vault factory stub | ||
/// @notice This contract is used to set AlgebraCommunityVault as communityVault in new pools | ||
contract AlgebraVaultFactoryStub is IAlgebraVaultFactory { | ||
/// @notice the address of AlgebraCommunityVault | ||
address public immutable defaultAlgebraCommunityVault; | ||
|
||
constructor(address _algebraCommunityVault) { | ||
require(_algebraCommunityVault != address(0)); | ||
defaultAlgebraCommunityVault = _algebraCommunityVault; | ||
} | ||
|
||
/// @inheritdoc IAlgebraVaultFactory | ||
function getVaultForPool(address) external view override returns (address) { | ||
return defaultAlgebraCommunityVault; | ||
} | ||
|
||
/// @inheritdoc IAlgebraVaultFactory | ||
function createVaultForPool(address) external view override returns (address) { | ||
return defaultAlgebraCommunityVault; | ||
} | ||
} |
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
Oops, something went wrong.