Skip to content
Merged
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
48 changes: 0 additions & 48 deletions contracts/amm-eth/AmmPoolsLensStEth.sol

This file was deleted.

193 changes: 0 additions & 193 deletions contracts/amm-eth/AmmPoolsServiceStEth.sol

This file was deleted.

10 changes: 0 additions & 10 deletions contracts/amm-eth/interfaces/IAmmPoolsLensStEth.sol

This file was deleted.

6 changes: 6 additions & 0 deletions contracts/amm-eth/interfaces/IAmmPoolsServiceStEth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ interface IAmmPoolsServiceStEth {
/// require The calculated stEth amount to redeem after accounting for the fee should be greater than zero.
function redeemFromAmmPoolStEth(address beneficiary, uint256 ipTokenAmount) external;

/// @notice Rebalances stETH assets between the AmmTreasury and the AssetManagement, based on configuration stored
/// in the `AmmPoolsParamsValue.ammTreasuryAndAssetManagementRatio` field.
/// @dev Emits {Deposit} or {Withdraw} event from AssetManagement depends on current asset balance on AmmTreasury and AssetManagement.
/// @dev Emits {Transfer} from ERC20 asset.
function rebalanceBetweenAmmTreasuryAndAssetManagementStEth() external;

/// @notice Error appeared when submitted ETH amount to in stETH contract is too high.
/// @param amount Amount of ETH which was submitted to stETH contract.
/// @param errorCode IPOR Protocol error code.
Expand Down
48 changes: 0 additions & 48 deletions contracts/amm-usdm/AmmPoolsLensUsdm.sol

This file was deleted.

3 changes: 1 addition & 2 deletions contracts/amm-usdm/AmmPoolsServiceUsdm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "../interfaces/types/AmmTypes.sol";
import "./interfaces/IAmmPoolsServiceUsdm.sol";
import "../libraries/errors/AmmErrors.sol";
import "../libraries/math/IporMath.sol";
import "../libraries/StorageLib.sol";
import "../libraries/IporContractValidator.sol";
import "../libraries/ProvideLiquidityEvents.sol";
import "../libraries/AmmLib.sol";
Expand Down Expand Up @@ -50,7 +49,7 @@ contract AmmPoolsServiceUsdm is IAmmPoolsServiceUsdm {
}

function provideLiquidityUsdmToAmmPoolUsdm(address beneficiary, uint256 usdmAmount) external payable override {
StorageLib.AmmPoolsParamsValue memory ammPoolsParamsCfg = AmmConfigurationManager.getAmmPoolsParams(usdm);
StorageLibBaseV1.AmmPoolsParamsValue memory ammPoolsParamsCfg = AmmConfigurationManager.getAmmPoolsParams(usdm);

uint256 actualLiquidityPoolBalance = IAmmTreasuryBaseV1(ammTreasuryUsdm).getLiquidityPoolBalance();
uint256 newPoolBalance = actualLiquidityPoolBalance + usdmAmount;
Expand Down
10 changes: 0 additions & 10 deletions contracts/amm-usdm/interfaces/IAmmPoolsLensUsdm.sol

This file was deleted.

2 changes: 1 addition & 1 deletion contracts/amm-usdm/interfaces/IAmmPoolsServiceUsdm.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.26;

/// @title Interface of the AmmPoolsServiceWstEth contract.
/// @title Interface of the AmmPoolsServiceUsdm contract.
interface IAmmPoolsServiceUsdm {
function provideLiquidityUsdmToAmmPoolUsdm(address beneficiary, uint256 usdmAmount) external payable;

Expand Down
Loading
Loading