Skip to content

Commit 4deb901

Browse files
committed
linter + fetching from latest block
1 parent 57120d5 commit 4deb901

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

src/helpers/VedaAdapter.sol

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,7 @@ contract VedaAdapter is Ownable2Step {
243243
* @notice Security consideration: Callable by anyone. The redelegation passed in MUST include an
244244
* `ERC20TransferAmountEnforcer` capped to exactly `_shareAmount` to prevent over-spending or replay.
245245
*/
246-
function withdrawByDelegation(
247-
Delegation[] memory _delegations,
248-
address _token,
249-
uint256 _minimumAssets
250-
)
251-
external
252-
{
246+
function withdrawByDelegation(Delegation[] memory _delegations, address _token, uint256 _minimumAssets) external {
253247
_executeWithdrawByDelegation(_delegations, _token, _minimumAssets, msg.sender);
254248
}
255249

@@ -334,13 +328,7 @@ contract VedaAdapter is Ownable2Step {
334328
* @param _minimumMint Minimum vault shares expected (sanity-check bound)
335329
* @param _caller Address of the caller, used only for event emission
336330
*/
337-
function _executeDepositByDelegation(
338-
Delegation[] memory _delegations,
339-
uint256 _minimumMint,
340-
address _caller
341-
)
342-
internal
343-
{
331+
function _executeDepositByDelegation(Delegation[] memory _delegations, uint256 _minimumMint, address _caller) internal {
344332
uint256 length_ = _delegations.length;
345333
if (length_ < 2) revert InvalidDelegationsLength();
346334

test/helpers/VedaLending.t.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ contract VedaLendingTest is BaseTest {
6868
LimitedCallsEnforcer public limitedCallsEnforcer;
6969
VedaAdapter public vedaAdapter;
7070

71-
uint256 public constant MAINNET_FORK_BLOCK = 447148700; // Use latest available block
7271
uint256 public constant INITIAL_USD_BALANCE = 10000000000; // 10k USDC
7372
uint256 public constant DEPOSIT_AMOUNT = 1000000000; // 1k USDC
7473
uint256 public constant SHARE_LOCK_SECONDS = 61; // Warp past the 60s share lock period applied by deposit()
@@ -77,7 +76,7 @@ contract VedaLendingTest is BaseTest {
7776

7877
function setUp() public override {
7978
// Create fork from mainnet at specific block
80-
vm.createSelectFork(vm.envString("ARBITRUM_RPC_URL"), MAINNET_FORK_BLOCK);
79+
vm.createSelectFork(vm.envString("ARBITRUM_RPC_URL"));
8180

8281
// Set implementation type
8382
IMPLEMENTATION = Implementation.Hybrid;

0 commit comments

Comments
 (0)