@@ -23,10 +23,7 @@ import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
2323contract Strategy is BaseStrategy {
2424 using SafeERC20 for ERC20 ;
2525
26- constructor (
27- address _asset ,
28- string memory _name
29- ) BaseStrategy (_asset, _name) {}
26+ constructor (address _asset , string memory _name ) BaseStrategy (_asset, _name) {}
3027
3128 /*//////////////////////////////////////////////////////////////
3229 NEEDED TO BE OVERRIDDEN BY STRATEGIST
@@ -98,11 +95,7 @@ contract Strategy is BaseStrategy {
9895 * @return _totalAssets A trusted and accurate account for the total
9996 * amount of 'asset' the strategy currently holds including idle funds.
10097 */
101- function _harvestAndReport ()
102- internal
103- override
104- returns (uint256 _totalAssets )
105- {
98+ function _harvestAndReport () internal override returns (uint256 _totalAssets ) {
10699 // TODO: Implement harvesting logic and accurate accounting EX:
107100 //
108101 // if(!TokenizedStrategy.isShutdown()) {
@@ -137,7 +130,12 @@ contract Strategy is BaseStrategy {
137130 */
138131 function availableWithdrawLimit (
139132 address /*_owner*/
140- ) public view override returns (uint256 ) {
133+ )
134+ public
135+ view
136+ override
137+ returns (uint256 )
138+ {
141139 // NOTE: Withdraw limitations such as liquidity constraints should be accounted for HERE
142140 // rather than _freeFunds in order to not count them as losses on withdraws.
143141
@@ -171,16 +169,16 @@ contract Strategy is BaseStrategy {
171169 * @param . The address that is depositing into the strategy.
172170 * @return . The available amount the `_owner` can deposit in terms of `asset`
173171 *
174- function availableDepositLimit(
175- address _owner
176- ) public view override returns (uint256) {
177- TODO: If desired Implement deposit limit logic and any needed state variables .
178-
179- EX:
180- uint256 totalAssets = TokenizedStrategy.totalAssets();
181- return totalAssets >= depositLimit ? 0 : depositLimit - totalAssets;
182- }
183- */
172+ * function availableDepositLimit(
173+ * address _owner
174+ * ) public view override returns (uint256) {
175+ * TODO: If desired Implement deposit limit logic and any needed state variables .
176+ *
177+ * EX:
178+ * uint256 totalAssets = TokenizedStrategy.totalAssets();
179+ * return totalAssets >= depositLimit ? 0 : depositLimit - totalAssets;
180+ * }
181+ */
184182
185183 /**
186184 * @dev Optional function for strategist to override that can
@@ -203,17 +201,17 @@ contract Strategy is BaseStrategy {
203201 *
204202 * @param _totalIdle The current amount of idle funds that are available to deploy.
205203 *
206- function _tend(uint256 _totalIdle) internal override {}
207- */
204+ * function _tend(uint256 _totalIdle) internal override {}
205+ */
208206
209207 /**
210208 * @dev Optional trigger to override if tend() will be used by the strategy.
211209 * This must be implemented if the strategy hopes to invoke _tend().
212210 *
213211 * @return . Should return true if tend() should be called by keeper or false if not.
214212 *
215- function _tendTrigger() internal view override returns (bool) {}
216- */
213+ * function _tendTrigger() internal view override returns (bool) {}
214+ */
217215
218216 /**
219217 * @dev Optional function for a strategist to override that will
@@ -236,13 +234,12 @@ contract Strategy is BaseStrategy {
236234 *
237235 * @param _amount The amount of asset to attempt to free.
238236 *
239- function _emergencyWithdraw(uint256 _amount) internal override {
240- TODO: If desired implement simple logic to free deployed funds.
241-
242- EX:
243- _amount = min(_amount, aToken.balanceOf(address(this)));
244- _freeFunds(_amount);
245- }
246-
247- */
237+ * function _emergencyWithdraw(uint256 _amount) internal override {
238+ * TODO: If desired implement simple logic to free deployed funds.
239+ *
240+ * EX:
241+ * _amount = min(_amount, aToken.balanceOf(address(this)));
242+ * _freeFunds(_amount);
243+ * }
244+ */
248245}
0 commit comments