Contract 0x26e1a0d851cf28e697870e1b7f053b605c8b060f 10

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2ffd921ac76fff4a084b620be106eb12d9a8fa74d8bb4bdb939bd0dff5a8dabfDeposit635207462023-06-03 8:54:335 mins ago0x02e7b714fae84e4ba80f3cda5508553e7cf5042a IN  Solidex Finance: LP Depositor0 FTM0.052938726131
0x48474b4e620f34fb6d0f13c47b9f9143a2270d7062eb1bdf782c4efed6fa33cbGet Reward635163882023-06-03 6:37:392 hrs 22 mins ago0x357b9909c891ade2e55d25515cc57f52c420f82b IN  Solidex Finance: LP Depositor0 FTM0.032978757566
0xf817ac2df9880c8c2a5dc1067dae1828cc7aacc4820053ef046dc81d4ab86f2fGet Reward635132072023-06-03 4:47:054 hrs 13 mins ago0x1d9c68cfa5fdfb6c585bf01f715d359f3039b63a IN  Solidex Finance: LP Depositor0 FTM0.032124246
0x50a4ad36bed0058583565c84a2dbe497429f9e41d55b44f48e4f6c1b81301bdeDeposit635037692023-06-02 23:22:059 hrs 38 mins ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.040490964542
0x94da04c92800980a698138beae9d2d1254574dcf5cadd96a59876a207a06cc93Deposit634983222023-06-02 20:44:5412 hrs 15 mins ago FNS Namegavin.ftm  IN  Solidex Finance: LP Depositor0 FTM0.04223674
0x050140f566fe63b9b3d77b751d97cc285e3cb9cbc1188902682ed8470923738dDeposit634982412023-06-02 20:41:5312 hrs 18 mins ago FNS Namegavin.ftm  IN  Solidex Finance: LP Depositor0 FTM0.046793146
0xf8604483bf5b1400b3da370f6809771eae55fe9c87391df54c042e1295b0a64fGet Reward634969392023-06-02 19:57:3013 hrs 2 mins ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.028209956884
0x7baf8b6064d8b681d5400bea3b3e46f5096ad07ab055da3437784b855211ba82Get Reward634969352023-06-02 19:57:2413 hrs 2 mins ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.030956368316
0x86eacb2053c5a0a5f9e89587184c1dc3a98f4949ef23764b852ccf2bc5db4c49Get Reward634891642023-06-02 16:25:5816 hrs 34 mins ago0x16c5d7862f5e42b578c5b86bdf1f3887fdc0f412 IN  Solidex Finance: LP Depositor0 FTM0.033731109929
0x93fc8cb79fb4946b81e2427b682614ff1343df896fc3585da4b8da32b86ccad9Get Reward634851482023-06-02 14:46:3618 hrs 13 mins ago0x2b185c762f6fb49a07116ec06b238b58fe2bec53 IN  Solidex Finance: LP Depositor0 FTM0.064643019
0x329c486a036fe9ffe354a00b9204e23d2a350deb2d6552128d47493f86c2be18Get Reward634842602023-06-02 14:22:4018 hrs 37 mins ago0x1d9c68cfa5fdfb6c585bf01f715d359f3039b63a IN  Solidex Finance: LP Depositor0 FTM0.034160945
0x1bb90d663e00cd794ad23b82f8d3520bfcafe0dd03825b8818a603c0a639e0eaGet Reward634822292023-06-02 13:29:0019 hrs 31 mins ago0x59bcb5f07a48394870f19cf5c3b2a488172a21c6 IN  Solidex Finance: LP Depositor0 FTM0.03375366669
0x88429745f7a2302cc71685eef872477358b4328a78f8780c573a5a0478996a31Deposit634672642023-06-02 6:35:441 day 2 hrs ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.041464972383
0xe7d581132754aabfed4b1c47f18510cdca0ec09a07564c788dae19f4567f743dGet Reward634658422023-06-02 5:49:501 day 3 hrs ago0xd1ea1b88fa1c5d289dc01cf9a58d22fb2240aa45 IN  Solidex Finance: LP Depositor0 FTM0.062450737849
0xb54f30413b4b646f3dcf90bd3864096c1487e3b9d9b07c6f579814549455fc0cGet Reward634593532023-06-02 2:34:131 day 6 hrs ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.035319723234
0x85fb258428c9c095c1e68beb6a7a990e2e17d90fcf696948bbaaf2e5796ee852Get Reward634562892023-06-02 1:03:511 day 7 hrs ago0xb9c0aba138b98656ffea4309bfe2881b0b7c1d96 IN  Solidex Finance: LP Depositor0 FTM0.13200084
0x3f4dfac854ba1bc96bc343fda6bc1dfdcbf5512f6a3ab962907c07e01fcf691cGet Reward634436692023-06-01 19:50:301 day 13 hrs ago0x16c5d7862f5e42b578c5b86bdf1f3887fdc0f412 IN  Solidex Finance: LP Depositor0 FTM0.069716822549
0x05d9540dc65ffee1ac31c2c4c09acb1ceece7d1f8450f6eb7fd04eb1fd2269eeDeposit634427952023-06-01 19:33:271 day 13 hrs ago FNS Namegavin.ftm  IN  Solidex Finance: LP Depositor0 FTM0.172201651
0x9427b7b3956f9e9fb8883027902ee953ee769cb26fadafaad0c6b7470adbbaa1Deposit634322772023-06-01 16:14:581 day 16 hrs ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.05374363225
0x3f32e44d90ebd9ecde1da8368936a393de2b48579b50edc7f94433d21019f563Get Reward634294252023-06-01 15:25:371 day 17 hrs ago0x2b185c762f6fb49a07116ec06b238b58fe2bec53 IN  Solidex Finance: LP Depositor0 FTM0.071950362
0xbdaae89d95a749420999404d255b5c9d50e078f016b3cf96a138ec76d04331d9Get Reward634292832023-06-01 15:22:481 day 17 hrs ago0xe8d8ae29ad655ceb4ae6f4a615c976bc474f842a IN  Solidex Finance: LP Depositor0 FTM0.100966836877
0x834a3340a0da924db3837f7d159f3508f5ea2806b875ea9d50b821cd1804e7c8Deposit634094602023-06-01 7:20:452 days 1 hr ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.036238900912
0xd6c4781c7ed852a8dc38f6eb0b214b79852b3859d3656e810174eb575e5df250Get Reward634078252023-06-01 6:32:262 days 2 hrs ago0x2b185c762f6fb49a07116ec06b238b58fe2bec53 IN  Solidex Finance: LP Depositor0 FTM0.036263157
0x6096f15e21dc966293c5226fbb64e0c8a9ecb365ba9f93c1efaccb82292ec0a5Deposit633977672023-06-01 2:15:192 days 6 hrs ago0x3d6991085ab1ae3926cb96f25684c40a364b6856 IN  Solidex Finance: LP Depositor0 FTM0.03455056456
0x2359e65e86586139e38cee98a62ddb6c92d5e9cd8e90a9e6528d8e0858cda788Get Reward633931662023-06-01 0:24:502 days 8 hrs ago0x1d9c68cfa5fdfb6c585bf01f715d359f3039b63a IN  Solidex Finance: LP Depositor0 FTM0.0729554
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x7c68107122496c3f85c7d9d5abe7108bfef9b21c63dd36b1fa5a8dfe01e652f8539458902023-01-17 21:20:44136 days 11 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x75acffb5ea28425116616de1535bc17e358687a2bb1aab815e148b63132d8b0e532415402023-01-04 23:37:55149 days 9 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x19eee2c9f706c08599b61a4e61a52e420e627b9c427ca7dcb5f9bb24596d400a520073042022-12-07 21:23:46177 days 11 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x4f2bc95cbe2e1f9a0d40787acd536a962acaecb2fbca0f488573b290cea52e24518155422022-12-03 7:45:11182 days 1 hr ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xeca03784310f9d80e79f7cef6e14719bffd4cace97cf2bf7a265170b5cfcc262512504942022-11-21 18:37:07193 days 14 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x431824139047b2f92035dde8452bff7168648bec2b16930f33587528a05a3a36490175002022-10-12 15:56:35233 days 17 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x9ed068b46f411631dfd525cc227e65aed446c6011c4ce9ac3361f088fa13207f484425642022-10-05 3:01:33241 days 5 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xa328548b293507fb6d4e16dfb0d9b8f564e63d1f95e814827742a373911fd1b5480730232022-09-30 7:21:34246 days 1 hr ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x04ada73d506454ef8f3f7facf0509444dba6c5f8511b2169212142e56c50af7c480675542022-09-30 5:42:55246 days 3 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xa80e74fea788dd31b41a5b49b7945c9ebbd274e95a66b408ff0650542e411b7a479229362022-09-28 7:34:02248 days 1 hr ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x181419edcca84848617cdacf015098aadb5e534754b988717820aa4bcd4e064b477489942022-09-25 23:41:45250 days 9 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xd405cb3e6be3cade663474f568053a55f1eb91ed6b8f0ab09723aabf8e6275d8465596162022-09-07 23:58:18268 days 9 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xc52a1f74dc6163c946f6cae0c9a58c92b6ad03869c9440546cad92b651fbacc3460821662022-08-31 17:53:31275 days 15 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xee7868c439592b3ff053b3ba0bd32ff5423305670f535b0c8e309dd30f1a5d90441697792022-08-03 23:20:59303 days 9 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xba3cbd5fae66645656f8d4d3b957a3a6e760ddb79cff5b09c014375b40b55ac4429194632022-07-16 22:50:40321 days 10 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x19d5b724677307dd8ba1ecd22995cb402d53453f853c581a6243641c0d14d1e0395799082022-06-02 1:04:48366 days 7 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x413ca1f001c2d1f310099f2a6d1751930b823bfa3d26195e653648d576668d06382836282022-05-15 8:56:22384 days 3 mins ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x363a08dacdf31294f14a04e1e876c716df32669f01225d6bb4e9b2c56db99a75382568552022-05-15 0:16:07384 days 8 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x84212171bc22cb25f91668ed5a661937b57ea98fb4a1901ac02a639375868bc0380678862022-05-12 0:00:01387 days 9 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xe59c15e1985eb3dcea2e39dc57058a4761eb62e4c821975e9228b6777ba1fa47375549622022-05-04 19:46:38394 days 13 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0xc38c89eb3a17ff2087d31dd5b4eb5ed2fc0047f7d73e05e0c932d322a79830db365732912022-04-20 23:30:02408 days 9 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x9e7ad1469c9496e2448d5b9795e66bc8cfad12d02c2f9f1f58611544fa203e46359964622022-04-14 0:49:42415 days 8 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x60688b954c119746f17745d9dd8c96301bf1043e1147840e773a471b99f327f2359957052022-04-14 0:36:18415 days 8 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x0849226b455c59e03f9d09599d5111229a4c167948272ac7b72dfbe47b34a524358533442022-04-12 5:45:04417 days 3 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
0x538d6c45483b631412a3fee458c206aae44f83b4e789f0e5265add1a7f6511dd354252942022-04-07 2:23:49422 days 6 hrs ago Solidex Finance: LP Depositor  Contract Creation0 FTM
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x16C4Fd22c9F553B8A00Fbbe94935840f43da2529

Contract Name:
LpDepositor

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 13 : LpDepositor.sol
pragma solidity 0.8.11;

import "Ownable.sol";
import "SafeERC20.sol";
import "IERC20.sol";
import "IBaseV1Voter.sol";
import "IGauge.sol";
import "IBribe.sol";
import "IVotingEscrow.sol";
import "IFeeDistributor.sol";
import "ISolidexToken.sol";
import "ILpDepositToken.sol";
import "IVeDepositor.sol";


contract LpDepositor is Ownable {

    using SafeERC20 for IERC20;

    // solidly contracts
    IERC20 public immutable SOLID;
    IVotingEscrow public immutable votingEscrow;
    IBaseV1Voter public immutable solidlyVoter;

    // solidex contracts
    ISolidexToken public SEX;
    IVeDepositor public SOLIDsex;
    IFeeDistributor public feeDistributor;
    address public stakingRewards;
    address public tokenWhitelister;
    address public depositTokenImplementation;

    uint256 public tokenID;

    struct Amounts {
        uint256 solid;
        uint256 sex;
    }

    // pool -> gauge
    mapping(address => address) public gaugeForPool;
    // pool -> bribe
    mapping(address => address) public bribeForPool;
    // pool -> solidex deposit token
    mapping(address => address) public tokenForPool;
    // user -> pool -> deposit amount
    mapping(address => mapping(address => uint256)) public userBalances;
    // pool -> total deposit amount
    mapping(address => uint256) public totalBalances;
    // pool -> integrals
    mapping(address => Amounts) public rewardIntegral;
    // user -> pool -> integrals
    mapping(address => mapping(address => Amounts)) public rewardIntegralFor;
    // user -> pool -> claimable
    mapping(address => mapping(address => Amounts)) claimable;

    // internal accounting to track SOLID fees for SOLIDsex stakers and SEX lockers
    uint256 unclaimedSolidBonus;

    event RewardAdded(address indexed rewardsToken, uint256 reward);
    event Deposited(address indexed user, address indexed pool, uint256 amount);
    event Withdrawn(address indexed user, address indexed pool, uint256 amount);
    event RewardPaid(address indexed user, address indexed rewardsToken, uint256 reward);
    event TransferDeposit(address indexed pool, address indexed from, address indexed to, uint256 amount);

    constructor(
        IERC20 _solid,
        IVotingEscrow _votingEscrow,
        IBaseV1Voter _solidlyVoter

    ) {
        SOLID = _solid;
        votingEscrow = _votingEscrow;
        solidlyVoter = _solidlyVoter;
    }

    function setAddresses(
        ISolidexToken _sex,
        IVeDepositor _solidsex,
        address _solidexVoter,
        IFeeDistributor _feeDistributor,
        address _stakingRewards,
        address _tokenWhitelister,
        address _depositToken
    ) external onlyOwner {
        SEX = _sex;
        SOLIDsex = _solidsex;
        feeDistributor = _feeDistributor;
        stakingRewards = _stakingRewards;
        tokenWhitelister = _tokenWhitelister;
        depositTokenImplementation = _depositToken;

        SOLID.approve(address(_solidsex), type(uint256).max);
        _solidsex.approve(address(_feeDistributor), type(uint256).max);
        votingEscrow.setApprovalForAll(_solidexVoter, true);
        votingEscrow.setApprovalForAll(address(_solidsex), true);

        renounceOwnership();
    }

    /**
        @dev Ensure SOLID, SEX and SOLIDsex are whitelisted
     */
    function whitelistProtocolTokens() external {
        require(tokenID != 0, "No initial NFT deposit");
        if (!solidlyVoter.isWhitelisted(address(SOLID))) {
            solidlyVoter.whitelist(address(SOLID), tokenID);
        }
        if (!solidlyVoter.isWhitelisted(address(SOLIDsex))) {
            solidlyVoter.whitelist(address(SOLIDsex), tokenID);
        }
        if (!solidlyVoter.isWhitelisted(address(SEX))) {
            solidlyVoter.whitelist(address(SEX), tokenID);
        }
    }

    /**
        @notice Get pending SOLID and SEX rewards earned by `account`
        @param account Account to query pending rewards for
        @param pools List of pool addresses to query rewards for
        @return pending Array of tuples of (SOLID rewards, SEX rewards) for each item in `pool`
     */
    function pendingRewards(
        address account,
        address[] calldata pools
    )
        external
        view
        returns (Amounts[] memory pending)
    {
        pending = new Amounts[](pools.length);
        for (uint256 i = 0; i < pools.length; i++) {
            address pool = pools[i];
            pending[i] = claimable[account][pool];
            uint256 balance = userBalances[account][pool];
            if (balance == 0) continue;

            Amounts memory integral = rewardIntegral[pool];
            uint256 total = totalBalances[pool];
            if (total > 0) {
                uint256 delta = IGauge(gaugeForPool[pool]).earned(address(SOLID), address(this));
                delta -= delta * 15 / 100;
                integral.solid += 1e18 * delta / total;
                integral.sex += 1e18 * (delta * 10000 / 42069) / total;
            }

            Amounts storage integralFor = rewardIntegralFor[account][pool];
            if (integralFor.solid < integral.solid) {
                pending[i].solid += balance * (integral.solid - integralFor.solid) / 1e18;
                pending[i].sex += balance * (integral.sex - integralFor.sex) / 1e18;
            }
        }
        return pending;
    }

    /**
        @notice Deposit Solidly LP tokens into a gauge via this contract
        @dev Each deposit is also represented via a new ERC20, the address
             is available by querying `tokenForPool(pool)`
        @param pool Address of the pool token to deposit
        @param amount Quantity of tokens to deposit
     */
    function deposit(address pool, uint256 amount) external {
        require(tokenID != 0, "Must lock SOLID first");
        require(amount > 0, "Cannot deposit zero");

        address gauge = gaugeForPool[pool];
        uint256 total = totalBalances[pool];
        uint256 balance = userBalances[msg.sender][pool];

        if (gauge == address(0)) {
            gauge = solidlyVoter.gauges(pool);
            if (gauge == address(0)) {
                gauge = solidlyVoter.createGauge(pool);
            }
            gaugeForPool[pool] = gauge;
            bribeForPool[pool] = solidlyVoter.bribes(gauge);
            tokenForPool[pool] = _deployDepositToken(pool);
            IERC20(pool).approve(gauge, type(uint256).max);
        } else {
            _updateIntegrals(msg.sender, pool, gauge, balance, total);
        }

        IERC20(pool).transferFrom(msg.sender, address(this), amount);
        IGauge(gauge).deposit(amount, tokenID);

        userBalances[msg.sender][pool] = balance + amount;
        totalBalances[pool] = total + amount;
        IDepositToken(tokenForPool[pool]).mint(msg.sender, amount);
        emit Deposited(msg.sender, pool, amount);
    }

    /**
        @notice Withdraw Solidly LP tokens
        @param pool Address of the pool token to withdraw
        @param amount Quantity of tokens to withdraw
     */
    function withdraw(address pool, uint256 amount) external {
        address gauge = gaugeForPool[pool];
        uint256 total = totalBalances[pool];
        uint256 balance = userBalances[msg.sender][pool];

        require(gauge != address(0), "Unknown pool");
        require(amount > 0, "Cannot withdraw zero");
        require(balance >= amount, "Insufficient deposit");

        _updateIntegrals(msg.sender, pool, gauge, balance, total);

        userBalances[msg.sender][pool] = balance - amount;
        totalBalances[pool] = total - amount;

        IDepositToken(tokenForPool[pool]).burn(msg.sender, amount);
        IGauge(gauge).withdraw(amount);
        IERC20(pool).transfer(msg.sender, amount);
        emit Withdrawn(msg.sender, pool, amount);
    }

    /**
        @notice Claim SOLID and SEX rewards earned from depositing LP tokens
        @dev An additional 5% of SEX is also minted for `StakingRewards`
        @param pools List of pools to claim for
     */
    function getReward(address[] calldata pools) external {
        Amounts memory claims;
        for (uint256 i = 0; i < pools.length; i++) {
            address pool = pools[i];
            address gauge = gaugeForPool[pool];
            uint256 total = totalBalances[pool];
            uint256 balance = userBalances[msg.sender][pool];
            _updateIntegrals(msg.sender, pool, gauge, balance, total);
            claims.solid += claimable[msg.sender][pool].solid;
            claims.sex += claimable[msg.sender][pool].sex;
            delete claimable[msg.sender][pool];
        }
        if (claims.solid > 0) {
            SOLID.transfer(msg.sender, claims.solid);
            emit RewardPaid(msg.sender, address(SOLID), claims.solid);
        }
        if (claims.sex > 0) {
            SEX.mint(msg.sender, claims.sex);
            emit RewardPaid(msg.sender, address(SEX), claims.sex);
            // mint an extra 5% for SOLIDsex stakers
            SEX.mint(address(stakingRewards), claims.sex * 100 / 95 - claims.sex);
            emit RewardPaid(address(stakingRewards), address(SEX), claims.sex * 100 / 95 - claims.sex);
        }
    }

    /**
        @notice Claim incentive tokens from gauge and/or bribe contracts
                and transfer them to `FeeDistributor`
        @dev This method is unguarded, anyone can claim any reward at any time.
             Claimed tokens are streamed to SEX lockers starting at the beginning
             of the following epoch week.
        @param pool Address of the pool token to claim for
        @param gaugeRewards List of incentive tokens to claim for in the pool's gauge
        @param bribeRewards List of incentive tokens to claim for in the pool's bribe contract
     */
    function claimLockerRewards(
        address pool,
        address[] calldata gaugeRewards,
        address[] calldata bribeRewards
    ) external {
        // claim pending gauge rewards for this pool to update `unclaimedSolidBonus`
        address gauge = gaugeForPool[pool];
        require(gauge != address(0), "Unknown pool");
        _updateIntegrals(address(0), pool, gauge, 0, totalBalances[pool]);

        address distributor = address(feeDistributor);
        uint256 amount;

        // fetch gauge rewards and push to the fee distributor
        if (gaugeRewards.length > 0) {
            IGauge(gauge).getReward(address(this), gaugeRewards);
            for (uint i = 0; i < gaugeRewards.length; i++) {
                IERC20 reward = IERC20(gaugeRewards[i]);
                require(reward != SOLID, "!SOLID as gauge reward");
                amount = IERC20(reward).balanceOf(address(this));
                if (amount == 0) continue;
                if (reward.allowance(address(this), distributor) == 0) {
                    reward.safeApprove(distributor, type(uint256).max);
                }
                IFeeDistributor(distributor).depositFee(address(reward), amount);
            }
        }

        // fetch bribe rewards and push to the fee distributor
        if (bribeRewards.length > 0) {
            uint256 solidBalance = SOLID.balanceOf(address(this));
            IBribe(bribeForPool[pool]).getReward(tokenID, bribeRewards);
            for (uint i = 0; i < bribeRewards.length; i++) {
                IERC20 reward = IERC20(bribeRewards[i]);
                if (reward == SOLID) {
                    // when SOLID is received as a bribe, add it to the balance
                    // that will be converted to SOLIDsex prior to distribution
                    uint256 newBalance = SOLID.balanceOf(address(this));
                    unclaimedSolidBonus += newBalance - solidBalance;
                    solidBalance = newBalance;
                    continue;
                }
                amount = reward.balanceOf(address(this));
                if (amount == 0) continue;
                if (reward.allowance(address(this), distributor) == 0) {
                    reward.safeApprove(distributor, type(uint256).max);
                }
                IFeeDistributor(distributor).depositFee(address(reward), amount);
            }
        }

        amount = unclaimedSolidBonus;
        if (amount > 0) {
            // lock 5% of earned SOLID and distribute SOLIDsex to SEX lockers
            uint256 lockAmount = amount / 3;
            SOLIDsex.depositTokens(lockAmount);
            IFeeDistributor(distributor).depositFee(address(SOLIDsex), lockAmount);

            // distribute 10% of earned SOLID to SOLIDsex stakers
            amount -= lockAmount;
            SOLID.transfer(address(stakingRewards), amount);
            unclaimedSolidBonus = 0;
        }
    }

    // External guarded functions - only callable by other protocol contracts ** //

    function transferDeposit(address pool, address from, address to, uint256 amount) external returns (bool) {
        require(msg.sender == tokenForPool[pool], "Unauthorized caller");
        require(amount > 0, "Cannot transfer zero");

        address gauge = gaugeForPool[pool];
        uint256 total = totalBalances[pool];

        uint256 balance = userBalances[from][pool];
        require(balance >= amount, "Insufficient balance");
        _updateIntegrals(from, pool, gauge, balance, total);
        userBalances[from][pool] = balance - amount;

        balance = userBalances[to][pool];
        _updateIntegrals(to, pool, gauge, balance, total - amount);
        userBalances[to][pool] = balance + amount;
        emit TransferDeposit(pool, from, to, amount);
        return true;
    }

    function whitelist(address token) external returns (bool) {
        require(msg.sender == tokenWhitelister, "Only whitelister");
        require(votingEscrow.balanceOfNFT(tokenID) > solidlyVoter.listing_fee(), "Not enough veSOLID");
        solidlyVoter.whitelist(token, tokenID);
        return true;
    }

    function onERC721Received(
        address _operator,
        address _from,
        uint256 _tokenID,
        bytes calldata
    )external returns (bytes4) {
        // VeDepositor transfers the NFT to this contract so this callback is required
        require(_operator == address(SOLIDsex));

        if (tokenID == 0) {
            tokenID = _tokenID;
        }

        return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"));
    }

    // ** Internal functions ** //

    function _deployDepositToken(address pool) internal returns (address token) {
        // taken from https://solidity-by-example.org/app/minimal-proxy/
        bytes20 targetBytes = bytes20(depositTokenImplementation);
        assembly {
            let clone := mload(0x40)
            mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(clone, 0x14), targetBytes)
            mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            token := create(0, clone, 0x37)
        }
        IDepositToken(token).initialize(pool);
        return token;
    }

    function _updateIntegrals(
        address user,
        address pool,
        address gauge,
        uint256 balance,
        uint256 total
    ) internal {
        Amounts memory integral = rewardIntegral[pool];
        if (total > 0) {
            uint256 delta = SOLID.balanceOf(address(this));
            address[] memory rewards = new address[](1);
            rewards[0] = address(SOLID);
            IGauge(gauge).getReward(address(this), rewards);
            delta = SOLID.balanceOf(address(this)) - delta;
            if (delta > 0) {
                uint256 fee = delta * 15 / 100;
                delta -= fee;
                unclaimedSolidBonus += fee;

                integral.solid += 1e18 * delta / total;
                integral.sex += 1e18 * (delta * 10000 / 42069) / total;
                rewardIntegral[pool] = integral;
            }
        }
        if (user != address(0)) {
            Amounts memory integralFor = rewardIntegralFor[user][pool];
            if (integralFor.solid < integral.solid) {
                Amounts storage claims = claimable[user][pool];
                claims.solid += balance * (integral.solid - integralFor.solid) / 1e18;
                claims.sex += balance * (integral.sex - integralFor.sex) / 1e18;
                rewardIntegralFor[user][pool] = integral;
            }
        }
    }

}

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable {
    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(msg.sender);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = owner;
        owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

import "IERC20.sol";
import "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 4 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.11;

/**
 * Based on the OpenZeppelin IER20 interface:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol
 *
 * @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);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);

    /**
     * @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 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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);
            }
        }
    }
}

File 6 of 13 : IBaseV1Voter.sol
pragma solidity 0.8.11;

interface IBaseV1Voter {
    function bribes(address gauge) external view returns (address bribe);
    function gauges(address pool) external view returns (address gauge);
    function poolForGauge(address gauge) external view returns (address pool);
    function createGauge(address pool) external returns (address);
    function vote(uint tokenId, address[] calldata pools, int256[] calldata weights) external;
    function whitelist(address token, uint tokenId) external;
    function listing_fee() external view returns (uint256);
    function _ve() external view returns (address);
    function isWhitelisted(address pool) external view returns (bool);
}

File 7 of 13 : IGauge.sol
pragma solidity 0.8.11;

interface IGauge {
    function deposit(uint amount, uint tokenId) external;
    function withdraw(uint amount) external;
    function getReward(address account, address[] memory tokens) external;
    function earned(address token, address account) external view returns (uint256);
}

File 8 of 13 : IBribe.sol
pragma solidity 0.8.11;

interface IBribe {
    function getReward(uint tokenId, address[] memory tokens) external;
}

File 9 of 13 : IVotingEscrow.sol
pragma solidity 0.8.11;

interface IVotingEscrow {
    function increase_amount(uint256 tokenID, uint256 value) external;
    function increase_unlock_time(uint256 tokenID, uint256 duration) external;
    function merge(uint256 fromID, uint256 toID) external;
    function locked(uint256 tokenID) external view returns (uint256 amount, uint256 unlockTime);
    function setApprovalForAll(address operator, bool approved) external;
    function transferFrom(address from, address to, uint256 tokenID) external;
    function safeTransferFrom(address from, address to, uint tokenId) external;
    function ownerOf(uint tokenId) external view returns (address);
    function balanceOfNFT(uint tokenId) external view returns (uint);
    function isApprovedOrOwner(address, uint) external view returns (bool);
}

File 10 of 13 : IFeeDistributor.sol
pragma solidity 0.8.11;

interface IFeeDistributor {
    function depositFee(address _token, uint256 _amount) external returns (bool);
}

File 11 of 13 : ISolidexToken.sol
pragma solidity 0.8.11;

import "IERC20.sol";

interface ISolidexToken is IERC20 {
    function mint(address _to, uint256 _value) external returns (bool);
}

File 12 of 13 : ILpDepositToken.sol
pragma solidity 0.8.11;

interface IDepositToken {
    function pool() external view returns (address);
    function initialize(address pool) external returns (bool);
    function mint(address to, uint256 value) external returns (bool);
    function burn(address from, uint256 value) external returns (bool);
}

File 13 of 13 : IVeDepositor.sol
pragma solidity 0.8.11;

import "IERC20.sol";

interface IVeDepositor is IERC20 {
    function depositTokens(uint256 amount) external returns (bool);
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "LpDepositor.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_solid","type":"address"},{"internalType":"contract IVotingEscrow","name":"_votingEscrow","type":"address"},{"internalType":"contract IBaseV1Voter","name":"_solidlyVoter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardsToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"rewardsToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"SEX","outputs":[{"internalType":"contract ISolidexToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SOLID","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SOLIDsex","outputs":[{"internalType":"contract IVeDepositor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bribeForPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"address[]","name":"gaugeRewards","type":"address[]"},{"internalType":"address[]","name":"bribeRewards","type":"address[]"}],"name":"claimLockerRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositTokenImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDistributor","outputs":[{"internalType":"contract IFeeDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gaugeForPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"pools","type":"address[]"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address[]","name":"pools","type":"address[]"}],"name":"pendingRewards","outputs":[{"components":[{"internalType":"uint256","name":"solid","type":"uint256"},{"internalType":"uint256","name":"sex","type":"uint256"}],"internalType":"struct LpDepositor.Amounts[]","name":"pending","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardIntegral","outputs":[{"internalType":"uint256","name":"solid","type":"uint256"},{"internalType":"uint256","name":"sex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewardIntegralFor","outputs":[{"internalType":"uint256","name":"solid","type":"uint256"},{"internalType":"uint256","name":"sex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISolidexToken","name":"_sex","type":"address"},{"internalType":"contract IVeDepositor","name":"_solidsex","type":"address"},{"internalType":"address","name":"_solidexVoter","type":"address"},{"internalType":"contract IFeeDistributor","name":"_feeDistributor","type":"address"},{"internalType":"address","name":"_stakingRewards","type":"address"},{"internalType":"address","name":"_tokenWhitelister","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"solidlyVoter","outputs":[{"internalType":"contract IBaseV1Voter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenForPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenWhitelister","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingEscrow","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistProtocolTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162003c1038038062003c108339810160408190526200003491620000c6565b6200003f336200005d565b6001600160a01b0392831660805290821660a0521660c0526200011a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000c357600080fd5b50565b600080600060608486031215620000dc57600080fd5b8351620000e981620000ad565b6020850151909350620000fc81620000ad565b60408501519092506200010f81620000ad565b809150509250925092565b60805160a05160c051613a026200020e600039600081816104ec015281816112e20152818161137c0152818161143201528181611835015281816118be01528181611968015281816119f601528181611a8501528181611b1301528181611ffe01526121670152600081816102d701528181612098015281816125a701526126270152600081816103b50152818161073101528181610a8501528181610ca301528181610dc801528181610e18015281816111670152818161180d015281816118eb01528181611cee01528181611d710152818161249001528181612a6501528181612b000152612bb70152613a026000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80637fd7d06211610104578063bd880357116100a2578063e7e5b6f311610071578063e7e5b6f3146104e7578063eaa8ba7f1461050e578063f2fde38b14610521578063f3fef3a31461053457600080fd5b8063bd8803571461046f578063cf57606014610482578063d816d33014610495578063dd86d301146104be57600080fd5b80639b19251a116100de5780639b19251a146103ea578063a5c42ef11461040d578063adb5198014610424578063aee9c8721461044f57600080fd5b80637fd7d0621461039d5780638a662b59146103b05780638da5cb5b146103d757600080fd5b806347e7ef241161017c57806364b87a701161014b57806364b87a7014610353578063715018a614610366578063762006221461036e578063795145711461039557600080fd5b806347e7ef24146102bf5780634f2bfe5b146102d25780635c76cf4c146102f957806363f577771461030c57600080fd5b806329bbc6c6116101b857806329bbc6c6146102645780632e76fb35146102775780633df8161c1461028a57806343edc3fd146102aa57600080fd5b80630d43e8ad146101df578063150b7a021461020f5780632045be901461023b575b600080fd5b6003546101f2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61022261021d366004613334565b610547565b6040516001600160e01b03199091168152602001610206565b6101f26102493660046133d3565b6008602052600090815260409020546001600160a01b031681565b6005546101f2906001600160a01b031681565b6002546101f2906001600160a01b031681565b61029d61029836600461343c565b61059c565b6040516102069190613491565b6102bd6102b83660046134e0565b610952565b005b6102bd6102cd366004613563565b6111f4565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b6006546101f2906001600160a01b031681565b61033e61031a36600461358f565b600e6020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610206565b6004546101f2906001600160a01b031681565b6102bd611778565b61033e61037c3660046133d3565b600d602052600090815260409020805460019091015482565b6102bd6117ae565b6102bd6103ab3660046135c8565b611b81565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b6000546101f2906001600160a01b031681565b6103fd6103f83660046133d3565b611fac565b6040519015158152602001610206565b61041660075481565b604051908152602001610206565b61041661043236600461358f565b600b60209081526000928352604080842090915290825290205481565b61041661045d3660046133d3565b600c6020526000908152604090205481565b6103fd61047d36600461360a565b6121d6565b6001546101f2906001600160a01b031681565b6101f26104a33660046133d3565b600a602052600090815260409020546001600160a01b031681565b6101f26104cc3660046133d3565b6009602052600090815260409020546001600160a01b031681565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b6102bd61051c36600461365b565b6123f7565b6102bd61052f3660046133d3565b612696565b6102bd610542366004613563565b612731565b6002546000906001600160a01b0387811691161461056457600080fd5b6007546105715760078490555b507f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b60608167ffffffffffffffff8111156105b7576105b76136f1565b6040519080825280602002602001820160405280156105fc57816020015b60408051808201909152600080825260208201528152602001906001900390816105d55790505b50905060005b8281101561094957600084848381811061061e5761061e613707565b905060200201602081019061063391906133d3565b6001600160a01b038088166000908152600f60209081526040808320938516835292815290829020825180840190935280548352600101549082015284519192509084908490811061068757610687613707565b6020908102919091018101919091526001600160a01b038088166000908152600b83526040808220928516825291909252902054806106c7575050610937565b6001600160a01b0382166000818152600d60209081526040808320815180830183528154815260019091015481840152938352600c909152902054801561084b576001600160a01b0384811660009081526008602052604080822054905163211dc32d60e01b81527f0000000000000000000000000000000000000000000000000000000000000000841660048201523060248201529192169063211dc32d90604401602060405180830381865afa158015610787573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ab919061371d565b905060646107ba82600f61374c565b6107c4919061376b565b6107ce908261378d565b9050816107e382670de0b6b3a764000061374c565b6107ed919061376b565b835184906107fc9083906137a4565b9052508161a45561080f8361271061374c565b610819919061376b565b61082b90670de0b6b3a764000061374c565b610835919061376b565b8360200181815161084691906137a4565b905250505b6001600160a01b03808a166000908152600e602090815260408083209388168352929052208251815410156109315780548351670de0b6b3a7640000916108919161378d565b61089b908661374c565b6108a5919061376b565b8787815181106108b7576108b7613707565b60200260200101516000018181516108cf91906137a4565b90525060018101546020840151670de0b6b3a7640000916108ef9161378d565b6108f9908661374c565b610903919061376b565b87878151811061091557610915613707565b602002602001015160200181815161092d91906137a4565b9052505b50505050505b80610941816137bc565b915050610602565b505b9392505050565b6001600160a01b0380861660009081526008602052604090205416806109ae5760405162461bcd60e51b815260206004820152600c60248201526b155b9adb9bdddb881c1bdbdb60a21b60448201526064015b60405180910390fd5b6001600160a01b0386166000908152600c60205260408120546109d79190889084908390612a17565b6003546001600160a01b031660008515610c85576040516331279d3d60e01b81526001600160a01b038416906331279d3d90610a1b9030908b908b90600401613820565b600060405180830381600087803b158015610a3557600080fd5b505af1158015610a49573d6000803e3d6000fd5b5050505060005b86811015610c83576000888883818110610a6c57610a6c613707565b9050602002016020810190610a8191906133d3565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161415610afe5760405162461bcd60e51b81526020600482015260166024820152750854d3d3125108185cc819d85d59d9481c995dd85c9960521b60448201526064016109a5565b6040516370a0823160e01b81523060048201526001600160a01b038216906370a0823190602401602060405180830381865afa158015610b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b66919061371d565b925082610b735750610c71565b604051636eb1769f60e11b81523060048201526001600160a01b03858116602483015282169063dd62ed3e90604401602060405180830381865afa158015610bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be3919061371d565b610bfd57610bfd6001600160a01b03821685600019612e6d565b604051631dc1a8e960e11b81526001600160a01b03851690633b8351d290610c2b908490879060040161384e565b6020604051808303816000875af1158015610c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6e9190613867565b50505b80610c7b816137bc565b915050610a50565b505b831561103f576040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610cf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d16919061371d565b6001600160a01b03808b166000908152600960205260409081902054600754915163f5f8d36560e01b81529394509091169163f5f8d36591610d5e918a908a90600401613889565b600060405180830381600087803b158015610d7857600080fd5b505af1158015610d8c573d6000803e3d6000fd5b5050505060005b8581101561103c576000878783818110610daf57610daf613707565b9050602002016020810190610dc491906133d3565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161415610eb7576040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610e67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8b919061371d565b9050610e97848261378d565b60106000828254610ea891906137a4565b9091555090935061102a915050565b6040516370a0823160e01b81523060048201526001600160a01b038216906370a0823190602401602060405180830381865afa158015610efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1f919061371d565b935083610f2c575061102a565b604051636eb1769f60e11b81523060048201526001600160a01b03868116602483015282169063dd62ed3e90604401602060405180830381865afa158015610f78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9c919061371d565b610fb657610fb66001600160a01b03821686600019612e6d565b604051631dc1a8e960e11b81526001600160a01b03861690633b8351d290610fe4908490889060040161384e565b6020604051808303816000875af1158015611003573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110279190613867565b50505b80611034816137bc565b915050610d93565b50505b5060105480156111ea57600061105660038361376b565b600254604051636ea4bab760e11b8152600481018390529192506001600160a01b03169063dd49756e906024016020604051808303816000875af11580156110a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c69190613867565b50600254604051631dc1a8e960e11b81526001600160a01b0385811692633b8351d2926110fb9290911690859060040161384e565b6020604051808303816000875af115801561111a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113e9190613867565b50611149818361378d565b6004805460405163a9059cbb60e01b81529294506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169363a9059cbb9361119f939092169187910161384e565b6020604051808303816000875af11580156111be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e29190613867565b505060006010555b5050505050505050565b60075461123b5760405162461bcd60e51b8152602060048201526015602482015274135d5cdd081b1bd8dac814d3d3125108199a5c9cdd605a1b60448201526064016109a5565b600081116112815760405162461bcd60e51b815260206004820152601360248201527243616e6e6f74206465706f736974207a65726f60681b60448201526064016109a5565b6001600160a01b03808316600081815260086020908152604080832054600c835281842054338552600b84528285209585529490925290912054921691826115765760405163b9a09fd560e01b81526001600160a01b0386811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063b9a09fd590602401602060405180830381865afa158015611329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134d91906138a3565b92506001600160a01b0383166113ec576040516352fa180f60e11b81526001600160a01b0386811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063a5f4301e906024016020604051808303816000875af11580156113c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e991906138a3565b92505b6001600160a01b038581166000908152600860205260409081902080546001600160a01b0319168684169081179091559051635462ecad60e11b815260048101919091527f00000000000000000000000000000000000000000000000000000000000000009091169063a8c5d95a90602401602060405180830381865afa15801561147b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149f91906138a3565b6001600160a01b03868116600090815260096020526040902080546001600160a01b031916929091169190911790556114d785612fa8565b6001600160a01b038681166000818152600a60205260409081902080546001600160a01b0319169490931693909317909155905163095ea7b360e01b815263095ea7b39061152d9086906000199060040161384e565b6020604051808303816000875af115801561154c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115709190613867565b50611583565b6115833386858486612a17565b6040516323b872dd60e01b8152336004820152306024820152604481018590526001600160a01b038616906323b872dd906064016020604051808303816000875af11580156115d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fa9190613867565b50600754604051631c57762b60e31b81526001600160a01b0385169163e2bbb15891611633918891600401918252602082015260400190565b600060405180830381600087803b15801561164d57600080fd5b505af1158015611661573d6000803e3d6000fd5b50505050838161167191906137a4565b336000908152600b602090815260408083206001600160a01b038a16845290915290205561169f84836137a4565b6001600160a01b038087166000908152600c6020908152604080832094909455600a90528290205491516340c10f1960e01b81529116906340c10f19906116ec903390889060040161384e565b6020604051808303816000875af115801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f9190613867565b506040518481526001600160a01b0386169033907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7906020015b60405180910390a35050505050565b6000546001600160a01b031633146117a25760405162461bcd60e51b81526004016109a5906138c0565b6117ac600061307c565b565b6007546117f65760405162461bcd60e51b8152602060048201526016602482015275139bc81a5b9a5d1a585b081391950819195c1bdcda5d60521b60448201526064016109a5565b604051633af32abf60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000001690633af32abf90602401602060405180830381865afa15801561187c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a09190613867565b6119465760075460405163131f8abb60e31b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916398fc55d891611913917f00000000000000000000000000000000000000000000000000000000000000009160040161384e565b600060405180830381600087803b15801561192d57600080fd5b505af1158015611941573d6000803e3d6000fd5b505050505b600254604051633af32abf60e01b81526001600160a01b0391821660048201527f000000000000000000000000000000000000000000000000000000000000000090911690633af32abf90602401602060405180830381865afa1580156119b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d59190613867565b611a635760025460075460405163131f8abb60e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116936398fc55d893611a309391909216919060040161384e565b600060405180830381600087803b158015611a4a57600080fd5b505af1158015611a5e573d6000803e3d6000fd5b505050505b600154604051633af32abf60e01b81526001600160a01b0391821660048201527f000000000000000000000000000000000000000000000000000000000000000090911690633af32abf90602401602060405180830381865afa158015611ace573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af29190613867565b6117ac5760015460075460405163131f8abb60e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116936398fc55d893611b4d9391909216919060040161384e565b600060405180830381600087803b158015611b6757600080fd5b505af1158015611b7b573d6000803e3d6000fd5b50505050565b604080518082019091526000808252602082015260005b82811015611ccd576000848483818110611bb457611bb4613707565b9050602002016020810190611bc991906133d3565b6001600160a01b03808216600081815260086020908152604080832054600c83528184205433808652600b85528386209686529590935292205494955092169290611c179085858486612a17565b336000908152600f602090815260408083206001600160a01b038816845290915290205486518790611c4a9083906137a4565b905250336000908152600f602090815260408083206001600160a01b03881684528252909120600101549087018051611c849083906137a4565b90525050336000908152600f602090815260408083206001600160a01b039690961683529490529283208381556001019290925550819050611cc5816137bc565b915050611b98565b50805115611dca57805160405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163a9059cbb91611d2391339160040161384e565b6020604051808303816000875af1158015611d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d669190613867565b5080516040519081527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169033907f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e9060200160405180910390a35b602081015115611fa75760015460208201516040516340c10f1960e01b81526001600160a01b03909216916340c10f1991611e0a9133919060040161384e565b6020604051808303816000875af1158015611e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4d9190613867565b506001546020828101516040519081526001600160a01b039092169133917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e910160405180910390a360015460045460208301516001600160a01b03928316926340c10f19921690605f611ec282606461374c565b611ecc919061376b565b611ed6919061378d565b6040518363ffffffff1660e01b8152600401611ef392919061384e565b6020604051808303816000875af1158015611f12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f369190613867565b5060015460045460208301516001600160a01b0392831692909116907f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e90605f611f8182606461374c565b611f8b919061376b565b611f95919061378d565b60405190815260200160405180910390a35b505050565b6005546000906001600160a01b03163314611ffc5760405162461bcd60e51b815260206004820152601060248201526f27b7363c903bb434ba32b634b9ba32b960811b60448201526064016109a5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b980777a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561205a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207e919061371d565b6007546040516339f890b560e21b815260048101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e7e242d490602401602060405180830381865afa1580156120e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061210b919061371d565b1161214d5760405162461bcd60e51b8152602060048201526012602482015271139bdd08195b9bdd59da081d9954d3d3125160721b60448201526064016109a5565b60075460405163131f8abb60e31b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916398fc55d89161219c91869160040161384e565b600060405180830381600087803b1580156121b657600080fd5b505af11580156121ca573d6000803e3d6000fd5b50600195945050505050565b6001600160a01b038481166000908152600a602052604081205490911633146122375760405162461bcd60e51b81526020600482015260136024820152722ab730baba3437b934bd32b21031b0b63632b960691b60448201526064016109a5565b6000821161227e5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74207472616e73666572207a65726f60601b60448201526064016109a5565b6001600160a01b03808616600081815260086020908152604080832054600c8352818420548a87168552600b84528285209585529490925290912054921691848110156123045760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064016109a5565b6123118789858486612a17565b61231b858261378d565b6001600160a01b038089166000908152600b602081815260408084208e861680865290835281852096909655938b1683529081528282209382529290925290205490506123748689858461236f8a8861378d565b612a17565b61237e85826137a4565b6001600160a01b038088166000818152600b602090815260408083208e861680855292529182902094909455519092918a1691907f9376b38c1b00dca4d6734cc68a93fc19fdc91dc0c12be35938b668258e5a01dd906123e1908a815260200190565b60405180910390a4506001979650505050505050565b6000546001600160a01b031633146124215760405162461bcd60e51b81526004016109a5906138c0565b600180546001600160a01b03199081166001600160a01b038a811691909117909255600280548216898416179055600380548216878416179055600480548216868416178155600580548316868516179055600680549092168484161790915560405163095ea7b360e01b81527f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916124c9918a91600019910161384e565b6020604051808303816000875af11580156124e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250c9190613867565b5060405163095ea7b360e01b81526001600160a01b0387169063095ea7b39061253d9087906000199060040161384e565b6020604051808303816000875af115801561255c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125809190613867565b5060405163a22cb46560e01b81526001600160a01b038681166004830152600160248301527f0000000000000000000000000000000000000000000000000000000000000000169063a22cb46590604401600060405180830381600087803b1580156125eb57600080fd5b505af11580156125ff573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038981166004830152600160248301527f000000000000000000000000000000000000000000000000000000000000000016925063a22cb4659150604401600060405180830381600087803b15801561266d57600080fd5b505af1158015612681573d6000803e3d6000fd5b5050505061268d611778565b50505050505050565b6000546001600160a01b031633146126c05760405162461bcd60e51b81526004016109a5906138c0565b6001600160a01b0381166127255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a5565b61272e8161307c565b50565b6001600160a01b03808316600081815260086020908152604080832054600c835281842054338552600b84528285209585529490925290912054921691826127aa5760405162461bcd60e51b815260206004820152600c60248201526b155b9adb9bdddb881c1bdbdb60a21b60448201526064016109a5565b600084116127f15760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74207769746864726177207a65726f60601b60448201526064016109a5565b838110156128385760405162461bcd60e51b8152602060048201526014602482015273125b9cdd59999a58da595b9d0819195c1bdcda5d60621b60448201526064016109a5565b6128453386858486612a17565b61284f848261378d565b336000908152600b602090815260408083206001600160a01b038a16845290915290205561287d848361378d565b6001600160a01b038087166000908152600c6020908152604080832094909455600a9052829020549151632770a7eb60e21b8152911690639dc29fac906128ca903390889060040161384e565b6020604051808303816000875af11580156128e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290d9190613867565b50604051632e1a7d4d60e01b8152600481018590526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b15801561295057600080fd5b505af1158015612964573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038816925063a9059cbb9150612996903390889060040161384e565b6020604051808303816000875af11580156129b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129d99190613867565b506040518481526001600160a01b0386169033907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb90602001611769565b6001600160a01b0384166000908152600d602090815260409182902082518084019093528054835260010154908201528115612d23576040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ad8919061371d565b60408051600180825281830190925291925060009190602080830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110612b3257612b32613707565b6001600160a01b0392831660209182029290920101526040516331279d3d60e01b8152908716906331279d3d90612b6f90309085906004016138f5565b600060405180830381600087803b158015612b8957600080fd5b505af1158015612b9d573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201528492507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a0823190602401602060405180830381865afa158015612c07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2b919061371d565b612c35919061378d565b91508115612d205760006064612c4c84600f61374c565b612c56919061376b565b9050612c62818461378d565b92508060106000828254612c7691906137a4565b90915550859050612c8f84670de0b6b3a764000061374c565b612c99919061376b565b84518590612ca89083906137a4565b9052508461a455612cbb8561271061374c565b612cc5919061376b565b612cd790670de0b6b3a764000061374c565b612ce1919061376b565b84602001818151612cf291906137a4565b905250506001600160a01b0387166000908152600d6020908152604090912084518155908401516001909101555b50505b6001600160a01b03861615612e65576001600160a01b038087166000908152600e6020908152604080832093891683529281529082902082518084019093528054808452600190910154918301919091528251111561268d576001600160a01b038088166000908152600f60209081526040808320938a1683529290522081518351670de0b6b3a764000091612db89161378d565b612dc2908761374c565b612dcc919061376b565b816000016000828254612ddf91906137a4565b909155505060208083015190840151670de0b6b3a764000091612e019161378d565b612e0b908761374c565b612e15919061376b565b816001016000828254612e2891906137a4565b9091555050506001600160a01b038088166000908152600e60209081526040808320938a1683529281529190208351815590830151600190910155505b505050505050565b801580612ee75750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015612ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ee5919061371d565b155b612f525760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016109a5565b611fa78363095ea7b360e01b8484604051602401612f7192919061384e565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526130cc565b600654604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b815260609190911b6bffffffffffffffffffffffff1916601482018190526e5af43d82803e903d91602b57fd5bf360881b602883015260009160378184f060405163189acdbd60e31b81526001600160a01b038681166004830152919450908416915063c4d66de8906024016020604051808303816000875af1158015613051573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130759190613867565b5050919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000613121826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661319e9092919063ffffffff16565b805190915015611fa7578080602001905181019061313f9190613867565b611fa75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109a5565b60606131ad84846000856131b5565b949350505050565b6060824710156132165760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016109a5565b6001600160a01b0385163b61326d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109a5565b600080866001600160a01b03168587604051613289919061397d565b60006040518083038185875af1925050503d80600081146132c6576040519150601f19603f3d011682016040523d82523d6000602084013e6132cb565b606091505b50915091506132db8282866132e6565b979650505050505050565b606083156132f557508161094b565b8251156133055782518084602001fd5b8160405162461bcd60e51b81526004016109a59190613999565b6001600160a01b038116811461272e57600080fd5b60008060008060006080868803121561334c57600080fd5b85356133578161331f565b945060208601356133678161331f565b935060408601359250606086013567ffffffffffffffff8082111561338b57600080fd5b818801915088601f83011261339f57600080fd5b8135818111156133ae57600080fd5b8960208285010111156133c057600080fd5b9699959850939650602001949392505050565b6000602082840312156133e557600080fd5b813561094b8161331f565b60008083601f84011261340257600080fd5b50813567ffffffffffffffff81111561341a57600080fd5b6020830191508360208260051b850101111561343557600080fd5b9250929050565b60008060006040848603121561345157600080fd5b833561345c8161331f565b9250602084013567ffffffffffffffff81111561347857600080fd5b613484868287016133f0565b9497909650939450505050565b602080825282518282018190526000919060409081850190868401855b828110156134d3578151805185528601518685015292840192908501906001016134ae565b5091979650505050505050565b6000806000806000606086880312156134f857600080fd5b85356135038161331f565b9450602086013567ffffffffffffffff8082111561352057600080fd5b61352c89838a016133f0565b9096509450604088013591508082111561354557600080fd5b50613552888289016133f0565b969995985093965092949392505050565b6000806040838503121561357657600080fd5b82356135818161331f565b946020939093013593505050565b600080604083850312156135a257600080fd5b82356135ad8161331f565b915060208301356135bd8161331f565b809150509250929050565b600080602083850312156135db57600080fd5b823567ffffffffffffffff8111156135f257600080fd5b6135fe858286016133f0565b90969095509350505050565b6000806000806080858703121561362057600080fd5b843561362b8161331f565b9350602085013561363b8161331f565b9250604085013561364b8161331f565b9396929550929360600135925050565b600080600080600080600060e0888a03121561367657600080fd5b87356136818161331f565b965060208801356136918161331f565b955060408801356136a18161331f565b945060608801356136b18161331f565b935060808801356136c18161331f565b925060a08801356136d18161331f565b915060c08801356136e18161331f565b8091505092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561372f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561376657613766613736565b500290565b60008261378857634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561379f5761379f613736565b500390565b600082198211156137b7576137b7613736565b500190565b60006000198214156137d0576137d0613736565b5060010190565b8183526000602080850194508260005b858110156138155781356137fa8161331f565b6001600160a01b0316875295820195908201906001016137e7565b509495945050505050565b6001600160a01b038416815260406020820181905260009061384590830184866137d7565b95945050505050565b6001600160a01b03929092168252602082015260400190565b60006020828403121561387957600080fd5b8151801515811461094b57600080fd5b8381526040602082015260006138456040830184866137d7565b6000602082840312156138b557600080fd5b815161094b8161331f565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b038381168252604060208084018290528451918401829052600092858201929091906060860190855b81811015613943578551851683529483019491830191600101613925565b509098975050505050505050565b60005b8381101561396c578181015183820152602001613954565b83811115611b7b5750506000910152565b6000825161398f818460208701613951565b9190910192915050565b60208152600082518060208401526139b8816040850160208701613951565b601f01601f1916919091016040019291505056fea2646970667358221220c8726c09e15a4222d77b924b3841d1e34e534c7ace9f7bdd5e19520ace5506da64736f6c634300080b0033000000000000000000000000888ef71766ca594ded1f0fa3ae64ed2941740a20000000000000000000000000cbd8fea77c2452255f59743f55a3ea9d83b3c72b000000000000000000000000dc819f5d05a6859d2facbb4a44e5ab105762dbae

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.