Aave changes

This commit is contained in:
Thrilok Kumar 2021-03-21 01:53:45 +05:30
parent 0000d78bb7
commit aceb55ac94
2 changed files with 28 additions and 28 deletions

View File

@ -16,9 +16,9 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function deposit( function deposit(
address token, address token,
uint amt, uint256 amt,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
@ -52,9 +52,9 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function withdraw( function withdraw(
address token, address token,
uint amt, uint256 amt,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
AaveCoreInterface aaveCore = AaveCoreInterface(aaveProvider.getLendingPoolCore()); AaveCoreInterface aaveCore = AaveCoreInterface(aaveProvider.getLendingPoolCore());
@ -81,9 +81,9 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function borrow( function borrow(
address token, address token,
uint amt, uint256 amt,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
@ -103,9 +103,9 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function payback( function payback(
address token, address token,
uint amt, uint256 amt,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
@ -155,5 +155,5 @@ abstract contract AaveResolver is Events, Helpers {
} }
contract ConnectV2AaveV1 is AaveResolver { contract ConnectV2AaveV1 is AaveResolver {
string public name = "AaveV1-v1"; string constant public name = "AaveV1-v1";
} }

View File

@ -16,9 +16,9 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function deposit( function deposit(
address token, address token,
uint amt, uint256 amt,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
@ -59,9 +59,9 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function withdraw( function withdraw(
address token, address token,
uint amt, uint256 amt,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
@ -95,10 +95,10 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function borrow( function borrow(
address token, address token,
uint amt, uint256 amt,
uint rateMode, uint256 rateMode,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
@ -126,10 +126,10 @@ abstract contract AaveResolver is Events, Helpers {
*/ */
function payback( function payback(
address token, address token,
uint amt, uint256 amt,
uint rateMode, uint256 rateMode,
uint getId, uint256 getId,
uint setId uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) { ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt); uint _amt = getUint(getId, amt);
@ -179,5 +179,5 @@ abstract contract AaveResolver is Events, Helpers {
} }
contract ConnectV2AaveV2 is AaveResolver { contract ConnectV2AaveV2 is AaveResolver {
string public name = "AaveV2-v1"; string constant public name = "AaveV2-v1";
} }