-
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 #29 from tetu-io/dev
Dev
- Loading branch information
Showing
175 changed files
with
20,096 additions
and
19,700 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
module.exports = { | ||
skipFiles: ['third_party', 'test', 'tools', 'openzeppelin'] | ||
skipFiles: ['third_party', 'test', 'tools', 'openzeppelin'], | ||
configureYulOptimizer: true, | ||
mocha: { | ||
grep: "@skip-on-coverage", // Find everything with this tag | ||
invert: true // Run the grep's inverse set. | ||
}, | ||
solcOptimizerDetails: { | ||
peephole: false, | ||
//inliner: false, | ||
jumpdestRemover: false, | ||
orderLiterals: false, // <-- TRUE! Stack too deep when false | ||
deduplicate: false, | ||
cse: false, | ||
constantOptimizer: false, | ||
yul: true, | ||
} | ||
|
||
}; |
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,38 @@ | ||
// SPDX-License-Identifier: ISC | ||
/** | ||
* By using this software, you understand, acknowledge and accept that Tetu | ||
* and/or the underlying software are provided “as is” and “as available” | ||
* basis and without warranties or representations of any kind either expressed | ||
* or implied. Any use of this open source software released under the ISC | ||
* Internet Systems Consortium license is done at your own risk to the fullest | ||
* extent permissible pursuant to applicable law any and all liability as well | ||
* as all warranties, including any fitness for a particular purpose with respect | ||
* to Tetu and/or the underlying software and the use thereof are disclaimed. | ||
*/ | ||
pragma solidity 0.8.4; | ||
|
||
import "../../strategies/balancer/BalancerBoostStrategyBase.sol"; | ||
|
||
contract StrategyBalancerBoost is BalancerBoostStrategyBase { | ||
|
||
function initialize( | ||
address controller_, | ||
address vault_, | ||
bytes32 poolId_, | ||
address gauge_, | ||
uint _bbRatio, | ||
address depositToken_, | ||
address gaugeDepositor_ | ||
) external initializer { | ||
initializeStrategy( | ||
controller_, | ||
vault_, | ||
poolId_, | ||
gauge_, | ||
_bbRatio, | ||
depositToken_, | ||
gaugeDepositor_ | ||
); | ||
} | ||
|
||
} |
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,40 @@ | ||
// SPDX-License-Identifier: ISC | ||
/** | ||
* By using this software, you understand, acknowledge and accept that Tetu | ||
* and/or the underlying software are provided “as is” and “as available” | ||
* basis and without warranties or representations of any kind either expressed | ||
* or implied. Any use of this open source software released under the ISC | ||
* Internet Systems Consortium license is done at your own risk to the fullest | ||
* extent permissible pursuant to applicable law any and all liability as well | ||
* as all warranties, including any fitness for a particular purpose with respect | ||
* to Tetu and/or the underlying software and the use thereof are disclaimed. | ||
*/ | ||
pragma solidity 0.8.4; | ||
|
||
import "../../strategies/balancer/BalancerBoostBPTStrategyBase.sol"; | ||
|
||
contract StrategyBalancerBoostBPT is BalancerBoostBPTStrategyBase { | ||
|
||
function initialize( | ||
address controller_, | ||
address vault_, | ||
bytes32 poolId_, | ||
address gauge_, | ||
uint _bbRatio, | ||
address depositToken_, | ||
bytes32 depositBPTPoolId_, | ||
address gaugeDepositor_ | ||
) external initializer { | ||
initializeStrategy( | ||
controller_, | ||
vault_, | ||
poolId_, | ||
gauge_, | ||
_bbRatio, | ||
depositToken_, | ||
depositBPTPoolId_, | ||
gaugeDepositor_ | ||
); | ||
} | ||
|
||
} |
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,34 @@ | ||
// SPDX-License-Identifier: ISC | ||
/** | ||
* By using this software, you understand, acknowledge and accept that Tetu | ||
* and/or the underlying software are provided “as is” and “as available” | ||
* basis and without warranties or representations of any kind either expressed | ||
* or implied. Any use of this open source software released under the ISC | ||
* Internet Systems Consortium license is done at your own risk to the fullest | ||
* extent permissible pursuant to applicable law any and all liability as well | ||
* as all warranties, including any fitness for a particular purpose with respect | ||
* to Tetu and/or the underlying software and the use thereof are disclaimed. | ||
*/ | ||
pragma solidity 0.8.4; | ||
|
||
import "../../strategies/balancer/BalancerBoostTetuUsdcStrategyBase.sol"; | ||
|
||
contract StrategyBalancerBoostTetuUsdc is BalancerBoostTetuUsdcStrategyBase { | ||
|
||
function initialize( | ||
address controller_, | ||
address vault_, | ||
address rewardsRecipient_, | ||
address bribeReceiver_, | ||
address gaugeDepositor_ | ||
) external initializer { | ||
initializeStrategy( | ||
controller_, | ||
vault_, | ||
rewardsRecipient_, | ||
bribeReceiver_, | ||
gaugeDepositor_ | ||
); | ||
} | ||
|
||
} |
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: ISC | ||
/** | ||
* By using this software, you understand, acknowledge and accept that Tetu | ||
* and/or the underlying software are provided “as is” and “as available” | ||
* basis and without warranties or representations of any kind either expressed | ||
* or implied. Any use of this open source software released under the ISC | ||
* Internet Systems Consortium license is done at your own risk to the fullest | ||
* extent permissible pursuant to applicable law any and all liability as well | ||
* as all warranties, including any fitness for a particular purpose with respect | ||
* to Tetu and/or the underlying software and the use thereof are disclaimed. | ||
*/ | ||
pragma solidity 0.8.4; | ||
|
||
import "../../strategies/tangible/CaviarStakingStrategyBase.sol"; | ||
|
||
|
||
contract StrategyCaviarStaking is CaviarStakingStrategyBase { | ||
|
||
function initialize( | ||
address controller_, | ||
address vault_, | ||
uint buybackRatio_ | ||
) external initializer { | ||
initializeStrategy( | ||
controller_, | ||
vault_, | ||
buybackRatio_ | ||
); | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
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,41 @@ | ||
// SPDX-License-Identifier: ISC | ||
/** | ||
* By using this software, you understand, acknowledge and accept that Tetu | ||
* and/or the underlying software are provided “as is” and “as available” | ||
* basis and without warranties or representations of any kind either expressed | ||
* or implied. Any use of this open source software released under the ISC | ||
* Internet Systems Consortium license is done at your own risk to the fullest | ||
* extent permissible pursuant to applicable law any and all liability as well | ||
* as all warranties, including any fitness for a particular purpose with respect | ||
* to Tetu and/or the underlying software and the use thereof are disclaimed. | ||
*/ | ||
|
||
pragma solidity 0.8.4; | ||
|
||
interface IBribeDistribution { | ||
function VERSION() external view returns (string memory); | ||
|
||
function acceptOwnership() external; | ||
|
||
function autoNotify() external; | ||
|
||
function bribe() external view returns (address); | ||
|
||
function manualNotify(uint256 amount, bool fresh) external; | ||
|
||
function offerOwnership(address newOwner) external; | ||
|
||
function operator() external view returns (address); | ||
|
||
function owner() external view returns (address); | ||
|
||
function pendingOwner() external view returns (address); | ||
|
||
function round() external view returns (uint256); | ||
|
||
function setOperator(address operator_) external; | ||
|
||
function token() external view returns (address); | ||
|
||
function vault() external view returns (address); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,22 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.4; | ||
|
||
interface ISwapper { | ||
|
||
function swap( | ||
address pool, | ||
address tokenIn, | ||
address tokenOut, | ||
address recipient, | ||
uint priceImpactTolerance | ||
) external; | ||
|
||
function getPrice( | ||
address pool, | ||
address tokenIn, | ||
address tokenOut, | ||
uint amount | ||
) external view returns (uint); | ||
|
||
} |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.