BABYBOO_Dividen_Tracker (BABYBOO_Dividend_Tracker) Token Tracker | FTMScan (2024)

ERC-20

  • Check previous token supply
  • Add Token to MetaMask (Web3)
  • Update Token Info
  • Update Name Tag or Label
  • Submit Burn Details
  • Report/Flag Address

Overview

Max Total Supply

31,195,089,487.591601562072986752 BABYBOO_Dividend_Tracker

Holders

11

Total Transfers

-

Market

Price

$0.00 @ 0.000000 FTM

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

  • Transfers
  • Holders
  • Info
  • Contract

Loading...

Loading

Loading...

Loading

Loading...

Loading

Click here to update the token information / general information

  • Code
  • Read Contract
  • Write Contract

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.

Contract Source Code Verified (Exact Match)

Contract Name:

BABYGOATDividendTracker

Compiler Version

v0.6.12+commit.27d51765

Optimization Enabled:

Yes with 20000 runs

Other Settings:

default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

BABYBOO_Dividen_Tracker (BABYBOO_Dividend_Tracker) Token Tracker | FTMScan (3)BABYBOO_Dividen_Tracker (BABYBOO_Dividend_Tracker) Token Tracker | FTMScan (4)BABYBOO_Dividen_Tracker (BABYBOO_Dividend_Tracker) Token Tracker | FTMScan (5)IDE

  • Is this a proxy?
  • Similar
  • Submit Audit
  • Compare

File 1 of 16 : BabyGoat.sol

pragma solidity ^0.6.2;pragma experimental ABIEncoderV2;import "./DividendPayingToken.sol";import "./SafeMath.sol";import "./IterableMapping.sol";import "./Ownable.sol";import "./IVeloPair.sol";import "./IPairFactory.sol";import "./IVeloRouter.sol";contract BABYGOAT is ERC20, Ownable { using SafeMath for uint256; IVeloRouter public veloRouter; address public veloPair; bool private swapping; BABYGOATDividendTracker public dividendTracker; address public deadWallet = 0x000000000000000000000000000000000000dEaD; address public immutable GOAT; //GOAT uint256 public swapTokensAtAmount = 2000000 * (10**18); mapping(address => bool) public _isBlacklisted; uint256 public GOATRewardsFee = 5; uint256 public liquidityFee = 2; uint256 public marketingFee = 1; uint256 public totalFees = GOATRewardsFee.add(liquidityFee).add(marketingFee); address public _marketingWalletAddress; // use by default 300,000 gas to process auto-claiming dividends uint256 public gasForProcessing = 300000; // exlcude from fees and max transaction amount mapping (address => bool) private _isExcludedFromFees; // store addresses that a automatic market maker pairs. Any transfer *to* these addresses // could be subject to a maximum transfer amount mapping (address => bool) public automatedMarketMakerPairs; event UpdateDividendTracker(address indexed newAddress, address indexed oldAddress); event UpdateVeloRouter(address indexed newAddress, address indexed oldAddress); event ExcludeFromFees(address indexed account, bool isExcluded); event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event LiquidityWalletUpdated(address indexed newLiquidityWallet, address indexed oldLiquidityWallet); event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue); event SwapAndLiquify( uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity ); event SendDividends( uint256 tokensSwapped, uint256 amount ); event ProcessedDividendTracker( uint256 iterations, uint256 claims, uint256 lastProcessedIndex, bool indexed automatic, uint256 gas, address indexed processor ); constructor( address _marketingWallet, address _GOAT ) public ERC20("BABYGOAT", "BABYGOAT") { GOAT = _GOAT; _marketingWalletAddress = _marketingWallet; dividendTracker = new BABYGOATDividendTracker(_GOAT); // exclude from receiving dividends dividendTracker.excludeFromDividends(address(dividendTracker)); dividendTracker.excludeFromDividends(address(this)); dividendTracker.excludeFromDividends(owner()); dividendTracker.excludeFromDividends(deadWallet); // exclude from paying fees or having max transaction amount excludeFromFees(owner(), true); excludeFromFees(_marketingWalletAddress, true); excludeFromFees(address(this), true); /* _mint is an internal function in ERC20.sol that is only called here, and CANNOT be called ever again */ _mint(owner(), 100_000_000_000 * (10**18)); } receive() external payable { } function updateDividendTracker(address newAddress) public onlyOwner { require(newAddress != address(dividendTracker), "BABYGOAT: The dividend tracker already has that address"); BABYGOATDividendTracker newDividendTracker = BABYGOATDividendTracker(payable(newAddress)); require(newDividendTracker.owner() == address(this), "BABYGOAT: The new dividend tracker must be owned by the BABYGOAT token contract"); newDividendTracker.excludeFromDividends(address(newDividendTracker)); newDividendTracker.excludeFromDividends(address(this)); newDividendTracker.excludeFromDividends(owner()); newDividendTracker.excludeFromDividends(address(veloRouter)); emit UpdateDividendTracker(newAddress, address(dividendTracker)); dividendTracker = newDividendTracker; } function updateVeloRouter(address newAddress) public onlyOwner { require(newAddress != address(veloRouter), "BABYGOAT: The router already has that address"); emit UpdateVeloRouter(newAddress, address(veloRouter)); veloRouter = IVeloRouter(newAddress); address _veloPair = IPairFactory(veloRouter.factory()) .createPair(address(this), veloRouter.weth(), false); veloPair = _veloPair; _setAutomatedMarketMakerPair(_veloPair, true); dividendTracker.excludeFromDividends(address(veloRouter)); } function excludeFromFees(address account, bool excluded) public onlyOwner { require(_isExcludedFromFees[account] != excluded, "BABYGOAT: Account is already the value of 'excluded'"); _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function excludeMultipleAccountsFromFees(address[] calldata accounts, bool excluded) public onlyOwner { for(uint256 i = 0; i < accounts.length; i++) { _isExcludedFromFees[accounts[i]] = excluded; } emit ExcludeMultipleAccountsFromFees(accounts, excluded); } function setMarketingWallet(address payable wallet) external onlyOwner{ _marketingWalletAddress = wallet; } function setGOATRewardsFee(uint256 value) external onlyOwner{ GOATRewardsFee = value; totalFees = GOATRewardsFee.add(liquidityFee).add(marketingFee); } function setLiquiditFee(uint256 value) external onlyOwner{ liquidityFee = value; totalFees = GOATRewardsFee.add(liquidityFee).add(marketingFee); } function setMarketingFee(uint256 value) external onlyOwner{ marketingFee = value; totalFees = GOATRewardsFee.add(liquidityFee).add(marketingFee); } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require(pair != veloPair, "BABYGOAT: The DEX pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); } function blacklistAddress(address account, bool value) external onlyOwner{ _isBlacklisted[account] = value; } function _setAutomatedMarketMakerPair(address pair, bool value) private { require(automatedMarketMakerPairs[pair] != value, "BABYGOAT: Automated market maker pair is already set to that value"); automatedMarketMakerPairs[pair] = value; if(value) { dividendTracker.excludeFromDividends(pair); } emit SetAutomatedMarketMakerPair(pair, value); } function updateGasForProcessing(uint256 newValue) public onlyOwner { require(newValue >= 200000 && newValue <= 500000, "BABYGOAT: gasForProcessing must be between 200,000 and 500,000"); require(newValue != gasForProcessing, "BABYGOAT: Cannot update gasForProcessing to same value"); emit GasForProcessingUpdated(newValue, gasForProcessing); gasForProcessing = newValue; } function updateClaimWait(uint256 claimWait) external onlyOwner { dividendTracker.updateClaimWait(claimWait); } function getClaimWait() external view returns(uint256) { return dividendTracker.claimWait(); } function getTotalDividendsDistributed() external view returns (uint256) { return dividendTracker.totalDividendsDistributed(); } function isExcludedFromFees(address account) public view returns(bool) { return _isExcludedFromFees[account]; } function withdrawableDividendOf(address account) public view returns(uint256) { return dividendTracker.withdrawableDividendOf(account); }function dividendTokenBalanceOf(address account) public view returns (uint256) {return dividendTracker.balanceOf(account);}function excludeFromDividends(address account) external onlyOwner{ dividendTracker.excludeFromDividends(account);} function getAccountDividendsInfo(address account) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccount(account); }function getAccountDividendsInfoAtIndex(uint256 index) external view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { return dividendTracker.getAccountAtIndex(index); }function processDividendTracker(uint256 gas) external {(uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gas);emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, false, gas, tx.origin); } function claim() external {dividendTracker.processAccount(msg.sender, false); } function getLastProcessedIndex() external view returns(uint256) { return dividendTracker.getLastProcessedIndex(); } function getNumberOfDividendTokenHolders() external view returns(uint256) { return dividendTracker.getNumberOfTokenHolders(); } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!_isBlacklisted[from] && !_isBlacklisted[to], 'Blacklisted address'); if(amount == 0) { super._transfer(from, to, 0); return; }uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if( canSwap && !swapping && !automatedMarketMakerPairs[from] && from != owner() && to != owner() ) { swapping = true; uint256 marketingTokens = contractTokenBalance.mul(marketingFee).div(totalFees); swapAndSendToFee(marketingTokens); uint256 swapTokens = contractTokenBalance.mul(liquidityFee).div(totalFees); swapAndLiquify(swapTokens); uint256 sellTokens = balanceOf(address(this)); swapAndSendDividends(sellTokens); swapping = false; } bool takeFee = !swapping; // if any account belongs to _isExcludedFromFee account then remove the fee if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } if(takeFee) { uint256 fees = amount.mul(totalFees).div(100); if(automatedMarketMakerPairs[to]){ fees += amount.mul(1).div(100); } amount = amount.sub(fees); super._transfer(from, address(this), fees); } super._transfer(from, to, amount); try dividendTracker.setBalance(payable(from), balanceOf(from)) {} catch {} try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {} if(!swapping) { uint256 gas = gasForProcessing; try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) { emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin); } catch { } } } function swapAndSendToFee(uint256 tokens) private { uint256 initialGOATBalance = IERC20(GOAT).balanceOf(address(this)); swapTokensForGOAT(tokens); uint256 newBalance = (IERC20(GOAT).balanceOf(address(this))).sub(initialGOATBalance); IERC20(GOAT).transfer(_marketingWalletAddress, newBalance); } function swapAndLiquify(uint256 tokens) private { // split the contract balance into halves uint256 half = tokens.div(2); uint256 otherHalf = tokens.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to velo addLiquidity(otherHalf, newBalance); emit SwapAndLiquify(half, newBalance, otherHalf); } function swapTokensForEth(uint256 tokenAmount) private { // generate the velo pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = veloRouter.weth(); IVeloRouter.Route[] memory routes = new IVeloRouter.Route[](1); routes[0] = IVeloRouter.Route(address(this), veloRouter.weth(), false); _approve(address(this), address(veloRouter), tokenAmount); // make the swap veloRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH routes, address(this), block.timestamp ); } function swapTokensForGOAT(uint256 tokenAmount) private { IVeloRouter.Route[] memory routes = new IVeloRouter.Route[](2); routes[0] = IVeloRouter.Route(address(this), veloRouter.weth(), false); routes[1] = IVeloRouter.Route(veloRouter.weth(), GOAT, false); _approve(address(this), address(veloRouter), tokenAmount); // make the swap veloRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens( tokenAmount, 0, routes, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(veloRouter), tokenAmount); // add the liquidity veloRouter.addLiquidityETH{value: ethAmount}( address(this), false, tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable address(0), block.timestamp ); } function swapAndSendDividends(uint256 tokens) private{ swapTokensForGOAT(tokens); uint256 dividends = IERC20(GOAT).balanceOf(address(this)); bool success = IERC20(GOAT).transfer(address(dividendTracker), dividends); if (success) { dividendTracker.distributeGOATDividends(dividends); emit SendDividends(tokens, dividends); } }}contract BABYGOATDividendTracker is Ownable, DividendPayingToken { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public excludedFromDividends; mapping (address => uint256) public lastClaimTimes; uint256 public claimWait; uint256 public immutable minimumTokenBalanceForDividends; event ExcludeFromDividends(address indexed account); event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue); event Claim(address indexed account, uint256 amount, bool indexed automatic); constructor(address _GOAT) public DividendPayingToken("BABYBOO_Dividen_Tracker", "BABYBOO_Dividend_Tracker", _GOAT) { claimWait = 3600; minimumTokenBalanceForDividends = 200000 * (10**18); //must hold 200000+ tokens } function _transfer(address, address, uint256) internal override { require(false, "BABYBOO_Dividend_Tracker: No transfers allowed"); } function withdrawDividend() public override { require(false, "BABYBOO_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main BABYGOAT contract."); } function excludeFromDividends(address account) external onlyOwner { require(!excludedFromDividends[account]); excludedFromDividends[account] = true; _setBalance(account, 0); tokenHoldersMap.remove(account); emit ExcludeFromDividends(account); } function updateClaimWait(uint256 newClaimWait) external onlyOwner { require(newClaimWait >= 3600 && newClaimWait <= 86400, "BABYBOO_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours"); require(newClaimWait != claimWait, "BABYBOO_Dividend_Tracker: Cannot update claimWait to same value"); emit ClaimWaitUpdated(newClaimWait, claimWait); claimWait = newClaimWait; } function getLastProcessedIndex() external view returns(uint256) { return lastProcessedIndex; } function getNumberOfTokenHolders() external view returns(uint256) { return tokenHoldersMap.keys.length; } function getAccount(address _account) public view returns ( address account, int256 index, int256 iterationsUntilProcessed, uint256 withdrawableDividends, uint256 totalDividends, uint256 lastClaimTime, uint256 nextClaimTime, uint256 secondsUntilAutoClaimAvailable) { account = _account; index = tokenHoldersMap.getIndexOfKey(account); iterationsUntilProcessed = -1; if(index >= 0) { if(uint256(index) > lastProcessedIndex) { iterationsUntilProcessed = index.sub(int256(lastProcessedIndex)); } else { uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ? tokenHoldersMap.keys.length.sub(lastProcessedIndex) : 0; iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray)); } } withdrawableDividends = withdrawableDividendOf(account); totalDividends = accumulativeDividendOf(account); lastClaimTime = lastClaimTimes[account]; nextClaimTime = lastClaimTime > 0 ? lastClaimTime.add(claimWait) : 0; secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime.sub(block.timestamp) : 0; } function getAccountAtIndex(uint256 index) public view returns ( address, int256, int256, uint256, uint256, uint256, uint256, uint256) { if(index >= tokenHoldersMap.size()) { return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0); } address account = tokenHoldersMap.getKeyAtIndex(index); return getAccount(account); } function canAutoClaim(uint256 lastClaimTime) private view returns (bool) { if(lastClaimTime > block.timestamp) { return false; } return block.timestamp.sub(lastClaimTime) >= claimWait; } function setBalance(address payable account, uint256 newBalance) external onlyOwner { if(excludedFromDividends[account]) { return; } if(newBalance >= minimumTokenBalanceForDividends) { _setBalance(account, newBalance); tokenHoldersMap.set(account, newBalance); } else { _setBalance(account, 0); tokenHoldersMap.remove(account); } processAccount(account, true); } function process(uint256 gas) public returns (uint256, uint256, uint256) { uint256 numberOfTokenHolders = tokenHoldersMap.keys.length; if(numberOfTokenHolders == 0) { return (0, 0, lastProcessedIndex); } uint256 _lastProcessedIndex = lastProcessedIndex; uint256 gasUsed = 0; uint256 gasLeft = gasleft(); uint256 iterations = 0; uint256 claims = 0; while(gasUsed < gas && iterations < numberOfTokenHolders) { _lastProcessedIndex++; if(_lastProcessedIndex >= tokenHoldersMap.keys.length) { _lastProcessedIndex = 0; } address account = tokenHoldersMap.keys[_lastProcessedIndex]; if(canAutoClaim(lastClaimTimes[account])) { if(processAccount(payable(account), true)) { claims++; } } iterations++; uint256 newGasLeft = gasleft(); if(gasLeft > newGasLeft) { gasUsed = gasUsed.add(gasLeft.sub(newGasLeft)); } gasLeft = newGasLeft; } lastProcessedIndex = _lastProcessedIndex; return (iterations, claims, lastProcessedIndex); } function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) { uint256 amount = _withdrawDividendOfUser(account); if(amount > 0) { lastClaimTimes[account] = block.timestamp; emit Claim(account, amount, automatic); return true; } return false; }}

File 2 of 16 : DividendPayingToken.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;import "./ERC20.sol";import "./SafeMath.sol";import "./SafeMathUint.sol";import "./SafeMathInt.sol";import "./DividendPayingTokenInterface.sol";import "./DividendPayingTokenOptionalInterface.sol";import "./Ownable.sol";/// @title Dividend-Paying Token/// @author Roger Wu (https://github.com/roger-wu)/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether/// to token holders as dividends and allows token holders to withdraw their dividends./// Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#codecontract DividendPayingToken is ERC20, Ownable, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; address public immutable GOAT; //GOAT // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. // For more discussion about choosing the value of `magnitude`, // see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 uint256 internal constant magnitude = 2 ** 128; uint256 internal magnifiedDividendPerShare; // About dividendCorrection: // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with: // `dividendOf(_user) = dividendPerShare * balanceOf(_user)`. // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens), // `dividendOf(_user)` should not be changed, // but the computed value of `dividendPerShare * balanceOf(_user)` is changed. // To keep the `dividendOf(_user)` unchanged, we add a correction term: // `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`, // where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed: // `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`. // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed. mapping(address => int256) internal magnifiedDividendCorrections; mapping(address => uint256) internal withdrawnDividends; uint256 public totalDividendsDistributed; constructor(string memory _name, string memory _symbol, address _GOAT) public ERC20(_name, _symbol) { GOAT = _GOAT; } function distributeGOATDividends(uint256 amount) public onlyOwner { require(totalSupply() > 0); if (amount > 0) { magnifiedDividendPerShare = magnifiedDividendPerShare.add((amount).mul(magnitude) / totalSupply()); emit DividendsDistributed(msg.sender, amount); totalDividendsDistributed = totalDividendsDistributed.add(amount); } } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function withdrawDividend() public virtual override { _withdrawDividendOfUser(msg.sender); } /// @notice Withdraws the ether distributed to the sender. /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. function _withdrawDividendOfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend); emit DividendWithdrawn(user, _withdrawableDividend); bool success = IERC20(GOAT).transfer(user, _withdrawableDividend); if (!success) { withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend); return 0; } return _withdrawableDividend; } return 0; } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) public view override returns (uint256) { return withdrawableDividendOf(_owner); } /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) public view override returns (uint256) { return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]); } /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) public view override returns (uint256) { return withdrawnDividends[_owner]; } /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) public view override returns (uint256) { return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe().add(magnifiedDividendCorrections[_owner]) .toUint256Safe() / magnitude; } /// @dev Internal function that transfer tokens from one address to another. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param from The address to transfer from. /// @param to The address to transfer to. /// @param value The amount to be transferred. function _transfer(address from, address to, uint256 value) internal virtual override { require(false); int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe(); magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection); magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection); } /// @dev Internal function that mints tokens to an account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account that will receive the created tokens. /// @param value The amount that will be created. function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account].sub((magnifiedDividendPerShare.mul(value)).toInt256Safe()); } /// @dev Internal function that burns an amount of the token of a given account. /// Update magnifiedDividendCorrections to keep dividends unchanged. /// @param account The account whose tokens will be burnt. /// @param value The amount that will be burnt. function _burn(address account, uint256 value) internal override { super._burn(account, value); magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account].add((magnifiedDividendPerShare.mul(value)).toInt256Safe()); } function _setBalance(address account, uint256 newBalance) internal { uint256 currentBalance = balanceOf(account); if (newBalance > currentBalance) { uint256 mintAmount = newBalance.sub(currentBalance); _mint(account, mintAmount); } else if (newBalance < currentBalance) { uint256 burnAmount = currentBalance.sub(newBalance); _burn(account, burnAmount); } }}

File 3 of 16 : SafeMath.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }}

File 4 of 16 : IterableMapping.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;library IterableMapping { // Iterable mapping from address to uint; struct Map { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } function get(Map storage map, address key) public view returns (uint) { return map.values[key]; } function getIndexOfKey(Map storage map, address key) public view returns (int) { if(!map.inserted[key]) { return -1; } return int(map.indexOf[key]); } function getKeyAtIndex(Map storage map, uint index) public view returns (address) { return map.keys[index]; } function size(Map storage map) public view returns (uint) { return map.keys.length; } function set(Map storage map, address key, uint val) public { if (map.inserted[key]) { map.values[key] = val; } else { map.inserted[key] = true; map.values[key] = val; map.indexOf[key] = map.keys.length; map.keys.push(key); } } function remove(Map storage map, address key) public { if (!map.inserted[key]) { return; } delete map.inserted[key]; delete map.values[key]; uint index = map.indexOf[key]; uint lastIndex = map.keys.length - 1; address lastKey = map.keys[lastIndex]; map.indexOf[lastKey] = index; delete map.indexOf[key]; map.keys[index] = lastKey; map.keys.pop(); }}

File 5 of 16 : Ownable.sol

pragma solidity ^0.6.2;// SPDX-License-Identifier: MIT Licenseimport "./Context.sol";contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () public { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }}

File 6 of 16 : IVeloPair.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external;}

File 7 of 16 : IPairFactory.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;interface IPairFactory { function isPaused() external view returns (bool); function allPairsLength() external view returns (uint); function isPair(address pair) external view returns (bool); function getFee(bool _stable) external view returns(uint256); function pairCodeHash() external pure returns (bytes32); function getPair(address tokenA, address token, bool stable) external view returns (address); function getInitializable() external view returns (address, address, bool); function createPair(address tokenA, address tokenB, bool stable) external returns (address pair);}

File 8 of 16 : IVeloRouter.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;pragma experimental ABIEncoderV2;interface IVeloRouter { struct Route { address from; address to; bool stable; } function factory() external pure returns (address); function weth() external pure returns (address); function addLiquidityETH( address token, bool stable, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, Route[] calldata routes, address to, uint deadline ) external; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, Route[] calldata routes, address to, uint deadline ) external;}

File 9 of 16 : ERC20.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;import "./IERC20.sol";import "./IERC20Metadata.sol";import "./Context.sol";import "./SafeMath.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 guidelines: functions revert instead * of 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 { using SafeMath for uint256; 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_) public { _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); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(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 to 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 {}}

File 10 of 16 : SafeMathUint.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;/** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; }}

File 11 of 16 : SafeMathInt.sol

// SPDX-License-Identifier: MIT/*MIT LicenseCopyright (c) 2018 requestnetworkCopyright (c) 2018 Fragments, Inc.Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.*/pragma solidity ^0.6.2;/** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); }}

File 12 of 16 : DividendPayingTokenInterface.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;/// @title Dividend-Paying Token Interface/// @author Roger Wu (https://github.com/roger-wu)/// @dev An interface for a dividend-paying token contract.interface DividendPayingTokenInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function dividendOf(address _owner) external view returns(uint256); /// @notice Withdraws the ether distributed to the sender. /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer. /// MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0. function withdrawDividend() external; /// @dev This event MUST emit when ether is distributed to token holders. /// @param from The address which sends ether to this contract. /// @param weiAmount The amount of distributed ether in wei. event DividendsDistributed( address indexed from, uint256 weiAmount ); /// @dev This event MUST emit when an address withdraws their dividend. /// @param to The address which withdraws ether from this contract. /// @param weiAmount The amount of withdrawn ether in wei. event DividendWithdrawn( address indexed to, uint256 weiAmount );}

File 13 of 16 : DividendPayingTokenOptionalInterface.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;/// @title Dividend-Paying Token Optional Interface/// @author Roger Wu (https://github.com/roger-wu)/// @dev OPTIONAL functions for a dividend-paying token contract.interface DividendPayingTokenOptionalInterface { /// @notice View the amount of dividend in wei that an address can withdraw. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` can withdraw. function withdrawableDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has withdrawn. /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has withdrawn. function withdrawnDividendOf(address _owner) external view returns(uint256); /// @notice View the amount of dividend in wei that an address has earned in total. /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner) /// @param _owner The address of a token holder. /// @return The amount of dividend in wei that `_owner` has earned in total. function accumulativeDividendOf(address _owner) external view returns(uint256);}

File 14 of 16 : Context.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;/* * @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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; }}

File 15 of 16 : IERC20.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;/** * @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 16 of 16 : IERC20Metadata.sol

// SPDX-License-Identifier: MITpragma solidity ^0.6.2;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);}

Settings

{ "remappings": [ "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 20000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "istanbul", "libraries": { "contracts/IterableMapping.sol": { "IterableMapping": "0x6f02FdA9AE3F53E6054978310a1c5Bf880664968" } }}

Contract Security Audit

  • No Contract Security Audit Submitted- Submit Audit Here

Contract ABI

  • JSON Format
  • RAW/Text Format
[{"inputs":[{"internalType":"address","name":"_GOAT","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"ClaimWaitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExcludeFromDividends","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"GOAT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"accumulativeDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distributeGOATDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"dividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAccount","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"int256","name":"index","type":"int256"},{"internalType":"int256","name":"iterationsUntilProcessed","type":"int256"},{"internalType":"uint256","name":"withdrawableDividends","type":"uint256"},{"internalType":"uint256","name":"totalDividends","type":"uint256"},{"internalType":"uint256","name":"lastClaimTime","type":"uint256"},{"internalType":"uint256","name":"nextClaimTime","type":"uint256"},{"internalType":"uint256","name":"secondsUntilAutoClaimAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTokenBalanceForDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"process","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"bool","name":"automatic","type":"bool"}],"name":"processAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"setBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","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":"uint256","name":"newClaimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

Contract Creation Code

Decompile Bytecode Switch to Opcodes View

60c06040523480156200001157600080fd5b50604051620029a1380380620029a1833981016040819052620000349162000201565b6040518060400160405280601781526020017f42414259424f4f5f4469766964656e5f547261636b65720000000000000000008152506040518060400160405280601881526020017f42414259424f4f5f4469766964656e645f547261636b657200000000000000008152508282828160039080519060200190620000bb92919062000165565b508051620000d190600490602084019062000165565b5050506000620000e66200016160201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060601b6001600160601b0319166080525050610e1060115550692a5a058fc295ed00000060a05262000231565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001a857805160ff1916838001178555620001d8565b82800160010185558215620001d8579182015b82811115620001d8578251825591602001919060010190620001bb565b50620001e6929150620001ea565b5090565b5b80821115620001e65760008155600101620001eb565b60006020828403121562000213578081fd5b81516001600160a01b03811681146200022a578182fd5b9392505050565b60805160601c60a05161273f6200026260003980610f9652806110815250806109215280611acf525061273f6000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c806385a6b3ae11610145578063bc4c4b37116100bd578063e7841ec01161008c578063f2fde38b11610071578063f2fde38b1461049a578063fbcbc0f1146104ad578063ffb2c479146104c05761025c565b8063e7841ec01461047f578063e98030c7146104875761025c565b8063bc4c4b371461043e578063be10b61414610451578063dd62ed3e14610459578063e30443bc1461046c5761025c565b806395d89b4111610114578063a8b9d240116100f9578063a8b9d24014610405578063a9059cbb14610418578063aafd847a1461042b5761025c565b806395d89b41146103ea578063a457c2d7146103f25761025c565b806385a6b3ae146103b45780638910e1de146103bc5780638da5cb5b146103cf57806391b89fba146103d75761025c565b806331e79db0116101d85780635183d6fd116101a75780636f2789ec1161018c5780636f2789ec1461039157806370a0823114610399578063715018a6146103ac5761025c565b80635183d6fd146103625780636a474002146103895761025c565b806331e79db01461031257806339509351146103275780634e7b827f1461033a5780634eeb2e901461034d5761025c565b8063226cfa3d1161022f57806327ce01471161021457806327ce0147146102e25780633009a609146102f5578063313ce567146102fd5761025c565b8063226cfa3d146102bc57806323b872dd146102cf5761025c565b806306fdde0314610261578063095ea7b31461027f57806309bbedde1461029f57806318160ddd146102b4575b600080fd5b6102696104e2565b6040516102769190612114565b60405180910390f35b61029261028d366004611f90565b610596565b6040516102769190612109565b6102a76105b4565b60405161027691906125df565b6102a76105ba565b6102a76102ca366004611f20565b6105c0565b6102926102dd366004611fe8565b6105d2565b6102a76102f0366004611f20565b610673565b6102a76106ec565b6103056106f2565b604051610276919061265c565b610325610320366004611f20565b6106f7565b005b610292610335366004611f90565b6108af565b610292610348366004611f20565b61090a565b61035561091f565b6040516102769190612074565b61037561037036600461205c565b610943565b6040516102769897969594939291906120bb565b610325610aea565b6102a7610b1c565b6102a76103a7366004611f20565b610b22565b610325610b4a565b6102a7610c15565b6103256103ca36600461205c565b610c1b565b610355610d1a565b6102a76103e5366004611f20565b610d36565b610269610d41565b610292610400366004611f90565b610dc0565b6102a7610413366004611f20565b610e35565b610292610426366004611f90565b610e6e565b6102a7610439366004611f20565b610e82565b61029261044c366004611f58565b610eaa565b6102a7610f94565b6102a7610467366004611fbb565b610fb8565b61032561047a366004611f90565b610ff0565b6102a76111da565b61032561049536600461205c565b6111e0565b6103256104a8366004611f20565b6112f6565b6103756104bb366004611f20565b61142d565b6104d36104ce36600461205c565b6115c8565b60405161027693929190612646565b60038054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561058c5780601f106105615761010080835404028352916020019161058c565b820191906000526020600020905b81548152906001019060200180831161056f57829003601f168201915b5050505050905090565b60006105aa6105a36116d3565b84846116d7565b5060015b92915050565b600a5490565b60025490565b60106020526000908152604090205481565b60006105df8484846117e6565b610669846105eb6116d3565b610664856040518060600160405280602881526020016126bd6028913973ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260408120906106366116d3565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190611818565b6116d7565b5060019392505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260076020526040812054700100000000000000000000000000000000906106dc906106d7906106d16106cc6106c388610b22565b6006549061185e565b6118b9565b906118c9565b6118fc565b816106e357fe5b0490505b919050565b600e5481565b601290565b6106ff6116d3565b60055473ffffffffffffffffffffffffffffffffffffffff90811691161461075c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604090205460ff161561078f57600080fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556107e890829061190f565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152736f02fda9ae3f53e6054978310a1c5bf88066496890634c60db9c9061083b90600a9085906004016125e8565b60006040518083038186803b15801561085357600080fd5b505af4158015610867573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b60006105aa6108bc6116d3565b8461066485600160006108cd6116d3565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c168152925290205490611968565b600f6020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080600080600080600080600a736f02fda9ae3f53e6054978310a1c5bf88066496863deb3d89690916040518263ffffffff1660e01b815260040161098991906125df565b60206040518083038186803b1580156109a157600080fd5b505af41580156109b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d99190612044565b8910610a1c5750600096507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff955085945086935083925082915081905080610adf565b6040517fd1aa9e7e000000000000000000000000000000000000000000000000000000008152600090736f02fda9ae3f53e6054978310a1c5bf8806649689063d1aa9e7e90610a7290600a908e90600401612638565b60206040518083038186803b158015610a8a57600080fd5b505af4158015610a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac29190611f3c565b9050610acd8161142d565b98509850985098509850985098509850505b919395975091939597565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390612276565b60115481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b610b526116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614610ba6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b60055460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60095481565b610c236116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614610c77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b6000610c816105ba565b11610c8b57600080fd5b8015610d1757610cc9610c9c6105ba565b610cb78370010000000000000000000000000000000061185e565b81610cbe57fe5b600654919004611968565b60065560405133907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d7845411651190610cfe9084906125df565b60405180910390a2600954610d139082611968565b6009555b50565b60055473ffffffffffffffffffffffffffffffffffffffff1690565b60006105ae82610e35565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561058c5780601f106105615761010080835404028352916020019161058c565b60006105aa610dcd6116d3565b84610664856040518060600160405280602581526020016126e56025913960016000610df76116d3565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190611818565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120546105ae90610e6884610673565b906119a7565b60006105aa610e7b6116d3565b84846117e6565b73ffffffffffffffffffffffffffffffffffffffff1660009081526008602052604090205490565b6000610eb46116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614610f08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b6000610f13846119e9565b90508015610f8a5773ffffffffffffffffffffffffffffffffffffffff8416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610f789085906125df565b60405180910390a360019150506105ae565b5060009392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b610ff86116d3565b60055473ffffffffffffffffffffffffffffffffffffffff90811691161461104c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff161561107f576111d6565b7f0000000000000000000000000000000000000000000000000000000000000000811061113a576110b0828261190f565b6040517fbc2b405c000000000000000000000000000000000000000000000000000000008152736f02fda9ae3f53e6054978310a1c5bf8806649689063bc2b405c9061110590600a908690869060040161260c565b60006040518083038186803b15801561111d57600080fd5b505af4158015611131573d6000803e3d6000fd5b505050506111c9565b61114582600061190f565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152736f02fda9ae3f53e6054978310a1c5bf88066496890634c60db9c9061119890600a9086906004016125e8565b60006040518083038186803b1580156111b057600080fd5b505af41580156111c4573d6000803e3d6000fd5b505050505b6111d4826001610eaa565b505b5050565b600e5490565b6111e86116d3565b60055473ffffffffffffffffffffffffffffffffffffffff90811691161461123c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b610e1081101580156112515750620151808111155b611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390612525565b6011548114156112c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906124c8565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6112fe6116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614611352576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b73ffffffffffffffffffffffffffffffffffffffff811661139f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390612185565b60055460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600080600080600080600080889750600a736f02fda9ae3f53e6054978310a1c5bf8806649686317e142d190918a6040518363ffffffff1660e01b81526004016114789291906125e8565b60206040518083038186803b15801561149057600080fd5b505af41580156114a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c89190612044565b96507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff95506000871261154857600e5487111561151457600e5461150d908890611bd3565b9550611548565b600e54600a5460009110611529576000611538565b600e54600a54611538916119a7565b905061154488826118c9565b9650505b61155188610e35565b945061155c88610673565b73ffffffffffffffffffffffffffffffffffffffff89166000908152601060205260409020549094509250826115935760006115a1565b6011546115a1908490611968565b91504282116115b15760006115bb565b6115bb82426119a7565b9050919395975091939597565b600a5460009081908190806115e8575050600e54600092508291506116cc565b600e546000805a90506000805b898410801561160357508582105b156116bb57600a54600190950194851061161c57600094505b6000600a600001868154811061162e57fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352601090915260409091205490915061166c90611c05565b156116885761167c816001610eaa565b15611688576001909101905b60019092019160005a9050808511156116b2576116af6116a886836119a7565b8790611968565b95505b93506115f59050565b600e85905590975095509193505050505b9193909250565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316611724576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061246b565b73ffffffffffffffffffffffffffffffffffffffff8216611771576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906121e2565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906117d99085906125df565b60405180910390a3505050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906123b1565b60008184841115611856576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539190612114565b505050900390565b60008261186d575060006105ae565b8282028284828161187a57fe5b04146118b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061231f565b9392505050565b600081818112156105ae57600080fd5b60008282018183128015906118de5750838112155b806118f357506000831280156118f357508381125b6118b257600080fd5b60008082121561190b57600080fd5b5090565b600061191a83610b22565b90508082111561194257600061193083836119a7565b905061193c8482611c2c565b506111d4565b808210156111d457600061195682846119a7565b90506119628482611caa565b50505050565b6000828201838110156118b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061223f565b60006118b283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611818565b6000806119f583610e35565b90508015611bca5773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902054611a2d9082611968565b73ffffffffffffffffffffffffffffffffffffffff8416600081815260086020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90611a879084906125df565b60405180910390a26040517fa9059cbb00000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90611b069087908690600401612095565b602060405180830381600087803b158015611b2057600080fd5b505af1158015611b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b589190612028565b905080611bc25773ffffffffffffffffffffffffffffffffffffffff8416600090815260086020526040902054611b8f90836119a7565b73ffffffffffffffffffffffffffffffffffffffff851660009081526008602052604081209190915592506106e7915050565b5090506106e7565b50600092915050565b6000818303818312801590611be85750838113155b806118f357506000831280156118f357508381136118b257600080fd5b600042821115611c17575060006106e7565b601154611c2442846119a7565b101592915050565b611c368282611cfb565b611c7d611c516106cc8360065461185e90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff841660009081526007602052604090205490611bd3565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526007602052604090209190915550565b611cb48282611dfc565b611c7d611ccf6106cc8360065461185e90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260076020526040902054906118c9565b73ffffffffffffffffffffffffffffffffffffffff8216611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906125a8565b611d54600083836111d4565b600254611d619082611968565b60025573ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040902054611d949082611968565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611df09085906125df565b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216611e49576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061240e565b611e55826000836111d4565b611e9f8160405180606001604052806022815260200161269b6022913973ffffffffffffffffffffffffffffffffffffffff85166000908152602081905260409020549190611818565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902055600254611ed290826119a7565b60025560405160009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611df09085906125df565b600060208284031215611f31578081fd5b81356118b28161266a565b600060208284031215611f4d578081fd5b81516118b28161266a565b60008060408385031215611f6a578081fd5b8235611f758161266a565b91506020830135611f858161268c565b809150509250929050565b60008060408385031215611fa2578182fd5b8235611fad8161266a565b946020939093013593505050565b60008060408385031215611fcd578182fd5b8235611fd88161266a565b91506020830135611f858161266a565b600080600060608486031215611ffc578081fd5b83356120078161266a565b925060208401356120178161266a565b929592945050506040919091013590565b600060208284031215612039578081fd5b81516118b28161268c565b600060208284031215612055578081fd5b5051919050565b60006020828403121561206d578081fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff989098168852602088019690965260408701949094526060860192909252608085015260a084015260c083015260e08201526101000190565b901515815260200190565b6000602080835283518082850152825b8181101561214057858101830151858201604001528201612124565b818111156121515783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252606c908201527f42414259424f4f5f4469766964656e645f547261636b65723a2077697468647260408201527f61774469766964656e642064697361626c65642e20557365207468652027636c60608201527f61696d272066756e6374696f6e206f6e20746865206d61696e2042414259474f60808201527f415420636f6e74726163742e000000000000000000000000000000000000000060a082015260c00190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602e908201527f42414259424f4f5f4469766964656e645f547261636b65723a204e6f2074726160408201527f6e736665727320616c6c6f776564000000000000000000000000000000000000606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603f908201527f42414259424f4f5f4469766964656e645f547261636b65723a2043616e6e6f7460408201527f2075706461746520636c61696d5761697420746f2073616d652076616c756500606082015260800190565b6020808252604d908201527f42414259424f4f5f4469766964656e645f547261636b65723a20636c61696d5760408201527f616974206d757374206265207570646174656420746f206265747765656e203160608201527f20616e6420323420686f75727300000000000000000000000000000000000000608082015260a00190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b91825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b92835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff81168114610d1757600080fd5b8015158114610d1757600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b38b886a27909ecce39723c9d984bb33733d40c96f891447c28944314e4017a864736f6c634300060c003300000000000000000000000043f9a13675e352154f745d6402e853fecc388aa5


Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025c5760003560e01c806385a6b3ae11610145578063bc4c4b37116100bd578063e7841ec01161008c578063f2fde38b11610071578063f2fde38b1461049a578063fbcbc0f1146104ad578063ffb2c479146104c05761025c565b8063e7841ec01461047f578063e98030c7146104875761025c565b8063bc4c4b371461043e578063be10b61414610451578063dd62ed3e14610459578063e30443bc1461046c5761025c565b806395d89b4111610114578063a8b9d240116100f9578063a8b9d24014610405578063a9059cbb14610418578063aafd847a1461042b5761025c565b806395d89b41146103ea578063a457c2d7146103f25761025c565b806385a6b3ae146103b45780638910e1de146103bc5780638da5cb5b146103cf57806391b89fba146103d75761025c565b806331e79db0116101d85780635183d6fd116101a75780636f2789ec1161018c5780636f2789ec1461039157806370a0823114610399578063715018a6146103ac5761025c565b80635183d6fd146103625780636a474002146103895761025c565b806331e79db01461031257806339509351146103275780634e7b827f1461033a5780634eeb2e901461034d5761025c565b8063226cfa3d1161022f57806327ce01471161021457806327ce0147146102e25780633009a609146102f5578063313ce567146102fd5761025c565b8063226cfa3d146102bc57806323b872dd146102cf5761025c565b806306fdde0314610261578063095ea7b31461027f57806309bbedde1461029f57806318160ddd146102b4575b600080fd5b6102696104e2565b6040516102769190612114565b60405180910390f35b61029261028d366004611f90565b610596565b6040516102769190612109565b6102a76105b4565b60405161027691906125df565b6102a76105ba565b6102a76102ca366004611f20565b6105c0565b6102926102dd366004611fe8565b6105d2565b6102a76102f0366004611f20565b610673565b6102a76106ec565b6103056106f2565b604051610276919061265c565b610325610320366004611f20565b6106f7565b005b610292610335366004611f90565b6108af565b610292610348366004611f20565b61090a565b61035561091f565b6040516102769190612074565b61037561037036600461205c565b610943565b6040516102769897969594939291906120bb565b610325610aea565b6102a7610b1c565b6102a76103a7366004611f20565b610b22565b610325610b4a565b6102a7610c15565b6103256103ca36600461205c565b610c1b565b610355610d1a565b6102a76103e5366004611f20565b610d36565b610269610d41565b610292610400366004611f90565b610dc0565b6102a7610413366004611f20565b610e35565b610292610426366004611f90565b610e6e565b6102a7610439366004611f20565b610e82565b61029261044c366004611f58565b610eaa565b6102a7610f94565b6102a7610467366004611fbb565b610fb8565b61032561047a366004611f90565b610ff0565b6102a76111da565b61032561049536600461205c565b6111e0565b6103256104a8366004611f20565b6112f6565b6103756104bb366004611f20565b61142d565b6104d36104ce36600461205c565b6115c8565b60405161027693929190612646565b60038054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561058c5780601f106105615761010080835404028352916020019161058c565b820191906000526020600020905b81548152906001019060200180831161056f57829003601f168201915b5050505050905090565b60006105aa6105a36116d3565b84846116d7565b5060015b92915050565b600a5490565b60025490565b60106020526000908152604090205481565b60006105df8484846117e6565b610669846105eb6116d3565b610664856040518060600160405280602881526020016126bd6028913973ffffffffffffffffffffffffffffffffffffffff8a166000908152600160205260408120906106366116d3565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190611818565b6116d7565b5060019392505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260076020526040812054700100000000000000000000000000000000906106dc906106d7906106d16106cc6106c388610b22565b6006549061185e565b6118b9565b906118c9565b6118fc565b816106e357fe5b0490505b919050565b600e5481565b601290565b6106ff6116d3565b60055473ffffffffffffffffffffffffffffffffffffffff90811691161461075c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604090205460ff161561078f57600080fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556107e890829061190f565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152736f02fda9ae3f53e6054978310a1c5bf88066496890634c60db9c9061083b90600a9085906004016125e8565b60006040518083038186803b15801561085357600080fd5b505af4158015610867573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b60006105aa6108bc6116d3565b8461066485600160006108cd6116d3565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c168152925290205490611968565b600f6020526000908152604090205460ff1681565b7f00000000000000000000000043f9a13675e352154f745d6402e853fecc388aa581565b600080600080600080600080600a736f02fda9ae3f53e6054978310a1c5bf88066496863deb3d89690916040518263ffffffff1660e01b815260040161098991906125df565b60206040518083038186803b1580156109a157600080fd5b505af41580156109b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d99190612044565b8910610a1c5750600096507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff955085945086935083925082915081905080610adf565b6040517fd1aa9e7e000000000000000000000000000000000000000000000000000000008152600090736f02fda9ae3f53e6054978310a1c5bf8806649689063d1aa9e7e90610a7290600a908e90600401612638565b60206040518083038186803b158015610a8a57600080fd5b505af4158015610a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac29190611f3c565b9050610acd8161142d565b98509850985098509850985098509850505b919395975091939597565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390612276565b60115481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b610b526116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614610ba6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b60055460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60095481565b610c236116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614610c77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b6000610c816105ba565b11610c8b57600080fd5b8015610d1757610cc9610c9c6105ba565b610cb78370010000000000000000000000000000000061185e565b81610cbe57fe5b600654919004611968565b60065560405133907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d7845411651190610cfe9084906125df565b60405180910390a2600954610d139082611968565b6009555b50565b60055473ffffffffffffffffffffffffffffffffffffffff1690565b60006105ae82610e35565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561058c5780601f106105615761010080835404028352916020019161058c565b60006105aa610dcd6116d3565b84610664856040518060600160405280602581526020016126e56025913960016000610df76116d3565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190611818565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600860205260408120546105ae90610e6884610673565b906119a7565b60006105aa610e7b6116d3565b84846117e6565b73ffffffffffffffffffffffffffffffffffffffff1660009081526008602052604090205490565b6000610eb46116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614610f08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b6000610f13846119e9565b90508015610f8a5773ffffffffffffffffffffffffffffffffffffffff8416600081815260106020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610f789085906125df565b60405180910390a360019150506105ae565b5060009392505050565b7f000000000000000000000000000000000000000000002a5a058fc295ed00000081565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b610ff86116d3565b60055473ffffffffffffffffffffffffffffffffffffffff90811691161461104c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff161561107f576111d6565b7f000000000000000000000000000000000000000000002a5a058fc295ed000000811061113a576110b0828261190f565b6040517fbc2b405c000000000000000000000000000000000000000000000000000000008152736f02fda9ae3f53e6054978310a1c5bf8806649689063bc2b405c9061110590600a908690869060040161260c565b60006040518083038186803b15801561111d57600080fd5b505af4158015611131573d6000803e3d6000fd5b505050506111c9565b61114582600061190f565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152736f02fda9ae3f53e6054978310a1c5bf88066496890634c60db9c9061119890600a9086906004016125e8565b60006040518083038186803b1580156111b057600080fd5b505af41580156111c4573d6000803e3d6000fd5b505050505b6111d4826001610eaa565b505b5050565b600e5490565b6111e86116d3565b60055473ffffffffffffffffffffffffffffffffffffffff90811691161461123c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b610e1081101580156112515750620151808111155b611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390612525565b6011548114156112c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906124c8565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6112fe6116d3565b60055473ffffffffffffffffffffffffffffffffffffffff908116911614611352576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061237c565b73ffffffffffffffffffffffffffffffffffffffff811661139f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075390612185565b60055460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600080600080600080600080889750600a736f02fda9ae3f53e6054978310a1c5bf8806649686317e142d190918a6040518363ffffffff1660e01b81526004016114789291906125e8565b60206040518083038186803b15801561149057600080fd5b505af41580156114a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c89190612044565b96507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff95506000871261154857600e5487111561151457600e5461150d908890611bd3565b9550611548565b600e54600a5460009110611529576000611538565b600e54600a54611538916119a7565b905061154488826118c9565b9650505b61155188610e35565b945061155c88610673565b73ffffffffffffffffffffffffffffffffffffffff89166000908152601060205260409020549094509250826115935760006115a1565b6011546115a1908490611968565b91504282116115b15760006115bb565b6115bb82426119a7565b9050919395975091939597565b600a5460009081908190806115e8575050600e54600092508291506116cc565b600e546000805a90506000805b898410801561160357508582105b156116bb57600a54600190950194851061161c57600094505b6000600a600001868154811061162e57fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352601090915260409091205490915061166c90611c05565b156116885761167c816001610eaa565b15611688576001909101905b60019092019160005a9050808511156116b2576116af6116a886836119a7565b8790611968565b95505b93506115f59050565b600e85905590975095509193505050505b9193909250565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316611724576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061246b565b73ffffffffffffffffffffffffffffffffffffffff8216611771576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906121e2565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906117d99085906125df565b60405180910390a3505050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906123b1565b60008184841115611856576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539190612114565b505050900390565b60008261186d575060006105ae565b8282028284828161187a57fe5b04146118b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061231f565b9392505050565b600081818112156105ae57600080fd5b60008282018183128015906118de5750838112155b806118f357506000831280156118f357508381125b6118b257600080fd5b60008082121561190b57600080fd5b5090565b600061191a83610b22565b90508082111561194257600061193083836119a7565b905061193c8482611c2c565b506111d4565b808210156111d457600061195682846119a7565b90506119628482611caa565b50505050565b6000828201838110156118b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061223f565b60006118b283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611818565b6000806119f583610e35565b90508015611bca5773ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040902054611a2d9082611968565b73ffffffffffffffffffffffffffffffffffffffff8416600081815260086020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d90611a879084906125df565b60405180910390a26040517fa9059cbb00000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000043f9a13675e352154f745d6402e853fecc388aa5169063a9059cbb90611b069087908690600401612095565b602060405180830381600087803b158015611b2057600080fd5b505af1158015611b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b589190612028565b905080611bc25773ffffffffffffffffffffffffffffffffffffffff8416600090815260086020526040902054611b8f90836119a7565b73ffffffffffffffffffffffffffffffffffffffff851660009081526008602052604081209190915592506106e7915050565b5090506106e7565b50600092915050565b6000818303818312801590611be85750838113155b806118f357506000831280156118f357508381136118b257600080fd5b600042821115611c17575060006106e7565b601154611c2442846119a7565b101592915050565b611c368282611cfb565b611c7d611c516106cc8360065461185e90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff841660009081526007602052604090205490611bd3565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526007602052604090209190915550565b611cb48282611dfc565b611c7d611ccf6106cc8360065461185e90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260076020526040902054906118c9565b73ffffffffffffffffffffffffffffffffffffffff8216611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610753906125a8565b611d54600083836111d4565b600254611d619082611968565b60025573ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040902054611d949082611968565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611df09085906125df565b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216611e49576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107539061240e565b611e55826000836111d4565b611e9f8160405180606001604052806022815260200161269b6022913973ffffffffffffffffffffffffffffffffffffffff85166000908152602081905260409020549190611818565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902055600254611ed290826119a7565b60025560405160009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611df09085906125df565b600060208284031215611f31578081fd5b81356118b28161266a565b600060208284031215611f4d578081fd5b81516118b28161266a565b60008060408385031215611f6a578081fd5b8235611f758161266a565b91506020830135611f858161268c565b809150509250929050565b60008060408385031215611fa2578182fd5b8235611fad8161266a565b946020939093013593505050565b60008060408385031215611fcd578182fd5b8235611fd88161266a565b91506020830135611f858161266a565b600080600060608486031215611ffc578081fd5b83356120078161266a565b925060208401356120178161266a565b929592945050506040919091013590565b600060208284031215612039578081fd5b81516118b28161268c565b600060208284031215612055578081fd5b5051919050565b60006020828403121561206d578081fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff989098168852602088019690965260408701949094526060860192909252608085015260a084015260c083015260e08201526101000190565b901515815260200190565b6000602080835283518082850152825b8181101561214057858101830151858201604001528201612124565b818111156121515783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252606c908201527f42414259424f4f5f4469766964656e645f547261636b65723a2077697468647260408201527f61774469766964656e642064697361626c65642e20557365207468652027636c60608201527f61696d272066756e6374696f6e206f6e20746865206d61696e2042414259474f60808201527f415420636f6e74726163742e000000000000000000000000000000000000000060a082015260c00190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602e908201527f42414259424f4f5f4469766964656e645f547261636b65723a204e6f2074726160408201527f6e736665727320616c6c6f776564000000000000000000000000000000000000606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603f908201527f42414259424f4f5f4469766964656e645f547261636b65723a2043616e6e6f7460408201527f2075706461746520636c61696d5761697420746f2073616d652076616c756500606082015260800190565b6020808252604d908201527f42414259424f4f5f4469766964656e645f547261636b65723a20636c61696d5760408201527f616974206d757374206265207570646174656420746f206265747765656e203160608201527f20616e6420323420686f75727300000000000000000000000000000000000000608082015260a00190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b91825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b92835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff81168114610d1757600080fd5b8015158114610d1757600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b38b886a27909ecce39723c9d984bb33733d40c96f891447c28944314e4017a864736f6c634300060c0033

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

00000000000000000000000043f9a13675e352154f745d6402e853fecc388aa5

-----Decoded View---------------
Arg [0] : _GOAT (address): 0x43F9a13675e352154f745d6402E853FECC388aA5

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000043f9a13675e352154f745d6402e853fecc388aa5


[Download: CSV Export ]

[Download: CSV Export ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.

Connect a Wallet
Connect a Wallet

Compiler specific version warnings:

The compiled contract might be susceptible to FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), SignedImmutables (very low-severity), ABIDecodeTwoDimensionalArrayMemory (very low-severity), KeccakCaching (medium-severity), EmptyByteArrayCopy (medium-severity), DynamicArrayCleanup (medium-severity) Solidity Compiler Bugs.

BABYBOO_Dividen_Tracker (BABYBOO_Dividend_Tracker) Token Tracker | FTMScan (2024)

References

Top Articles
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 5877

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.