Skip to content

Commit

Permalink
add @dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis committed Aug 1, 2024
1 parent e5e0e92 commit e891903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libraries/CalldataDecoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ library CalldataDecoder {
}
}

/// @dev equivalent to: abi.decode(params, (Currency, Currency)) in calldata
function decodeCurrencyPair(bytes calldata params) internal pure returns (Currency currency0, Currency currency1) {
assembly ("memory-safe") {
currency0 := calldataload(params.offset)
Expand Down

0 comments on commit e891903

Please sign in to comment.