Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MainnetAUsdcToUsdcAssimilator
Compiler Version
v0.5.15+commit.6a57276f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-13 */ // hevm: flattened sources of src/assimilators/mainnet/usdcReserves/mainnetAUsdcToUsdcAssimilator.sol pragma solidity >0.4.13 >=0.4.23 >=0.5.0 <0.6.0 >=0.5.7 <0.6.0; ////// lib/abdk-libraries-solidity/src/ABDKMath64x64.sol /* * ABDK Math 64.64 Smart Contract Library. Copyright © 2019 by ABDK Consulting. * Author: Mikhail Vladimirov <[email protected]> */ /* pragma solidity ^0.5.7; */ /** * Smart contract library of mathematical functions operating with signed * 64.64-bit fixed point numbers. Signed 64.64-bit fixed point number is * basically a simple fraction whose numerator is signed 128-bit integer and * denominator is 2^64. As long as denominator is always the same, there is no * need to store it, thus in Solidity signed 64.64-bit fixed point numbers are * represented by int128 type holding only the numerator. */ library ABDKMath64x64 { /** * Minimum value signed 64.64-bit fixed point number may have. */ int128 private constant MIN_64x64 = -0x80000000000000000000000000000000; /** * Maximum value signed 64.64-bit fixed point number may have. */ int128 private constant MAX_64x64 = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * Convert signed 256-bit integer number into signed 64.64-bit fixed point * number. Revert on overflow. * * @param x signed 256-bit integer number * @return signed 64.64-bit fixed point number */ function fromInt (int256 x) internal pure returns (int128) { require (x >= -0x8000000000000000 && x <= 0x7FFFFFFFFFFFFFFF); return int128 (x << 64); } /** * Convert signed 64.64 fixed point number into signed 64-bit integer number * rounding down. * * @param x signed 64.64-bit fixed point number * @return signed 64-bit integer number */ function toInt (int128 x) internal pure returns (int64) { return int64 (x >> 64); } /** * Convert unsigned 256-bit integer number into signed 64.64-bit fixed point * number. Revert on overflow. * * @param x unsigned 256-bit integer number * @return signed 64.64-bit fixed point number */ function fromUInt (uint256 x) internal pure returns (int128) { require (x <= 0x7FFFFFFFFFFFFFFF); return int128 (x << 64); } /** * Convert signed 64.64 fixed point number into unsigned 64-bit integer * number rounding down. Revert on underflow. * * @param x signed 64.64-bit fixed point number * @return unsigned 64-bit integer number */ function toUInt (int128 x) internal pure returns (uint64) { require (x >= 0); return uint64 (x >> 64); } /** * Convert signed 128.128 fixed point number into signed 64.64-bit fixed point * number rounding down. Revert on overflow. * * @param x signed 128.128-bin fixed point number * @return signed 64.64-bit fixed point number */ function from128x128 (int256 x) internal pure returns (int128) { int256 result = x >> 64; require (result >= MIN_64x64 && result <= MAX_64x64); return int128 (result); } /** * Convert signed 64.64 fixed point number into signed 128.128 fixed point * number. * * @param x signed 64.64-bit fixed point number * @return signed 128.128 fixed point number */ function to128x128 (int128 x) internal pure returns (int256) { return int256 (x) << 64; } /** * Calculate x + y. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function add (int128 x, int128 y) internal pure returns (int128) { int256 result = int256(x) + y; require (result >= MIN_64x64 && result <= MAX_64x64); return int128 (result); } /** * Calculate x - y. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function sub (int128 x, int128 y) internal pure returns (int128) { int256 result = int256(x) - y; require (result >= MIN_64x64 && result <= MAX_64x64); return int128 (result); } /** * Calculate x * y rounding down. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function mul (int128 x, int128 y) internal pure returns (int128) { int256 result = int256(x) * y >> 64; require (result >= MIN_64x64 && result <= MAX_64x64); return int128 (result); } /** * Calculate x * y rounding towards zero, where x is signed 64.64 fixed point * number and y is signed 256-bit integer number. Revert on overflow. * * @param x signed 64.64 fixed point number * @param y signed 256-bit integer number * @return signed 256-bit integer number */ function muli (int128 x, int256 y) internal pure returns (int256) { if (x == MIN_64x64) { require (y >= -0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF && y <= 0x1000000000000000000000000000000000000000000000000); return -y << 63; } else { bool negativeResult = false; if (x < 0) { x = -x; negativeResult = true; } if (y < 0) { y = -y; // We rely on overflow behavior here negativeResult = !negativeResult; } uint256 absoluteResult = mulu (x, uint256 (y)); if (negativeResult) { require (absoluteResult <= 0x8000000000000000000000000000000000000000000000000000000000000000); return -int256 (absoluteResult); // We rely on overflow behavior here } else { require (absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); return int256 (absoluteResult); } } } /** * Calculate x * y rounding down, where x is signed 64.64 fixed point number * and y is unsigned 256-bit integer number. Revert on overflow. * * @param x signed 64.64 fixed point number * @param y unsigned 256-bit integer number * @return unsigned 256-bit integer number */ function mulu (int128 x, uint256 y) internal pure returns (uint256) { if (y == 0) return 0; require (x >= 0); uint256 lo = (uint256 (x) * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) >> 64; uint256 hi = uint256 (x) * (y >> 128); require (hi <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); hi <<= 64; require (hi <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - lo); return hi + lo; } /** * Calculate x / y rounding towards zero. Revert on overflow or when y is * zero. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function div (int128 x, int128 y) internal pure returns (int128) { require (y != 0); int256 result = (int256 (x) << 64) / y; require (result >= MIN_64x64 && result <= MAX_64x64); return int128 (result); } /** * Calculate x / y rounding towards zero, where x and y are signed 256-bit * integer numbers. Revert on overflow or when y is zero. * * @param x signed 256-bit integer number * @param y signed 256-bit integer number * @return signed 64.64-bit fixed point number */ function divi (int256 x, int256 y) internal pure returns (int128) { require (y != 0); bool negativeResult = false; if (x < 0) { x = -x; // We rely on overflow behavior here negativeResult = true; } if (y < 0) { y = -y; // We rely on overflow behavior here negativeResult = !negativeResult; } uint128 absoluteResult = divuu (uint256 (x), uint256 (y)); if (negativeResult) { require (absoluteResult <= 0x80000000000000000000000000000000); return -int128 (absoluteResult); // We rely on overflow behavior here } else { require (absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); return int128 (absoluteResult); // We rely on overflow behavior here } } /** * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit * integer numbers. Revert on overflow or when y is zero. * * @param x unsigned 256-bit integer number * @param y unsigned 256-bit integer number * @return signed 64.64-bit fixed point number */ function divu (uint256 x, uint256 y) internal pure returns (int128) { require (y != 0); uint128 result = divuu (x, y); require (result <= uint128 (MAX_64x64)); return int128 (result); } /** * Calculate -x. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function neg (int128 x) internal pure returns (int128) { require (x != MIN_64x64); return -x; } /** * Calculate |x|. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function abs (int128 x) internal pure returns (int128) { require (x != MIN_64x64); return x < 0 ? -x : x; } /** * Calculate 1 / x rounding towards zero. Revert on overflow or when x is * zero. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function inv (int128 x) internal pure returns (int128) { require (x != 0); int256 result = int256 (0x100000000000000000000000000000000) / x; require (result >= MIN_64x64 && result <= MAX_64x64); return int128 (result); } /** * Calculate arithmetics average of x and y, i.e. (x + y) / 2 rounding down. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function avg (int128 x, int128 y) internal pure returns (int128) { return int128 ((int256 (x) + int256 (y)) >> 1); } /** * Calculate geometric average of x and y, i.e. sqrt (x * y) rounding down. * Revert on overflow or in case x * y is negative. * * @param x signed 64.64-bit fixed point number * @param y signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function gavg (int128 x, int128 y) internal pure returns (int128) { int256 m = int256 (x) * int256 (y); require (m >= 0); require (m < 0x4000000000000000000000000000000000000000000000000000000000000000); return int128 (sqrtu (uint256 (m), uint256 (x) + uint256 (y) >> 1)); } /** * Calculate x^y assuming 0^0 is 1, where x is signed 64.64 fixed point number * and y is unsigned 256-bit integer number. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @param y uint256 value * @return signed 64.64-bit fixed point number */ function pow (int128 x, uint256 y) internal pure returns (int128) { uint256 absoluteResult; bool negativeResult = false; if (x >= 0) { absoluteResult = powu (uint256 (x) << 63, y); } else { // We rely on overflow behavior here absoluteResult = powu (uint256 (uint128 (-x)) << 63, y); negativeResult = y & 1 > 0; } absoluteResult >>= 63; if (negativeResult) { require (absoluteResult <= 0x80000000000000000000000000000000); return -int128 (absoluteResult); // We rely on overflow behavior here } else { require (absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); return int128 (absoluteResult); // We rely on overflow behavior here } } /** * Calculate sqrt (x) rounding down. Revert if x < 0. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function sqrt (int128 x) internal pure returns (int128) { require (x >= 0); return int128 (sqrtu (uint256 (x) << 64, 0x10000000000000000)); } /** * Calculate binary logarithm of x. Revert if x <= 0. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function log_2 (int128 x) internal pure returns (int128) { require (x > 0); int256 msb = 0; int256 xc = x; if (xc >= 0x10000000000000000) { xc >>= 64; msb += 64; } if (xc >= 0x100000000) { xc >>= 32; msb += 32; } if (xc >= 0x10000) { xc >>= 16; msb += 16; } if (xc >= 0x100) { xc >>= 8; msb += 8; } if (xc >= 0x10) { xc >>= 4; msb += 4; } if (xc >= 0x4) { xc >>= 2; msb += 2; } if (xc >= 0x2) msb += 1; // No need to shift xc anymore int256 result = msb - 64 << 64; uint256 ux = uint256 (x) << 127 - msb; for (int256 bit = 0x8000000000000000; bit > 0; bit >>= 1) { ux *= ux; uint256 b = ux >> 255; ux >>= 127 + b; result += bit * int256 (b); } return int128 (result); } /** * Calculate natural logarithm of x. Revert if x <= 0. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function ln (int128 x) internal pure returns (int128) { require (x > 0); return int128 ( uint256 (log_2 (x)) * 0xB17217F7D1CF79ABC9E3B39803F2F6AF >> 128); } /** * Calculate binary exponent of x. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function exp_2 (int128 x) internal pure returns (int128) { require (x < 0x400000000000000000); // Overflow if (x < -0x400000000000000000) return 0; // Underflow uint256 result = 0x80000000000000000000000000000000; if (x & 0x8000000000000000 > 0) result = result * 0x16A09E667F3BCC908B2FB1366EA957D3E >> 128; if (x & 0x4000000000000000 > 0) result = result * 0x1306FE0A31B7152DE8D5A46305C85EDEC >> 128; if (x & 0x2000000000000000 > 0) result = result * 0x1172B83C7D517ADCDF7C8C50EB14A791F >> 128; if (x & 0x1000000000000000 > 0) result = result * 0x10B5586CF9890F6298B92B71842A98363 >> 128; if (x & 0x800000000000000 > 0) result = result * 0x1059B0D31585743AE7C548EB68CA417FD >> 128; if (x & 0x400000000000000 > 0) result = result * 0x102C9A3E778060EE6F7CACA4F7A29BDE8 >> 128; if (x & 0x200000000000000 > 0) result = result * 0x10163DA9FB33356D84A66AE336DCDFA3F >> 128; if (x & 0x100000000000000 > 0) result = result * 0x100B1AFA5ABCBED6129AB13EC11DC9543 >> 128; if (x & 0x80000000000000 > 0) result = result * 0x10058C86DA1C09EA1FF19D294CF2F679B >> 128; if (x & 0x40000000000000 > 0) result = result * 0x1002C605E2E8CEC506D21BFC89A23A00F >> 128; if (x & 0x20000000000000 > 0) result = result * 0x100162F3904051FA128BCA9C55C31E5DF >> 128; if (x & 0x10000000000000 > 0) result = result * 0x1000B175EFFDC76BA38E31671CA939725 >> 128; if (x & 0x8000000000000 > 0) result = result * 0x100058BA01FB9F96D6CACD4B180917C3D >> 128; if (x & 0x4000000000000 > 0) result = result * 0x10002C5CC37DA9491D0985C348C68E7B3 >> 128; if (x & 0x2000000000000 > 0) result = result * 0x1000162E525EE054754457D5995292026 >> 128; if (x & 0x1000000000000 > 0) result = result * 0x10000B17255775C040618BF4A4ADE83FC >> 128; if (x & 0x800000000000 > 0) result = result * 0x1000058B91B5BC9AE2EED81E9B7D4CFAB >> 128; if (x & 0x400000000000 > 0) result = result * 0x100002C5C89D5EC6CA4D7C8ACC017B7C9 >> 128; if (x & 0x200000000000 > 0) result = result * 0x10000162E43F4F831060E02D839A9D16D >> 128; if (x & 0x100000000000 > 0) result = result * 0x100000B1721BCFC99D9F890EA06911763 >> 128; if (x & 0x80000000000 > 0) result = result * 0x10000058B90CF1E6D97F9CA14DBCC1628 >> 128; if (x & 0x40000000000 > 0) result = result * 0x1000002C5C863B73F016468F6BAC5CA2B >> 128; if (x & 0x20000000000 > 0) result = result * 0x100000162E430E5A18F6119E3C02282A5 >> 128; if (x & 0x10000000000 > 0) result = result * 0x1000000B1721835514B86E6D96EFD1BFE >> 128; if (x & 0x8000000000 > 0) result = result * 0x100000058B90C0B48C6BE5DF846C5B2EF >> 128; if (x & 0x4000000000 > 0) result = result * 0x10000002C5C8601CC6B9E94213C72737A >> 128; if (x & 0x2000000000 > 0) result = result * 0x1000000162E42FFF037DF38AA2B219F06 >> 128; if (x & 0x1000000000 > 0) result = result * 0x10000000B17217FBA9C739AA5819F44F9 >> 128; if (x & 0x800000000 > 0) result = result * 0x1000000058B90BFCDEE5ACD3C1CEDC823 >> 128; if (x & 0x400000000 > 0) result = result * 0x100000002C5C85FE31F35A6A30DA1BE50 >> 128; if (x & 0x200000000 > 0) result = result * 0x10000000162E42FF0999CE3541B9FFFCF >> 128; if (x & 0x100000000 > 0) result = result * 0x100000000B17217F80F4EF5AADDA45554 >> 128; if (x & 0x80000000 > 0) result = result * 0x10000000058B90BFBF8479BD5A81B51AD >> 128; if (x & 0x40000000 > 0) result = result * 0x1000000002C5C85FDF84BD62AE30A74CC >> 128; if (x & 0x20000000 > 0) result = result * 0x100000000162E42FEFB2FED257559BDAA >> 128; if (x & 0x10000000 > 0) result = result * 0x1000000000B17217F7D5A7716BBA4A9AE >> 128; if (x & 0x8000000 > 0) result = result * 0x100000000058B90BFBE9DDBAC5E109CCE >> 128; if (x & 0x4000000 > 0) result = result * 0x10000000002C5C85FDF4B15DE6F17EB0D >> 128; if (x & 0x2000000 > 0) result = result * 0x1000000000162E42FEFA494F1478FDE05 >> 128; if (x & 0x1000000 > 0) result = result * 0x10000000000B17217F7D20CF927C8E94C >> 128; if (x & 0x800000 > 0) result = result * 0x1000000000058B90BFBE8F71CB4E4B33D >> 128; if (x & 0x400000 > 0) result = result * 0x100000000002C5C85FDF477B662B26945 >> 128; if (x & 0x200000 > 0) result = result * 0x10000000000162E42FEFA3AE53369388C >> 128; if (x & 0x100000 > 0) result = result * 0x100000000000B17217F7D1D351A389D40 >> 128; if (x & 0x80000 > 0) result = result * 0x10000000000058B90BFBE8E8B2D3D4EDE >> 128; if (x & 0x40000 > 0) result = result * 0x1000000000002C5C85FDF4741BEA6E77E >> 128; if (x & 0x20000 > 0) result = result * 0x100000000000162E42FEFA39FE95583C2 >> 128; if (x & 0x10000 > 0) result = result * 0x1000000000000B17217F7D1CFB72B45E1 >> 128; if (x & 0x8000 > 0) result = result * 0x100000000000058B90BFBE8E7CC35C3F0 >> 128; if (x & 0x4000 > 0) result = result * 0x10000000000002C5C85FDF473E242EA38 >> 128; if (x & 0x2000 > 0) result = result * 0x1000000000000162E42FEFA39F02B772C >> 128; if (x & 0x1000 > 0) result = result * 0x10000000000000B17217F7D1CF7D83C1A >> 128; if (x & 0x800 > 0) result = result * 0x1000000000000058B90BFBE8E7BDCBE2E >> 128; if (x & 0x400 > 0) result = result * 0x100000000000002C5C85FDF473DEA871F >> 128; if (x & 0x200 > 0) result = result * 0x10000000000000162E42FEFA39EF44D91 >> 128; if (x & 0x100 > 0) result = result * 0x100000000000000B17217F7D1CF79E949 >> 128; if (x & 0x80 > 0) result = result * 0x10000000000000058B90BFBE8E7BCE544 >> 128; if (x & 0x40 > 0) result = result * 0x1000000000000002C5C85FDF473DE6ECA >> 128; if (x & 0x20 > 0) result = result * 0x100000000000000162E42FEFA39EF366F >> 128; if (x & 0x10 > 0) result = result * 0x1000000000000000B17217F7D1CF79AFA >> 128; if (x & 0x8 > 0) result = result * 0x100000000000000058B90BFBE8E7BCD6D >> 128; if (x & 0x4 > 0) result = result * 0x10000000000000002C5C85FDF473DE6B2 >> 128; if (x & 0x2 > 0) result = result * 0x1000000000000000162E42FEFA39EF358 >> 128; if (x & 0x1 > 0) result = result * 0x10000000000000000B17217F7D1CF79AB >> 128; result >>= 63 - (x >> 64); require (result <= uint256 (MAX_64x64)); return int128 (result); } /** * Calculate natural exponent of x. Revert on overflow. * * @param x signed 64.64-bit fixed point number * @return signed 64.64-bit fixed point number */ function exp (int128 x) internal pure returns (int128) { require (x < 0x400000000000000000); // Overflow if (x < -0x400000000000000000) return 0; // Underflow return exp_2 ( int128 (int256 (x) * 0x171547652B82FE1777D0FFDA0D23A7D12 >> 128)); } /** * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit * integer numbers. Revert on overflow or when y is zero. * * @param x unsigned 256-bit integer number * @param y unsigned 256-bit integer number * @return unsigned 64.64-bit fixed point number */ function divuu (uint256 x, uint256 y) private pure returns (uint128) { require (y != 0); uint256 result; if (x <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) result = (x << 64) / y; else { uint256 msb = 192; uint256 xc = x >> 192; if (xc >= 0x100000000) { xc >>= 32; msb += 32; } if (xc >= 0x10000) { xc >>= 16; msb += 16; } if (xc >= 0x100) { xc >>= 8; msb += 8; } if (xc >= 0x10) { xc >>= 4; msb += 4; } if (xc >= 0x4) { xc >>= 2; msb += 2; } if (xc >= 0x2) msb += 1; // No need to shift xc anymore result = (x << 255 - msb) / ((y - 1 >> msb - 191) + 1); require (result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); uint256 hi = result * (y >> 128); uint256 lo = result * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); uint256 xh = x >> 192; uint256 xl = x << 64; if (xl < lo) xh -= 1; xl -= lo; // We rely on overflow behavior here lo = hi << 128; if (xl < lo) xh -= 1; xl -= lo; // We rely on overflow behavior here assert (xh == hi >> 128); result += xl / y; } require (result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); return uint128 (result); } /** * Calculate x^y assuming 0^0 is 1, where x is unsigned 129.127 fixed point * number and y is unsigned 256-bit integer number. Revert on overflow. * * @param x unsigned 129.127-bit fixed point number * @param y uint256 value * @return unsigned 129.127-bit fixed point number */ function powu (uint256 x, uint256 y) private pure returns (uint256) { if (y == 0) return 0x80000000000000000000000000000000; else if (x == 0) return 0; else { int256 msb = 0; uint256 xc = x; if (xc >= 0x100000000000000000000000000000000) { xc >>= 128; msb += 128; } if (xc >= 0x10000000000000000) { xc >>= 64; msb += 64; } if (xc >= 0x100000000) { xc >>= 32; msb += 32; } if (xc >= 0x10000) { xc >>= 16; msb += 16; } if (xc >= 0x100) { xc >>= 8; msb += 8; } if (xc >= 0x10) { xc >>= 4; msb += 4; } if (xc >= 0x4) { xc >>= 2; msb += 2; } if (xc >= 0x2) msb += 1; // No need to shift xc anymore int256 xe = msb - 127; if (xe > 0) x >>= xe; else x <<= -xe; uint256 result = 0x80000000000000000000000000000000; int256 re = 0; while (y > 0) { if (y & 1 > 0) { result = result * x; y -= 1; re += xe; if (result >= 0x8000000000000000000000000000000000000000000000000000000000000000) { result >>= 128; re += 1; } else result >>= 127; if (re < -127) return 0; // Underflow require (re < 128); // Overflow } else { x = x * x; y >>= 1; xe <<= 1; if (x >= 0x8000000000000000000000000000000000000000000000000000000000000000) { x >>= 128; xe += 1; } else x >>= 127; if (xe < -127) return 0; // Underflow require (xe < 128); // Overflow } } if (re > 0) result <<= re; else if (re < 0) result >>= -re; return result; } } /** * Calculate sqrt (x) rounding down, where x is unsigned 256-bit integer * number. * * @param x unsigned 256-bit integer number * @return unsigned 128-bit integer number */ function sqrtu (uint256 x, uint256 r) private pure returns (uint128) { if (x == 0) return 0; else { require (r > 0); while (true) { uint256 rr = x / r; if (r == rr || r + 1 == rr) return uint128 (r); else if (r == rr + 1) return uint128 (rr); r = r + rr + 1 >> 1; } } } } ////// src/assimilators/aaveResources/ILendingPool.sol /* pragma solidity ^0.5.0; */ interface ILendingPool { function deposit(address _reserve, uint256 _amount, uint16 _referralCode) external payable; function redeemUnderlying(address _reserve, address payable _user, uint256 _amount, uint256 _aTokenBalanceAfterRedeem) external; function borrow(address _reserve, uint256 _amount, uint256 _interestRateMode, uint16 _referralCode) external; function repay(address _reserve, uint256 _amount, address payable _onBehalfOf) external payable; function swapBorrowRateMode(address _reserve) external; function rebalanceStableBorrowRate(address _reserve, address _user) external; function setUserUseReserveAsCollateral(address _reserve, bool _useAsCollateral) external; function liquidationCall(address _collateral, address _reserve, address _user, uint256 _purchaseAmount, bool _receiveAToken) external payable; function flashLoan(address _receiver, address _reserve, uint256 _amount, bytes calldata _params) external; function getReserveConfigurationData(address _reserve) external view returns ( uint256 ltv, uint256 liquidationThreshold, uint256 liquidationBonus, address interestRateStrategyAddress, bool usageAsCollateralEnabled, bool borrowingEnabled, bool stableBorrowRateEnabled, bool isActive ); function getReserveData(address _reserve) external view returns ( uint256 totalLiquidity, uint256 availableLiquidity, uint256 totalBorrowsStable, uint256 totalBorrowsVariable, uint256 liquidityRate, uint256 variableBorrowRate, uint256 stableBorrowRate, uint256 averageStableBorrowRate, uint256 utilizationRate, uint256 liquidityIndex, uint256 variableBorrowIndex, address aTokenAddress, uint40 lastUpdateTimestamp ); function getUserAccountData(address _user) external view returns ( uint256 totalLiquidityETH, uint256 totalCollateralETH, uint256 totalBorrowsETH, uint256 totalFeesETH, uint256 availableBorrowsETH, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor ); function getUserReserveData(address _reserve, address _user) external view returns ( uint256 currentATokenBalance, uint256 currentBorrowBalance, uint256 principalBorrowBalance, uint256 borrowRateMode, uint256 borrowRate, uint256 liquidityRate, uint256 originationFee, uint256 variableBorrowIndex, uint256 lastUpdateTimestamp, bool usageAsCollateralEnabled ); function getReserves() external view returns (address[] memory); } ////// src/assimilators/aaveResources/ILendingPoolAddressesProvider.sol /* pragma solidity ^0.5.0; */ /** @title ILendingPoolAddressesProvider interface @notice provides the interface to fetch the LendingPoolCore address */ interface ILendingPoolAddressesProvider { function getLendingPool() external view returns (address); function setLendingPoolImpl(address _pool) external; function getLendingPoolCore() external view returns (address payable); function setLendingPoolCoreImpl(address _lendingPoolCore) external; function getLendingPoolConfigurator() external view returns (address); function setLendingPoolConfiguratorImpl(address _configurator) external; function getLendingPoolDataProvider() external view returns (address); function setLendingPoolDataProviderImpl(address _provider) external; function getLendingPoolParametersProvider() external view returns (address); function setLendingPoolParametersProviderImpl(address _parametersProvider) external; function getTokenDistributor() external view returns (address); function setTokenDistributor(address _tokenDistributor) external; function getFeeProvider() external view returns (address); function setFeeProviderImpl(address _feeProvider) external; function getLendingPoolLiquidationManager() external view returns (address); function setLendingPoolLiquidationManager(address _manager) external; function getLendingPoolManager() external view returns (address); function setLendingPoolManager(address _lendingPoolManager) external; function getPriceOracle() external view returns (address); function setPriceOracle(address _priceOracle) external; function getLendingRateOracle() external view returns (address); function setLendingRateOracle(address _lendingRateOracle) external; } ////// src/interfaces/IAToken.sol /* pragma solidity ^0.5.0; */ interface IAToken { function transfer(address recipient, uint256 amount) external returns (bool); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function redirectInterestStream(address _to) external; function redirectInterestStreamOf(address _from, address _to) external; function allowInterestRedirectionTo(address _to) external; function redeem(uint256 _amount) external; function balanceOf(address _user) external view returns(uint256); function principalBalanceOf(address _user) external view returns(uint256); function totalSupply() external view returns(uint256); function isTransferAllowed(address _user, uint256 _amount) external view returns (bool); function getUserIndex(address _user) external view returns(uint256); function getInterestRedirectionAddress(address _user) external view returns(address); function getRedirectedBalance(address _user) external view returns(uint256); function decimals () external view returns (uint256); function deposit(uint256 _amount) external; } ////// src/interfaces/IAssimilator.sol // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. /* pragma solidity ^0.5.0; */ interface IAssimilator { function intakeRaw (uint256 amount) external returns (int128); function intakeRawAndGetBalance (uint256 amount) external returns (int128, int128); function intakeNumeraire (int128 amount) external returns (uint256); function outputRaw (address dst, uint256 amount) external returns (int128); function outputRawAndGetBalance (address dst, uint256 amount) external returns (int128, int128); function outputNumeraire (address dst, int128 amount) external returns (uint256); function viewRawAmount (int128) external view returns (uint256); function viewNumeraireAmount (uint256) external view returns (int128); function viewNumeraireBalance (address) external view returns (int128); function viewNumeraireAmountAndBalance (address, uint256) external view returns (int128, int128); } ////// src/interfaces/IERC20.sol /* pragma solidity ^0.5.0; */ /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ 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); } ////// src/assimilators/mainnet/usdcReserves/mainnetAUsdcToUsdcAssimilator.sol // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. /* pragma solidity ^0.5.0; */ /* import "abdk-libraries-solidity/ABDKMath64x64.sol"; */ /* import "../../aaveResources/ILendingPoolAddressesProvider.sol"; */ /* import "../../aaveResources/ILendingPool.sol"; */ /* import "../../../interfaces/IAToken.sol"; */ /* import "../../../interfaces/IERC20.sol"; */ /* import "../../../interfaces/IAssimilator.sol"; */ contract MainnetAUsdcToUsdcAssimilator is IAssimilator { using ABDKMath64x64 for int128; using ABDKMath64x64 for uint256; IERC20 constant usdc = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); ILendingPoolAddressesProvider constant lpProvider = ILendingPoolAddressesProvider(0x24a42fD28C976A61Df5D00D0599C34c4f90748c8); constructor () public { } function getAUsdc () public view returns (IAToken) { ILendingPool pool = ILendingPool(lpProvider.getLendingPool()); (,,,,,,,,,,,address aTokenAddress,) = pool.getReserveData(address(usdc)); return IAToken(aTokenAddress); } // intakes raw amount of AUsdc and returns the corresponding raw amount function intakeRawAndGetBalance (uint256 _amount) public returns (int128 amount_, int128 balance_) { IAToken _ausdc = getAUsdc(); bool _success = _ausdc.transferFrom(msg.sender, address(this), _amount); require(_success, "Shell/aUSDC-transfer-from-failed"); _ausdc.redeem(_amount); uint256 _balance = usdc.balanceOf(address(this)); amount_ = _amount.divu(1e6); balance_ = _balance.divu(1e6); } // intakes raw amount of AUsdc and returns the corresponding raw amount function intakeRaw (uint256 _amount) public returns (int128 amount_) { IAToken _ausdc = getAUsdc(); bool _success = _ausdc.transferFrom(msg.sender, address(this), _amount); require(_success, "Shell/aUSDC-transfer-from-failed"); _ausdc.redeem(_amount); amount_ = _amount.divu(1e6); } // intakes a numeraire amount of AUsdc and returns the corresponding raw amount function intakeNumeraire (int128 _amount) public returns (uint256 amount_) { amount_ = _amount.mulu(1e6); IAToken _ausdc = getAUsdc(); bool _success = _ausdc.transferFrom(msg.sender, address(this), amount_); require(_success, "Shell/aUSDC-transfer-from-failed"); _ausdc.redeem(amount_); } // outputs a raw amount of AUsdc and returns the corresponding numeraire amount function outputRawAndGetBalance (address _dst, uint256 _amount) public returns (int128 amount_, int128 balance_) { ILendingPool pool = ILendingPool(lpProvider.getLendingPool()); pool.deposit(address(usdc), _amount, 0); IAToken _ausdc = getAUsdc(); bool _success = _ausdc.transfer(_dst, _amount); require(_success, "Shell/aUSDC-transfer-failed"); uint256 _balance = usdc.balanceOf(address(this)); amount_ = _amount.divu(1e6); balance_ = _balance.divu(1e6); } // outputs a raw amount of AUsdc and returns the corresponding numeraire amount function outputRaw (address _dst, uint256 _amount) public returns (int128 amount_) { IAToken _ausdc = getAUsdc(); ILendingPool pool = ILendingPool(lpProvider.getLendingPool()); pool.deposit(address(usdc), _amount, 0); bool _success = _ausdc.transfer(_dst, _amount); require(_success, "Shell/aUSDC-transfer-failed"); amount_ = _amount.divu(1e6); } // outputs a numeraire amount of AUsdc and returns the corresponding numeraire amount function outputNumeraire (address _dst, int128 _amount) public returns (uint256 amount_) { amount_ = _amount.mulu(1e6); ILendingPool pool = ILendingPool(lpProvider.getLendingPool()); pool.deposit(address(usdc), amount_, 0); IAToken _ausdc = getAUsdc(); bool _success = _ausdc.transfer(_dst, amount_); require(_success, "Shell/aUSDC-transfer-failed"); } // takes a numeraire amount and returns the raw amount function viewRawAmount (int128 _amount) public view returns (uint256 amount_) { amount_ = _amount.mulu(1e6); } // takes a raw amount and returns the numeraire amount function viewNumeraireAmount (uint256 _amount) public view returns (int128 amount_) { amount_ = _amount.divu(1e6); } // views the numeraire value of the current balance of the reserve, in this case AUsdc function viewNumeraireBalance (address _addr) public view returns (int128 amount_) { uint256 _balance = usdc.balanceOf(_addr); amount_ = _balance.divu(1e6); } // takes a raw amount and returns the numeraire amount function viewNumeraireAmountAndBalance (address _addr, uint256 _amount) public view returns (int128 amount_, int128 balance_) { amount_ = _amount.divu(1e6); uint256 _balance = usdc.balanceOf(_addr); balance_ = _balance.divu(1e6); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[],"name":"getAUsdc","outputs":[{"internalType":"contract IAToken","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"int128","name":"_amount","type":"int128"}],"name":"intakeNumeraire","outputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"intakeRaw","outputs":[{"internalType":"int128","name":"amount_","type":"int128"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"intakeRawAndGetBalance","outputs":[{"internalType":"int128","name":"amount_","type":"int128"},{"internalType":"int128","name":"balance_","type":"int128"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_dst","type":"address"},{"internalType":"int128","name":"_amount","type":"int128"}],"name":"outputNumeraire","outputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_dst","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"outputRaw","outputs":[{"internalType":"int128","name":"amount_","type":"int128"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_dst","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"outputRawAndGetBalance","outputs":[{"internalType":"int128","name":"amount_","type":"int128"},{"internalType":"int128","name":"balance_","type":"int128"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"viewNumeraireAmount","outputs":[{"internalType":"int128","name":"amount_","type":"int128"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"viewNumeraireAmountAndBalance","outputs":[{"internalType":"int128","name":"amount_","type":"int128"},{"internalType":"int128","name":"balance_","type":"int128"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"viewNumeraireBalance","outputs":[{"internalType":"int128","name":"amount_","type":"int128"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"int128","name":"_amount","type":"int128"}],"name":"viewRawAmount","outputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611bf3806100206000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80637f328ecc116100715780637f328ecc14610287578063ac969a73146102dc578063f09a3fc31461033a578063f0af96ce146103a2578063f5e6c0ca146103ec578063fa00102a14610434576100a9565b80630271c3c8146100ae5780631e9b2cba146100f3578063523bf257146101685780636b677a8f146101dd5780636fc3905214610222575b600080fd5b6100dd600480360360208110156100c457600080fd5b810190808035600f0b906020019092919050505061047c565b6040518082815260200191505060405180910390f35b61013f6004803603604081101561010957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610684565b6040518083600f0b600f0b815260200182600f0b600f0b81526020019250505060405180910390f35b6101b46004803603604081101561017e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061078f565b6040518083600f0b600f0b815260200182600f0b600f0b81526020019250505060405180910390f35b61020c600480360360208110156101f357600080fd5b810190808035600f0b9060200190929190505050610b3b565b6040518082815260200191505060405180910390f35b6102716004803603604081101561023857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600f0b9060200190929190505050610b5d565b6040518082815260200191505060405180910390f35b6102b36004803603602081101561029d57600080fd5b8101908080359060200190929190505050610e21565b6040518083600f0b600f0b815260200182600f0b600f0b81526020019250505060405180910390f35b61031e600480360360208110156102f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611110565b6040518082600f0b600f0b815260200191505060405180910390f35b6103866004803603604081101561035057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111ff565b6040518082600f0b600f0b815260200191505060405180910390f35b6103aa6114bf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104186004803603602081101561040257600080fd5b81019080803590602001909291905050506116b7565b6040518082600f0b600f0b815260200191505060405180910390f35b6104606004803603602081101561044a57600080fd5b81019080803590602001909291905050506116d6565b6040518082600f0b600f0b815260200191505060405180910390f35b6000610497620f424083600f0b6118da90919063ffffffff16565b905060006104a36114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561056257600080fd5b505af1158015610576573d6000803e3d6000fd5b505050506040513d602081101561058c57600080fd5b8101908080519060200190929190505050905080610612576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5368656c6c2f61555344432d7472616e736665722d66726f6d2d6661696c656481525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663db006a75846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561066557600080fd5b505af1158015610679573d6000803e3d6000fd5b505050505050919050565b60008061069d620f42408461199590919063ffffffff16565b9150600073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561073257600080fd5b505afa158015610746573d6000803e3d6000fd5b505050506040513d602081101561075c57600080fd5b81019080805190602001909291905050509050610785620f42408261199590919063ffffffff16565b9150509250929050565b60008060007324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107ee57600080fd5b505afa158015610802573d6000803e3d6000fd5b505050506040513d602081101561081857600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663d2d0e06673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488660006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018261ffff1681526020019350505050600060405180830381600087803b1580156108d357600080fd5b505af11580156108e7573d6000803e3d6000fd5b5050505060006108f56114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88886040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561098057600080fd5b505af1158015610994573d6000803e3d6000fd5b505050506040513d60208110156109aa57600080fd5b8101908080519060200190929190505050905080610a30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f5368656c6c2f61555344432d7472616e736665722d6661696c6564000000000081525060200191505060405180910390fd5b600073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ac357600080fd5b505afa158015610ad7573d6000803e3d6000fd5b505050506040513d6020811015610aed57600080fd5b81019080805190602001909291905050509050610b16620f42408861199590919063ffffffff16565b9550610b2e620f42408261199590919063ffffffff16565b9450505050509250929050565b6000610b56620f424083600f0b6118da90919063ffffffff16565b9050919050565b6000610b78620f424083600f0b6118da90919063ffffffff16565b905060007324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610bd657600080fd5b505afa158015610bea573d6000803e3d6000fd5b505050506040513d6020811015610c0057600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663d2d0e06673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488460006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018261ffff1681526020019350505050600060405180830381600087803b158015610cbb57600080fd5b505af1158015610ccf573d6000803e3d6000fd5b505050506000610cdd6114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610d6857600080fd5b505af1158015610d7c573d6000803e3d6000fd5b505050506040513d6020811015610d9257600080fd5b8101908080519060200190929190505050905080610e18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f5368656c6c2f61555344432d7472616e736665722d6661696c6564000000000081525060200191505060405180910390fd5b50505092915050565b6000806000610e2e6114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610eed57600080fd5b505af1158015610f01573d6000803e3d6000fd5b505050506040513d6020811015610f1757600080fd5b8101908080519060200190929190505050905080610f9d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5368656c6c2f61555344432d7472616e736665722d66726f6d2d6661696c656481525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663db006a75866040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ff057600080fd5b505af1158015611004573d6000803e3d6000fd5b50505050600073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561109b57600080fd5b505afa1580156110af573d6000803e3d6000fd5b505050506040513d60208110156110c557600080fd5b810190808051906020019092919050505090506110ee620f42408761199590919063ffffffff16565b9450611106620f42408261199590919063ffffffff16565b9350505050915091565b60008073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156111a457600080fd5b505afa1580156111b8573d6000803e3d6000fd5b505050506040513d60208110156111ce57600080fd5b810190808051906020019092919050505090506111f7620f42408261199590919063ffffffff16565b915050919050565b60008061120a6114bf565b905060007324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561126857600080fd5b505afa15801561127c573d6000803e3d6000fd5b505050506040513d602081101561129257600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663d2d0e06673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488660006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018261ffff1681526020019350505050600060405180830381600087803b15801561134d57600080fd5b505af1158015611361573d6000803e3d6000fd5b5050505060008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87876040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156113ee57600080fd5b505af1158015611402573d6000803e3d6000fd5b505050506040513d602081101561141857600080fd5b810190808051906020019092919050505090508061149e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f5368656c6c2f61555344432d7472616e736665722d6661696c6564000000000081525060200191505060405180910390fd5b6114b4620f42408661199590919063ffffffff16565b935050505092915050565b6000807324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561151c57600080fd5b505afa158015611530573d6000803e3d6000fd5b505050506040513d602081101561154657600080fd5b8101908080519060200190929190505050905060008173ffffffffffffffffffffffffffffffffffffffff166335ea6a7573a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506101a06040518083038186803b1580156115ed57600080fd5b505afa158015611601573d6000803e3d6000fd5b505050506040513d6101a081101561161857600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190505050509b505050505050505050505050809250505090565b60006116cf620f42408361199590919063ffffffff16565b9050919050565b6000806116e16114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156117a057600080fd5b505af11580156117b4573d6000803e3d6000fd5b505050506040513d60208110156117ca57600080fd5b8101908080519060200190929190505050905080611850576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5368656c6c2f61555344432d7472616e736665722d66726f6d2d6661696c656481525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663db006a75856040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156118a357600080fd5b505af11580156118b7573d6000803e3d6000fd5b505050506118d1620f42408561199590919063ffffffff16565b92505050919050565b6000808214156118ed576000905061198f565b600083600f0b12156118fe57600080fd5b600060406fffffffffffffffffffffffffffffffff841685600f0b02901c90506000608084901c85600f0b02905077ffffffffffffffffffffffffffffffffffffffffffffffff81111561195157600080fd5b604081901b9050817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0381111561198757600080fd5b818101925050505b92915050565b6000808214156119a457600080fd5b60006119b084846119fd565b90506f7fffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1611156119f357600080fd5b8091505092915050565b600080821415611a0c57600080fd5b600077ffffffffffffffffffffffffffffffffffffffffffffffff8411611a425782604085901b81611a3a57fe5b049050611b97565b600060c09050600060c086901c90506401000000008110611a6b57602081901c90506020820191505b620100008110611a8357601081901c90506010820191505b6101008110611a9a57600881901c90506008820191505b60108110611ab057600481901c90506004820191505b60048110611ac657600281901c90506002820191505b60028110611ad5576001820191505b600160bf830360018703901c018260ff0387901b81611af057fe5b0492506fffffffffffffffffffffffffffffffff831115611b1057600080fd5b6000608086901c8402905060006fffffffffffffffffffffffffffffffff871685029050600060c089901c9050600060408a901b905082811015611b55576001820391505b8281039050608084901b925082811015611b70576001820391505b8281039050608084901c8214611b8257fe5b888181611b8b57fe5b04870196505050505050505b6fffffffffffffffffffffffffffffffff811115611bb457600080fd5b809150509291505056fea265627a7a72315820165f15ded77b12c95a2e745e9a11bac285ca7443afbccc30c1ab2030e5a2d79264736f6c634300050f0032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80637f328ecc116100715780637f328ecc14610287578063ac969a73146102dc578063f09a3fc31461033a578063f0af96ce146103a2578063f5e6c0ca146103ec578063fa00102a14610434576100a9565b80630271c3c8146100ae5780631e9b2cba146100f3578063523bf257146101685780636b677a8f146101dd5780636fc3905214610222575b600080fd5b6100dd600480360360208110156100c457600080fd5b810190808035600f0b906020019092919050505061047c565b6040518082815260200191505060405180910390f35b61013f6004803603604081101561010957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610684565b6040518083600f0b600f0b815260200182600f0b600f0b81526020019250505060405180910390f35b6101b46004803603604081101561017e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061078f565b6040518083600f0b600f0b815260200182600f0b600f0b81526020019250505060405180910390f35b61020c600480360360208110156101f357600080fd5b810190808035600f0b9060200190929190505050610b3b565b6040518082815260200191505060405180910390f35b6102716004803603604081101561023857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600f0b9060200190929190505050610b5d565b6040518082815260200191505060405180910390f35b6102b36004803603602081101561029d57600080fd5b8101908080359060200190929190505050610e21565b6040518083600f0b600f0b815260200182600f0b600f0b81526020019250505060405180910390f35b61031e600480360360208110156102f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611110565b6040518082600f0b600f0b815260200191505060405180910390f35b6103866004803603604081101561035057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111ff565b6040518082600f0b600f0b815260200191505060405180910390f35b6103aa6114bf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104186004803603602081101561040257600080fd5b81019080803590602001909291905050506116b7565b6040518082600f0b600f0b815260200191505060405180910390f35b6104606004803603602081101561044a57600080fd5b81019080803590602001909291905050506116d6565b6040518082600f0b600f0b815260200191505060405180910390f35b6000610497620f424083600f0b6118da90919063ffffffff16565b905060006104a36114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561056257600080fd5b505af1158015610576573d6000803e3d6000fd5b505050506040513d602081101561058c57600080fd5b8101908080519060200190929190505050905080610612576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5368656c6c2f61555344432d7472616e736665722d66726f6d2d6661696c656481525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663db006a75846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561066557600080fd5b505af1158015610679573d6000803e3d6000fd5b505050505050919050565b60008061069d620f42408461199590919063ffffffff16565b9150600073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561073257600080fd5b505afa158015610746573d6000803e3d6000fd5b505050506040513d602081101561075c57600080fd5b81019080805190602001909291905050509050610785620f42408261199590919063ffffffff16565b9150509250929050565b60008060007324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107ee57600080fd5b505afa158015610802573d6000803e3d6000fd5b505050506040513d602081101561081857600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663d2d0e06673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488660006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018261ffff1681526020019350505050600060405180830381600087803b1580156108d357600080fd5b505af11580156108e7573d6000803e3d6000fd5b5050505060006108f56114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb88886040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561098057600080fd5b505af1158015610994573d6000803e3d6000fd5b505050506040513d60208110156109aa57600080fd5b8101908080519060200190929190505050905080610a30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f5368656c6c2f61555344432d7472616e736665722d6661696c6564000000000081525060200191505060405180910390fd5b600073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ac357600080fd5b505afa158015610ad7573d6000803e3d6000fd5b505050506040513d6020811015610aed57600080fd5b81019080805190602001909291905050509050610b16620f42408861199590919063ffffffff16565b9550610b2e620f42408261199590919063ffffffff16565b9450505050509250929050565b6000610b56620f424083600f0b6118da90919063ffffffff16565b9050919050565b6000610b78620f424083600f0b6118da90919063ffffffff16565b905060007324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610bd657600080fd5b505afa158015610bea573d6000803e3d6000fd5b505050506040513d6020811015610c0057600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663d2d0e06673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488460006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018261ffff1681526020019350505050600060405180830381600087803b158015610cbb57600080fd5b505af1158015610ccf573d6000803e3d6000fd5b505050506000610cdd6114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610d6857600080fd5b505af1158015610d7c573d6000803e3d6000fd5b505050506040513d6020811015610d9257600080fd5b8101908080519060200190929190505050905080610e18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f5368656c6c2f61555344432d7472616e736665722d6661696c6564000000000081525060200191505060405180910390fd5b50505092915050565b6000806000610e2e6114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610eed57600080fd5b505af1158015610f01573d6000803e3d6000fd5b505050506040513d6020811015610f1757600080fd5b8101908080519060200190929190505050905080610f9d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5368656c6c2f61555344432d7472616e736665722d66726f6d2d6661696c656481525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663db006a75866040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610ff057600080fd5b505af1158015611004573d6000803e3d6000fd5b50505050600073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561109b57600080fd5b505afa1580156110af573d6000803e3d6000fd5b505050506040513d60208110156110c557600080fd5b810190808051906020019092919050505090506110ee620f42408761199590919063ffffffff16565b9450611106620f42408261199590919063ffffffff16565b9350505050915091565b60008073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4873ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156111a457600080fd5b505afa1580156111b8573d6000803e3d6000fd5b505050506040513d60208110156111ce57600080fd5b810190808051906020019092919050505090506111f7620f42408261199590919063ffffffff16565b915050919050565b60008061120a6114bf565b905060007324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561126857600080fd5b505afa15801561127c573d6000803e3d6000fd5b505050506040513d602081101561129257600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663d2d0e06673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488660006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018261ffff1681526020019350505050600060405180830381600087803b15801561134d57600080fd5b505af1158015611361573d6000803e3d6000fd5b5050505060008273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87876040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156113ee57600080fd5b505af1158015611402573d6000803e3d6000fd5b505050506040513d602081101561141857600080fd5b810190808051906020019092919050505090508061149e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f5368656c6c2f61555344432d7472616e736665722d6661696c6564000000000081525060200191505060405180910390fd5b6114b4620f42408661199590919063ffffffff16565b935050505092915050565b6000807324a42fd28c976a61df5d00d0599c34c4f90748c873ffffffffffffffffffffffffffffffffffffffff16630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561151c57600080fd5b505afa158015611530573d6000803e3d6000fd5b505050506040513d602081101561154657600080fd5b8101908080519060200190929190505050905060008173ffffffffffffffffffffffffffffffffffffffff166335ea6a7573a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506101a06040518083038186803b1580156115ed57600080fd5b505afa158015611601573d6000803e3d6000fd5b505050506040513d6101a081101561161857600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190505050509b505050505050505050505050809250505090565b60006116cf620f42408361199590919063ffffffff16565b9050919050565b6000806116e16114bf565b905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156117a057600080fd5b505af11580156117b4573d6000803e3d6000fd5b505050506040513d60208110156117ca57600080fd5b8101908080519060200190929190505050905080611850576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5368656c6c2f61555344432d7472616e736665722d66726f6d2d6661696c656481525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663db006a75856040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156118a357600080fd5b505af11580156118b7573d6000803e3d6000fd5b505050506118d1620f42408561199590919063ffffffff16565b92505050919050565b6000808214156118ed576000905061198f565b600083600f0b12156118fe57600080fd5b600060406fffffffffffffffffffffffffffffffff841685600f0b02901c90506000608084901c85600f0b02905077ffffffffffffffffffffffffffffffffffffffffffffffff81111561195157600080fd5b604081901b9050817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0381111561198757600080fd5b818101925050505b92915050565b6000808214156119a457600080fd5b60006119b084846119fd565b90506f7fffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1611156119f357600080fd5b8091505092915050565b600080821415611a0c57600080fd5b600077ffffffffffffffffffffffffffffffffffffffffffffffff8411611a425782604085901b81611a3a57fe5b049050611b97565b600060c09050600060c086901c90506401000000008110611a6b57602081901c90506020820191505b620100008110611a8357601081901c90506010820191505b6101008110611a9a57600881901c90506008820191505b60108110611ab057600481901c90506004820191505b60048110611ac657600281901c90506002820191505b60028110611ad5576001820191505b600160bf830360018703901c018260ff0387901b81611af057fe5b0492506fffffffffffffffffffffffffffffffff831115611b1057600080fd5b6000608086901c8402905060006fffffffffffffffffffffffffffffffff871685029050600060c089901c9050600060408a901b905082811015611b55576001820391505b8281039050608084901b925082811015611b70576001820391505b8281039050608084901c8214611b8257fe5b888181611b8b57fe5b04870196505050505050505b6fffffffffffffffffffffffffffffffff811115611bb457600080fd5b809150509291505056fea265627a7a72315820165f15ded77b12c95a2e745e9a11bac285ca7443afbccc30c1ab2030e5a2d79264736f6c634300050f0032
Deployed Bytecode Sourcemap
37006:4792:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37006:4792:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38736:350;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38736:350:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41520:271;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41520:271:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39179:552;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39179:552:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40835:128;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;40835:128:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;40342:425;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;40342:425:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37737:477;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37737:477:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41265:187;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41265:187:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;39824:419;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39824:419:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;37394:258;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;41031:134;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41031:134:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;38299:344;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38299:344:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;38736:350;38794:15;38834:17;38847:3;38834:7;:12;;;;:17;;;;:::i;:::-;38824:27;;38864:14;38881:10;:8;:10::i;:::-;38864:27;;38904:13;38920:6;:19;;;38940:10;38960:4;38967:7;38920:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38920:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38920:55:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38920:55:0;;;;;;;;;;;;;;;;38904:71;;38996:8;38988:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39054:6;:13;;;39068:7;39054:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39054:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39054:22:0;;;;38736:350;;;;;:::o;41520:271::-;41613:14;41629:15;41669:17;41682:3;41669:7;:12;;:17;;;;:::i;:::-;41659:27;;41699:16;37177:42;41718:14;;;41733:5;41718:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41718:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41718:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41718:21:0;;;;;;;;;;;;;;;;41699:40;;41763:18;41777:3;41763:8;:13;;:18;;;;:::i;:::-;41752:29;;41520:271;;;;;;:::o;39179:552::-;39259:14;39275:15;39305:17;37309:42;39338:25;;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39338:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39338:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39338:27:0;;;;;;;;;;;;;;;;39305:61;;39379:4;:12;;;37177:42;39407:7;39416:1;39379:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39379:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39379:39:0;;;;39431:14;39448:10;:8;:10::i;:::-;39431:27;;39471:13;39487:6;:15;;;39503:4;39509:7;39487:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39487:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39487:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39487:30:0;;;;;;;;;;;;;;;;39471:46;;39538:8;39530:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39591:16;37177:42;39610:14;;;39633:4;39610:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39610:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39610:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39610:29:0;;;;;;;;;;;;;;;;39591:48;;39662:17;39675:3;39662:7;:12;;:17;;;;:::i;:::-;39652:27;;39703:18;39717:3;39703:8;:13;;:18;;;;:::i;:::-;39692:29;;39179:552;;;;;;;;;:::o;40835:128::-;40896:15;40936:17;40949:3;40936:7;:12;;;;:17;;;;:::i;:::-;40926:27;;40835:128;;;:::o;40342:425::-;40414:15;40454:17;40467:3;40454:7;:12;;;;:17;;;;:::i;:::-;40444:27;;40484:17;37309:42;40517:25;;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40517:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40517:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;40517:27:0;;;;;;;;;;;;;;;;40484:61;;40558:4;:12;;;37177:42;40586:7;40595:1;40558:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40558:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40558:39:0;;;;40610:14;40627:10;:8;:10::i;:::-;40610:27;;40650:13;40666:6;:15;;;40682:4;40688:7;40666:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40666:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40666:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;40666:30:0;;;;;;;;;;;;;;;;40650:46;;40717:8;40709:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40342:425;;;;;;;:::o;37737:477::-;37803:14;37819:15;37849:14;37866:10;:8;:10::i;:::-;37849:27;;37889:13;37905:6;:19;;;37925:10;37945:4;37952:7;37905:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37905:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37905:55:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37905:55:0;;;;;;;;;;;;;;;;37889:71;;37981:8;37973:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38039:6;:13;;;38053:7;38039:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38039:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38039:22:0;;;;38074:16;37177:42;38093:14;;;38116:4;38093:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38093:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38093:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38093:29:0;;;;;;;;;;;;;;;;38074:48;;38145:17;38158:3;38145:7;:12;;:17;;;;:::i;:::-;38135:27;;38186:18;38200:3;38186:8;:13;;:18;;;;:::i;:::-;38175:29;;37737:477;;;;;;:::o;41265:187::-;41332:14;41361:16;37177:42;41380:14;;;41395:5;41380:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41380:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41380:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41380:21:0;;;;;;;;;;;;;;;;41361:40;;41424:18;41438:3;41424:8;:13;;:18;;;;:::i;:::-;41414:28;;41265:187;;;;:::o;39824:419::-;39891:14;39920;39937:10;:8;:10::i;:::-;39920:27;;39960:17;37309:42;39993:25;;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39993:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39993:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39993:27:0;;;;;;;;;;;;;;;;39960:61;;40034:4;:12;;;37177:42;40062:7;40071:1;40034:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40034:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40034:39:0;;;;40086:13;40102:6;:15;;;40118:4;40124:7;40102:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40102:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40102:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;40102:30:0;;;;;;;;;;;;;;;;40086:46;;40153:8;40145:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40216:17;40229:3;40216:7;:12;;:17;;;;:::i;:::-;40206:27;;39824:419;;;;;;;:::o;37394:258::-;37436:7;37458:17;37309:42;37491:25;;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37491:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37491:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37491:27:0;;;;;;;;;;;;;;;;37458:61;;37542:21;37568:4;:19;;;37177:42;37568:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37568:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37568:34:0;;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;37568:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37530:72;;;;;;;;;;;;;;37628:13;37613:29;;;;37394:258;:::o;41031:134::-;41099:14;41138:17;41151:3;41138:7;:12;;:17;;;;:::i;:::-;41128:27;;41031:134;;;:::o;38299:344::-;38352:14;38381;38398:10;:8;:10::i;:::-;38381:27;;38421:13;38437:6;:19;;;38457:10;38477:4;38484:7;38437:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38437:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38437:55:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38437:55:0;;;;;;;;;;;;;;;;38421:71;;38513:8;38505:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38571:6;:13;;;38585:7;38571:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38571:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38571:22:0;;;;38616:17;38629:3;38616:7;:12;;:17;;;;:::i;:::-;38606:27;;38299:344;;;;;:::o;6312:469::-;6371:7;6396:1;6391;:6;6387:20;;;6406:1;6399:8;;;;6387:20;6430:1;6425;:6;;;;6416:16;;;;;;6441:10;6514:2;6474:34;6470:1;:38;6464:1;6455:11;;:54;6454:62;;6441:75;;6523:10;6556:3;6551:1;:8;;6545:1;6536:11;;:24;6523:37;;6584:50;6578:2;:56;;6569:66;;;;;;6649:2;6642:9;;;;;6751:2;6682:66;:71;6669:2;:84;;6660:94;;;;;;6773:2;6768;:7;6761:14;;;;6312:469;;;;;:::o;8657:208::-;8717:6;8746:1;8741;:6;;8732:16;;;;;;8755:14;8772:12;8779:1;8782;8772:5;:12::i;:::-;8755:29;;1176:34;8800:29;;:6;:29;;;;8791:39;;;;;;8852:6;8837:22;;;8657:208;;;;:::o;21229:1257::-;21289:7;21319:1;21314;:6;;21305:16;;;;;;21330:14;21362:50;21357:1;:55;21353:1035;;21442:1;21436:2;21431:1;:7;;21430:13;;;;;;21421:22;;21353:1035;;;21464:11;21478:3;21464:17;;21490:10;21508:3;21503:1;:8;;21490:21;;21530:11;21524:2;:17;21520:48;;21552:2;21545:9;;;;;21563:2;21556:9;;;;21520:48;21586:7;21580:2;:13;21576:44;;21604:2;21597:9;;;;;21615:2;21608:9;;;;21576:44;21638:5;21632:2;:11;21628:40;;21654:1;21647:8;;;;;21664:1;21657:8;;;;21628:40;21686:4;21680:2;:10;21676:39;;21701:1;21694:8;;;;;21711:1;21704:8;;;;21676:39;21733:3;21727:2;:9;21723:38;;21747:1;21740:8;;;;;21757:1;21750:8;;;;21723:38;21779:3;21773:2;:9;21769:23;;21791:1;21784:8;;;;21769:23;21887:1;21880:3;21874;:9;21869:1;21865;:5;:18;;21864:24;21856:3;21850;:9;21845:1;:14;;21844:45;;;;;;21835:54;;21917:34;21907:6;:44;;21898:54;;;;;;21963:10;21991:3;21986:1;:8;;21976:6;:19;21963:32;;22004:10;22031:34;22027:1;:38;22017:6;:49;22004:62;;22077:10;22095:3;22090:1;:8;;22077:21;;22107:10;22125:2;22120:1;:7;;22107:20;;22147:2;22142;:7;22138:20;;;22157:1;22151:7;;;;22138:20;22173:2;22167:8;;;;22232:3;22226:2;:9;;22221:14;;22253:2;22248;:7;22244:20;;;22263:1;22257:7;;;;22244:20;22279:2;22273:8;;;;22349:3;22343:2;:9;;22337:2;:15;22329:24;;;;22379:1;22374:2;:6;;;;;;22364:16;;;;21353:1035;;;;;;;22415:34;22405:6;:44;;22396:54;;;;;;22473:6;22457:23;;;21229:1257;;;;:::o
Swarm Source
bzzr://165f15ded77b12c95a2e745e9a11bac285ca7443afbccc30c1ab2030e5a2d792
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.