Skip to content

Commit 3eca48a

Browse files
feat: add todo
1 parent 9aa10c9 commit 3eca48a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contracts/superbridge/YVault.sol

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ import {IStrategy} from "../interfaces/IStrategy.sol";
88
import {RescueFundsLib} from "./RescueFundsLib.sol";
99
import "openzeppelin-contracts/contracts/utils/math/Math.sol";
1010

11-
// @todo: separate our connecter plugs
11+
// add report external function (called from cron)
12+
// call report from withdraw and deposit too (with timestamp check, settable by admin)
13+
// pausable vault
14+
// redeem all from strategy and detach
15+
// reentrancy guard
16+
1217
contract YVault is Gauge, Ownable2Step, ERC4626 {
1318
using SafeTransferLib for ERC20;
1419
ERC20 public immutable token__;
1520

1621
uint256 public totalIdle; // Amount of tokens that are in the vault
1722
uint256 public totalDebt; // Amount of tokens that strategy have borrowed
23+
1824
uint256 public totalProfit; // Amount of tokens that strategy have earned
1925
uint256 public totalLoss; // Amount of tokens that strategy have lost
2026
uint256 public debtRatio; // Debt ratio for the Vault (in BPS, <= 10k)

0 commit comments

Comments
 (0)