Skip to content

Commit

Permalink
✨ VaultRouterModule
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Nov 10, 2021
1 parent 3e2958f commit a35ecf1
Show file tree
Hide file tree
Showing 6 changed files with 439 additions and 206 deletions.
10 changes: 5 additions & 5 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ testReplaceWithdrawalQueueIndexWithTip() (gas: 127642)
testFailTrustStrategyWithWrongUnderlying() (gas: 2002469)
testSwapWithdrawalQueueIndexes() (gas: 127920)
testFailWithdrawWithEmptyQueue() (gas: 313475)
testFailDepositIntoNotWETHVault() (gas: 10760)
testFailRedeemFromNotWETHVault() (gas: 245367)
testAtomicDepositRedeemETH() (gas: 330054)
testFailWithdrawFromNotWETHVault() (gas: 245301)
testAtomicDepositWithdrawETH() (gas: 331727)
testFailNoDuplicateVaults() (gas: 272747603293004)
testDeployVault() (gas: 4167465)
testFailDepositIntoNotWETHVault() (gas: 10797)
testFailRedeemFromNotWETHVault() (gas: 247258)
testAtomicDepositRedeemETH() (gas: 332003)
testFailWithdrawFromNotWETHVault() (gas: 247181)
testAtomicDepositWithdrawETH() (gas: 333639)
24 changes: 24 additions & 0 deletions src/interfaces/AllowedPermit.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.9;

interface AllowedPermit {
/// @dev Non-standard permit interface used by DAI.
/// @param holder The address of the token owner.
/// @param spender The address of the token spender.
/// @param nonce The owner's nonce, increases at each call to permit.
/// @param expiry The timestamp at which the permit is no longer valid.
/// @param allowed Boolean that sets approval amount, true for type(uint256).max and false for 0.
/// @param v Must produce valid secp256k1 signature from the owner along with r and s.
/// @param r Must produce valid secp256k1 signature from the owner along with v and s.
/// @param s Must produce valid secp256k1 signature from the owner along with r and v.
function permit(
address holder,
address spender,
uint256 nonce,
uint256 expiry,
bool allowed,
uint8 v,
bytes32 r,
bytes32 s
) external;
}
108 changes: 0 additions & 108 deletions src/modules/VaultETHWrapperModule.sol

This file was deleted.

Loading

0 comments on commit a35ecf1

Please sign in to comment.