fix: Small misc improvements from audit
- In RestrictTransferFrom: - Compare tokenIn with tokenIn from storage - Correct docstrings - Recompute storage slots with new names - Rename transferFromNeeded to isTransferFromAllowed - Don't track amount spent but subtract from amount allowed - In TychoRouter: Rename transferFromNeeded to isTransferFromAllowed Took 32 minutes
This commit is contained in:
@@ -318,7 +318,7 @@ contract TychoRouterSingleSwapTest is TychoRouterTestSetup {
|
||||
amountIn // attempted amount
|
||||
)
|
||||
);
|
||||
uint256 amountOut = tychoRouter.singleSwap(
|
||||
tychoRouter.singleSwap(
|
||||
amountIn,
|
||||
WETH_ADDR,
|
||||
DAI_ADDR,
|
||||
|
||||
Reference in New Issue
Block a user