Skip to content
Merged

B33 #204

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contracts/execution/UniswapV3ExecutionAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ contract UniswapV3ExecutionAdapter is IExecutionAdapter, Ownable2Step {
/// @param fee The fee tier to set
function setAssetFee(address asset, uint24 fee) external onlyOwnerOrGuardian {
if (asset == address(0)) revert ErrorsLib.ZeroAddress();
if (!CONFIG.isSystemIdle()) revert ErrorsLib.SystemNotIdle();

address pool = UNISWAP_V3_FACTORY.getPool(asset, address(UNDERLYING_ASSET), fee);

Expand Down
10 changes: 10 additions & 0 deletions contracts/test/MockOrionConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ contract MockOrionConfig {
mapping(address => bool) private whitelisted;
/// @dev When true, return 0 for unset tokens (simulates real OrionConfig where unwhitelisted tokens have no entry)
bool public returnZeroForUnsetTokens;
/// @dev Mirrors OrionConfig `isSystemIdle` for adapter tests; default true (idle).
bool public systemIdle = true;

constructor(address _underlyingAsset) {
UNDERLYING_ASSET = _underlyingAsset;
Expand Down Expand Up @@ -78,4 +80,12 @@ contract MockOrionConfig {
function setGuardian(address _guardian) external {
guardian = _guardian;
}

function isSystemIdle() external view returns (bool) {
return systemIdle;
}

function setSystemIdle(bool idle) external {
systemIdle = idle;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@orion-finance/protocol",
"description": "Orion Finance Protocol",
"version": "2.3.2",
"version": "2.3.3",
"type": "module",
"engines": {
"node": ">=22.10.0"
Expand Down
Loading