LibUint256Array
the
sum
function in the LibUint256Array
library allows you to calculate the sum of all elements in a uint256
array using efficient assembly operations.Input:
Field | Type | Description |
---|---|---|
self | uint256[] | An array of amounts whose sum needs to be found out. |
Output:
Field | Type | Description |
---|---|---|
amountOut | uint256 | The final sum of all the amounts |
Last modified 26d ago