Bolo
November 5, 2020, 2:11pm
1
Hi
first all thanks for your guide. I was able to setup my relayer.
I have notice an error in the code, UniswapOracleV2 is replaced for UniswapV2SlidingOracle, if I am not wrong.
How I can implement the other jobs, like AaveLiquidations ?
Bolo
1 Like
Hey @bolo ! We’ve been following the scripts listed in the keep3r repository. If you can direct us to scripts for AaveLiquidations and other jobs, we’ll be happy to include them in the guide!
1 Like
Bolo
November 5, 2020, 6:10pm
3
Sure
AaveLiquidateKeep3
/**
*Submitted for verification at Etherscan.io on 2020-10-28
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
This file has been truncated. show original
** CreamLiquidationsKeep3r**
The Contract Address 0xD7De27e74f1Ca2Ce413E19a0B30Fcc95395BFcd9 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...
MetaKeep3r
this one need a 100 Keep3r bonded
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.17;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint) {
uint c = a + b;
require(c >= a, "add: +");
return c;
}
function add(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
uint c = a + b;
require(c >= a, errorMessage);
return c;
}
function sub(uint a, uint b) internal pure returns (uint) {
return sub(a, b, "sub: -");
}
function sub(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
This file has been truncated. show original
** CrvStrategyKeep3r**
The Contract Address 0xd0aC37E3524F295D141d3839d5ed5F26A40b589D page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...
** UniswapV2SlidingOracle**
The Contract Address 0xca2e2df6a7a7cf5bd19d112e8568910a6c2d3885 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...
1 Like
Thanks for the links @bolo , but what we need is the script for the job, not the contract .
As an example, in the case of the AaveLiquidations contract, the call to work
is actually a call to liquidate(address _collateral, address _reserve, address _user)
. Without the corresponding script, it’s not straightforward how to search for the collateral, reserve, and user values that can be liquidated.
1 Like
Bolo
November 5, 2020, 7:50pm
6
understood I think it’s because they are under review
1 Like