Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

LendingPool.swapBorrowRateMode natspec documentation for the rateMode parameter is misleading #330

@StErMi

Description

@StErMi

The current natspec documentation for the rateMode parameter on the LendingPool.swapBorrowRateMode functions states

@param rateMode The rate mode that the user wants to swap to

From a user prospective, it seems that you should pass the rateMode that you want to switch your debt INTO
Instead, the function requires you to pass the CURRENT rateMode that you are using for your debt position.

Honestly, I think that the best UX would be to specify the rateMode you would like to swap to, but changing the natspec is much less complex than changing the whole logic of the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions