Contract 0x4911ddd53ed60b7b8d8549f69b41e197816fedb9

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x4963c5d6d8e462e5b7b2477626e5b80f963b9adeacba0de2fbe6ee403ccb295a28431162020-12-05 21:53:33242 days 14 hrs agoKeep3rb Network: Deployer IN  Contract Creation0 BNB0.00680348
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xe6ed81f94abefdb64b8ecf569e4774db3cd028d216f981c16650acd6ff5abb1954710342021-03-07 11:44:39151 days 54 mins ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe6ed81f94abefdb64b8ecf569e4774db3cd028d216f981c16650acd6ff5abb1954710342021-03-07 11:44:39151 days 54 mins ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe6ed81f94abefdb64b8ecf569e4774db3cd028d216f981c16650acd6ff5abb1954710342021-03-07 11:44:39151 days 54 mins ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0xe6ed81f94abefdb64b8ecf569e4774db3cd028d216f981c16650acd6ff5abb1954710342021-03-07 11:44:39151 days 54 mins ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe6ed81f94abefdb64b8ecf569e4774db3cd028d216f981c16650acd6ff5abb1954710342021-03-07 11:44:39151 days 54 mins ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe6ed81f94abefdb64b8ecf569e4774db3cd028d216f981c16650acd6ff5abb1954710342021-03-07 11:44:39151 days 54 mins ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0x33f3cd1ed60710e98aa2e237fb16b776f9fba8e11b438ae8c285eeb0aeba554354707392021-03-07 11:29:54151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x33f3cd1ed60710e98aa2e237fb16b776f9fba8e11b438ae8c285eeb0aeba554354707392021-03-07 11:29:54151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x33f3cd1ed60710e98aa2e237fb16b776f9fba8e11b438ae8c285eeb0aeba554354707392021-03-07 11:29:54151 days 1 hr ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0x33f3cd1ed60710e98aa2e237fb16b776f9fba8e11b438ae8c285eeb0aeba554354707392021-03-07 11:29:54151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x33f3cd1ed60710e98aa2e237fb16b776f9fba8e11b438ae8c285eeb0aeba554354707392021-03-07 11:29:54151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x33f3cd1ed60710e98aa2e237fb16b776f9fba8e11b438ae8c285eeb0aeba554354707392021-03-07 11:29:54151 days 1 hr ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0xe3bdd274366e04b64d36a42b083a7fcd1da4c2abe969d4e9fad2b0057aa87f5154707272021-03-07 11:29:18151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe3bdd274366e04b64d36a42b083a7fcd1da4c2abe969d4e9fad2b0057aa87f5154707272021-03-07 11:29:18151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe3bdd274366e04b64d36a42b083a7fcd1da4c2abe969d4e9fad2b0057aa87f5154707272021-03-07 11:29:18151 days 1 hr ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0xe3bdd274366e04b64d36a42b083a7fcd1da4c2abe969d4e9fad2b0057aa87f5154707272021-03-07 11:29:18151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe3bdd274366e04b64d36a42b083a7fcd1da4c2abe969d4e9fad2b0057aa87f5154707272021-03-07 11:29:18151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0xe3bdd274366e04b64d36a42b083a7fcd1da4c2abe969d4e9fad2b0057aa87f5154707272021-03-07 11:29:18151 days 1 hr ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0x17edf91502e9aa900bdfe520dbe393a8b8eb41353d1dba9f563277d6b256d13854707112021-03-07 11:28:30151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x17edf91502e9aa900bdfe520dbe393a8b8eb41353d1dba9f563277d6b256d13854707112021-03-07 11:28:30151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x17edf91502e9aa900bdfe520dbe393a8b8eb41353d1dba9f563277d6b256d13854707112021-03-07 11:28:30151 days 1 hr ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0x17edf91502e9aa900bdfe520dbe393a8b8eb41353d1dba9f563277d6b256d13854707112021-03-07 11:28:30151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x17edf91502e9aa900bdfe520dbe393a8b8eb41353d1dba9f563277d6b256d13854707112021-03-07 11:28:30151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
0x17edf91502e9aa900bdfe520dbe393a8b8eb41353d1dba9f563277d6b256d13854707112021-03-07 11:28:30151 days 1 hr ago Keep3rb Network: KP3RB Token Keep3rb Network: Keep3rbHelper0 BNB
0xb5b993d71061ae9614b172c2611c337526de00218832a4adffa012c8fdf2239d54704292021-03-07 11:14:24151 days 1 hr ago Keep3rb Network: Keep3rbHelper Keep3rb Network: KP3RB Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Keep3rbHelper

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2020-12-05
*/

// SPDX-License-Identifier: MIT



pragma solidity ^0.6.12;

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) {
        require(b <= a, errorMessage);
        uint c = a - b;

        return c;
    }
  function mul(uint a, uint b) internal pure returns (uint) {
     if (a == 0) {
            return 0;
        }

        uint c = a * b;
        require(c / a == b, "mul: *");

        return c;
    }

    function mul(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
      if (a == 0) {
            return 0;
        }

        uint c = a * b;
        require(c / a == b, errorMessage);

        return c;
    }
 function div(uint a, uint b) internal pure returns (uint) {
        return div(a, b, "div: /");
    }

  function div(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }
 function mod(uint a, uint b) internal pure returns (uint) {
        return mod(a, b, "mod: %");
    }
 function mod(uint a, uint b, string memory errorMessage) internal pure returns (uint) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

library Math {
   function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }
  function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }
  function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

interface IKeep3rb {
    function totalBonded() external view returns (uint);
    function bonds(address keeper, address credit) external view returns (uint);
    function votes(address keeper) external view returns (uint);
}

contract Keep3rbHelper {
    using SafeMath for uint;

    
    IKeep3rb public constant KP3RB = IKeep3rb(0x5EA29eEe799aA7cC379FdE5cf370BC24f2Ea7c81);

    uint public constant FASTGAS = 36097000000;
    uint constant public BOOST = 50;
    uint constant public BASE = 10;
    uint constant public TARGETBOND = 200e18;

    uint constant public PRICE = 10;

    function getFastGas() external view returns (uint) {
        return uint(FASTGAS);
    }

    function bonds(address keeper) public view returns (uint) {
        return KP3RB.bonds(keeper, address(KP3RB)).add(KP3RB.votes(keeper));
    }

    function getQuoteLimitFor(address origin, uint gasUsed) public view returns (uint) {
        uint _min = gasUsed.mul(PRICE).mul(uint(FASTGAS));
        uint _boost = _min.mul(BOOST).div(BASE); // increase by 2.5
        uint _bond = Math.min(bonds(origin), TARGETBOND);
        return Math.max(_min, _boost.mul(_bond).div(TARGETBOND));
    }

    function getQuoteLimit(uint gasUsed) external view returns (uint) {
        return getQuoteLimitFor(tx.origin, gasUsed);
    }
}

Contract ABI

[{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BOOST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FASTGAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KP3RB","outputs":[{"internalType":"contract IKeep3rb","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TARGETBOND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"keeper","type":"address"}],"name":"bonds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFastGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gasUsed","type":"uint256"}],"name":"getQuoteLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"origin","type":"address"},{"internalType":"uint256","name":"gasUsed","type":"uint256"}],"name":"getQuoteLimitFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50610531806100206000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80638e686d56116100665780638e686d5614610132578063904440bd1461013a578063dbbc4a5714610142578063ec342ad01461012a578063fe10d7741461014a5761009e565b80630421d7f2146100a35780632a84797f146100e1578063525ea631146100e9578063886d24a9146101065780638d859f3e1461012a575b600080fd5b6100cf600480360360408110156100b957600080fd5b506001600160a01b038135169060200135610170565b60408051918252519081900360200190f35b6100cf6101f4565b6100cf600480360360208110156100ff57600080fd5b50356101f9565b61010e610205565b604080516001600160a01b039092168252519081900360200190f35b6100cf61021d565b6100cf610222565b6100cf61022f565b6100cf610238565b6100cf6004803603602081101561016057600080fd5b50356001600160a01b0316610241565b60008061018d6408678c824061018785600a610366565b90610366565b905060006101a7600a6101a1846032610366565b906103c5565b905060006101c66101b787610241565b680ad78ebc5ac62000006103f0565b90506101e8836101e3680ad78ebc5ac62000006101a18686610366565b610406565b93505050505b92915050565b603281565b60006101ee3283610170565b735ea29eee799aa7cc379fde5cf370bc24f2ea7c8181565b600a81565b680ad78ebc5ac620000081565b6408678c824090565b6408678c824081565b60006101ee735ea29eee799aa7cc379fde5cf370bc24f2ea7c816001600160a01b031663d8bff5a5846040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156102a757600080fd5b505afa1580156102bb573d6000803e3d6000fd5b505050506040513d60208110156102d157600080fd5b50516040805163a39744b560e01b81526001600160a01b0386166004820152735ea29eee799aa7cc379fde5cf370bc24f2ea7c8160248201819052915163a39744b591604480820192602092909190829003018186803b15801561033457600080fd5b505afa158015610348573d6000803e3d6000fd5b505050506040513d602081101561035e57600080fd5b505190610416565b600082610375575060006101ee565b8282028284828161038257fe5b04146103be576040805162461bcd60e51b815260206004820152600660248201526536bab61d101560d11b604482015290519081900360640190fd5b9392505050565b60006103be8383604051806040016040528060068152602001656469763a202f60d01b815250610459565b60008183106103ff57816103be565b5090919050565b6000818310156103ff57816103be565b6000828201838110156103be576040805162461bcd60e51b81526020600482015260066024820152656164643a202b60d01b604482015290519081900360640190fd5b600081836104e55760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104aa578181015183820152602001610492565b50505050905090810190601f1680156104d75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816104f157fe5b049594505050505056fea2646970667358221220548d4181bb2865f6f4efa36b46c924837628bd02838e65062993c2f02b8b505c64736f6c634300060c0033

Deployed ByteCode Sourcemap

2576:1110:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3201:346;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3201:346:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2787:31;;;:::i;3555:128::-;;;;;;;;;;;;;;;;-1:-1:-1;3555:128:0;;:::i;2644:85::-;;;:::i;:::-;;;;-1:-1:-1;;;;;2644:85:0;;;;;;;;;;;;;;2911:31;;;:::i;2862:40::-;;;:::i;2951:90::-;;;:::i;2738:42::-;;;:::i;3049:144::-;;;;;;;;;;;;;;;;-1:-1:-1;3049:144:0;-1:-1:-1;;;;;3049:144:0;;:::i;3201:346::-;3278:4;;3307:37;2769:11;3307:18;:7;2940:2;3307:11;:18::i;:::-;:22;;:37::i;:::-;3295:49;-1:-1:-1;3355:11:0;3369:25;2853:2;3369:15;3295:49;2816:2;3369:8;:15::i;:::-;:19;;:25::i;:::-;3355:39;;3424:10;3437:35;3446:13;3452:6;3446:5;:13::i;:::-;2896:6;3437:8;:35::i;:::-;3424:48;-1:-1:-1;3490:49:0;3499:4;3505:33;2896:6;3505:17;:6;3424:48;3505:10;:17::i;:33::-;3490:8;:49::i;:::-;3483:56;;;;;3201:346;;;;;:::o;2787:31::-;2816:2;2787:31;:::o;3555:128::-;3615:4;3639:36;3656:9;3667:7;3639:16;:36::i;2644:85::-;2686:42;2644:85;:::o;2911:31::-;2940:2;2911:31;:::o;2862:40::-;2896:6;2862:40;:::o;2951:90::-;2769:11;2951:90;:::o;2738:42::-;2769:11;2738:42;:::o;3049:144::-;3101:4;3125:60;2686:42;-1:-1:-1;;;;;3165:11:0;;3177:6;3165:19;;;;;;;;;;;;;-1:-1:-1;;;;;3165:19:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3165:19:0;3125:35;;;-1:-1:-1;;;3125:35:0;;-1:-1:-1;;;;;3125:35:0;;;;;;2686:42;3125:35;;;;;;;;:11;;:35;;;;;3165:19;;3125:35;;;;;;;;2686:42;3125:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3125:35:0;;:39;:60::i;728:208::-;780:4;798:6;794:47;;-1:-1:-1;828:1:0;821:8;;794:47;862:5;;;866:1;862;:5;:1;886:5;;;;;:10;878:29;;;;;-1:-1:-1;;;878:29:0;;;;;;;;;;;;-1:-1:-1;;;878:29:0;;;;;;;;;;;;;;;927:1;728:208;-1:-1:-1;;;728:208:0:o;1188:103::-;1240:4;1264:19;1268:1;1271;1264:19;;;;;;;;;;;;;-1:-1:-1;;;1264:19:0;;;:3;:19::i;2033:106::-;2091:7;2122:1;2118;:5;:13;;2130:1;2118:13;;;-1:-1:-1;2126:1:0;;2033:106;-1:-1:-1;2033:106:0:o;1922:107::-;1980:7;2012:1;2007;:6;;:14;;2020:1;2007:14;;95:148;147:4;173:5;;;197:6;;;;189:25;;;;;-1:-1:-1;;;189:25:0;;;;;;;;;;;;-1:-1:-1;;;189:25:0;;;;;;;;;;;;;;1297:333;1377:4;1476:12;1469:5;1461:28;;;;-1:-1:-1;;;1461:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1500:6;1513:1;1509;:5;;;;;;;1297:333;-1:-1:-1;;;;;1297:333:0:o

Swarm Source

ipfs://548d4181bb2865f6f4efa36b46c924837628bd02838e65062993c2f02b8b505c
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.