Closed JhChoy closed 11 months ago
Currently, OdosRepayAdapter has any context of the Odos Protocol. It does not have to know the specific router's interface because the adapter communicates with the router like below:
OdosRepayAdapter
router
(bool success, bytes reason) = router.call(swapData);
Change the contract name from OdosRepayAdapter to just RepayAdapter and the variable name from _odosRouter to _router.
RepayAdapter
_odosRouter
_router
Description
Currently,
OdosRepayAdapter
has any context of the Odos Protocol. It does not have to know the specificrouter
's interface because the adapter communicates with the router like below:Proposal
Change the contract name from
OdosRepayAdapter
to justRepayAdapter
and the variable name from_odosRouter
to_router
.