Open Akshola00 opened 2 days ago
Implement a function that verifies if the DEX contract holds enough of the output token to complete the swap after calculating the amount required.
amountOut
tokenOut
Goal
Implement a function that verifies if the DEX contract holds enough of the output token to complete the swap after calculating the amount required.
Requirements
amountOut
calculated in the previous step.tokenOut
is sufficient to fulfill the swap.