Skip to content
Request an audit

‹ All findings

_handleSwapAction(...) creates situations where the arguments receiver and sweeper need to be the same address in BaseRouter

Low/InfoFuji Finance·Three Sigma · Lending aggregator · 6th May, 20233S-FUJI-N13

Description

In _handleSwapAction(...) the function checks if both the receiver and sweeper are the beneficiary given certain conditions. Since there can only be one beneficiary there are situations where a user can't name the receiver and sweeper as two different addresses.

Recommendation

This should be explained as expected behavior in the documentation or in comments.

Status

Addressed here: Fujicracy/fuji-v2#626