Overview
Max Total Supply
100,000,000,000 RSR
Holders
23,030 ( 0.043%)
Market
Price
$0.01 @ 0.000002 ETH (+3.20%)
Onchain Market Cap
$798,666,000.00
Circulating Supply Market Cap
$424,156,817.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
12,783,265.504865808399519073 RSRValue
$102,095.60 ( ~30.5666 Eth) [0.0128%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | Binance | RSR-USDT | $0.008 0.0000024 Eth | $5,084,286.00 660,539,299.300 RSR | 22.1191% |
2 | Nami.Exchange | RSR-USDT | $0.008 0.0000024 Eth | $3,033,732.00 380,516,373.700 RSR | 12.7421% |
3 | Nami.Exchange | RSR-VNST | $0.008 0.0000024 Eth | $2,958,482.00 371,160,777.500 RSR | 12.4288% |
4 | XT.COM | RSR-USDT | $0.008 0.0000024 Eth | $1,542,565.00 200,474,775.100 RSR | 6.7132% |
5 | Bitget | RSR-USDT | $0.008 0.0000024 Eth | $1,160,653.00 150,925,704.015 RSR | 5.0540% |
6 | BYDFi | RSR-USDT | $0.008 0.0000024 Eth | $974,518.00 122,228,616.500 RSR | 4.0930% |
7 | Hotcoin | RSR-USDT | $0.008 0.0000024 Eth | $896,086.00 111,825,109.500 RSR | 3.7446% |
8 | Phemex | RSR-USDT | $0.008 0.0000024 Eth | $746,048.00 93,485,482.800 RSR | 3.1305% |
9 | OKX | RSR-USDT | $0.008 0.0000024 Eth | $628,507.00 81,455,917.684 RSR | 2.7277% |
10 | Bitunix | RSR-USDT | $0.008 0.0000024 Eth | $592,195.00 74,144,962.800 RSR | 2.4828% |
11 | Bithumb | RSR-KRW | $0.0079 0.0000023 Eth | $523,426.00 66,650,734.271 RSR | 2.2319% |
12 | Ourbit | RSR-USDT | $0.008 0.0000024 Eth | $505,365.00 65,733,402.190 RSR | 2.2012% |
13 | BitDelta | RSR-USDT | $0.008 0.0000024 Eth | $497,849.00 64,879,105.000 RSR | 2.1726% |
14 | KuCoin | RSR-USDT | $0.008 0.0000024 Eth | $452,539.00 56,482,541.073 RSR | 1.8914% |
15 | BTSE | RSR-USDT | $0.008 0.0000024 Eth | $397,099.00 49,764,769.355 RSR | 1.6664% |
16 | CoinTR | RSR-USDT | $0.008 0.0000024 Eth | $386,719.00 50,361,548.100 RSR | 1.6864% |
17 | Bitvavo | RSR-EUR | $0.0079 0.0000024 Eth | $376,912.00 47,431,515.536 RSR | 1.5883% |
18 | Coinstore | RSR-USDT | $0.008 0.0000024 Eth | $337,169.00 43,804,342.800 RSR | 1.4668% |
19 | Toobit | RSR-USDT | $0.008 0.0000024 Eth | $212,863.00 27,678,268.000 RSR | 0.9268% |
20 | MEXC | RSR-USDT | $0.008 0.0000024 Eth | $203,967.00 25,494,681.170 RSR | 0.8537% |
21 | Coinsbit | RSR-USDT | $0.0076 0.0000023 Eth | $199,532.00 26,094,240.035 RSR | 0.8738% |
22 | Uniswap V3 (Ethereum) | 0X320623B8E4FF03373931769A31FC52A4E78B5D70-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $0.008 0.0000024 Eth | $149,056.00 19,224,403.947 0X320623B8E4FF03373931769A31FC52A4E78B5D70 | 0.6438% |
23 | Binance | RSR-TRY | $0.008 0.0000024 Eth | $145,767.00 19,048,268.000 RSR | 0.6379% |
24 | DigiFinex | RSR-USDT | $0.008 0.0000024 Eth | $133,024.00 16,680,239.800 RSR | 0.5586% |
25 | Upbit | RSR-BTC | $0.0079 0.0000024 Eth | $132,907.00 16,824,756.947 RSR | 0.5634% |
26 | Curve (Ethereum) | 0XA0D69E286B938E21CBF7E51D71F6A4C8918F482F-0X320623B8E4FF03373931769A31FC52A4E78B5D70 | $0.008 0.0000024 Eth | $126,598.00 122,233.653 0XA0D69E286B938E21CBF7E51D71F6A4C8918F482F | 0.0041% |
27 | Upbit Indonesia | RSR-BTC | $0.0079 0.0000024 Eth | $124,869.00 15,819,734.608 RSR | 0.5297% |
28 | BitMart | RSR-USDT | $0.008 0.0000024 Eth | $121,300.00 15,141,594.000 RSR | 0.5070% |
29 | BingX | RSR-USDT | $0.008 0.0000024 Eth | $112,639.00 14,631,648.778 RSR | 0.4900% |
30 | Gate.io | RSR-USDT | $0.008 0.0000024 Eth | $112,066.00 14,626,733.000 RSR | 0.4898% |
31 | Uniswap V3 (Ethereum) | 0X320623B8E4FF03373931769A31FC52A4E78B5D70-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.008 0.0000024 Eth | $104,768.00 13,560,668.194 0X320623B8E4FF03373931769A31FC52A4E78B5D70 | 0.4541% |
32 | Uniswap V3 (Arbitrum One) | 0XCA5CA9083702C56B481D1EEC86F1776FDBD2E594-0X82AF49447D8A07E3BD95BD0D56F35241523FBAB1 | $0.0079 0.0000024 Eth | $97,517.00 12,521,278.771 0XCA5CA9083702C56B481D1EEC86F1776FDBD2E594 | 0.4193% |
33 | Crypto.com Exchange | RSR-USD | $0.008 0.0000024 Eth | $61,045.00 7,658,520.000 RSR | 0.2565% |
34 | Crypto.com Exchange | RSR-USDT | $0.008 0.0000024 Eth | $53,886.00 6,733,280.000 RSR | 0.2255% |
35 | Curve (Ethereum) | 0XE72B141DF173B999AE7C1ADCBF60CC9833CE56A8-0X320623B8E4FF03373931769A31FC52A4E78B5D70 | $0.008 0.0000024 Eth | $46,504.00 13.198 0XE72B141DF173B999AE7C1ADCBF60CC9833CE56A8 | 0.0000% |
36 | Bitrue | RSR-USDT | $0.008 0.0000024 Eth | $45,115.00 5,620,658.100 RSR | 0.1882% |
37 | LATOKEN | RSR-USDT | $0.008 0.0000024 Eth | $44,882.00 5,600,381.490 RSR | 0.1875% |
38 | ProBit Global | RSR-USDT | $0.008 0.0000024 Eth | $44,569.00 5,568,615.525 RSR | 0.1865% |
39 | Bibox | RSR-USDT | $0.008 0.0000024 Eth | $39,808.00 4,963,017.000 RSR | 0.1662% |
40 | Pionex | RSR-USDT | $0.008 0.0000024 Eth | $35,804.00 4,651,628.670 RSR | 0.1558% |
41 | CoinEx | RSR-USDT | $0.008 0.0000024 Eth | $34,928.00 4,483,546.956 RSR | 0.1501% |
42 | BVOX | RSR-USDT | $0.008 0.0000024 Eth | $34,251.00 4,450,312.000 RSR | 0.1490% |
43 | BloFin | RSR-USDT | $0.008 0.0000024 Eth | $33,902.00 4,407,599.835 RSR | 0.1476% |
44 | Bitlo | RSR-USDT | $0.008 0.0000024 Eth | $29,692.00 3,871,474.000 RSR | 0.1296% |
45 | Bitkub | RSR-THB | $0.008 0.0000024 Eth | $25,225.00 3,169,520.276 RSR | 0.1061% |
46 | WEEX | RSR-USDT | $0.008 0.0000024 Eth | $22,615.00 2,936,404.000 RSR | 0.0983% |
47 | DeGate | 0X320623B8E4FF03373931769A31FC52A4E78B5D70-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48 | $0.008 0.0000024 Eth | $22,299.00 2,910,171.000 0X320623B8E4FF03373931769A31FC52A4E78B5D70 | 0.0975% |
48 | LocalTrade | RSR-USDT | $0.008 0.0000024 Eth | $21,172.00 2,644,967.288 RSR | 0.0886% |
49 | HTX | RSR-USDT | $0.008 0.0000024 Eth | $20,637.00 2,696,557.524 RSR | 0.0903% |
50 | Bitlo | RSR-TRY | $0.0081 0.0000024 Eth | $15,385.10 1,994,043.440 RSR | 0.0668% |
51 | Cryptology | RSR-USDT | $0.008 0.0000024 Eth | $14,677.50 1,832,386.500 RSR | 0.0614% |
52 | Balancer V2 | 0X320623B8E4FF03373931769A31FC52A4E78B5D70-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $0.0079 0.0000024 Eth | $10,702.07 1,386,792.466 0X320623B8E4FF03373931769A31FC52A4E78B5D70 | 0.0464% |
53 | Uniswap V3 (Base) | 0XAB36452DBAC151BE02B16CA17D8919826072F64A-0X4200000000000000000000000000000000000006 | $0.0079 0.0000024 Eth | $10,216.96 1,322,451.886 0XAB36452DBAC151BE02B16CA17D8919826072F64A | 0.0443% |
54 | Aerodrome (Base) | 0XAB36452DBAC151BE02B16CA17D8919826072F64A-0XCB327B99FF831BF8223CCED12B1338FF3AA322FF | $0.0079 0.0000024 Eth | $9,280.78 1,199,201.828 0XAB36452DBAC151BE02B16CA17D8919826072F64A | 0.0402% |
55 | MEXC | RSR-ETH | $0.0081 0.0000024 Eth | $9,180.04 1,137,654.340 RSR | 0.0381% |
56 | TokoCrypto | RSR-USDT | $0.008 0.0000024 Eth | $4,583.02 570,478.568 RSR | 0.0191% |
57 | Indodax | RSR-IDR | $0.008 0.0000024 Eth | $4,237.50 527,818.769 RSR | 0.0177% |
58 | Foxbit | RSR-BRL | $0.0081 0.0000024 Eth | $1,787.95 236,471.477 RSR | 0.0079% |
59 | KuCoin | RSR-BTC | $0.0078 0.0000023 Eth | $1,626.93 207,770.129 RSR | 0.0070% |
60 | CoinDCX | RSR-INR | $0.0083 0.0000025 Eth | $1,619.31 0.000 RSR | 0.0000% |
61 | Bittime | RSR-IDR | $0.008 0.0000024 Eth | $1,021.42 138,647.000 RSR | 0.0046% |
62 | Globe | RSR-USDT | $0.008 0.0000024 Eth | $902.52 118,657.721 RSR | 0.0040% |
63 | Uniswap V3 (Ethereum) | 0X320623B8E4FF03373931769A31FC52A4E78B5D70-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $0.008 0.0000024 Eth | $782.10 98,959.553 0X320623B8E4FF03373931769A31FC52A4E78B5D70 | 0.0033% |
64 | Mudrex | RSR-USDT | $0.008 0.0000024 Eth | $764.41 95,455.114 RSR | 0.0032% |
65 | Curve (Ethereum) | 0X320623B8E4FF03373931769A31FC52A4E78B5D70-0X3175DF0976DFA876431C2E9EE6BC45B65D3473CC | $0.0073 0.0000022 Eth | $259.98 35,438.033 0X320623B8E4FF03373931769A31FC52A4E78B5D70 | 0.0012% |
66 | WOO X | RSR-USDT | $0.008 0.0000024 Eth | $92.43 11,584.700 RSR | 0.0004% |
67 | Nominex | RSR-TRY | $0.0073 0.0000024 Eth | $78.52 10,711.736 RSR | 0.0004% |
68 | Nominex | RSR-USDT | $0.0079 0.0000025 Eth | $43.89 5,583.213 RSR | 0.0002% |
69 | CEX.IO | RSR-USD | $0.008 0.0000024 Eth | $32.61 4,271.200 RSR | 0.0001% |
70 | CEX.IO | RSR-USDT | $0.008 0.0000024 Eth | $31.33 4,096.479 RSR | 0.0001% |
71 | Curve (Arbitrum) | 0X12275DCB9048680C4BE40942EA4D92C74C63B844-0XCA5CA9083702C56B481D1EEC86F1776FDBD2E594 | $0.0078 0.0000023 Eth | $28.91 28.389 0X12275DCB9048680C4BE40942EA4D92C74C63B844 | 0.0000% |
72 | CEX.IO | RSR-EUR | $0.008 0.0000024 Eth | $20.08 2,697.600 RSR | 0.0001% |
73 | Uniswap V2 (Ethereum) | 0X320623B8E4FF03373931769A31FC52A4E78B5D70-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2 | $0.0076 0.0000023 Eth | $19.40 2,550.614 0X320623B8E4FF03373931769A31FC52A4E78B5D70 | 0.0001% |
74 | FMFW.io | RSR-USDT | $0.006 0.0000018 Eth | $10.39 1,720.000 RSR | 0.0001% |
75 | HitBTC | RSR-USDT | $0.006 0.0000018 Eth | $10.39 1,720.000 RSR | 0.0001% |
76 | Curve (Arbitrum) | 0X18C14C2D707B2212E17D1579789FC06010CFCA23-0XCA5CA9083702C56B481D1EEC86F1776FDBD2E594 | $0.0078 0.0000023 Eth | $5.05 0.001 0X18C14C2D707B2212E17D1579789FC06010CFCA23 | 0.0000% |
77 | Poloniex | RSR-USDT | $0.0071 0.0000021 Eth | $3.15 443.860 RSR | 0.0000% |
Contract Name:
RSR
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BlueOak-1.0.0 pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Enchantable.sol"; /** * @title RSR * An ERC20 insurance token for the Reserve Protocol ecosystem, using the copy-on-write * pattern to enable a ugprade from the old RSR token. * This token allows the configuration of a rich system of "siphons" to administer the * copy pattern of some holder addresses, before the token goes into its WORKING phase. */ contract RSR is Pausable, Ownable, Enchantable, ERC20Permit { using EnumerableSet for EnumerableSet.AddressSet; ERC20Pausable public immutable oldRSR; /// weight scale /// A uint64 value `w` is a _weight_, and it represents the fractional value `w / WEIGHT_ONE`. uint64 public constant WEIGHT_ONE = 1e18; /// fixedSupply inherited from oldRSR contract /// Note that due to lost dust crossing, it's possible sum(_balances) < fixedSupply uint256 private immutable fixedSupply; /** Operational Lifecycle The contract is initially deployed into SETUP. During the SETUP phase: - admins can configure siphons - no ERC20 operations can happen - the contract is always paused The contract can transition from SETUP to WORKING only after oldRSR is paused. During that transition, the owner is set to the zero address. In the WORKING phase: - siphons cannot be changed - ERC20 operations happen as usual - the pauser can pause and unpause the contract Once in WORKING, the contract cannot move back to SETUP. */ enum Phase { SETUP, WORKING } Phase public phase; /// Pausing /// Note well that, because of the above about lifecycle phase, whenNotPaused implies isWorking. event PauserChanged(address indexed oldPauser, address newPauser); address public pauser; /** @dev Relative Immutability ===================== We assume that, once OldRSR is paused, its paused status, balances, and allowances are immutable, and this contract's values for hasWeights, weights, and origins are immutable as well. Before OldRSR is paused, the booleans in balCrossed and allownceCrossed are all false (immutable). After OldRSR is paused, the entries in those maps can change to true. Once the entry value is true, it remains immutable. */ /// weights: map(OldRSR addr -> RSR addr -> uint64 weight) /// weights[A][B] is the fraction of A's old balance that should be forwarded to B. mapping(address => mapping(address => uint64)) public weights; /// Invariant: /// For all OldRSR addresses A, /// if !hasWeights[A], then for all RSR Addresses B, weights[A][B] == 0 /// if hasWeights[A], then sum_{all RSR addresses B} (weights[A][B]) == WEIGHT_ONE /// /// hasWeights: map(OldRSR addr -> bool) /// If !hasWeights[A], then A's OldRSR balances should be forwarded as by default. /// If hasWeights[A], then A's OldRSR balances should be forwarded as by weights[A][_] mapping(address => bool) public hasWeights; /// Invariant: For all A and B, if weights[A][B] > 0, then A is in origins[B] /// /// origins: map(RSR addr -> set(OldRSR addr)) mapping(address => EnumerableSet.AddressSet) private origins; /// balCrossed[A]: true if and only if OldRSR address "A" has already crossed mapping(address => bool) public balCrossed; /// allowanceCrossed[A][B]: true if and only if oldRSR.allowances[A][B] has crossed mapping(address => mapping(address => bool)) public allowanceCrossed; /** @dev A few mathematical functions, so we can be really precise here: totalWeight(A, B) = (hasWeights[A] ? weights[A][B] : ((A == B) ? WEIGHT_ONE : 0)) inheritedBalance(A) = sum_{all addrs B} ( oldRSR.balanceOf(A) * totalWeight(A,B) / WEIGHT_ONE ) # Properties of balances: For all RSR addresses "A": - If OldRSR is not yet paused, balCrossed[A] is `false`. - Once balCrossed[A] is `true`, it stays `true` forever. - balanceOf(A) == this._balances[A] + (balCrossed[A] ? inheritedBalance(A) : 0) - The function `balanceOf` satisfies all the usual rules for ERC20 tokens. # Properties of allowances: For all addresses A and B, - If OldRSR is not yet paused, then allowanceCrossed[A][B] is false - Once allowanceCrossed[A][B] == true, it stays true forever - allowance(A,B) == allowanceCrossed[A][B] ? this._allowance[A][B] : oldRSR.allowance(A,B) - The function `allowance` satisfies all the usual rules for ERC20 tokens. */ constructor(address oldRSR_) ERC20("Reserve Rights", "RSR") ERC20Permit("Reserve Rights") { oldRSR = ERC20Pausable(oldRSR_); // `totalSupply` for both OldRSR and RSR is fixed and equal fixedSupply = ERC20Pausable(oldRSR_).totalSupply(); pauser = _msgSender(); _pause(); phase = Phase.SETUP; } // ========================= Modifiers ========================= modifier ensureBalCrossed(address from) { if (!balCrossed[from]) { balCrossed[from] = true; _mint(from, _oldBal(from)); } _; } modifier ensureAllowanceCrossed(address from, address to) { if (!allowanceCrossed[from][to]) { allowanceCrossed[from][to] = true; _approve(from, to, oldRSR.allowance(from, to)); } _; } modifier onlyAdminOrPauser() { require( _msgSender() == pauser || _msgSender() == mage() || _msgSender() == owner(), "only pauser, mage, or owner" ); _; } modifier inWorking() { require(phase == Phase.WORKING, "only during working phase"); _; } modifier inSetup() { require(phase == Phase.SETUP, "only during setup phase"); _; } // ========================= Governance ========================= function moveToWorking() external onlyAdmin inSetup { require(oldRSR.paused(), "waiting for oldRSR to pause"); phase = Phase.WORKING; _unpause(); _transferOwnership(address(0)); } /// Pause ERC20 + ERC2612 functions function pause() external onlyAdminOrPauser inWorking { _pause(); } /// Unpause ERC20 + ERC2612 functions function unpause() external onlyAdminOrPauser inWorking { _unpause(); } function changePauser(address newPauser) external onlyAdminOrPauser { require(newPauser != address(0), "use renouncePauser"); emit PauserChanged(pauser, newPauser); pauser = newPauser; } function renouncePauser() external onlyAdminOrPauser { emit PauserChanged(pauser, address(0)); pauser = address(0); } // ========================= Weight Management ========================= /// Moves weight from old->prev to old->to /// @param from The address that has the balance on OldRSR /// @param oldTo The receiving address to siphon tokens away from /// @param newTo The receiving address to siphon tokens towards /// @param weight A uint between 0 and the current old->prev weight, max WEIGHT_ONE function siphon( address from, address oldTo, address newTo, uint64 weight ) external onlyAdmin inSetup { _siphon(from, oldTo, newTo, weight); } /// Partially crosses an account balance. /// Calling this function does not impact final balances after completing account crossing. function partiallyCross(address to, uint256 n) public inWorking { if (!balCrossed[to]) { while (origins[to].length() > 0 && n > 0) { address from = origins[to].at(origins[to].length() - 1); _mint(to, (oldRSR.balanceOf(from) * weights[from][to]) / WEIGHT_ONE); weights[from][to] = 0; origins[to].remove(from); n -= 1; } } } // ========================= ERC20 + ERC2612 ============================== function transfer(address recipient, uint256 amount) public override whenNotPaused ensureBalCrossed(_msgSender()) returns (bool) { require(recipient != address(this), "no transfers to this token address"); return super.transfer(recipient, amount); } function transferFrom( address sender, address recipient, uint256 amount ) public override whenNotPaused ensureBalCrossed(sender) ensureAllowanceCrossed(sender, _msgSender()) returns (bool) { require(recipient != address(this), "no transfers to this token address"); return super.transferFrom(sender, recipient, amount); } function approve(address spender, uint256 amount) public override whenNotPaused returns (bool) { _approve(_msgSender(), spender, amount); allowanceCrossed[_msgSender()][spender] = true; return true; } function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public override whenNotPaused { super.permit(owner, spender, value, deadline, v, r, s); allowanceCrossed[owner][spender] = true; } function increaseAllowance(address spender, uint256 addedValue) public override whenNotPaused ensureAllowanceCrossed(_msgSender(), spender) returns (bool) { return super.increaseAllowance(spender, addedValue); } function decreaseAllowance(address spender, uint256 subbedValue) public override whenNotPaused ensureAllowanceCrossed(_msgSender(), spender) returns (bool) { return super.decreaseAllowance(spender, subbedValue); } /// @return The fixed total supply of the token function totalSupply() public view override returns (uint256) { return fixedSupply; } /// @return The RSR balance of account /// @dev The balance we return from balanceOf is the sum of three sources of balances: /// - newly received tokens /// - already-crossed oldRSR balances /// - not-yet-crossed oldRSR balances /// super.balanceOf(account) == (newly received tokens + already-crossed oldRSR balances) /// if not balCrossed[account], then _oldBal(account) == not-yet-crossed oldRSR balances function balanceOf(address account) public view override returns (uint256) { if (balCrossed[account]) { return super.balanceOf(account); } return _oldBal(account) + super.balanceOf(account); } /// The allowance is a combination of crossing allowance + newly granted allowances function allowance(address owner, address spender) public view override returns (uint256) { if (allowanceCrossed[owner][spender]) { return super.allowance(owner, spender); } return oldRSR.allowance(owner, spender); } // ========================= Internal ============================= /// Moves weight from old->prev to old->to /// @param from The address that has the balance on OldRSR /// @param oldTo The receiving address to siphon tokens away from /// @param newTo The receiving address newTo siphon tokens towards /// @param weight A uint between 0 and the current from->oldTo weight, max WEIGHT_ONE (1e18) function _siphon( address from, address oldTo, address newTo, uint64 weight ) internal { /// Ensure that hasWeights[from] is true (base case) if (!hasWeights[from]) { origins[from].add(from); weights[from][from] = WEIGHT_ONE; hasWeights[from] = true; } require(weight <= weights[from][oldTo], "weight too big"); require(from != address(0), "from cannot be zero address"); // Redistribute weights weights[from][oldTo] -= weight; weights[from][newTo] += weight; origins[newTo].add(from); } /// @return sum The starting balance for an account after crossing from OldRSR function _oldBal(address account) internal view returns (uint256 sum) { if (!hasWeights[account]) { sum = oldRSR.balanceOf(account); } for (uint256 i = 0; i < origins[account].length(); i++) { // Note that there is an acceptable loss of precision equal to ~1e18 RSR quanta address from = origins[account].at(i); sum += (oldRSR.balanceOf(from) * weights[from][account]) / WEIGHT_ONE; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; import "./draft-IERC20Permit.sol"; import "../ERC20.sol"; import "../../../utils/cryptography/draft-EIP712.sol"; import "../../../utils/cryptography/ECDSA.sol"; import "../../../utils/Counters.sol"; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable 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() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Spell.sol"; /** * @title Enchantable * @dev A very simple mixin that enables the spell-casting pattern. */ abstract contract Enchantable is Ownable { address private _mage; event MageChanged(address oldMage, address newMage); event SpellCast(address indexed addr); modifier onlyAdmin() { require(_msgSender() == _mage || _msgSender() == owner(), "only mage or owner"); _; } /// At the end of a transaction, mage() should *always* be 0! function mage() public view returns (address) { return _mage; } /// Grants mage to a Spell, casts the spell, and restore mage function castSpell(Spell spell) external onlyOwner { _grantMage(address(spell)); spell.cast(); _grantMage(address(0)); emit SpellCast(address(spell)); } function _grantMage(address mage_) private { emit MageChanged(_mage, mage_); _mage = mage_; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: BlueOak-1.0.0 pragma solidity 0.8.4; /** * @title Spell * @dev A one-time-use atomic sequence of actions, hasBeenCast by RSR for contract changes. */ abstract contract Spell { address public immutable rsrAddr; bool public hasBeenCast; constructor(address rsr_) { rsrAddr = rsr_; } function cast() external { require(msg.sender == rsrAddr, "rsr only"); require(!hasBeenCast, "spell already cast"); hasBeenCast = true; spell(); } /// A derived Spell overrides spell() to enact its intended effects. function spell() internal virtual; }
{ "optimizer": { "enabled": true, "runs": 100000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"oldRSR_","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":false,"internalType":"address","name":"oldMage","type":"address"},{"indexed":false,"internalType":"address","name":"newMage","type":"address"}],"name":"MageChanged","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldPauser","type":"address"},{"indexed":false,"internalType":"address","name":"newPauser","type":"address"}],"name":"PauserChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"}],"name":"SpellCast","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WEIGHT_ONE","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowanceCrossed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"","type":"address"}],"name":"balCrossed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract Spell","name":"spell","type":"address"}],"name":"castSpell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPauser","type":"address"}],"name":"changePauser","outputs":[],"stateMutability":"nonpayable","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":"subbedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasWeights","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"mage","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moveToWorking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldRSR","outputs":[{"internalType":"contract ERC20Pausable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"partiallyCross","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum RSR.Phase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renouncePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"oldTo","type":"address"},{"internalType":"address","name":"newTo","type":"address"},{"internalType":"uint64","name":"weight","type":"uint64"}],"name":"siphon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"weights","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101a06040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b506040516200478d3803806200478d8339810160408190526200005a91620003ff565b604080518082018252600e8082526d526573657276652052696768747360901b60208084018290528451808601865260018152603160f81b818301528551808701875293845283820192909252845180860190955260038552622929a960e91b908501526000805460ff19169055919283929190620000d93362000262565b8151620000ee90600590602085019062000359565b5080516200010490600690602084019062000359565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919350919060805230606090811b60c0526101209190915286901b6001600160601b031916610160525050604080516318160ddd60e01b815290516001600160a01b03861694506318160ddd935060048083019350602092829003018186803b158015620001f157600080fd5b505afa15801562000206573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200022c91906200042f565b6101805260088054610100600160a81b031916610100330217905562000251620002bb565b506008805460ff1916905562000485565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff1615620003065760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200033c3390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620003679062000448565b90600052602060002090601f0160209004810192826200038b5760008555620003d6565b82601f10620003a657805160ff1916838001178555620003d6565b82800160010185558215620003d6579182015b82811115620003d6578251825591602001919060010190620003b9565b50620003e4929150620003e8565b5090565b5b80821115620003e45760008155600101620003e9565b60006020828403121562000411578081fd5b81516001600160a01b038116811462000428578182fd5b9392505050565b60006020828403121562000441578081fd5b5051919050565b600181811c908216806200045d57607f821691505b602082108114156200047f57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160601c60e0516101005161012051610140516101605160601c610180516142596200053460003960006102ac0152600081816103a2015281816108e601528181610ee20152818161176a01528181611b8c01528181611ef0015281816121c8015281816125a40152612705015260006132a601526000612af101526000612b4001526000612b1b01526000612a7401526000612a9e01526000612ac801526142596000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c80636ff2212f116101455780639fd0506d116100bd578063b1c9fe6e1161008c578063d505accf11610071578063d505accf14610566578063dd62ed3e14610579578063f2fde38b1461058c57600080fd5b8063b1c9fe6e1461052e578063cca37eef1461054857600080fd5b80639fd0506d146104db578063a457c2d714610500578063a9059cbb14610513578063afb8a7af1461052657600080fd5b806380b34cd1116101145780638456cb59116100f95780638456cb59146104a85780638da5cb5b146104b057806395d89b41146104d357600080fd5b806380b34cd11461047257806380c1bf3f1461049557600080fd5b80636ff2212f1461043157806370a0823114610444578063715018a6146104575780637ecebe001461045f57600080fd5b806332aed946116101d85780633f4ba83a116101a75780635c975abb1161018c5780635c975abb146103e95780636c1e187c146103f45780636ef8d66d1461042957600080fd5b80633f4ba83a14610395578063427dff1d1461039d57600080fd5b806332aed9461461033f5780633644e5151461035257806337bfdef31461035a578063395093511461038257600080fd5b806323b872dd1161021457806323b872dd146102da5780632a7711fb146102ed5780632cd271e71461031b578063313ce5671461033057600080fd5b806306fdde0314610246578063095ea7b3146102645780630d76c6a41461028757806318160ddd146102aa575b600080fd5b61024e61059f565b60405161025b9190613fe0565b60405180910390f35b610277610272366004613f3c565b610631565b604051901515815260200161025b565b610277610295366004613dcc565b600c6020526000908152604090205460ff1681565b7f00000000000000000000000000000000000000000000000000000000000000005b60405190815260200161025b565b6102776102e8366004613e87565b610713565b6102776102fb366004613de8565b600d60209081526000928352604080842090915290825290205460ff1681565b61032e610329366004613dcc565b610a22565b005b6040516012815260200161025b565b61032e61034d366004613dcc565b610c53565b6102cc610d91565b610369670de0b6b3a764000081565b60405167ffffffffffffffff909116815260200161025b565b610277610390366004613f3c565b610da0565b61032e610f24565b6103c47f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161025b565b60005460ff16610277565b610369610402366004613de8565b600960209081526000928352604080842090915290825290205467ffffffffffffffff1681565b61032e6110e6565b61032e61043f366004613e20565b611275565b6102cc610452366004613dcc565b611418565b61032e6114aa565b6102cc61046d366004613dcc565b61153b565b610277610480366004613dcc565b600a6020526000908152604090205460ff1681565b61032e6104a3366004613f3c565b611566565b61032e61187b565b600054610100900473ffffffffffffffffffffffffffffffffffffffff166103c4565b61024e611a3b565b6008546103c490610100900473ffffffffffffffffffffffffffffffffffffffff1681565b61027761050e366004613f3c565b611a4a565b610277610521366004613f3c565b611bc5565b61032e611d5d565b60085461053b9060ff1681565b60405161025b9190613f9f565b60015473ffffffffffffffffffffffffffffffffffffffff166103c4565b61032e610574366004613ec7565b612025565b6102cc610587366004613de8565b612105565b61032e61059a366004613dcc565b612249565b6060600580546105ae9061414b565b80601f01602080910402602001604051908101604052809291908181526020018280546105da9061414b565b80156106275780601f106105fc57610100808354040283529160200191610627565b820191906000526020600020905b81548152906001019060200180831161060a57829003601f168201915b5050505050905090565b6000805460ff16156106a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064015b60405180910390fd5b6106af33848461237f565b50336000908152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091555b92915050565b6000805460ff1615610781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600c6020526040902054849060ff166108105773ffffffffffffffffffffffffffffffffffffffff81166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556108108161080b81612532565b6127b9565b843373ffffffffffffffffffffffffffffffffffffffff8083166000908152600d602090815260408083209385168352929052205460ff166109665773ffffffffffffffffffffffffffffffffffffffff8281166000818152600d6020908152604080832086861680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526004810192909252602482015261096691849184917f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e906044015b60206040518083038186803b15801561092957600080fd5b505afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109619190613f87565b61237f565b73ffffffffffffffffffffffffffffffffffffffff8616301415610a0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f6e6f207472616e736665727320746f207468697320746f6b656e20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b610a178787876128d9565b979650505050505050565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610a7a575060015473ffffffffffffffffffffffffffffffffffffffff1633145b80610acd5750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff8116610bb0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f7573652072656e6f756e63655061757365720000000000000000000000000000604482015260640161069b565b60085460405173ffffffffffffffffffffffffffffffffffffffff8381168252610100909204909116907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a8119060200160405180910390a26008805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314610cda576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069b565b610ce3816129bf565b8073ffffffffffffffffffffffffffffffffffffffff166396d373e56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610d2b57600080fd5b505af1158015610d3f573d6000803e3d6000fd5b50505050610d4d60006129bf565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fe039b74be57483fdd56015b5720092dea2874e85f33906ddbc486455edd0458f90600090a250565b6000610d9b612a5a565b905090565b6000805460ff1615610e0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b336000818152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902054849060ff16610f115773ffffffffffffffffffffffffffffffffffffffff8281166000818152600d6020908152604080832086861680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590517fdd62ed3e00000000000000000000000000000000000000000000000000000000815260048101929092526024820152610f1191849184917f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e90604401610911565b610f1b8585612b8e565b95945050505050565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f7c575060015473ffffffffffffffffffffffffffffffffffffffff1633145b80610fcf5750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b600160085460ff166001811115611075577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b146110dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f6e6c7920647572696e6720776f726b696e6720706861736500000000000000604482015260640161069b565b6110e4612bdb565b565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061113e575060015473ffffffffffffffffffffffffffffffffffffffff1633145b806111915750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6111f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b6008546040516000815261010090910473ffffffffffffffffffffffffffffffffffffffff16907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a8119060200160405180910390a2600880547fffffffffffffffffffffff0000000000000000000000000000000000000000ff169055565b60015473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112f95750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61135f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c79206d616765206f72206f776e65720000000000000000000000000000604482015260640161069b565b600060085460ff16600181111561139f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611406576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6f6e6c7920647572696e67207365747570207068617365000000000000000000604482015260640161069b565b61141284848484612cbc565b50505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600c602052604081205460ff16156114715773ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604090205461070d565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600260205260409020546114a083612532565b61070d9190614051565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069b565b6110e46000612fde565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604081205461070d565b600160085460ff1660018111156115a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1461160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f6e6c7920647572696e6720776f726b696e6720706861736500000000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600c602052604090205460ff16611877575b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604081206116699061305b565b1180156116765750600081115b156118775773ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604081206116e5906001906116b09061305b565b6116ba919061410b565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600b6020526040902090613065565b73ffffffffffffffffffffffffffffffffffffffff81811660008181526009602090815260408083208986168452909152908190205490517f70a0823100000000000000000000000000000000000000000000000000000000815260048101929092529293506117fa928692670de0b6b3a76400009267ffffffffffffffff909216917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b1580156117ae57600080fd5b505afa1580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190613f87565b6117f091906140ce565b61080b9190614095565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600960209081526040808320938716835292815282822080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000169055600b9052206118639082613071565b5061186f60018361410b565b91505061163b565b5050565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806118d3575060015473ffffffffffffffffffffffffffffffffffffffff1633145b806119265750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61198c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b600160085460ff1660018111156119cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611a33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f6e6c7920647572696e6720776f726b696e6720706861736500000000000000604482015260640161069b565b6110e4613093565b6060600680546105ae9061414b565b6000805460ff1615611ab8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b336000818152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902054849060ff16611bbb5773ffffffffffffffffffffffffffffffffffffffff8281166000818152600d6020908152604080832086861680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590517fdd62ed3e00000000000000000000000000000000000000000000000000000000815260048101929092526024820152611bbb91849184917f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e90604401610911565b610f1b8585613153565b6000805460ff1615611c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b336000818152600c602052604090205460ff16611ca55773ffffffffffffffffffffffffffffffffffffffff81166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611ca58161080b81612532565b73ffffffffffffffffffffffffffffffffffffffff8416301415611d4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f6e6f207472616e736665727320746f207468697320746f6b656e20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b611d55848461322b565b949350505050565b60015473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611de15750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611e47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c79206d616765206f72206f776e65720000000000000000000000000000604482015260640161069b565b600060085460ff166001811115611e87577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611eee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6f6e6c7920647572696e67207365747570207068617365000000000000000000604482015260640161069b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5457600080fd5b505afa158015611f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8c9190613f67565b611ff2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f77616974696e6720666f72206f6c6452535220746f2070617573650000000000604482015260640161069b565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611531612bdb565b60005460ff1615612092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b6120a187878787878787613238565b50505073ffffffffffffffffffffffffffffffffffffffff9384166000908152600d602090815260408083209590961682529390935250502080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600d6020908152604080832093851683529290529081205460ff161561217b575073ffffffffffffffffffffffffffffffffffffffff82811660009081526003602090815260408083209385168352929052205461070d565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015283811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e9060440160206040518083038186803b15801561220a57600080fd5b505afa15801561221e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122429190613f87565b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146122d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff8116612373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161069b565b61237c81612fde565b50565b73ffffffffffffffffffffffffffffffffffffffff8316612421576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff82166124c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604081205460ff16612621576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156125e657600080fd5b505afa1580156125fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061261e9190613f87565b90505b60005b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090206126529061305b565b8110156127b35773ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604081206126889083613065565b73ffffffffffffffffffffffffffffffffffffffff81811660008181526009602090815260408083208a86168452909152908190205490517f70a082310000000000000000000000000000000000000000000000000000000081526004810192909252929350670de0b6b3a76400009267ffffffffffffffff16917f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561274757600080fd5b505afa15801561275b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277f9190613f87565b61278991906140ce565b6127939190614095565b61279d9084614051565b92505080806127ab90614199565b915050612624565b50919050565b73ffffffffffffffffffffffffffffffffffffffff8216612836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161069b565b80600460008282546128489190614051565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604081208054839290612882908490614051565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006128e68484846133f7565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600360209081526040808320338452909152902054828110156129a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606482015260840161069b565b6129b4853385840361237f565b506001949350505050565b6001546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f016bc5bf5349a496f75fa2d563e0df9a39a655381c45148bdf8f1b6e6715e60a910160405180910390a1600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60003073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015612ac057507f000000000000000000000000000000000000000000000000000000000000000046145b15612aea57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b33600081815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091612bd2918590610961908690614051565b50600192915050565b60005460ff16612c47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161069b565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a602052604090205460ff16612da75773ffffffffffffffffffffffffffffffffffffffff84166000908152600b60205260409020612d1890856136aa565b5073ffffffffffffffffffffffffffffffffffffffff84166000908152600960209081526040808320825280832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016670de0b6b3a7640000179055600a909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b73ffffffffffffffffffffffffffffffffffffffff80851660009081526009602090815260408083209387168352929052205467ffffffffffffffff9081169082161115612e51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f77656967687420746f6f20626967000000000000000000000000000000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff8416612ece576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f66726f6d2063616e6e6f74206265207a65726f20616464726573730000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260096020908152604080832093871683529290529081208054839290612f1c90849067ffffffffffffffff16614122565b82546101009290920a67ffffffffffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff8681166000908152600960209081526040808320938816835292905290812080548594509092612f8491859116614069565b825467ffffffffffffffff9182166101009390930a92830291909202199091161790555073ffffffffffffffffffffffffffffffffffffffff82166000908152600b60205260409020612fd790856136aa565b5050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600061070d825490565b600061224283836136cc565b60006122428373ffffffffffffffffffffffffffffffffffffffff841661371d565b60005460ff1615613100576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c923390565b33600090815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015613214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161069b565b613221338585840361237f565b5060019392505050565b6000612bd23384846133f7565b834211156132a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161069b565b60007f00000000000000000000000000000000000000000000000000000000000000008888886132d18c613885565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000613339826138b8565b9050600061334982878787613921565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146133e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161069b565b6133eb8a8a8a61237f565b50505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff831661349a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff821661353d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260026020526040902054818110156135f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260026020526040808220858503905591851681529081208054849290613637908490614051565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161369d91815260200190565b60405180910390a3611412565b60006122428373ffffffffffffffffffffffffffffffffffffffff8416613949565b600082600001828154811061370a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600183016020526040812054801561387b57600061374160018361410b565b85549091506000906137559060019061410b565b905081811461380857600086600001828154811061379c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050808760000184815481106137e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613840577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061070d565b600091505061070d565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090208054600181018255906127b3565b600061070d6138c5612a5a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061393287878787613998565b9150915061393f81613ab0565b5095945050505050565b60008181526001830160205260408120546139905750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561070d565b50600061070d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156139cf5750600090506003613aa7565b8460ff16601b141580156139e757508460ff16601c14155b156139f85750600090506004613aa7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a4c573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116613aa057600060019250925050613aa7565b9150600090505b94509492505050565b6000816004811115613aeb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613af45750565b6001816004811115613b2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613b97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161069b565b6002816004811115613bd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161069b565b6003816004811115613c75577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b6004816004811115613d3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561237c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b600060208284031215613ddd578081fd5b813561224281614201565b60008060408385031215613dfa578081fd5b8235613e0581614201565b91506020830135613e1581614201565b809150509250929050565b60008060008060808587031215613e35578182fd5b8435613e4081614201565b93506020850135613e5081614201565b92506040850135613e6081614201565b9150606085013567ffffffffffffffff81168114613e7c578182fd5b939692955090935050565b600080600060608486031215613e9b578283fd5b8335613ea681614201565b92506020840135613eb681614201565b929592945050506040919091013590565b600080600080600080600060e0888a031215613ee1578283fd5b8735613eec81614201565b96506020880135613efc81614201565b95506040880135945060608801359350608088013560ff81168114613f1f578384fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215613f4e578182fd5b8235613f5981614201565b946020939093013593505050565b600060208284031215613f78578081fd5b81518015158114612242578182fd5b600060208284031215613f98578081fd5b5051919050565b6020810160028310613fda577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000602080835283518082850152825b8181101561400c57858101830151858201604001528201613ff0565b8181111561401d5783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60008219821115614064576140646141d2565b500190565b600067ffffffffffffffff80831681851680830382111561408c5761408c6141d2565b01949350505050565b6000826140c9577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614106576141066141d2565b500290565b60008282101561411d5761411d6141d2565b500390565b600067ffffffffffffffff83811690831681811015614143576141436141d2565b039392505050565b600181811c9082168061415f57607f821691505b602082108114156127b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141cb576141cb6141d2565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461237c57600080fdfea264697066735822122068c2be641d8e88d5f357ab49c4e3a2959e7dad313a3ed098894d01fe671d16fa64736f6c634300080400330000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102415760003560e01c80636ff2212f116101455780639fd0506d116100bd578063b1c9fe6e1161008c578063d505accf11610071578063d505accf14610566578063dd62ed3e14610579578063f2fde38b1461058c57600080fd5b8063b1c9fe6e1461052e578063cca37eef1461054857600080fd5b80639fd0506d146104db578063a457c2d714610500578063a9059cbb14610513578063afb8a7af1461052657600080fd5b806380b34cd1116101145780638456cb59116100f95780638456cb59146104a85780638da5cb5b146104b057806395d89b41146104d357600080fd5b806380b34cd11461047257806380c1bf3f1461049557600080fd5b80636ff2212f1461043157806370a0823114610444578063715018a6146104575780637ecebe001461045f57600080fd5b806332aed946116101d85780633f4ba83a116101a75780635c975abb1161018c5780635c975abb146103e95780636c1e187c146103f45780636ef8d66d1461042957600080fd5b80633f4ba83a14610395578063427dff1d1461039d57600080fd5b806332aed9461461033f5780633644e5151461035257806337bfdef31461035a578063395093511461038257600080fd5b806323b872dd1161021457806323b872dd146102da5780632a7711fb146102ed5780632cd271e71461031b578063313ce5671461033057600080fd5b806306fdde0314610246578063095ea7b3146102645780630d76c6a41461028757806318160ddd146102aa575b600080fd5b61024e61059f565b60405161025b9190613fe0565b60405180910390f35b610277610272366004613f3c565b610631565b604051901515815260200161025b565b610277610295366004613dcc565b600c6020526000908152604090205460ff1681565b7f0000000000000000000000000000000000000001431e0fae6d7217caa00000005b60405190815260200161025b565b6102776102e8366004613e87565b610713565b6102776102fb366004613de8565b600d60209081526000928352604080842090915290825290205460ff1681565b61032e610329366004613dcc565b610a22565b005b6040516012815260200161025b565b61032e61034d366004613dcc565b610c53565b6102cc610d91565b610369670de0b6b3a764000081565b60405167ffffffffffffffff909116815260200161025b565b610277610390366004613f3c565b610da0565b61032e610f24565b6103c47f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e881565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161025b565b60005460ff16610277565b610369610402366004613de8565b600960209081526000928352604080842090915290825290205467ffffffffffffffff1681565b61032e6110e6565b61032e61043f366004613e20565b611275565b6102cc610452366004613dcc565b611418565b61032e6114aa565b6102cc61046d366004613dcc565b61153b565b610277610480366004613dcc565b600a6020526000908152604090205460ff1681565b61032e6104a3366004613f3c565b611566565b61032e61187b565b600054610100900473ffffffffffffffffffffffffffffffffffffffff166103c4565b61024e611a3b565b6008546103c490610100900473ffffffffffffffffffffffffffffffffffffffff1681565b61027761050e366004613f3c565b611a4a565b610277610521366004613f3c565b611bc5565b61032e611d5d565b60085461053b9060ff1681565b60405161025b9190613f9f565b60015473ffffffffffffffffffffffffffffffffffffffff166103c4565b61032e610574366004613ec7565b612025565b6102cc610587366004613de8565b612105565b61032e61059a366004613dcc565b612249565b6060600580546105ae9061414b565b80601f01602080910402602001604051908101604052809291908181526020018280546105da9061414b565b80156106275780601f106105fc57610100808354040283529160200191610627565b820191906000526020600020905b81548152906001019060200180831161060a57829003601f168201915b5050505050905090565b6000805460ff16156106a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064015b60405180910390fd5b6106af33848461237f565b50336000908152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091555b92915050565b6000805460ff1615610781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600c6020526040902054849060ff166108105773ffffffffffffffffffffffffffffffffffffffff81166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556108108161080b81612532565b6127b9565b843373ffffffffffffffffffffffffffffffffffffffff8083166000908152600d602090815260408083209385168352929052205460ff166109665773ffffffffffffffffffffffffffffffffffffffff8281166000818152600d6020908152604080832086861680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526004810192909252602482015261096691849184917f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8169063dd62ed3e906044015b60206040518083038186803b15801561092957600080fd5b505afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109619190613f87565b61237f565b73ffffffffffffffffffffffffffffffffffffffff8616301415610a0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f6e6f207472616e736665727320746f207468697320746f6b656e20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b610a178787876128d9565b979650505050505050565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610a7a575060015473ffffffffffffffffffffffffffffffffffffffff1633145b80610acd5750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610b33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff8116610bb0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f7573652072656e6f756e63655061757365720000000000000000000000000000604482015260640161069b565b60085460405173ffffffffffffffffffffffffffffffffffffffff8381168252610100909204909116907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a8119060200160405180910390a26008805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314610cda576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069b565b610ce3816129bf565b8073ffffffffffffffffffffffffffffffffffffffff166396d373e56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610d2b57600080fd5b505af1158015610d3f573d6000803e3d6000fd5b50505050610d4d60006129bf565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fe039b74be57483fdd56015b5720092dea2874e85f33906ddbc486455edd0458f90600090a250565b6000610d9b612a5a565b905090565b6000805460ff1615610e0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b336000818152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902054849060ff16610f115773ffffffffffffffffffffffffffffffffffffffff8281166000818152600d6020908152604080832086861680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590517fdd62ed3e00000000000000000000000000000000000000000000000000000000815260048101929092526024820152610f1191849184917f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8169063dd62ed3e90604401610911565b610f1b8585612b8e565b95945050505050565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f7c575060015473ffffffffffffffffffffffffffffffffffffffff1633145b80610fcf5750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b600160085460ff166001811115611075577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b146110dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f6e6c7920647572696e6720776f726b696e6720706861736500000000000000604482015260640161069b565b6110e4612bdb565b565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061113e575060015473ffffffffffffffffffffffffffffffffffffffff1633145b806111915750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6111f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b6008546040516000815261010090910473ffffffffffffffffffffffffffffffffffffffff16907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a8119060200160405180910390a2600880547fffffffffffffffffffffff0000000000000000000000000000000000000000ff169055565b60015473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112f95750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61135f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c79206d616765206f72206f776e65720000000000000000000000000000604482015260640161069b565b600060085460ff16600181111561139f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611406576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6f6e6c7920647572696e67207365747570207068617365000000000000000000604482015260640161069b565b61141284848484612cbc565b50505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600c602052604081205460ff16156114715773ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604090205461070d565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600260205260409020546114a083612532565b61070d9190614051565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069b565b6110e46000612fde565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604081205461070d565b600160085460ff1660018111156115a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1461160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f6e6c7920647572696e6720776f726b696e6720706861736500000000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600c602052604090205460ff16611877575b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604081206116699061305b565b1180156116765750600081115b156118775773ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604081206116e5906001906116b09061305b565b6116ba919061410b565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600b6020526040902090613065565b73ffffffffffffffffffffffffffffffffffffffff81811660008181526009602090815260408083208986168452909152908190205490517f70a0823100000000000000000000000000000000000000000000000000000000815260048101929092529293506117fa928692670de0b6b3a76400009267ffffffffffffffff909216917f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8909116906370a082319060240160206040518083038186803b1580156117ae57600080fd5b505afa1580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190613f87565b6117f091906140ce565b61080b9190614095565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600960209081526040808320938716835292815282822080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000169055600b9052206118639082613071565b5061186f60018361410b565b91505061163b565b5050565b600854610100900473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806118d3575060015473ffffffffffffffffffffffffffffffffffffffff1633145b806119265750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61198c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6f6e6c79207061757365722c206d6167652c206f72206f776e65720000000000604482015260640161069b565b600160085460ff1660018111156119cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611a33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f6e6c7920647572696e6720776f726b696e6720706861736500000000000000604482015260640161069b565b6110e4613093565b6060600680546105ae9061414b565b6000805460ff1615611ab8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b336000818152600d6020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902054849060ff16611bbb5773ffffffffffffffffffffffffffffffffffffffff8281166000818152600d6020908152604080832086861680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590517fdd62ed3e00000000000000000000000000000000000000000000000000000000815260048101929092526024820152611bbb91849184917f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8169063dd62ed3e90604401610911565b610f1b8585613153565b6000805460ff1615611c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b336000818152600c602052604090205460ff16611ca55773ffffffffffffffffffffffffffffffffffffffff81166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611ca58161080b81612532565b73ffffffffffffffffffffffffffffffffffffffff8416301415611d4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f6e6f207472616e736665727320746f207468697320746f6b656e20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b611d55848461322b565b949350505050565b60015473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611de15750600054610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611e47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c79206d616765206f72206f776e65720000000000000000000000000000604482015260640161069b565b600060085460ff166001811115611e87577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611eee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6f6e6c7920647572696e67207365747570207068617365000000000000000000604482015260640161069b565b7f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e873ffffffffffffffffffffffffffffffffffffffff16635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5457600080fd5b505afa158015611f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8c9190613f67565b611ff2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f77616974696e6720666f72206f6c6452535220746f2070617573650000000000604482015260640161069b565b600880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611531612bdb565b60005460ff1615612092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b6120a187878787878787613238565b50505073ffffffffffffffffffffffffffffffffffffffff9384166000908152600d602090815260408083209590961682529390935250502080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600d6020908152604080832093851683529290529081205460ff161561217b575073ffffffffffffffffffffffffffffffffffffffff82811660009081526003602090815260408083209385168352929052205461070d565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015283811660248301527f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8169063dd62ed3e9060440160206040518083038186803b15801561220a57600080fd5b505afa15801561221e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122429190613f87565b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146122d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff8116612373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161069b565b61237c81612fde565b50565b73ffffffffffffffffffffffffffffffffffffffff8316612421576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff82166124c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604081205460ff16612621576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301527f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e816906370a082319060240160206040518083038186803b1580156125e657600080fd5b505afa1580156125fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061261e9190613f87565b90505b60005b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090206126529061305b565b8110156127b35773ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604081206126889083613065565b73ffffffffffffffffffffffffffffffffffffffff81811660008181526009602090815260408083208a86168452909152908190205490517f70a082310000000000000000000000000000000000000000000000000000000081526004810192909252929350670de0b6b3a76400009267ffffffffffffffff16917f0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e816906370a082319060240160206040518083038186803b15801561274757600080fd5b505afa15801561275b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277f9190613f87565b61278991906140ce565b6127939190614095565b61279d9084614051565b92505080806127ab90614199565b915050612624565b50919050565b73ffffffffffffffffffffffffffffffffffffffff8216612836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161069b565b80600460008282546128489190614051565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604081208054839290612882908490614051565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006128e68484846133f7565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600360209081526040808320338452909152902054828110156129a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606482015260840161069b565b6129b4853385840361237f565b506001949350505050565b6001546040805173ffffffffffffffffffffffffffffffffffffffff928316815291831660208301527f016bc5bf5349a496f75fa2d563e0df9a39a655381c45148bdf8f1b6e6715e60a910160405180910390a1600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60003073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000320623b8e4ff03373931769a31fc52a4e78b5d7016148015612ac057507f000000000000000000000000000000000000000000000000000000000000000146145b15612aea57507f9f8c51bd66d73da0099b2b055d0e925e241e9ea0e86b4ab43836e79a2a92a6df90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527ff0432dd353091b2639c193d4a7cd6e15e40d9d9c04fe280c7c530d929480e782828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b33600081815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091612bd2918590610961908690614051565b50600192915050565b60005460ff16612c47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161069b565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a602052604090205460ff16612da75773ffffffffffffffffffffffffffffffffffffffff84166000908152600b60205260409020612d1890856136aa565b5073ffffffffffffffffffffffffffffffffffffffff84166000908152600960209081526040808320825280832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016670de0b6b3a7640000179055600a909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b73ffffffffffffffffffffffffffffffffffffffff80851660009081526009602090815260408083209387168352929052205467ffffffffffffffff9081169082161115612e51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f77656967687420746f6f20626967000000000000000000000000000000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff8416612ece576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f66726f6d2063616e6e6f74206265207a65726f20616464726573730000000000604482015260640161069b565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260096020908152604080832093871683529290529081208054839290612f1c90849067ffffffffffffffff16614122565b82546101009290920a67ffffffffffffffff81810219909316918316021790915573ffffffffffffffffffffffffffffffffffffffff8681166000908152600960209081526040808320938816835292905290812080548594509092612f8491859116614069565b825467ffffffffffffffff9182166101009390930a92830291909202199091161790555073ffffffffffffffffffffffffffffffffffffffff82166000908152600b60205260409020612fd790856136aa565b5050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600061070d825490565b600061224283836136cc565b60006122428373ffffffffffffffffffffffffffffffffffffffff841661371d565b60005460ff1615613100576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161069b565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c923390565b33600090815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205482811015613214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161069b565b613221338585840361237f565b5060019392505050565b6000612bd23384846133f7565b834211156132a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161069b565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886132d18c613885565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000613339826138b8565b9050600061334982878787613921565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146133e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161069b565b6133eb8a8a8a61237f565b50505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff831661349a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff821661353d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260026020526040902054818110156135f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161069b565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260026020526040808220858503905591851681529081208054849290613637908490614051565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161369d91815260200190565b60405180910390a3611412565b60006122428373ffffffffffffffffffffffffffffffffffffffff8416613949565b600082600001828154811061370a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600183016020526040812054801561387b57600061374160018361410b565b85549091506000906137559060019061410b565b905081811461380857600086600001828154811061379c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050808760000184815481106137e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613840577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061070d565b600091505061070d565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090208054600181018255906127b3565b600061070d6138c5612a5a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061393287878787613998565b9150915061393f81613ab0565b5095945050505050565b60008181526001830160205260408120546139905750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561070d565b50600061070d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156139cf5750600090506003613aa7565b8460ff16601b141580156139e757508460ff16601c14155b156139f85750600090506004613aa7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a4c573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116613aa057600060019250925050613aa7565b9150600090505b94509492505050565b6000816004811115613aeb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613af45750565b6001816004811115613b2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613b97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161069b565b6002816004811115613bd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613c3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161069b565b6003816004811115613c75577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613d03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b6004816004811115613d3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561237c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161069b565b600060208284031215613ddd578081fd5b813561224281614201565b60008060408385031215613dfa578081fd5b8235613e0581614201565b91506020830135613e1581614201565b809150509250929050565b60008060008060808587031215613e35578182fd5b8435613e4081614201565b93506020850135613e5081614201565b92506040850135613e6081614201565b9150606085013567ffffffffffffffff81168114613e7c578182fd5b939692955090935050565b600080600060608486031215613e9b578283fd5b8335613ea681614201565b92506020840135613eb681614201565b929592945050506040919091013590565b600080600080600080600060e0888a031215613ee1578283fd5b8735613eec81614201565b96506020880135613efc81614201565b95506040880135945060608801359350608088013560ff81168114613f1f578384fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215613f4e578182fd5b8235613f5981614201565b946020939093013593505050565b600060208284031215613f78578081fd5b81518015158114612242578182fd5b600060208284031215613f98578081fd5b5051919050565b6020810160028310613fda577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b6000602080835283518082850152825b8181101561400c57858101830151858201604001528201613ff0565b8181111561401d5783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60008219821115614064576140646141d2565b500190565b600067ffffffffffffffff80831681851680830382111561408c5761408c6141d2565b01949350505050565b6000826140c9577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614106576141066141d2565b500290565b60008282101561411d5761411d6141d2565b500390565b600067ffffffffffffffff83811690831681811015614143576141436141d2565b039392505050565b600181811c9082168061415f57607f821691505b602082108114156127b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141cb576141cb6141d2565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461237c57600080fdfea264697066735822122068c2be641d8e88d5f357ab49c4e3a2959e7dad313a3ed098894d01fe671d16fa64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8
-----Decoded View---------------
Arg [0] : oldRSR_ (address): 0x8762db106B2c2A0bccB3A80d1Ed41273552616E8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008762db106b2c2a0bccb3a80d1ed41273552616e8
Loading...
Loading
Loading...
Loading
[ 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.