Closed MickdeGraaf closed 3 years ago
For a given underlying asset it returns the APR and which lending protocol has the best rate
Add a function to the lendingRegistry which returns the highest APR for a given _underlying and array of _protocols with the following interface:
lendingRegistry
_underlying
_protocols
getBestApr(address _underlying, bytes[] memory _protocols) external view returns(uint256 apr, bytes32 protocol);
Relies on #17
it is appropriate to implement both getBestApr and getBestAprView? In relation to the underlying lending logic methods
getBestApr
getBestAprView
Implemented in feature/best-apr, included the changes from #17 and #18
feature/best-apr
For a given underlying asset it returns the APR and which lending protocol has the best rate
User Story
Type
Description
Add a function to the
lendingRegistry
which returns the highest APR for a given_underlying
and array of_protocols
with the following interface:getBestApr(address _underlying, bytes[] memory _protocols) external view returns(uint256 apr, bytes32 protocol);
Definition of Done
Relies on #17