We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fea847 commit 9bf084cCopy full SHA for 9bf084c
src/adapters/GeneralAdapter1.sol
@@ -50,6 +50,7 @@ contract GeneralAdapter1 is CoreAdapter {
50
/// @notice Wraps underlying tokens to wrapped token and sends them to the initiator.
51
/// @dev Underlying tokens must have been previously sent to the adapter.
52
/// @dev Assumes that `wrapper` implements the `ERC20Wrapper` interface.
53
+ /// @dev The account is hardcoded to the initiator, to prevent unauthorized wrapping.
54
/// @param wrapper The address of the ERC20 wrapper contract.
55
/// @param amount The amount of underlying tokens to deposit. Pass `type(uint).max` to deposit the adapter's
56
/// underlying balance.
0 commit comments