Skip to content

Commit d7b7989

Browse files
author
Andre Cronje
committed
2 parents a79922c + 923c7a6 commit d7b7989

File tree

6 files changed

+927
-11
lines changed

6 files changed

+927
-11
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Introduction to Keep3r Network
22

3-
{% hint style="info" %}
4-
These docs are in active development by the Keep3r community.
5-
{% endhint %}
3+
_These docs are in active development by the Keep3r community._
64

75
Keep3r Network is a decentralized keeper network for projects that need external devops and for external teams to find keeper jobs
86

@@ -41,7 +39,7 @@ For no, or low risk executions, you can simply call ```Keep3r.isKeeper(msg.sende
4139
For high, sensitive, or critical risk executions, you can specify a minimum bond, minimum jobs completed, and minimum Keeper age required to execute this function. Based on these 3 limits you can define your own trust ratio on these keepers.
4240

4341
So a function definition would look as follows;
44-
```
42+
```solidity
4543
function execute() external {
4644
require(Keep3r.isKeeper(msg.sender), "Keep3r not allowed");
4745
}
@@ -51,7 +49,7 @@ At the end of the call, you simply need to call ```workReceipt(address,uint)```
5149

5250
Example Keep3rJob
5351

54-
```
52+
```solidity
5553
interface UniOracleFactory {
5654
function update(address tokenA, address tokenB) external;
5755
}

contracts/Keep3r.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ contract Keep3rV1 is ReentrancyGuard {
864864
* @param amount the amount of credit being added to the job
865865
*/
866866
function addCredit(address credit, address job, uint amount) external nonReentrant {
867-
require(jobs[job], "addCreditETH: !job");
867+
require(jobs[job], "addCredit: !job");
868868
uint _before = IERC20(credit).balanceOf(address(this));
869869
IERC20(credit).safeTransferFrom(msg.sender, address(this), amount);
870870
uint _received = IERC20(credit).balanceOf(address(this)).sub(_before);

contracts/MetaKeep3r.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ pragma solidity ^0.5.17;
33

44
library SafeMath {
55
function add(uint a, uint b) internal pure returns (uint) {
6-
uint c = a + b;
7-
require(c >= a, "add: +");
8-
9-
return c;
6+
return add(a, b, "add: +")
107
}
118
function add(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
129
uint c = a + b;

0 commit comments

Comments
 (0)