Skip to content

Commit

Permalink
Copy paste FlashMintLeveraged as starting point
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Apr 11, 2024
1 parent f2907ac commit 967db96
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 1 deletion.
58 changes: 58 additions & 0 deletions contracts/exchangeIssuance/FlashMintLeveragedExtended.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
Copyright 2024 Index Cooperative
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SPDX-License-Identifier: Apache License, Version 2.0
*/
pragma solidity 0.6.10;
pragma experimental ABIEncoderV2;

import { FlashMintLeveraged } from "./FlashMintLeveraged.sol";
import { DEXAdapter } from "./DEXAdapter.sol";
import { IController } from "../interfaces/IController.sol";
import { IAaveLeverageModule } from "../interfaces/IAaveLeverageModule.sol";
import { IDebtIssuanceModule } from "../interfaces/IDebtIssuanceModule.sol";

/**
* @title FlashMintLeveragedExtended
* @author Index Coop
*
* Extended version of FlashMintLeveraged which allows for exactInputIssuance and exactOutputRedemption
*/
contract FlashMintLeveragedExtended is FlashMintLeveraged {

/* ============ Constructor ============ */

/**
* Sets various contract addresses
*
* @param _addresses dex adapter addreses
* @param _setController SetToken controller used to verify a given token is a set
* @param _debtIssuanceModule DebtIssuanceModule used to issue and redeem tokens
* @param _aaveLeverageModule AaveLeverageModule to sync before every issuance / redemption
* @param _aaveV3Pool Address of address provider for aaves addresses
* @param _vault Balancer Vault to flashloan from
*/
constructor(
DEXAdapter.Addresses memory _addresses,
IController _setController,
IDebtIssuanceModule _debtIssuanceModule,
IAaveLeverageModule _aaveLeverageModule,
address _aaveV3Pool,
address _vault
)
public
FlashMintLeveraged(_addresses, _setController, _debtIssuanceModule, _aaveLeverageModule, _aaveV3Pool, _vault)
{
}
}

Loading

0 comments on commit 967db96

Please sign in to comment.