File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ interface IL2Pool {
39
39
* @dev the shortenedAmount is cast to 256 bits at decode time, if type(uint128).max the value will be expanded to
40
40
* type(uint256).max
41
41
* @dev assetId is the index of the asset in the reservesList.
42
+ * @return The final amount withdrawn
42
43
*/
43
- function withdraw (bytes32 args ) external ;
44
+ function withdraw (bytes32 args ) external returns ( uint256 ) ;
44
45
45
46
/**
46
47
* @notice Calldata efficient wrapper of the borrow function, borrowing on behalf of the caller
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ contract L2Pool is Pool, IL2Pool {
40
40
}
41
41
42
42
/// @inheritdoc IL2Pool
43
- function withdraw (bytes32 args ) external override {
43
+ function withdraw (bytes32 args ) external override returns ( uint256 ) {
44
44
(address asset , uint256 amount ) = CalldataLogic.decodeWithdrawParams (_reservesList, args);
45
45
46
- withdraw (asset, amount, msg .sender );
46
+ return withdraw (asset, amount, msg .sender );
47
47
}
48
48
49
49
/// @inheritdoc IL2Pool
You can’t perform that action at this time.
0 commit comments