Contract 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x57bd4433ce9d4df0ea1db272db828b8609c81bae4e83ea8957b62c4b0f2dbef6Withdraw174048302022-07-11 4:38:28140 days 17 hrs ago0x24d0db7e182fcd29ddea14c04bcb182c89cbb0c0 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000114261706 ETH
0xf7d57cfd9e082783d231c4baab108d3d541e79cbaf1f37ea5c5acaeeb0d91dd5Withdraw172146082022-07-07 20:59:27144 days 1 hr ago0x14b1b3ff91525dd00e8fb8ce000097ce7d1cb251 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000220555435 ETH
0xb38502a979fc6ed4fdef5dc9cc4242f634e69e552aeb301a900720fcbb425309Withdraw Excess ...172144522022-07-07 20:55:49144 days 1 hr ago0x14b1b3ff91525dd00e8fb8ce000097ce7d1cb251 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000210427162 ETH
0x6eadb12415720e62385b0118274c33c69e6e0d59e3fcc82db6ae446ebed4a048Withdraw166736092022-07-01 2:54:48150 days 19 hrs ago0x9ad227d56a36b33407916f3293db2d298095dca9 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000222438106 ETH
0xf1ce256e0acf936a37306bc3869d78bf68e4e3e9d7cb72fa5538422697184fb6Withdraw166735082022-07-01 2:53:32150 days 19 hrs ago0x9ad227d56a36b33407916f3293db2d298095dca9 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000222245791 ETH
0x7de421d7c22e1beed2ef14eab2219b15ddd2b401f1505eb45c2898abfd15177eRenounce Role125173342022-05-20 0:11:30192 days 22 hrs ago0xd7a0b174002667cc675f2de477ccb8763511bc88 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000123118143 ETH
0xf7dcf08586c409276ea5d221d76c4bf35fdf9bc651c78735c808bc75f3b23d8fRenounce Role125173112022-05-20 0:11:30192 days 22 hrs ago0xd7a0b174002667cc675f2de477ccb8763511bc88 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000134529696 ETH
0xd13e9b0221a3d568fd0523dc07dd23a65ec264d09957bef12297bd17f94a049fGrant Role125172822022-05-20 0:10:19192 days 22 hrs ago0xd7a0b174002667cc675f2de477ccb8763511bc88 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000136808647 ETH
0x8931202e746678413fd7038820de2c5fa0c5a8e529e36dfe066a852acd421643Grant Role125172642022-05-20 0:10:19192 days 22 hrs ago0xd7a0b174002667cc675f2de477ccb8763511bc88 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000147863588 ETH
0xeee71f163e6adc62f91eabe5a3e73776e861d71947ae6bd1dcfb82d92ed20c95Renounce Role125048642022-05-19 18:52:15193 days 3 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000136650493 ETH
0xbf820ff3c1093deec0c1e5736d42c7011ca20bffa71696c25864798a820b2439Set Scale51061242022-01-27 0:20:56305 days 22 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000573721413 ETH
0x7ac2dfa96abd5dc180cb83558512be68d477d2bf85a37d85fe8ccd67218e7e09Set Scale51059982022-01-27 0:17:17305 days 22 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.00065904587 ETH
0xc6f9041d0809822c803430e18a72bbfdd987321d5573976c70b4857ac70e14d1Set Scale50345912022-01-25 17:32:34307 days 4 hrs ago0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000515153787 ETH
0x5a5421cb654a850951ccd6f4387ec376c4e489ab10f5c24256a0b76f930ea6e4Stake50299682022-01-25 15:38:31307 days 6 hrs ago0x411fef88b444d4479b6fe55127adacd6dfdff2f8 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000909571277 ETH
0xf3fd52c6d4974d67c6610addc42a40444c114b8cdaba56bb9bb675499db3e39aWithdraw50299312022-01-25 15:38:31307 days 6 hrs ago0x411fef88b444d4479b6fe55127adacd6dfdff2f8 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000496474415 ETH
0x79dd95d6aa4604f21d6a4c6718e4c060c58022967e31aa322aaf867f136d9469Withdraw50299242022-01-25 15:38:31307 days 6 hrs ago0x411fef88b444d4479b6fe55127adacd6dfdff2f8 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000550889639 ETH
0x8b6046209c7b2ea4b64861e72392c80925faf49764f2786edf4e675489dc0b8dStake50299132022-01-25 15:37:31307 days 6 hrs ago0xe8a3221bb2f50cb57e8ccbd9c25838e0e921eac1 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000909598084 ETH
0x9731c5a9f70f5b9494828c3112599b279f4cca4c7a33f5d75e62675bfd44854fWithdraw50294152022-01-25 15:25:32307 days 7 hrs ago0xe8a3221bb2f50cb57e8ccbd9c25838e0e921eac1 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000550825973 ETH
0x1815c53350a6fb732f953ecb5b47986e81dc04eb99864fb2c868a776d73982edStake50161172022-01-25 10:24:30307 days 12 hrs ago0xf123d384879948d5cc1189a69ca9f175260ce174 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.001003653122 ETH
0x82803f134b6a276d1163d1d9776a775957675df334f3a9b94cb5f5ad42ead8acWithdraw50161022022-01-25 10:24:30307 days 12 hrs ago0xf123d384879948d5cc1189a69ca9f175260ce174 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000571029624 ETH
0xa65a15491f4770b932eb611bcb3147642217cfae2d402381e0341a779a520a48Withdraw50021612022-01-25 1:36:45307 days 20 hrs ago0xf7fc65b17988018c6bd3deca178f626359249383 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000606591748 ETH
0x40c5f8dcd15aa8c9ff55f23685bdb1e5d8f157d9f6a398e7df4d70182307b72eWithdraw49975562022-01-24 23:55:11307 days 22 hrs ago0xe15be2c6771713077500d29634eb19d20bbb8bb1 IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.000683561903 ETH
0x3f9286bbefa68da0887fe0aabb24e82e7085347b0fa31c2ff3729baf7c232360Stake49875342022-01-24 20:01:52308 days 2 hrs ago0x2186107d6d3692bd9ef592001c78777bf34b672e IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.001077320998 ETH
0x13e64a3aa95fb844c2b7e9fe1b0b694fee468a4254198c74f351aa0443ff347eStake49875302022-01-24 20:01:52308 days 2 hrs ago0x2186107d6d3692bd9ef592001c78777bf34b672e IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.001080814222 ETH
0x4db5b5950d385d140deeac7661aaf4e14a6902636f8d2bb69975c14c128ba231Stake49875112022-01-24 20:01:52308 days 2 hrs ago0x2186107d6d3692bd9ef592001c78777bf34b672e IN  0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH0.00108082799 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1645515f712e7e367bd6c1072b4b4ca9e642cf6f44ce08448f9b2cf8d56447f1119401902022-05-12 22:49:54199 days 23 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x1645515f712e7e367bd6c1072b4b4ca9e642cf6f44ce08448f9b2cf8d56447f1119401902022-05-12 22:49:54199 days 23 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x1645515f712e7e367bd6c1072b4b4ca9e642cf6f44ce08448f9b2cf8d56447f1119401902022-05-12 22:49:54199 days 23 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x1645515f712e7e367bd6c1072b4b4ca9e642cf6f44ce08448f9b2cf8d56447f1119401902022-05-12 22:49:54199 days 23 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0xdd5ed24592e12d6df7d8ad352f932c684dc81f608d7f45225d469e24c55623c9118811442022-05-12 7:09:48200 days 15 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0xdd5ed24592e12d6df7d8ad352f932c684dc81f608d7f45225d469e24c55623c9118811442022-05-12 7:09:48200 days 15 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0xdd5ed24592e12d6df7d8ad352f932c684dc81f608d7f45225d469e24c55623c9118811442022-05-12 7:09:48200 days 15 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0xdd5ed24592e12d6df7d8ad352f932c684dc81f608d7f45225d469e24c55623c9118811442022-05-12 7:09:48200 days 15 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x7a7342dc6616c2a7f23ad87f28feed85781a1b267407a407c901d27ee2581ad3117999182022-05-11 13:39:30201 days 8 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0x5f7ec86c6327e80e41491652351fc49292a8bcdd99c6f6b060e002d9ed5abd8a117984702022-05-11 13:27:33201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
0xdf81781583a584e3a5de83ad17ec789e59612b643dee50fa4c774df062c85bbb117984032022-05-11 13:27:09201 days 9 hrs ago 0x3cb7a39f2f8efc9aff7799b1110dbf5cf51c07a5 0x190a6b6e8e4d9b8324e1f97127c588c5b082d94b0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Marinate

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : Marinate.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface IwsUMAMI is IERC20 {
  function wrap( uint _amount ) external returns ( uint );
  function unwrap( uint _amount ) external returns ( uint );
}

contract Marinate is AccessControl, ReentrancyGuard {
  using SafeERC20 for IERC20;

  address public immutable UMAMI;
  address public immutable sUMAMI;
  address public immutable wsUMAMI;
  uint256 public totalStaked = 0;
  uint256 public totalMultipliedStaked = 0;
  mapping(address => uint256) public excessTokenRewards;
  mapping(address => uint256) public totalCumTokenRewardsPerStake;
  mapping(address => mapping(address => mapping(uint32 => uint256))) public paidCumTokenRewardsPerStake;
  mapping(address => mapping(uint32 => uint256)) public stakedBalance;
  mapping(address => mapping(uint32 => uint256)) public multipliedBalance;
  address[] public rewardTokens;
  mapping(address => bool) public isApprovedRewardToken;
  uint256 public SCALE = 1e40;
  mapping(address => mapping(uint32 => Marinator)) public marinatorInfo;
  mapping(address => mapping(address => mapping(uint32 => uint256))) public toBePaid;
  mapping(uint32 => MarinateLevel) public marinateLevels;

  struct Marinator {
    uint256 lastDepositTime;
    uint256 amount;
    uint256 wrappedAmount;
    uint256 multipliedAmount;
    uint32 unlockTime;
  }

  struct MarinateLevel {
    uint32 lockDurationInSeconds;
    uint256 multiplier;
  }

  event Stake(uint256 lockDuration, address addr, uint256 amount, uint256 multipliedAmount);
  event Withdraw(address addr, uint256 amount);
  event RewardCollection(address token, address addr, uint256 amount);
  event RewardAdded(address token, uint256 amount, uint256 rps);

  bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

  constructor(address _UMAMI, address _sUMAMI, address _wsUMAMI) {
    UMAMI = _UMAMI;
    sUMAMI = _sUMAMI;
    wsUMAMI = _wsUMAMI;
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    _grantRole(ADMIN_ROLE, msg.sender);
    rewardTokens.push(_UMAMI);
    isApprovedRewardToken[_UMAMI] = true;
  }

  function addReward(address token, uint256 amount) external nonReentrant {
    require(isApprovedRewardToken[token], "Token is not approved for rewards");
    IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
    if (totalStaked == 0) {
      // Rewards which nobody is eligible for
      excessTokenRewards[token] += amount;
      return;
    }
    uint256 rewardPerStake = (amount * SCALE) / totalMultipliedStaked;
    require(rewardPerStake > 0, "insufficient reward per stake");
    totalCumTokenRewardsPerStake[token] += rewardPerStake;
    emit RewardAdded(token, amount, rewardPerStake);
  }

  function stake(uint32 levelId, uint256 amount) external {
    require(marinateLevels[levelId].lockDurationInSeconds > 0, "Invalid level");
    require(amount > 0, "Invalid stake amount");

    MarinateLevel memory level = marinateLevels[levelId];

    // Wrap the sUMAMI into wsUMAMI
    IERC20(sUMAMI).safeTransferFrom(msg.sender, address(this), amount);
    IERC20(sUMAMI).approve(wsUMAMI, amount);
    uint256 wrappedAmount = IwsUMAMI(wsUMAMI).wrap(amount);
    uint256 multipliedAmount = (wrappedAmount * level.multiplier) / SCALE;

    // Store the sender's info
    Marinator memory info = marinatorInfo[msg.sender][levelId];
    marinatorInfo[msg.sender][levelId] = Marinator({
      lastDepositTime: block.timestamp,
      amount: info.amount + amount,
      wrappedAmount: wrappedAmount,
      multipliedAmount: info.multipliedAmount + multipliedAmount,
      unlockTime: uint32(block.timestamp + level.lockDurationInSeconds)
    });

    if (stakedBalance[msg.sender][levelId] == 0) {
      // New user - not eligible for any previous rewards on any token
      for (uint256 i = 0; i < rewardTokens.length; i++) {
        address token = rewardTokens[i];
        paidCumTokenRewardsPerStake[token][msg.sender][levelId] = totalCumTokenRewardsPerStake[token];
      }
    }
    else {
      _collectRewards(levelId);
    }

    totalStaked += amount;
    totalMultipliedStaked += multipliedAmount;
    stakedBalance[msg.sender][levelId] += amount;
    multipliedBalance[msg.sender][levelId] += multipliedAmount;
    emit Stake(level.lockDurationInSeconds, msg.sender, amount, multipliedAmount);
  }

  function withdraw(uint32 levelId) public nonReentrant {
    require(marinatorInfo[msg.sender][levelId].lastDepositTime != 0, "Haven't staked");
    require(block.timestamp >= marinatorInfo[msg.sender][levelId].unlockTime, "Too soon");

    _collectRewards(levelId);
    _payRewards(levelId);

    Marinator memory info = marinatorInfo[msg.sender][levelId];
    uint256 unwrappedAmount = IwsUMAMI(wsUMAMI).unwrap(info.wrappedAmount);
    delete marinatorInfo[msg.sender][levelId];
    totalMultipliedStaked -= multipliedBalance[msg.sender][levelId];
    totalStaked -= stakedBalance[msg.sender][levelId];
    stakedBalance[msg.sender][levelId] = 0;
    multipliedBalance[msg.sender][levelId] = 0;

    IERC20(sUMAMI).safeTransfer(msg.sender, unwrappedAmount);

    emit Withdraw(msg.sender, unwrappedAmount);
  }

  function _payRewards(uint32 levelId) private {
    for (uint256 i = 0; i < rewardTokens.length; i++) {
      address token = rewardTokens[i];
      uint256 amount = toBePaid[token][msg.sender][levelId];
      IERC20(token).safeTransfer(msg.sender, amount);
      delete toBePaid[token][msg.sender][levelId];
    }
  }

  function _collectRewards(uint32 _levelId) private {
    for (uint256 i = 0; i < rewardTokens.length; i++) {
      _collectRewardsForToken(rewardTokens[i], _levelId);
    }
  }

  function _collectRewardsForToken(address token, uint32 _levelId) private {
    require(multipliedBalance[msg.sender][_levelId] > 0, "No stake for rewards");
    uint256 owedPerUnitStake = totalCumTokenRewardsPerStake[token] - paidCumTokenRewardsPerStake[token][msg.sender][_levelId];
    uint256 totalRewards = (multipliedBalance[msg.sender][_levelId] * owedPerUnitStake) / SCALE;
    paidCumTokenRewardsPerStake[token][msg.sender][_levelId] = totalCumTokenRewardsPerStake[token];
    toBePaid[token][msg.sender][_levelId] += totalRewards;
  }

  function getAvailableTokenRewards(address staker, address token, uint32 levelId) external view returns (uint256 totalRewards) {
    uint256 owedPerUnitStake = totalCumTokenRewardsPerStake[token] - paidCumTokenRewardsPerStake[token][staker][levelId];
    uint256 pendingRewards = (multipliedBalance[staker][levelId] * owedPerUnitStake) / SCALE;
    totalRewards = pendingRewards + toBePaid[token][staker][levelId];
  }

  function setMarinateLevel(uint32 _levelId, uint32 _lockDurationInSeconds, uint256 _multiplier) external onlyAdmin {
    require(marinateLevels[_levelId].lockDurationInSeconds == 0, "Level exists");
    require(_lockDurationInSeconds <= 52 weeks, "Too long");
    require(_multiplier < 10 * SCALE);
    require(_multiplier > SCALE / 10);
    marinateLevels[_levelId] = MarinateLevel(
      _lockDurationInSeconds,
      _multiplier
    );
  }

  function withdrawExcessRewards() external onlyAdmin {
    for (uint256 i = 0; i < rewardTokens.length; i++) {
      uint256 amount = excessTokenRewards[rewardTokens[i]];
      if (amount == 0) {
        continue;
      }
      IERC20(rewardTokens[i]).safeTransfer(msg.sender, amount);
      excessTokenRewards[rewardTokens[i]] = 0;
    }
  }

  function addApprovedRewardToken(address token) external onlyAdmin {
    require(!isApprovedRewardToken[token], "Reward token exists");
    isApprovedRewardToken[token] = true;
    rewardTokens.push(token);
  }

  function removeApprovedRewardToken(address token) external onlyAdmin {
    require(isApprovedRewardToken[token], "Reward token does not exist");
    for (uint256 i = 0; i < rewardTokens.length; i++) {
      if (rewardTokens[i] == token) {
        rewardTokens[i] = rewardTokens[rewardTokens.length - 1];
        rewardTokens.pop();
        isApprovedRewardToken[token] = false;
      }
    }
  }

  function setScale(uint256 _scale) external onlyAdmin {
    SCALE = _scale;
  }

  function recoverEth() external onlyAdmin {
    // For recovering eth mistakenly sent to the contract
    (bool success, ) = msg.sender.call{value: address(this).balance}("");
    require(success, "Withdraw failed");
  }

  modifier onlyAdmin() {
    require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin");
    _;
  }
}

File 2 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 7 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 8 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 9 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 10 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 12 of 13 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 13 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_UMAMI","type":"address"},{"internalType":"address","name":"_sUMAMI","type":"address"},{"internalType":"address","name":"_wsUMAMI","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rps","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"lockDuration","type":"uint256"},{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"multipliedAmount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UMAMI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addApprovedRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excessTokenRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint32","name":"levelId","type":"uint32"}],"name":"getAvailableTokenRewards","outputs":[{"internalType":"uint256","name":"totalRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isApprovedRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"}],"name":"marinateLevels","outputs":[{"internalType":"uint32","name":"lockDurationInSeconds","type":"uint32"},{"internalType":"uint256","name":"multiplier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"marinatorInfo","outputs":[{"internalType":"uint256","name":"lastDepositTime","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"wrappedAmount","type":"uint256"},{"internalType":"uint256","name":"multipliedAmount","type":"uint256"},{"internalType":"uint32","name":"unlockTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"multipliedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"paidCumTokenRewardsPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeApprovedRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sUMAMI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_levelId","type":"uint32"},{"internalType":"uint32","name":"_lockDurationInSeconds","type":"uint32"},{"internalType":"uint256","name":"_multiplier","type":"uint256"}],"name":"setMarinateLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scale","type":"uint256"}],"name":"setScale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"levelId","type":"uint32"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"stakedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"toBePaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalCumTokenRewardsPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMultipliedStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"levelId","type":"uint32"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawExcessRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wsUMAMI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e060405260006002556000600355701d6329f1c35ca4bfabb9f5610000000000600b553480156200003057600080fd5b5060405162002a7838038062002a78833981016040819052620000539162000203565b600180556001600160601b0319606084811b821660805283811b821660a05282901b1660c052620000866000336200011f565b620000b27fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200012f565b50506009805460018181019092557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b039093166001600160a01b0319909316831790556000918252600a6020526040909120805460ff191690911790556200024c565b6200012b82826200012f565b5050565b6200013b8282620001b9565b6200012b576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905562000175620001e2565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3390565b80516001600160a01b0381168114620001fe57600080fd5b919050565b60008060006060848603121562000218578283fd5b6200022384620001e6565b92506200023360208501620001e6565b91506200024360408501620001e6565b90509250925092565b60805160601c60a05160601c60c05160601c6127c9620002af6000396000818161052701528181610a1301528181610aaa01526111070152600081816109a2015281816109e60152818161128201526116f9015260006104a301526127c96000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063817b1cd21161011a578063bcdb446b116100ad578063cb1957a71161007c578063cb1957a71461042b578063ce2db2231461043e578063d3a68b1a14610446578063d547741f14610459578063eced55261461046c57610206565b8063bcdb446b146103d9578063bdbb61af146103e1578063c51cfeec146103f4578063ca49ff651461041857610206565b8063a0a85617116100e9578063a0a85617146103a3578063a217fddf146103b6578063aa9224cd146103be578063baf979a9146103d157610206565b8063817b1cd2146103625780638ac6afd61461036a57806391d148541461037d5780639feb8f501461039057610206565b8063506cc9a21161019d5780637095bffc1161016c5780637095bffc1461030e57806375b238fc146103215780637bb7bed1146103295780637ec6840f1461033c5780638137694e1461034f57610206565b8063506cc9a2146102cd5780635f46c8cc146102e057806362f7e57c146102e85780636f5d3a5a146102fb57610206565b80633151c595116101d95780633151c5951461027e5780633444d5771461029f57806336568abe146102a75780633edc3519146102ba57610206565b806301ffc9a71461020b5780631eee01b014610234578063248a9ca3146102495780632f2ff15d14610269575b600080fd5b61021e61021936600461205d565b610474565b60405161022b9190612213565b60405180910390f35b61023c6104a1565b60405161022b91906121a1565b61025c610257366004612023565b6104c5565b60405161022b919061221e565b61027c61027736600461203b565b6104da565b005b61029161028c36600461209d565b610503565b60405161022b92919061267b565b61023c610525565b61027c6102b536600461203b565b610549565b61027c6102c8366004612023565b610598565b61025c6102db366004611f4c565b6105d1565b61025c6105e3565b61027c6102f63660046120d2565b6105e9565b61027c610309366004611f4c565b6106f5565b61021e61031c366004611f4c565b6108be565b61025c6108d3565b61023c610337366004612023565b6108e5565b61027c61034a3660046120b7565b61090f565b61025c61035d366004611f4c565b610df6565b61025c610e08565b61025c610378366004611fd1565b610e0e565b61021e61038b36600461203b565b610e2b565b61027c61039e366004611fa8565b610e54565b61025c6103b1366004611f66565b610fb5565b61025c610fd8565b61027c6103cc36600461209d565b610fdd565b61027c6112f5565b61027c611434565b61025c6103ef366004611f66565b6114e4565b610407610402366004611fd1565b6115c1565b60405161022b959493929190612626565b61027c610426366004611f4c565b611601565b61025c610439366004611f66565b6116d4565b61023c6116f7565b61025c610454366004611fd1565b61171b565b61027c61046736600461203b565b611738565b61025c611757565b60006001600160e01b03198216637965db0b60e01b148061049957506104998261175d565b90505b919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60009081526020819052604090206001015490565b6104e3826104c5565b6104f4816104ef611776565b61177a565b6104fe83836117de565b505050565b600e602052600090815260409020805460019091015463ffffffff9091169082565b7f000000000000000000000000000000000000000000000000000000000000000081565b610551611776565b6001600160a01b0316816001600160a01b03161461058a5760405162461bcd60e51b8152600401610581906125d7565b60405180910390fd5b6105948282611863565b5050565b6105b060008051602061277483398151915233610e2b565b6105cc5760405162461bcd60e51b81526004016105819061249c565b600b55565b60046020526000908152604090205481565b60035481565b61060160008051602061277483398151915233610e2b565b61061d5760405162461bcd60e51b81526004016105819061249c565b63ffffffff8084166000908152600e602052604090205416156106525760405162461bcd60e51b815260040161058190612503565b6301dfe2008263ffffffff16111561067c5760405162461bcd60e51b81526004016105819061235d565b600b5461068a90600a6126c9565b811061069557600080fd5b600a600b546106a491906126a9565b81116106af57600080fd5b60408051808201825263ffffffff938416815260208082019384529484166000908152600e90955293209251835463ffffffff1916921691909117825551600190910155565b61070d60008051602061277483398151915233610e2b565b6107295760405162461bcd60e51b81526004016105819061249c565b6001600160a01b0381166000908152600a602052604090205460ff166107615760405162461bcd60e51b8152600401610581906123e7565b60005b60095481101561059457816001600160a01b03166009828154811061079957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156108ac57600980546107c4906001906126e8565b815481106107e257634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600980546001600160a01b03909216918390811061081c57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600980548061086957634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0384168252600a905260409020805460ff191690555b806108b681612742565b915050610764565b600a6020526000908152604090205460ff1681565b60008051602061277483398151915281565b600981815481106108f557600080fd5b6000918252602090912001546001600160a01b0316905081565b63ffffffff8083166000908152600e6020526040902054166109435760405162461bcd60e51b8152600401610581906123c0565b600081116109635760405162461bcd60e51b81526004016105819061241e565b63ffffffff8083166000908152600e602090815260409182902082518084019093528054841683526001015490820152906109cf906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016903390309086906118e616565b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b390610a3d907f00000000000000000000000000000000000000000000000000000000000000009086906004016121d9565b602060405180830381600087803b158015610a5757600080fd5b505af1158015610a6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8f9190612003565b50604051630ea598cb60e41b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ea598cb090610adf90869060040161221e565b602060405180830381600087803b158015610af957600080fd5b505af1158015610b0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b319190612085565b90506000600b54836020015183610b4891906126c9565b610b5291906126a9565b336000908152600c6020908152604080832063ffffffff808b16855290835292819020815160a080820184528254825260018301548286019081526002840154838601526003840154606084015260049093015490951660808201528251948501909252428452519394509290820190610bcd908890612691565b8152602001848152602001838360600151610be89190612691565b8152602001856000015163ffffffff1642610c039190612691565b63ffffffff908116909152336000818152600c602090815260408083208c861680855290835281842087518155878401516001820155878301516002820155606088015160038201556080909701516004909701805463ffffffff1916979096169690961790945591815260078252828120938152929052902054610d0d5760005b600954811015610d0757600060098281548110610cb257634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031682526005815260408083205460068352818420338552835281842063ffffffff8d168552909252909120555080610cff81612742565b915050610c85565b50610d16565b610d1686611944565b8460026000828254610d289190612691565b925050819055508160036000828254610d419190612691565b909155505033600090815260076020908152604080832063ffffffff8a16845290915281208054879290610d76908490612691565b909155505033600090815260086020908152604080832063ffffffff8a16845290915281208054849290610dab908490612691565b909155505083516040517f507ac39eb33610191cd8fd54286e91c5cc464c262861643be3978f5a9f18ab0291610de69133908990879061264f565b60405180910390a1505050505050565b60056020526000908152604090205481565b60025481565b600760209081526000928352604080842090915290825290205481565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60026001541415610e775760405162461bcd60e51b8152600401610581906125a0565b60026001556001600160a01b0382166000908152600a602052604090205460ff16610eb45760405162461bcd60e51b81526004016105819061237f565b610ec96001600160a01b0383163330846118e6565b600254610f03576001600160a01b03821660009081526004602052604081208054839290610ef8908490612691565b90915550610fad9050565b6000600354600b5483610f1691906126c9565b610f2091906126a9565b905060008111610f425760405162461bcd60e51b8152600401610581906122b7565b6001600160a01b03831660009081526005602052604081208054839290610f6a908490612691565b90915550506040517f6a6f77044107a33658235d41bedbbaf2fe9ccdceb313143c947a5e76e1ec847490610fa3908590859085906121f2565b60405180910390a1505b505060018055565b600d60209081526000938452604080852082529284528284209052825290205481565b600081565b600260015414156110005760405162461bcd60e51b8152600401610581906125a0565b6002600155336000908152600c6020908152604080832063ffffffff851684529091529020546110425760405162461bcd60e51b81526004016105819061228f565b336000908152600c6020908152604080832063ffffffff8086168552925290912060040154164210156110875760405162461bcd60e51b81526004016105819061247a565b61109081611944565b611099816119a2565b336000908152600c6020908152604080832063ffffffff8086168552908352818420825160a0810184528154815260018201549481019490945260028101548484018190526003820154606086015260049182015490921660808501529151636f074d1f60e11b81529293927f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169263de0e9a3e926111429290910161221e565b602060405180830381600087803b15801561115c57600080fd5b505af1158015611170573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111949190612085565b336000818152600c6020908152604080832063ffffffff8916808552908352818420848155600181018590556002810185905560038082018690556004909101805463ffffffff19169055948452600883528184209084529091528120548254939450926112039084906126e8565b909155505033600090815260076020908152604080832063ffffffff87168452909152812054600280549192909161123c9084906126e8565b909155505033600081815260076020908152604080832063ffffffff8089168086529184528285208590558585526008845282852091855292528220919091556112b3917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316918490611a6516565b7f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436433826040516112e49291906121d9565b60405180910390a150506001805550565b61130d60008051602061277483398151915233610e2b565b6113295760405162461bcd60e51b81526004016105819061249c565b60005b600954811015611431576000600460006009848154811061135d57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205490508061138f575061141f565b6113d13382600985815481106113b557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169190611a65565b600060046000600985815481106113f857634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902055505b8061142981612742565b91505061132c565b50565b61144c60008051602061277483398151915233610e2b565b6114685760405162461bcd60e51b81526004016105819061249c565b6000336001600160a01b03164760405161148190612129565b60006040518083038185875af1925050503d80600081146114be576040519150601f19603f3d011682016040523d82523d6000602084013e6114c3565b606091505b50509050806114315760405162461bcd60e51b8152600401610581906122ee565b6001600160a01b038083166000818152600660209081526040808320948816835293815283822063ffffffff8616835281528382205492825260059052918220548291611530916126e8565b600b546001600160a01b038716600090815260086020908152604080832063ffffffff891684529091528120549293509161156c9084906126c9565b61157691906126a9565b6001600160a01b038087166000908152600d60209081526040808320938b16835292815282822063ffffffff89168352905220549091506115b79082612691565b9695505050505050565b600c602090815260009283526040808420909152908252902080546001820154600283015460038401546004909401549293919290919063ffffffff1685565b61161960008051602061277483398151915233610e2b565b6116355760405162461bcd60e51b81526004016105819061249c565b6001600160a01b0381166000908152600a602052604090205460ff161561166e5760405162461bcd60e51b815260040161058190612573565b6001600160a01b03166000818152600a60205260408120805460ff191660019081179091556009805491820181559091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319169091179055565b600660209081526000938452604080852082529284528284209052825290205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600860209081526000928352604080842090915290825290205481565b611741826104c5565b61174d816104ef611776565b6104fe8383611863565b600b5481565b6001600160e01b031981166301ffc9a760e01b14919050565b3390565b6117848282610e2b565b6105945761179c816001600160a01b03166014611a84565b6117a7836020611a84565b6040516020016117b892919061212c565b60408051601f198184030181529082905262461bcd60e51b825261058191600401612227565b6117e88282610e2b565b610594576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561181f611776565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61186d8282610e2b565b15610594576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556118a2611776565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b61193e846323b872dd60e01b858585604051602401611907939291906121b5565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c3d565b50505050565b60005b600954811015610594576119906009828154811061197557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031683611ccc565b8061199a81612742565b915050611947565b60005b600954811015610594576000600982815481106119d257634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352600d825260408084203380865290845281852063ffffffff808a168752945293205490935091611a21918491908490611a6516565b506001600160a01b03166000908152600d60209081526040808320338452825280832063ffffffff8616845290915281205580611a5d81612742565b9150506119a5565b6104fe8363a9059cbb60e01b84846040516024016119079291906121d9565b60606000611a938360026126c9565b611a9e906002612691565b67ffffffffffffffff811115611ac457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611aee576020820181803683370190505b509050600360fc1b81600081518110611b1757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611b5457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611b788460026126c9565b611b83906001612691565b90505b6001811115611c17576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611bc557634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110611be957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611c108161272b565b9050611b86565b508315611c365760405162461bcd60e51b81526004016105819061225a565b9392505050565b6000611c92826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e0b9092919063ffffffff16565b8051909150156104fe5780806020019051810190611cb09190612003565b6104fe5760405162461bcd60e51b815260040161058190612529565b33600090815260086020908152604080832063ffffffff85168452909152902054611d095760405162461bcd60e51b81526004016105819061244c565b6001600160a01b0382166000818152600660209081526040808320338452825280832063ffffffff8616845282528083205493835260059091528120549091611d51916126e8565b600b5433600090815260086020908152604080832063ffffffff8816845290915281205492935091611d849084906126c9565b611d8e91906126a9565b6001600160a01b038516600081815260056020908152604080832054600683528184203380865290845282852063ffffffff8b1680875290855283862092909255948452600d835281842094845293825280832093835292905290812080549293508392909190611e00908490612691565b909155505050505050565b6060611e1a8484600085611e22565b949350505050565b606082471015611e445760405162461bcd60e51b815260040161058190612317565b611e4d85611ee2565b611e695760405162461bcd60e51b8152600401610581906124cc565b600080866001600160a01b03168587604051611e85919061210d565b60006040518083038185875af1925050503d8060008114611ec2576040519150601f19603f3d011682016040523d82523d6000602084013e611ec7565b606091505b5091509150611ed7828286611ee8565b979650505050505050565b3b151590565b60608315611ef7575081611c36565b825115611f075782518084602001fd5b8160405162461bcd60e51b81526004016105819190612227565b80356001600160a01b038116811461049c57600080fd5b803563ffffffff8116811461049c57600080fd5b600060208284031215611f5d578081fd5b611c3682611f21565b600080600060608486031215611f7a578182fd5b611f8384611f21565b9250611f9160208501611f21565b9150611f9f60408501611f38565b90509250925092565b60008060408385031215611fba578182fd5b611fc383611f21565b946020939093013593505050565b60008060408385031215611fe3578182fd5b611fec83611f21565b9150611ffa60208401611f38565b90509250929050565b600060208284031215612014578081fd5b81518015158114611c36578182fd5b600060208284031215612034578081fd5b5035919050565b6000806040838503121561204d578182fd5b82359150611ffa60208401611f21565b60006020828403121561206e578081fd5b81356001600160e01b031981168114611c36578182fd5b600060208284031215612096578081fd5b5051919050565b6000602082840312156120ae578081fd5b611c3682611f38565b600080604083850312156120c9578182fd5b611fc383611f38565b6000806000606084860312156120e6578283fd5b6120ef84611f38565b92506120fd60208501611f38565b9150604084013590509250925092565b6000825161211f8184602087016126ff565b9190910192915050565b90565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516121648160178501602088016126ff565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516121958160288401602088016126ff565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b90815260200190565b60006020825282518060208401526122468160408501602087016126ff565b601f01601f19169190910160400192915050565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b6020808252600e908201526d12185d995b89dd081cdd185ad95960921b604082015260600190565b6020808252601d908201527f696e73756666696369656e742072657761726420706572207374616b65000000604082015260600190565b6020808252600f908201526e15da5d1a191c985dc819985a5b1959608a1b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b602080825260089082015267546f6f206c6f6e6760c01b604082015260600190565b60208082526021908201527f546f6b656e206973206e6f7420617070726f76656420666f72207265776172646040820152607360f81b606082015260800190565b6020808252600d908201526c125b9d985b1a59081b195d995b609a1b604082015260600190565b6020808252601b908201527f52657761726420746f6b656e20646f6573206e6f742065786973740000000000604082015260600190565b602080825260149082015273125b9d985b1a59081cdd185ad948185b5bdd5b9d60621b604082015260600190565b6020808252601490820152734e6f207374616b6520666f72207265776172647360601b604082015260600190565b6020808252600890820152672a37b79039b7b7b760c11b604082015260600190565b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600c908201526b4c6576656c2065786973747360a01b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526013908201527252657761726420746f6b656e2065786973747360681b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b94855260208501939093526040840191909152606083015263ffffffff16608082015260a00190565b63ffffffff9490941684526001600160a01b039290921660208401526040830152606082015260800190565b63ffffffff929092168252602082015260400190565b600082198211156126a4576126a461275d565b500190565b6000826126c457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156126e3576126e361275d565b500290565b6000828210156126fa576126fa61275d565b500390565b60005b8381101561271a578181015183820152602001612702565b8381111561193e5750506000910152565b60008161273a5761273a61275d565b506000190190565b60006000198214156127565761275661275d565b5060010190565b634e487b7160e01b600052601160045260246000fdfea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220c4bbea866576d012cff153718f1cfa32573db00aa39c53126bf1431f3f90f77e64736f6c634300080000330000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e3000000000000000000000000e6d557d416ff5640235119369c7e26aa18a906d70000000000000000000000003cacdc222f8cd8d249e9a45ca4ad2aa381da2692

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e3000000000000000000000000e6d557d416ff5640235119369c7e26aa18a906d70000000000000000000000003cacdc222f8cd8d249e9a45ca4ad2aa381da2692

-----Decoded View---------------
Arg [0] : _UMAMI (address): 0x1622bf67e6e5747b81866fe0b85178a93c7f86e3
Arg [1] : _sUMAMI (address): 0xe6d557d416ff5640235119369c7e26aa18a906d7
Arg [2] : _wsUMAMI (address): 0x3cacdc222f8cd8d249e9a45ca4ad2aa381da2692

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e3
Arg [1] : 000000000000000000000000e6d557d416ff5640235119369c7e26aa18a906d7
Arg [2] : 0000000000000000000000003cacdc222f8cd8d249e9a45ca4ad2aa381da2692


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