Lone Mint Kookaburra
High
The changeOwner
function in the contract fails to update the owner address, rendering the functionality non-operational. This occurs due to a logical error in the assignment statement within the function, where the parameter owner
is incorrectly assigned to itself rather than updating the state variable.
- In DebitaV3Aggregator.sol#L682-L686, the line
owner = owner;
assigns the parameterowner
to itself, rather than updating the contract'sowner
state variable. This mistake leads to no effective change in ownership.
similar issue in other two contracts also.
No response
No response
No response
- The contract owner cannot be changed, which undermines the flexibility and intended functionality of the
changeOwner
feature. - This could result in operational inefficiencies, as the inability to transfer ownership may block critical administrative actions.
No response
To fix the issue, modify the function to ensure the state variable owner is updated correctly. Replace:
- owner = owner;
+ this.owner = owner;