diff --git a/README.md b/README.md
index 9bd2c6755..a96739897 100644
--- a/README.md
+++ b/README.md
@@ -150,53 +150,54 @@ These deployments have been deprecated because they're either outdated and have
Go to each deprecated deployment's readme file to learn more about why it is deprecated, and what the replacement deployment is (if any).
-| Description | Task ID |
-| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
-| Weighted Pools of up to 8 tokens | [`20210418-weighted-pool`](./tasks/deprecated/20210418-weighted-pool) |
-| Stable Pools of up to 5 tokens | [`20210624-stable-pool`](./tasks/deprecated/20210624-stable-pool) |
-| Liquidity Bootstrapping Pools of up to 4 tokens | [`20210721-liquidity-bootstrapping-pool`](./tasks/deprecated/20210721-liquidity-bootstrapping-pool) |
-| Meta Stable Pools with 2 tokens and price oracle | [`20210727-meta-stable-pool`](./tasks/deprecated/20210727-meta-stable-pool) |
-| Distributor contract for LDO rewards | [`20210811-ldo-merkle`](./tasks/deprecated/20210811-ldo-merkle) |
-| Relayer for Lido stETH wrapping/unwrapping | [`20210812-lido-relayer`](./tasks/deprecated/20210812-lido-relayer) |
-| Basic Investment Pools for few tokens | [`20210907-investment-pool`](./tasks/deprecated/20210907-investment-pool) |
-| Distributor contract for arbitrum BAL rewards | [`20210913-bal-arbitrum-merkle`](./tasks/deprecated/20210913-bal-arbitrum-merkle) |
-| Distributor contract for arbitrum MCB rewards | [`20210928-mcb-arbitrum-merkle`](./tasks/deprecated/20210928-mcb-arbitrum-merkle) |
-| Merkle Orchard Distributor | [`20211012-merkle-orchard`](./tasks/deprecated/20211012-merkle-orchard) |
-| Batch Relayer | [`20211203-batch-relayer`](./tasks/deprecated/20211203-batch-relayer) |
-| Linear Pools for Aave aTokens | [`20211208-aave-linear-pool`](./tasks/deprecated/20211208-aave-linear-pool) |
-| Preminted BPT Meta Stable Pools | [`20211208-stable-phantom-pool`](./tasks/deprecated/20211208-stable-phantom-pool) |
-| Linear Pools for ERC4626 Tokens | [`20220304-erc4626-linear-pool`](./tasks/deprecated/20220304-erc4626-linear-pool) |
-| Batch Relayer V2 | [`20220318-batch-relayer-v2`](./tasks/deprecated/20220318-batch-relayer-v2) |
-| Mainnet Staking Gauges | [`20220325-mainnet-gauge-factory`](./tasks/deprecated/20220325-mainnet-gauge-factory) |
-| Single Recipient Stakeless Gauges | [`20220325-single-recipient-gauge-factory`](./tasks/deprecated/20220325-single-recipient-gauge-factory) |
-| Gauge Registrant | [`20220325-gauge-adder`](./tasks/deprecated/20220325-gauge-adder) |
-| Linear Pools for ERC4626 Tokens V2 | [`20220404-erc4626-linear-pool-v2`](./tasks/deprecated/20220404-erc4626-linear-pool-v2) |
-| Arbitrum Root Gauges, for veBAL voting | [`20220413-arbitrum-root-gauge-factory`](./tasks/deprecated/20220413-arbitrum-root-gauge-factory) |
-| Polygon Root Gauges, for veBAL voting | [`20220413-polygon-root-gauge-factory`](./tasks/deprecated/20220413-polygon-root-gauge-factory) |
-| Fee Distributor for veBAL holders | [`20220420-fee-distributor`](./tasks/deprecated/20220420-fee-distributor) |
-| Linear Pools for Unbutton tokens | [`20220425-unbutton-aave-linear-pool`](./tasks/deprecated/20220425-unbutton-aave-linear-pool) |
-| Stable Pools V2 of up to 5 tokens | [`20220609-stable-pool-v2`](./tasks/deprecated/20220609-stable-pool-v2) |
-| Optimism Root Gauges, for veBAL voting | [`20220628-optimism-root-gauge-factory`](./tasks/deprecated/20220628-optimism-root-gauge-factory) |
-| Gauge Registrant V2, supporting new networks | [`20220628-gauge-adder-v2`](./tasks/deprecated/20220628-gauge-adder-v2) |
-| Batch Relayer V3 | [`20220720-batch-relayer-v3`](./tasks/deprecated/20220720-batch-relayer-v3) |
-| Linear Pools for Aave aTokens (with rebalancing) V2 | [`20220817-aave-rebalanced-linear-pool`](./tasks/deprecated/20220817-aave-rebalanced-linear-pool) |
-| Composable Stable Pools | [`20220906-composable-stable-pool`](./tasks/deprecated/20220906-composable-stable-pool) |
-| Weighted Pool V2 | [`20220908-weighted-pool-v2`](./tasks/deprecated/20220908-weighted-pool-v2) |
-| Batch Relayer V4 | [`20220916-batch-relayer-v4`](./tasks/deprecated/20220916-batch-relayer-v4) |
-| Managed Pool | [`20221021-managed-pool`](./tasks/deprecated/20221021-managed-pool) |
-| Composable Stable Pools V2 | [`20221122-composable-stable-pool-v2`](./tasks/deprecated/20221122-composable-stable-pool-v2) |
-| Linear Pools for Aave aTokens (with rebalancing) V3 | [`20221207-aave-rebalanced-linear-pool-v3`](./tasks/deprecated/20221207-aave-rebalanced-linear-pool-v3) |
-| Gauge Registrant V3 | [`20230109-gauge-adder-v3`](./tasks/deprecated/20230109-gauge-adder-v3) |
-| Weighted Pool V3 | [`20230206-weighted-pool-v3`](./tasks/deprecated/20230206-weighted-pool-v3) |
-| Composable Stable Pools V3 | [`20230206-composable-stable-pool-v3`](./tasks/deprecated/20230206-composable-stable-pool-v3) |
-| Timelock Authorizer, governance contract | [`20221202-timelock-authorizer`](./tasks/deprecated/20221202-timelock-authorizer) |
-| Linear Pools for ERC4626 Tokens V3 | [`20230206-erc4626-linear-pool-v3`](./tasks/deprecated/20230206-erc4626-linear-pool-v3) |
-| Linear Pools for Aave aTokens (with rebalancing) V4 | [`20230206-aave-rebalanced-linear-pool-v4`](./tasks/deprecated/20230206-aave-rebalanced-linear-pool-v4) |
-| Linear Pools for Yearn Tokens | [`20230213-yearn-linear-pool`](./tasks/deprecated/20230213-yearn-linear-pool) |
-| Linear Pools for Gearbox Tokens | [`20230213-gearbox-linear-pool`](./tasks/deprecated/20230213-gearbox-linear-pool) |
-| Batch Relayer V5 | [`20230314-batch-relayer-v5`](./tasks/deprecated/20230314-batch-relayer-v5) |
-| Linear Pools for Silo Tokens | [`20230315-silo-linear-pool`](./tasks/deprecated/20230315-silo-linear-pool) |
-| Composable Stable Pools V4 | [`20230320-composable-stable-pool-v4`](./tasks/deprecated/20230320-composable-stable-pool-v4) |
-| L2 Gauge Checkpointer | [`20230527-l2-gauge-checkpointer`](./tasks/deprecated/20230527-l2-gauge-checkpointer) |
-| Avalanche Root Gauge, for veBAL voting | [`20230529-avalanche-root-gauge-factory`](./tasks/deprecated/20230529-avalanche-root-gauge-factory) |
-| Stakeless Gauge Checkpointer | [`20230731-stakeless-gauge-checkpointer`](./tasks/deprecated/20230731-stakeless-gauge-checkpointer) |
+| Description | Task ID |
+| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
+| Weighted Pools of up to 8 tokens | [`20210418-weighted-pool`](./tasks/deprecated/20210418-weighted-pool) |
+| Stable Pools of up to 5 tokens | [`20210624-stable-pool`](./tasks/deprecated/20210624-stable-pool) |
+| Liquidity Bootstrapping Pools of up to 4 tokens | [`20210721-liquidity-bootstrapping-pool`](./tasks/deprecated/20210721-liquidity-bootstrapping-pool) |
+| Meta Stable Pools with 2 tokens and price oracle | [`20210727-meta-stable-pool`](./tasks/deprecated/20210727-meta-stable-pool) |
+| Distributor contract for LDO rewards | [`20210811-ldo-merkle`](./tasks/deprecated/20210811-ldo-merkle) |
+| Relayer for Lido stETH wrapping/unwrapping | [`20210812-lido-relayer`](./tasks/deprecated/20210812-lido-relayer) |
+| Basic Investment Pools for few tokens | [`20210907-investment-pool`](./tasks/deprecated/20210907-investment-pool) |
+| Distributor contract for arbitrum BAL rewards | [`20210913-bal-arbitrum-merkle`](./tasks/deprecated/20210913-bal-arbitrum-merkle) |
+| Distributor contract for arbitrum MCB rewards | [`20210928-mcb-arbitrum-merkle`](./tasks/deprecated/20210928-mcb-arbitrum-merkle) |
+| Merkle Orchard Distributor | [`20211012-merkle-orchard`](./tasks/deprecated/20211012-merkle-orchard) |
+| Batch Relayer | [`20211203-batch-relayer`](./tasks/deprecated/20211203-batch-relayer) |
+| Linear Pools for Aave aTokens | [`20211208-aave-linear-pool`](./tasks/deprecated/20211208-aave-linear-pool) |
+| Preminted BPT Meta Stable Pools | [`20211208-stable-phantom-pool`](./tasks/deprecated/20211208-stable-phantom-pool) |
+| Linear Pools for ERC4626 Tokens | [`20220304-erc4626-linear-pool`](./tasks/deprecated/20220304-erc4626-linear-pool) |
+| Batch Relayer V2 | [`20220318-batch-relayer-v2`](./tasks/deprecated/20220318-batch-relayer-v2) |
+| Mainnet Staking Gauges | [`20220325-mainnet-gauge-factory`](./tasks/deprecated/20220325-mainnet-gauge-factory) |
+| Single Recipient Stakeless Gauges | [`20220325-single-recipient-gauge-factory`](./tasks/deprecated/20220325-single-recipient-gauge-factory) |
+| Gauge Registrant | [`20220325-gauge-adder`](./tasks/deprecated/20220325-gauge-adder) |
+| Linear Pools for ERC4626 Tokens V2 | [`20220404-erc4626-linear-pool-v2`](./tasks/deprecated/20220404-erc4626-linear-pool-v2) |
+| Arbitrum Root Gauges, for veBAL voting | [`20220413-arbitrum-root-gauge-factory`](./tasks/deprecated/20220413-arbitrum-root-gauge-factory) |
+| Polygon Root Gauges, for veBAL voting | [`20220413-polygon-root-gauge-factory`](./tasks/deprecated/20220413-polygon-root-gauge-factory) |
+| Fee Distributor for veBAL holders | [`20220420-fee-distributor`](./tasks/deprecated/20220420-fee-distributor) |
+| Linear Pools for Unbutton tokens | [`20220425-unbutton-aave-linear-pool`](./tasks/deprecated/20220425-unbutton-aave-linear-pool) |
+| Stable Pools V2 of up to 5 tokens | [`20220609-stable-pool-v2`](./tasks/deprecated/20220609-stable-pool-v2) |
+| Optimism Root Gauges, for veBAL voting | [`20220628-optimism-root-gauge-factory`](./tasks/deprecated/20220628-optimism-root-gauge-factory) |
+| Gauge Registrant V2, supporting new networks | [`20220628-gauge-adder-v2`](./tasks/deprecated/20220628-gauge-adder-v2) |
+| Batch Relayer V3 | [`20220720-batch-relayer-v3`](./tasks/deprecated/20220720-batch-relayer-v3) |
+| Linear Pools for Aave aTokens (with rebalancing) V2 | [`20220817-aave-rebalanced-linear-pool`](./tasks/deprecated/20220817-aave-rebalanced-linear-pool) |
+| Composable Stable Pools | [`20220906-composable-stable-pool`](./tasks/deprecated/20220906-composable-stable-pool) |
+| Weighted Pool V2 | [`20220908-weighted-pool-v2`](./tasks/deprecated/20220908-weighted-pool-v2) |
+| Batch Relayer V4 | [`20220916-batch-relayer-v4`](./tasks/deprecated/20220916-batch-relayer-v4) |
+| Managed Pool | [`20221021-managed-pool`](./tasks/deprecated/20221021-managed-pool) |
+| Composable Stable Pools V2 | [`20221122-composable-stable-pool-v2`](./tasks/deprecated/20221122-composable-stable-pool-v2) |
+| Linear Pools for Aave aTokens (with rebalancing) V3 | [`20221207-aave-rebalanced-linear-pool-v3`](./tasks/deprecated/20221207-aave-rebalanced-linear-pool-v3) |
+| Gauge Registrant V3 | [`20230109-gauge-adder-v3`](./tasks/deprecated/20230109-gauge-adder-v3) |
+| Weighted Pool V3 | [`20230206-weighted-pool-v3`](./tasks/deprecated/20230206-weighted-pool-v3) |
+| Composable Stable Pools V3 | [`20230206-composable-stable-pool-v3`](./tasks/deprecated/20230206-composable-stable-pool-v3) |
+| Timelock Authorizer, governance contract | [`20221202-timelock-authorizer`](./tasks/deprecated/20221202-timelock-authorizer) |
+| Linear Pools for ERC4626 Tokens V3 | [`20230206-erc4626-linear-pool-v3`](./tasks/deprecated/20230206-erc4626-linear-pool-v3) |
+| Linear Pools for Aave aTokens (with rebalancing) V4 | [`20230206-aave-rebalanced-linear-pool-v4`](./tasks/deprecated/20230206-aave-rebalanced-linear-pool-v4) |
+| Linear Pools for Yearn Tokens | [`20230213-yearn-linear-pool`](./tasks/deprecated/20230213-yearn-linear-pool) |
+| Linear Pools for Gearbox Tokens | [`20230213-gearbox-linear-pool`](./tasks/deprecated/20230213-gearbox-linear-pool) |
+| Batch Relayer V5 | [`20230314-batch-relayer-v5`](./tasks/deprecated/20230314-batch-relayer-v5) |
+| Linear Pools for Silo Tokens | [`20230315-silo-linear-pool`](./tasks/deprecated/20230315-silo-linear-pool) |
+| Composable Stable Pools V4 | [`20230320-composable-stable-pool-v4`](./tasks/deprecated/20230320-composable-stable-pool-v4) |
+| L2 Gauge Checkpointer | [`20230527-l2-gauge-checkpointer`](./tasks/deprecated/20230527-l2-gauge-checkpointer) |
+| Avalanche Root Gauge, for veBAL voting | [`20230529-avalanche-root-gauge-factory`](./tasks/deprecated/20230529-avalanche-root-gauge-factory) |
+| Composable Stable Pools V5 (ZKEVM) | [`20230711-zkevm-composable-stable-pool-v5`](./tasks/deprecated/20230711-zkevm-composable-stable-pool-v5) |
+| Stakeless Gauge Checkpointer | [`20230731-stakeless-gauge-checkpointer`](./tasks/deprecated/20230731-stakeless-gauge-checkpointer) |
diff --git a/action-ids/zkevm/action-ids.json b/action-ids/zkevm/action-ids.json
index a21fe2c9f..86230d414 100644
--- a/action-ids/zkevm/action-ids.json
+++ b/action-ids/zkevm/action-ids.json
@@ -353,5 +353,31 @@
"updateTokenRateCache(address)": "0xd0547cf0b3b617880170eef83bcd448ffc9461adc5ce16e7d3317761caa857b5"
}
}
+ },
+ "20230711-zkevm-composable-stable-pool-v5": {
+ "ComposableStablePoolFactory": {
+ "useAdaptor": false,
+ "actionIds": {
+ "create(string,string,address[],uint256,address[],uint256[],bool,uint256,address,bytes32)": "0xec55a48979fccaafa3f4f81d987cc5aa26dfa67ce20b1cf608c13cc65459ed2f",
+ "disable()": "0x0ebf042d38f8e1bb630c3010c686232d7334f90360a82eb23623fd01fbe8e656"
+ }
+ },
+ "ComposableStablePool": {
+ "useAdaptor": false,
+ "factoryOutput": "0x7682e108Cd89d86303625c8478c21Ff86f401166",
+ "actionIds": {
+ "disableRecoveryMode()": "0xcfd45e344ead8485b80a5f9da66791663c8306984e9c6dc12eda2ee747cce604",
+ "enableRecoveryMode()": "0x6fa5acf6e6e303c2d281bf1af5f4d83642a125c5a3308cdf67e956bec276b69e",
+ "pause()": "0xa5d55e5978cb5ab0a8b23eed8889931ca33b54522edde10e348f4f96d35f0b35",
+ "setAssetManagerPoolConfig(address,bytes)": "0x1a08d4fef97815fd30114a34ff1dbaa267e682388735fb00569f31d02a4d0d9e",
+ "setSwapFeePercentage(uint256)": "0x04dd8b85ae9bff95ec24f18269d23bd2d04784d5f5d8b35261545b82ed754a85",
+ "setTokenRateCacheDuration(address,uint256)": "0x7b56c5989d833cd81dc8cdee3b496b2e2cdda79cf4d997ef95af7935fa9b95c9",
+ "startAmplificationParameterUpdate(uint256,uint256)": "0x1307ea331d8ab1feffafb967ddf20c66fd92ce496eda1de129a4608d4b40f313",
+ "stopAmplificationParameterUpdate()": "0xbd408e756684e5ea83089ee33aa05ce9410b392967bffc71c11fb394026e7a09",
+ "unpause()": "0x5e9c83a38e2aa43bce79848361fda74693ac9eca5e6ff6cf2ad39c86ecdfceb1",
+ "updateProtocolFeePercentageCache()": "0xa35ca9dc4af67afbb6992c78233d02daa500481d3cfed81539f595ce19bc505d",
+ "updateTokenRateCache(address)": "0x9226ad212b6e5d50f04b34634f2363e4ccbe08b7d4d3e9b8ec0733a66655af3b"
+ }
+ }
}
}
\ No newline at end of file
diff --git a/addresses/zkevm.json b/addresses/zkevm.json
index 3625cc7a3..89382215c 100644
--- a/addresses/zkevm.json
+++ b/addresses/zkevm.json
@@ -342,6 +342,19 @@
],
"status": "ACTIVE"
},
+ "20230711-zkevm-composable-stable-pool-v5": {
+ "contracts": [
+ {
+ "name": "ComposableStablePoolFactory",
+ "address": "0x956CCab09898C0AF2aCa5e6C229c3aD4E93d9288"
+ },
+ {
+ "name": "MockComposableStablePool",
+ "address": "0x7682e108Cd89d86303625c8478c21Ff86f401166"
+ }
+ ],
+ "status": "DEPRECATED"
+ },
"20230712-child-chain-gauge-checkpointer": {
"contracts": [
{
diff --git a/deployment-txs/zkevm.json b/deployment-txs/zkevm.json
index c48dbc881..1b6262132 100644
--- a/deployment-txs/zkevm.json
+++ b/deployment-txs/zkevm.json
@@ -46,6 +46,8 @@
"0x522Ee506a2f63D0AE1D79D6F5Dbd9d0bCA32C866": "0xa79615f44a51744d7a88727c21cc2f2b32914cf06443e9299e83d7e67e8f67ec",
"0xEF454a7B3f965D3f6723E462405246f8Cd865425": "0xc67442b954b3bccff60bd9be4e34162db73b393eb5a42dfff9a793b48e0f5581",
"0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5": "0x6de4c45bdbae63f43f8e6c7a98f14886e5c9a1c9209d3027dd84eb09d316322c",
+ "0x956CCab09898C0AF2aCa5e6C229c3aD4E93d9288": "0xbc3767b1d7160745b5a639f64b7b2e1ce846ccb4d752f1671de2c3f69e356ac8",
+ "0x7682e108Cd89d86303625c8478c21Ff86f401166": "0x4500a03073083022825d2b4ca917a61aabe4ce548e5e08347c31d3d3cec9c8fc",
"0x6d3197d069F8F9f1Fe7e23665Bc64CB77ED8b089": "0xb1edcb48a2d058a6954a2f7e9748413009a3e71e6fa766a8e92f36dceb5a561a",
"0x85a80afee867aDf27B50BdB7b76DA70f1E853062": "0x03f89cc9f24f9cf499c7cacc8bfe6b58ec10b0c2eb9f35bf93884156a0b36565",
"0x4132f7AcC9dB7A6cF7BE2Dd3A9DC8b30C7E6E6c8": "0xe868e012256f6fdf2c453012871555dc97e06388cf1b2252ad1ec6ffff4b3a31",
diff --git a/tasks/deprecated/20230711-zkevm-composable-stable-pool-v5/artifact/ComposableStablePoolFactory.json b/tasks/deprecated/20230711-zkevm-composable-stable-pool-v5/artifact/ComposableStablePoolFactory.json
new file mode 100644
index 000000000..8ed20376e
--- /dev/null
+++ b/tasks/deprecated/20230711-zkevm-composable-stable-pool-v5/artifact/ComposableStablePoolFactory.json
@@ -0,0 +1,292 @@
+{
+ "_format": "hh-sol-artifact-1",
+ "contractName": "ComposableStablePoolFactory",
+ "sourceName": "contracts/ComposableStablePoolFactory.sol",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "vault",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IProtocolFeePercentagesProvider",
+ "name": "protocolFeeProvider",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "factoryVersion",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "poolVersion",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "FactoryDisabled",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "pool",
+ "type": "address"
+ }
+ ],
+ "name": "PoolCreated",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "symbol",
+ "type": "string"
+ },
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amplificationParameter",
+ "type": "uint256"
+ },
+ {
+ "internalType": "contract IRateProvider[]",
+ "name": "rateProviders",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "tokenRateCacheDurations",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "bool",
+ "name": "exemptFromYieldProtocolFeeFlag",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes32",
+ "name": "salt",
+ "type": "bytes32"
+ }
+ ],
+ "name": "create",
+ "outputs": [
+ {
+ "internalType": "contract ComposableStablePool",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disable",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getCreationCode",
+ "outputs": [
+ {
+ "internalType": "bytes",
+ "name": "",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getCreationCodeContracts",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "contractA",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "contractB",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPauseConfiguration",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowDuration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodDuration",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolVersion",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeePercentagesProvider",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeePercentagesProvider",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isDisabled",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "pool",
+ "type": "address"
+ }
+ ],
+ "name": "isPoolFromFactory",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "version",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "bytecode": "0x6101806040523480156200001257600080fd5b506040516200921d3803806200921d83398101604081905262000035916200036d565b83836040518060200162000049906200021c565b601f1982820381018352601f90910116604052805183903090839060006002820460a081905280830360e08190528185529091508362000095816200013d602090811b620005e517901c565b60601b6001600160601b0319166080528285018051838252620000c4826200013d602090811b620005e517901c565b6001600160601b0319606091821b811660c05296909352905261010095909552505092821b831661012052509290921b909116610140525050426276a700016101605281516200011c9060029060208501906200022a565b508051620001329060039060208401906200022a565b505050505062000415565b80517f602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe808352600091602081018484f090845291506200018b6001600160a01b03831615156101ac62000191565b50919050565b81620001a257620001a281620001a6565b5050565b620001b8816210905360ea1b620001bb565b50565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b617dca806200145383390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026d57805160ff19168380011785556200029d565b828001600101855582156200029d579182015b828111156200029d57825182559160200191906001019062000280565b50620002ab929150620002af565b5090565b5b80821115620002ab5760008155600101620002b0565b600082601f830112620002d7578081fd5b81516001600160401b0380821115620002ee578283fd5b6040516020601f8401601f191682018101838111838210171562000310578586fd5b806040525081945083825286818588010111156200032d57600080fd5b600092505b8383101562000351578583018101518284018201529182019162000332565b83831115620003635760008185840101525b5050505092915050565b6000806000806080858703121562000383578384fd5b84516200039081620003ff565b6020860151909450620003a381620003ff565b60408601519093506001600160401b0380821115620003c0578384fd5b620003ce88838901620002c6565b93506060870151915080821115620003e4578283fd5b50620003f387828801620002c6565b91505092959194509250565b6001600160a01b0381168114620001b857600080fd5b60805160601c60a05160c05160601c60e051610100516101205160601c6101405160601c61016051610fc56200048e60003980610232528061025b5250806103fa52508061047052508061042052508061063f52508061020952806106bb5250806106605250806101e852806106975250610fc56000f3fe608060405234801561001057600080fd5b50600436106100de5760003560e01c80636634b7531161008c578063851c1bb311610066578063851c1bb3146101845780638d928af8146101a4578063971e1833146101ac578063aaabadc5146101bf576100de565b80636634b753146101475780636c57f5a914610167578063739238d61461016f576100de565b80632f2770db116100bd5780632f2770db1461012d5780633f819b6f1461013757806354fd4d501461013f576100de565b8062c194db146100e3578063174481fa146101015780632da47c4014610117575b600080fd5b6100eb6101c7565b6040516100f89190610db5565b60405180910390f35b6101096101e6565b6040516100f8929190610d68565b61011f61022c565b6040516100f8929190610f17565b610135610296565b005b6100eb6102dd565b6100eb610373565b61015a610155366004610af6565b6103d1565b6040516100f89190610d82565b61015a6103ef565b6101776103f8565b6040516100f89190610dc8565b610197610192366004610b2e565b61041c565b6040516100f89190610d8d565b61017761046e565b6101776101ba366004610b72565b610492565b61017761056b565b60606101e160405180602001604052806000815250610637565b905090565b7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000009091565b600080427f000000000000000000000000000000000000000000000000000000000000000081101561028857807f000000000000000000000000000000000000000000000000000000000000000003925062278d009150610291565b60009250600091505b509091565b61029e610710565b6102a6610741565b6001805460ff1916811790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d5090600090a1565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b820191906000526020600020905b81548152906001019060200180831161034c57829003601f168201915b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b6001600160a01b031660009081526020819052604090205460ff1690565b60015460ff1690565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f000000000000000000000000000000000000000000000000000000000000000082604051602001610451929190610d50565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b600080600061049f61022c565b9150915061055a604051806101c001604052806104ba61046e565b6001600160a01b031681526020016104d06103f8565b6001600160a01b031681526020018f81526020018e81526020018d81526020018b81526020018a815260200189151581526020018c8152602001888152602001848152602001838152602001876001600160a01b031681526020016105336102dd565b90526040516105459190602001610ddc565b60405160208183030381529060405285610756565b9d9c50505050505050505050505050565b600061057561046e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ad57600080fd5b505afa1580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e19190610b56565b80517f602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe808352600091602081018484f090845291506106316001600160a01b03831615156101ac6107c3565b50919050565b8051604080517f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000818101858101848101602090810190965280855293957f00000000000000000000000000000000000000000000000000000000000000009592947f000000000000000000000000000000000000000000000000000000000000000094938801866000828a3c846000888301883c50602089810190898501016107028183866107d5565b505050505050505050919050565b60006107276000356001600160e01b03191661041c565b905061073e6107368233610813565b6101916107c3565b50565b61075461074c6103ef565b1560d36107c3565b565b6000610760610741565b600061076c84846108a3565b6001600160a01b038116600081815260208190526040808220805460ff191660011790555192935090917f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a290505b92915050565b816107d1576107d1816108e0565b5050565b5b602081106107f5578151835260209283019290910190601f19016107d6565b905182516020929092036101000a6000190180199091169116179052565b600061081d61056b565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b815260040161084c93929190610d96565b60206040518083038186803b15801561086457600080fd5b505afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610b12565b9392505050565b600060606108b084610637565b90506000838251602084016000f590506001600160a01b0381166108d8573d6000803e3d6000fd5b949350505050565b62461bcd60e51b600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b60445261073e916210905360ea1b906242414c90606490fd5b80356107bd81610f6c565b600082601f830112610956578081fd5b813561096961096482610f4c565b610f25565b81815291506020808301908481018184028601820187101561098a57600080fd5b60005b848110156109b25781356109a081610f6c565b8452928201929082019060010161098d565b505050505092915050565b600082601f8301126109cd578081fd5b81356109db61096482610f4c565b8181529150602080830190848101818402860182018710156109fc57600080fd5b60005b848110156109b2578135610a1281610f6c565b845292820192908201906001016109ff565b600082601f830112610a34578081fd5b8135610a4261096482610f4c565b818152915060208083019084810181840286018201871015610a6357600080fd5b60005b848110156109b257813584529282019290820190600101610a66565b80356107bd81610f81565b600082601f830112610a9d578081fd5b813567ffffffffffffffff811115610ab3578182fd5b610ac6601f8201601f1916602001610f25565b9150808252836020828501011115610add57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610b07578081fd5b813561089c81610f6c565b600060208284031215610b23578081fd5b815161089c81610f81565b600060208284031215610b3f578081fd5b81356001600160e01b03198116811461089c578182fd5b600060208284031215610b67578081fd5b815161089c81610f6c565b6000806000806000806000806000806101408b8d031215610b91578586fd5b8a3567ffffffffffffffff80821115610ba8578788fd5b610bb48e838f01610a8d565b9b5060208d0135915080821115610bc9578788fd5b610bd58e838f01610a8d565b9a5060408d0135915080821115610bea578788fd5b610bf68e838f01610946565b995060608d0135985060808d0135915080821115610c12578788fd5b610c1e8e838f016109bd565b975060a08d0135915080821115610c33578687fd5b50610c408d828e01610a24565b955050610c508c60c08d01610a82565b935060e08b01359250610c678c6101008d0161093b565b91506101208b013590509295989b9194979a5092959850565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015610cc55781516001600160a01b031687529582019590820190600101610ca0565b509495945050505050565b6000815180845260208085019450808401835b83811015610cc557815187529582019590820190600101610ce3565b15159052565b60008151808452815b81811015610d2a57602081850181015186830182015201610d0e565b81811115610d3b5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6001600160a01b0392831681529116602082015260400190565b901515815260200190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b60006020825261089c6020830184610d05565b6001600160a01b0391909116815260200190565b600060208252610df0602083018451610c80565b6020830151610e026040840182610c80565b5060408301516101c0806060850152610e1f6101e0850183610d05565b91506060850151601f1980868503016080870152610e3d8483610d05565b935060808701519150808685030160a0870152610e5a8483610c8d565b935060a08701519150808685030160c0870152610e778483610c8d565b935060c08701519150808685030160e0870152610e948483610cd0565b935060e08701519150610100610eac81880184610cff565b8701516101208781019190915287015161014080880191909152870151610160808801919091528701516101808088019190915287015191506101a0610ef481880184610c80565b870151868503909101838701529050610f0d8382610d05565b9695505050505050565b918252602082015260400190565b60405181810167ffffffffffffffff81118282101715610f4457600080fd5b604052919050565b600067ffffffffffffffff821115610f62578081fd5b5060209081020190565b6001600160a01b038116811461073e57600080fd5b801515811461073e57600080fdfea26469706673582212209e0aae2f26ba89d69b81af7af61eaa1316c922acdebe021f38d79fcb5f3c901364736f6c634300070100336104e06040523480156200001257600080fd5b5060405162007dca38038062007dca833981016040819052620000359162001a26565b6020810151600019620000488362000c9f565b620000538462000cd8565b8461010001518560000151600087604001518860600151620000808a608001513062000d2360201b60201c565b8a60800151516001016001600160401b03811180156200009f57600080fd5b50604051908082528060200260200182016040528015620000ca578160200160208202803683370190505b508b61012001518c61014001518d61016001518e6101800151828289898d85336001600160a01b031660001b8480604051806040016040528060018152602001603160f81b815250878781600390805190602001906200012c9291906200170f565b508051620001429060049060208401906200170f565b50506005805460ff19166012179055508151602092830120608052805191012060a052507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60c05260e0526001600160601b0319606091821b81166101005291901b166101205250620001c090506276a70083111561019462000ebd565b620001d462278d0082111561019562000ebd565b4290910161014081905201610160528551620001f6906002111560c862000ebd565b620002106200020462000ed2565b8751111560c962000ebd565b620002268662000ed760201b620015b01760201c565b620002318462000ee3565b6040516309b2760f60e01b81526000906001600160a01b038c16906309b2760f9062000262908d9060040162001c9a565b602060405180830381600087803b1580156200027d57600080fd5b505af115801562000292573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b89190620019ee565b604051633354e3e960e11b81529091506001600160a01b038c16906366a9c7d290620002ed9084908b908b9060040162001bfe565b600060405180830381600087803b1580156200030857600080fd5b505af11580156200031d573d6000803e3d6000fd5b505050508061018081815250508a6001600160a01b031663d2946c2b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200036457600080fd5b505afa15801562000379573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200039f919062001a07565b60601b6001600160601b0319166101a05250620003d1995050506001891015965061012c955062000ebd945050505050565b620003e461138882111561012d62000ebd565b6000620003ff826103e862000f7760201b620015ba1760201c565b90506200040c8162000fa6565b5050805151620004216002821160c862000ebd565b620004406001820383602001515162000fe560201b620015e51760201c565b6101c0819052815180516000906200045457fe5b60200260200101516001600160a01b0316610200816001600160a01b031660601b8152505081600001516001815181106200048b57fe5b60200260200101516001600160a01b0316610220816001600160a01b031660601b815250508160000151600281518110620004c257fe5b60200260200101516001600160a01b0316610240816001600160a01b031660601b8152505060038111620004f857600062000511565b8151805160039081106200050857fe5b60200260200101515b60601b6001600160601b0319166102605260048111620005335760006200054c565b8151805160049081106200054357fe5b60200260200101515b60601b6001600160601b03191661028052600581116200056e57600062000587565b8151805160059081106200057e57fe5b60200260200101515b60601b6001600160601b0319166102a05281518051620005c09190600090620005ac57fe5b602002602001015162000ff460201b60201c565b6102c05281518051620005da91906001908110620005ac57fe5b6102e05281518051620005f491906002908110620005ac57fe5b6103005260038111620006095760006200061f565b6200061f8260000151600381518110620005ac57fe5b6103205260048111620006345760006200064a565b6200064a8260000151600481518110620005ac57fe5b61034052600581116200065f57600062000675565b620006758260000151600581518110620005ac57fe5b61036052815151600019015b600081118015620006b2575082518051309190839081106200069f57fe5b60200260200101516001600160a01b0316115b15620006c2576000190162000681565b6101e08190528251516060906001600160401b0381118015620006e457600080fd5b506040519080825280602002602001820160405280156200070f578160200160208202803683370190505b5090506000805b8551518110156200084b57838110156200077657856020015181815181106200073b57fe5b60200260200101518382815181106200075057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505062000798565b8381146200079257856020015160018203815181106200073b57fe5b62000842565b620007e160006001600160a01b0316848381518110620007b457fe5b60200260200101516001600160a01b031614158260060184620010c360201b620015f2179092919060201c565b9150856040015180156200081c575060006001600160a01b03168382815181106200080857fe5b60200260200101516001600160a01b031614155b1562000842576200083f60018284620010c360201b620015f2179092919060201c565b91505b60010162000716565b506040850151151560f81b61046052815182906000906200086857fe5b60200260200101516001600160a01b0316610380816001600160a01b031660601b81525050816001815181106200089b57fe5b60200260200101516001600160a01b03166103a0816001600160a01b031660601b8152505081600281518110620008ce57fe5b60200260200101516001600160a01b03166103c0816001600160a01b031660601b815250506003825111620009055760006200091c565b816003815181106200091357fe5b60200260200101515b60601b6001600160601b0319166103e05281516004106200093f57600062000956565b816004815181106200094d57fe5b60200260200101515b60601b6001600160601b0319166104005281516005106200097957600062000990565b816005815181106200098757fe5b60200260200101515b60601b6001600160601b0319166104205261044052505082515160208085015151604086015151620009d195509293509190620010ec811b6200161917901c565b8051606090620009e2903062000d23565b8051909150600019015b60008111801562000a225750306001600160a01b031682828151811062000a0f57fe5b60200260200101516001600160a01b0316115b1562000a325760001901620009ec565b6000805b84515181101562000b4b578281141562000a4f57600191505b60208501518051828401916000918490811062000a6857fe5b60200260200101516001600160a01b03161462000b415762000ac2818760200151848151811062000a9557fe5b60200260200101518860400151858151811062000aae57fe5b60200260200101516200110c60201b60201c565b8560200151828151811062000ad357fe5b60200260200101516001600160a01b0316817fdd6d1c9badb346de6925b358a472c937b41698d2632696759e43fd6527feeec48860400151858151811062000b1757fe5b602002602001015160405162000b2e919062001caf565b60405180910390a362000b418162001207565b5060010162000a36565b5050505050600019811460f881901b6104a0526001600160601b0319606084901b166104805262000b7e83600262001246565b62000b8b83600362001246565b801562000ba55762000b9f83600062001246565b62000c64565b60405163178b2b9360e21b815262000c39906001600160a01b03851690635e2cae4c9062000bd99060009060040162001caf565b60206040518083038186803b15801562000bf257600080fd5b505afa15801562000c07573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c2d9190620019ee565b83111561025862000ebd565b600060008051602062007daa8339815191528360405162000c5b919062001caf565b60405180910390a25b8062000c71578162000c74565b60005b6104c0525050506101a0810151805162000c9791600d916020909101906200170f565b505062001d21565b62000ca962001790565b6040518060600160405280836080015181526020018360a0015181526020018360c0015181525090505b919050565b62000ce2620017b1565b604051806060016040528062000d0384608001513062000d2360201b60201c565b81526020018360a0015181526020018360e0015115158152509050919050565b606082516001016001600160401b038111801562000d4057600080fd5b5060405190808252806020026020018201604052801562000d6b578160200160208202803683370190505b50905082516000141562000dae57818160008151811062000d8857fe5b60200260200101906001600160a01b031690816001600160a01b03168152505062000eb7565b82515b60008111801562000dea5750826001600160a01b031684600183038151811062000dd757fe5b60200260200101516001600160a01b0316115b1562000e375783600182038151811062000e0057fe5b602002602001015182828151811062000e1557fe5b6001600160a01b03909216602092830291909101909101526000190162000db1565b60005b8181101562000e865784818151811062000e5057fe5b602002602001015183828151811062000e6557fe5b6001600160a01b039092166020928302919091019091015260010162000e3a565b508282828151811062000e9557fe5b60200260200101906001600160a01b031690816001600160a01b031681525050505b92915050565b8162000ece5762000ece81620013f1565b5050565b600690565b8062000ece8162001406565b62000efc62000ef16200148d565b82101560cb62000ebd565b62000f1562000f0a62001496565b82111560ca62000ebd565b62000f378160c0603f600854620014a260201b6200163617909392919060201c565b6008556040517fa9ba3ffe0b6c366b81232caab38605a0699ad5398d6cce76f91ee809e322dafc9062000f6c90839062001caf565b60405180910390a150565b600082820262000f9f84158062000f9757508385838162000f9457fe5b04145b600362000ebd565b9392505050565b62000fb481804280620014c7565b7fa0d01593e47e69d07e0ccd87bece09411e07dd1ed40ca8f2e7af2976542a02338160405162000f6c919062001caf565b62000ece828214606762000ebd565b60006001600160a01b038216301415620010185750670de0b6b3a764000062000cd3565b6000826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200105457600080fd5b505afa15801562001069573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200108f919062001bdb565b60ff1690506000620010ae6012836200153a60201b6200165e1760201c565b600a0a670de0b6b3a764000002949350505050565b60006001821b1984168284620010db576000620010de565b60015b60ff16901b17949350505050565b620011078284148015620010ff57508183145b606762000ebd565b505050565b6000826001600160a01b031663679aefce6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200114857600080fd5b505afa1580156200115d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620011839190620019ee565b6000858152600a6020908152604090912054919250620011b2908290849086906200167462001552821b17901c565b6000868152600a602052604090819020919091555185907fb77a83204ca282e08dc3a65b0a1ca32ea4e6875c38ef0bf5bf75e52a67354fac90620011f890859062001caf565b60405180910390a25050505050565b6000818152600a60209081526040909120549062001230908290620016ac620015ae821b17901c565b6000928352600a60205260409092209190915550565b604051631a7c326360e01b81526000906001600160a01b03841690631a7c3263906200127790859060040162001caf565b60206040518083038186803b1580156200129057600080fd5b505afa158015620012a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620012cb9190620019ee565b9050816200130f57620012e981620015d960201b620016c41760201c565b600b80546001600160401b0319166001600160401b0392909216919091179055620013c3565b600282141562001365576200132f81620015d960201b620016c41760201c565b600b80546001600160401b03929092166801000000000000000002600160401b600160801b0319909216919091179055620013c3565b6003821415620013b6576200138581620015d960201b620016c41760201c565b600b80546001600160401b0392909216600160801b02600160801b600160c01b0319909216919091179055620013c3565b620013c36101bb620013f1565b8160008051602062007daa83398151915282604051620013e4919062001caf565b60405180910390a2505050565b62001403816210905360ea1b620015f7565b50565b600281511015620014175762001403565b6000816000815181106200142757fe5b602002602001015190506000600190505b8251811015620011075760008382815181106200145157fe5b6020026020010151905062001482816001600160a01b0316846001600160a01b031610606562000ebd60201b60201c565b915060010162001438565b64e8d4a5100090565b67016345785d8a000090565b6000620014b184848462001658565b506001901b60001901811b1992909216911b1790565b620014e18160c06040620016b360201b620016e11760201c565b620014fb8360806040620016b360201b620016e11760201c565b6200151485604080620016b360201b620016e11760201c565b6200152e8760006040620016b360201b620016e11760201c565b17171760095550505050565b60006200154c83831115600162000ebd565b50900390565b600062001567606084901c1561014962000ebd565b620015a642830160e06020620015908660c083838c8c6000606062001636620014a2871b17861c565b620014a260201b6200163617909392919060201c565b949350505050565b600062000eb7620015bf83620016c8565b60608085620014a260201b6200163617909392919060201c565b6000620015f36001600160401b038311156101ba62000ebd565b5090565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b620016696101008310606462000ebd565b620016a2600182101580156200169a57506200169660ff8461010003620016e860201b620016f41760201c565b8211155b606462000ebd565b6200110783821c156101b462000ebd565b6000620016c284848462001658565b50501b90565b600062000eb760006060846200170060201b6200170a179092919060201c565b6000818310620016f9578162000f9f565b5090919050565b6001901b6000190191901c1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200175257805160ff191683800117855562001782565b8280016001018555821562001782579182015b828111156200178257825182559160200191906001019062001765565b50620015f3929150620017d4565b60405180606001604052806060815260200160608152602001606081525090565b604051806060016040528060608152602001606081526020016000151581525090565b5b80821115620015f35760008155600101620017d5565b805162000eb78162001d0b565b600082601f83011262001809578081fd5b8151620018206200181a8262001cdf565b62001cb8565b8181529150602080830190848101818402860182018710156200184257600080fd5b60005b848110156200186e5781516200185b8162001d0b565b8452928201929082019060010162001845565b505050505092915050565b600082601f8301126200188a578081fd5b81516200189b6200181a8262001cdf565b818152915060208083019084810181840286018201871015620018bd57600080fd5b60005b848110156200186e578151620018d68162001d0b565b84529282019290820190600101620018c0565b600082601f830112620018fa578081fd5b81516200190b6200181a8262001cdf565b8181529150602080830190848101818402860182018710156200192d57600080fd5b60005b848110156200186e5781518452928201929082019060010162001930565b8051801515811462000eb757600080fd5b600082601f83011262001970578081fd5b81516001600160401b0381111562001986578182fd5b60206200199c601f8301601f1916820162001cb8565b92508183528481838601011115620019b357600080fd5b60005b82811015620019d3578481018201518482018301528101620019b6565b82811115620019e55760008284860101525b50505092915050565b60006020828403121562001a00578081fd5b5051919050565b60006020828403121562001a19578081fd5b815162000f9f8162001d0b565b60006020828403121562001a38578081fd5b81516001600160401b038082111562001a4f578283fd5b81840191506101c080838703121562001a66578384fd5b62001a718162001cb8565b905062001a7f8684620017eb565b815262001a908660208501620017eb565b602082015260408301518281111562001aa7578485fd5b62001ab5878286016200195f565b60408301525060608301518281111562001acd578485fd5b62001adb878286016200195f565b60608301525060808301518281111562001af3578485fd5b62001b0187828601620017f8565b60808301525060a08301518281111562001b19578485fd5b62001b278782860162001879565b60a08301525060c08301518281111562001b3f578485fd5b62001b4d87828601620018e9565b60c08301525062001b628660e085016200194e565b60e0820152610100838101519082015261012080840151908201526101408084015190820152610160808401519082015261018062001ba487828601620017eb565b908201526101a0838101518381111562001bbc578586fd5b62001bca888287016200195f565b918301919091525095945050505050565b60006020828403121562001bed578081fd5b815160ff8116811462000f9f578182fd5b60006060820185835260206060818501528186518084526080860191508288019350845b8181101562001c4a5762001c37855162001cff565b8352938301939183019160010162001c22565b505084810360408601528551808252908201925081860190845b8181101562001c8c5762001c79835162001cff565b8552938301939183019160010162001c64565b509298975050505050505050565b602081016003831062001ca957fe5b91905290565b90815260200190565b6040518181016001600160401b038111828210171562001cd757600080fd5b604052919050565b60006001600160401b0382111562001cf5578081fd5b5060209081020190565b6001600160a01b031690565b6001600160a01b03811681146200140357600080fd5b60805160a05160c05160e0516101005160601c6101205160601c6101405161016051610180516101a05160601c6101c0516101e0516102005160601c6102205160601c6102405160601c6102605160601c6102805160601c6102a05160601c6102c0516102e051610300516103205161034051610360516103805160601c6103a05160601c6103c05160601c6103e05160601c6104005160601c6104205160601c610440516104605160f81c6104805160601c6104a05160f81c6104c051615ed862001ed260003980610e4052508061091d52508061089d52806108c852806108f3525080610fef5280611277525080612b23525080611c87525080611c57525080611c27525080611bf7525080611bc7525080611b97525080612fb6525080612f86525080612f56525080612f26525080612ef6525080612ec6525080611f82525080611f40525080611efe525080611ebc525080611e7a525080611e385250806110805250806117395250806112d3525080610bff525080611b6b525080611b4752508061118052508061115c5250806110b8525080612d34525080612d76525080612d555250615ed86000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c806370464016116101de57806395d89b411161010f578063d2946c2b116100ad578063ddf4627b1161007c578063ddf4627b146106f6578063eb0f24d6146106fe578063ed24911d14610706578063f4b7964d1461070e57610383565b8063d2946c2b146106b5578063d505accf146106bd578063d5c096c4146106d0578063dd62ed3e146106e357610383565b8063aaabadc5116100e9578063aaabadc51461068a578063ab7759f114610692578063b35056b8146106a5578063b7b814fc146106ad57610383565b806395d89b411461065c578063a457c2d714610664578063a9059cbb1461067757610383565b80638456cb591161017c57806387ec68171161015657806387ec681714610619578063893d20e81461062c5780638d928af81461064157806390193b7c1461064957610383565b80638456cb59146105f6578063851c1bb3146105fe578063876f303b1461061157610383565b806377151bee116101b857806377151bee146105b05780637ecebe00146105b85780637f1260d1146105cb57806382687a56146105ee57610383565b8063704640161461056957806370a082311461057c57806374f3b0091461058f57610383565b80633644e515116102b857806354a844ba1161025657806355c676281161023057806355c67628146105215780636028bfd414610529578063679aefce1461054a5780636daccffa1461055257610383565b806354a844ba146104fe57806354dea00a1461050657806354fd4d501461051957610383565b8063395093511161029257806339509351146104ba5780633c975d51146104cd5780633f4ba83a146104e357806350dd6ed9146104eb57610383565b80633644e5151461049757806338e9922e1461049f57806338fff2d0146104b257610383565b80631c0de0511161032557806323b872dd116102ff57806323b872dd146104495780632df2c7c01461045c5780632f1a0bc91461046f578063313ce5671461048257610383565b80631c0de051146104085780631dd746ea1461041f578063238a2d591461043457610383565b8063095ea7b311610361578063095ea7b3146103ce5780630da0669c146103ee57806315b0015b146103f857806318160ddd1461040057610383565b806301ec954a1461038857806304842d4c146103b157806306fdde03146103b9575b600080fd5b61039b6103963660046158c7565b610721565b6040516103a89190615ce8565b60405180910390f35b61039b6107c7565b6103c16107d6565b6040516103a89190615dbe565b6103e16103dc366004615504565b61086c565b6040516103a89190615cc5565b6103f6610883565b005b6103e161091b565b61039b61093f565b610410610945565b6040516103a893929190615cd0565b61042761096e565b6040516103a89190615c8d565b61043c610978565b6040516103a89190615ba9565b6103e1610457366004615454565b610a13565b6103f661046a366004615400565b610a87565b6103f661047d366004615a16565b610aeb565b61048a610bce565b6040516103a89190615e29565b61039b610bd7565b6103f66104ad3660046159e6565b610be1565b61039b610bfd565b6103e16104c8366004615504565b610c21565b6104d5610c5c565b6040516103a8929190615e00565b6103f6610c87565b6103f66104f9366004615702565b610c99565b6103f6610cb7565b61039b610514366004615400565b610cc9565b6103c1610ce4565b61039b610d45565b61053c61053736600461561b565b610d58565b6040516103a8929190615dd1565b61039b610d8f565b61055a610dfb565b6040516103a893929190615dea565b61039b6105773660046159e6565b610e16565b61039b61058a366004615400565b610ecf565b6105a261059d36600461561b565b610eea565b6040516103a8929190615ca0565b6103e1610fed565b61039b6105c6366004615400565b611011565b6105de6105d9366004615400565b61101c565b6040516103a89493929190615e0e565b61039b61107e565b6103f66110a2565b61039b61060c3660046156be565b6110b4565b61039b611106565b61053c61062736600461561b565b611134565b61063461115a565b6040516103a89190615b95565b61063461117e565b61039b610657366004615400565b6111a2565b6103c16111bd565b6103e1610672366004615504565b61121e565b6103e1610685366004615504565b61125c565b610634611269565b6103e16106a0366004615400565b611273565b6103e16112ae565b6103f66112bf565b6106346112d1565b6103f66106cb366004615494565b6112f5565b6105a26106de36600461561b565b611380565b61039b6106f136600461541c565b6114a3565b61039b6114e0565b6103f66114e6565b61039b611512565b6103f661071c366004615504565b61151c565b6000846080015161074e61073361117e565b6001600160a01b0316336001600160a01b03161460cd611719565b610763610759610bfd565b82146101f4611719565b61076b611727565b61077d8484610778611737565b61175b565b6060610787611773565b905060008751600181111561079857fe5b146107af576107aa878787878561180c565b6107bc565b6107bc8787878785611865565b979650505050505050565b60006107d16118a0565b905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b5050505050905090565b60006108793384846118a7565b5060015b92915050565b61088b61190f565b61089361091b565b156108c3576108c37f00000000000000000000000000000000000000000000000000000000000000006000611984565b6108ee7f00000000000000000000000000000000000000000000000000000000000000006002611984565b6109197f00000000000000000000000000000000000000000000000000000000000000006003611984565b565b7f000000000000000000000000000000000000000000000000000000000000000090565b60025490565b6000806000610952611b28565b15925061095d611b45565b9150610967611b69565b9050909192565b60606107d1611773565b60606000610984611737565b905060608167ffffffffffffffff8111801561099f57600080fd5b506040519080825280602002602001820160405280156109c9578160200160208202803683370190505b50905060005b82811015610a0c576109e081611b8d565b8282815181106109ec57fe5b6001600160a01b03909216602092830291909101909101526001016109cf565b5091505090565b600080610a2085336114a3565b9050610a44336001600160a01b0387161480610a3c5750838210155b61019e611719565b610a4f858585611cb6565b336001600160a01b03861614801590610a6a57506000198114155b15610a7c57610a7c85338584036118a7565b506001949350505050565b610a8f611d96565b6000610a9a82611e34565b90506000610aa782611b8d565b9050610ac06001600160a01b0382161515610155611719565b6000828152600a6020526040812054610ad890611fc2565b9050610ae5838383611fd1565b50505050565b610af36120b4565b610b03600183101561012c611719565b610b1461138883111561012d611719565b6000610b20824261165e565b9050610b346201518082101561013d611719565b600080610b3f6120e2565b91509150610b50811561013e611719565b6000610b5e866103e86115ba565b90506000838211610b8d57610b88610b7962015180866115ba565b610b8384886115ba565b612156565b610ba7565b610ba7610b9d62015180846115ba565b610b8386886115ba565b9050610bb9600282111561013f611719565b610bc584834289612189565b50505050505050565b60055460ff1690565b60006107d1611512565b610be96120b4565b610bf16121d8565b610bfa816121eb565b50565b7f000000000000000000000000000000000000000000000000000000000000000090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610879918590610c579086612264565b6118a7565b600c546000908190610c718160e9601761170a565b9250610c8081600060e961170a565b9150509091565b610c8f6120b4565b6109196000612276565b610ca16120b4565b610ca96121d8565b610cb382826122e9565b5050565b610cbf6120b4565b61091960016123de565b6000610cdc610cd783611e34565b612435565b90505b919050565b600d8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b6008546000906107d19060c0603f61170a565b60006060610d6e8651610d69611737565b6115e5565b610d83898989898989896124886124aa612513565b97509795505050505050565b60006060600080600080610da161263d565b9398509196509450925090506000610db98585612264565b90506000610dc56120e2565b5090506000848214610de057610ddb828961272d565b610de2565b835b9050610dee818461288f565b9850505050505050505090565b6000806000610e086120e2565b90949093506103e892509050565b6000610e206112ae565b15610e2d57506000610cdf565b81610e7957610e3a61091b565b610e64577f0000000000000000000000000000000000000000000000000000000000000000610e72565b600b5467ffffffffffffffff165b9050610cdf565b6002821415610ea15750600b5468010000000000000000900467ffffffffffffffff16610cdf565b6003821415610ec45750600b54600160801b900467ffffffffffffffff16610cdf565b610cdf6101bb6128e0565b6001600160a01b031660009081526020819052604090205490565b60608088610ef961073361117e565b610f04610759610bfd565b60606000610f11866128f0565b15610f3957610f1e61291f565b610f3089610f2a61093f565b88612932565b92509050610f8b565b610f41611727565b6060610f4b611773565b9050610f578a82612977565b610f7b8d8d8d8d8d610f676112ae565b610f71578d610f74565b60005b878e612488565b93509150610f8983826124aa565b505b610f958b826129e0565b81895167ffffffffffffffff81118015610fae57600080fd5b50604051908082528060200260200182016040528015610fd8578160200160208202803683370190505b509450945050505b5097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610cdc826111a2565b6000806000806000600a600061103188611e34565b81526020810191909152604001600020549050611052811515610155611719565b61105b816129ea565b9450611066816129f8565b935061107181612a06565b9597949650949392505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6110aa6120b4565b6109196001612276565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016110e9929190615b52565b604051602081830303815290604052805190602001209050919050565b600080600061111361263d565b5050925092505061112d818361226490919063ffffffff16565b9250505090565b600060606111458651610d69611737565b610d8389898989898989612a28612a39612513565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6001600160a01b031660009081526006602052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b60008061122b33856114a3565b905080831061124557611240338560006118a7565b611252565b61125233858584036118a7565b5060019392505050565b6000610879338484611cb6565b60006107d1612aa2565b60007f00000000000000000000000000000000000000000000000000000000000000008015610cdc5750610cdc6112a983611e34565b612b1c565b6008546000906107d19060ff612b47565b6112c76120b4565b61091960006123de565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113248c6111a2565b8960405160200161133a96959493929190615d10565b60405160208183030381529060405280519060200120905061136b8882611362878787612b51565b886101f8612b90565b6113768888886118a7565b5050505050505050565b6060808861138f61073361117e565b61139a610759610bfd565b6113a2611727565b60606113ac611773565b90506113b661093f565b61146357600060606113cb8d8d8d868b612be7565b915091506113e46113da6118a0565b83101560cc611719565b6113f660006113f16118a0565b612cc0565b6114098b6114026118a0565b8403612cc0565b6114138184612a39565b808a5167ffffffffffffffff8111801561142c57600080fd5b50604051908082528060200260200182016040528015611456578160200160208202803683370190505b5095509550505050610fe0565b61146d8882612977565b600060606114958d8d8d8d8d6114816112ae565b61148b578d61148e565b60005b898e612a28565b915091506114098b83612cc0565b60006114ad61117e565b6001600160a01b0316826001600160a01b031614156114cf575060001961087d565b6114d98383612cca565b905061087d565b60001981565b6114ee6120b4565b6000806114f96120e2565b9150915061150981610140611719565b610cb382612cf5565b60006107d1612d30565b6115246120b4565b61152c611d96565b600061153783611e34565b9050600061154482611b8d565b905061155d6001600160a01b0382161515610155611719565b611568828285611fd1565b806001600160a01b0316827fdd6d1c9badb346de6925b358a472c937b41698d2632696759e43fd6527feeec4856040516115a29190615ce8565b60405180910390a350505050565b80610cb381612dcd565b60008282026115de8415806115d75750838583816115d457fe5b04145b6003611719565b9392505050565b610cb38183146067611719565b60006001821b198416828461160857600061160b565b60015b60ff16901b17949350505050565b611631828414801561162a57508183145b6067611719565b505050565b6000611643848484612e46565b5082821b6000196001831b01831b198516175b949350505050565b600061166e838311156001611719565b50900390565b6000611687606084901c15610149611719565b61165642830160e060206116a48660c083838c8c60006060611636565b929190611636565b6000610cdc6116ba836129ea565b8390606080611636565b60006116dd67ffffffffffffffff8311156101ba611719565b5090565b60006116ee848484612e46565b50501b90565b600081831061170357816115de565b5090919050565b6001901b6000190191901c1690565b81610cb357610cb3816128e0565b61172f612e8c565b610919612e94565b7f000000000000000000000000000000000000000000000000000000000000000090565b611631818410801561176c57508183105b6064611719565b6060600061177f611737565b905060608167ffffffffffffffff8111801561179a57600080fd5b506040519080825280602002602001820160405280156117c4578160200160208202803683370190505b50905060005b82811015610a0c576117ed6117de82612435565b6117e783612ebc565b90612fda565b8282815181106117f957fe5b60209081029190910101526001016117ca565b60208501516000906001600160a01b0316301480611836575060408601516001600160a01b031630145b61184c576118478686868686613006565b611859565b6118598686868686613070565b90505b95945050505050565b60208501516000906001600160a01b031630148061188f575060408601516001600160a01b031630145b61184c576118478686868686613174565b620f424090565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611902908590615ce8565b60405180910390a3505050565b611917611d96565b61191f6121d8565b6060600080600061192e61263d565b945094509450509350600083111561194957611949836131cb565b60006119536120e2565b509050600083821461196e57611969828761272d565b611970565b825b905061197c82826131dc565b505050505050565b604051631a7c326360e01b81526000906001600160a01b03841690631a7c3263906119b3908590600401615ce8565b60206040518083038186803b1580156119cb57600080fd5b505afa1580156119df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0391906159fe565b905081611a3a57611a13816116c4565b600b805467ffffffffffffffff191667ffffffffffffffff92909216919091179055611aeb565b6002821415611a8857611a4c816116c4565b600b805467ffffffffffffffff9290921668010000000000000000026fffffffffffffffff000000000000000019909216919091179055611aeb565b6003821415611ae057611a9a816116c4565b600b805467ffffffffffffffff92909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff909216919091179055611aeb565b611aeb6101bb6128e0565b817f6bfb689528fa96ec1ad670ad6d6064be1ae96bfd5d2ee35c837fd0fe0c11959a82604051611b1b9190615ce8565b60405180910390a2505050565b6000611b32611b69565b4211806107d157505060075460ff161590565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b600081611bbb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415611beb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415611c1b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415611c4b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415611c7b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b610cdf6101356128e0565b611ccd6001600160a01b0384161515610198611719565b611ce46001600160a01b0383161515610199611719565b611cef838383611631565b6001600160a01b038316600090815260208190526040902054611d1590826101a0613202565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611d449082612264565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611902908590615ce8565b60408051600080825260208201909252606091611dc9565b611db661526c565b815260200190600190039081611dae5790505b509050611dd461117e565b6001600160a01b0316630e8e3e84826040518263ffffffff1660e01b8152600401611dff9190615bf6565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b5050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611e7857506000610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611eba57506001610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611efc57506002610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f3e57506003610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f8057506004610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611cab57506005610cdf565b6000610cdc8260c0602061170a565b6000826001600160a01b031663679aefce6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200c57600080fd5b505afa158015612020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204491906159fe565b6000858152600a6020526040902054909150612061818385611674565b6000868152600a602052604090819020919091555185907fb77a83204ca282e08dc3a65b0a1ca32ea4e6875c38ef0bf5bf75e52a67354fac906120a5908590615ce8565b60405180910390a25050505050565b60006120cb6000356001600160e01b0319166110b4565b9050610bfa6120da8233613218565b610191611719565b6000806000806000806120f3613301565b93509350935093508042101561214657600194508383111561212a57818103824203858503028161212057fe5b0484019550612141565b818103824203848603028161213b57fe5b04840395505b61214e565b600094508295505b505050509091565b60006121658215156004611719565b826121725750600061087d565b81600184038161217e57fe5b04600101905061087d565b61219584848484613360565b7f1835882ee7a34ac194f717a35e09bb1d24c82a3b9d854ab6c9749525b714cdf2848484846040516121ca9493929190615e0e565b60405180910390a150505050565b6109196121e3611b28565b610192611719565b6122006121f661339f565b82101560cb611719565b61221561220b6133a8565b82111560ca611719565b600854612226908260c0603f611636565b6008556040517fa9ba3ffe0b6c366b81232caab38605a0699ad5398d6cce76f91ee809e322dafc90612259908390615ce8565b60405180910390a150565b60008282016115de8482101583611719565b801561229657612291612287611b45565b4210610193611719565b6122ab565b6122ab6122a1611b69565b42106101a9611719565b6007805460ff19168215151790556040517f9e3a5e37224532dea67b89face185703738a228a6e8a23dee546960180d3be6490612259908390615cc5565b60006122f3610bfd565b905060006122ff61117e565b6001600160a01b031663b05f8e4883866040518363ffffffff1660e01b815260040161232c929190615d89565b60806040518083038186803b15801561234457600080fd5b505afa158015612358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237c9190615a37565b604051630639cdb560e21b81529094506001600160a01b03851693506318e736d492506123b0915085908790600401615d70565b600060405180830381600087803b1580156123ca57600080fd5b505af1158015611376573d6000803e3d6000fd5b6008546123ed908260ff6115f2565b6008556040517feff3d4d215b42bf0960be9c6d5e05c22cba4df6627a3a523e2acee733b5854c890612420908390615cc5565b60405180910390a180610bfa57610bfa6133b4565b600061243f61107e565b8214156124555750670de0b6b3a7640000610cdf565b6000828152600a6020526040902054801561247857612473816129ea565b6115de565b670de0b6b3a76400009392505050565b60006060612499600088868661348e565b915091509850989650505050505050565b815181516124b99082906115e5565b60005b81811015610ae5576124f48482815181106124d357fe5b60200260200101518483815181106124e757fe5b602002602001015161288f565b84828151811061250057fe5b60209081029190910101526001016124bc565b3330146125d1576000306001600160a01b0316600036604051612537929190615b6a565b6000604051808303816000865af19150503d8060008114612574576040519150601f19603f3d011682016040523d82523d6000602084013e612579565b606091505b50509050806000811461258857fe5b60046000803e6000516001600160e01b0319166343adbafb60e01b81146125b3573d6000803e3d6000fd5b506020600460003e604060205260243d03602460403e601c3d016000f35b6125d9611727565b60606125e3611773565b90506125ef8782612977565b600060606126078c8c8c8c8c8c898d8d63ffffffff16565b9150915061261981848663ffffffff16565b8051601f1982018390526343adbafb603f1983015260200260231982016044820181fd5b6060600080600080606061264f61117e565b6001600160a01b031663f94d4668612665610bfd565b6040518263ffffffff1660e01b81526004016126819190615ce8565b60006040518083038186803b15801561269957600080fd5b505afa1580156126ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126d5919081019061552f565b509150506126ea816126e5611773565b612977565b6126f38161353c565b965094506000612701610c5c565b90945090506000612713888684613575565b9450905061272187826135f1565b95505050509091929394565b80516000908190815b8181101561276e5761276485828151811061274d57fe5b60200260200101518461226490919063ffffffff16565b9250600101612736565b508161277f5760009250505061087d565b600082868302825b60ff811015612878578260005b868110156127d5576127cb6127a983876115ba565b6127c68c84815181106127b857fe5b60200260200101518a6115ba565b613609565b9150600101612794565b5083945061282e61280d6128076127ec848a6115ba565b6128016127f9888d6115ba565b6103e8613609565b90612264565b866115ba565b6127c661281d89600101856115ba565b6128016127f96103e889038a6115ba565b93508484111561285657600185850311612851578397505050505050505061087d565b61286f565b60018486031161286f578397505050505050505061087d565b50600101612787565b506128846101416128e0565b505050505092915050565b600061289e8215156004611719565b826128ab5750600061087d565b670de0b6b3a7640000838102906128ce908583816128c557fe5b04146005611719565b8281816128d757fe5b0491505061087d565b610bfa816210905360ea1b613629565b6000808251118015610cdc575060ff8016828060200190518101906129159190615a77565b60ff161492915050565b61091961292a6112ae565b6101b6611719565b60006060600060606129438761353c565b915091506000606061295683858961368a565b91509150816129668260006136b6565b95509550505050505b935093915050565b815181516129869082906115e5565b60005b81811015610ae5576129c18482815181106129a057fe5b60200260200101518483815181106129b457fe5b6020026020010151612fda565b8482815181106129cd57fe5b6020908102919091010152600101612989565b610cb38282613773565b6000610cdc8282606061170a565b6000610cdc8260608061170a565b600080612a1283611fc2565b9150612a218360e0602061170a565b9050915091565b60006060612499600188868661348e565b81518151612a489082906115e5565b60005b81811015610ae557612a83848281518110612a6257fe5b6020026020010151848381518110612a7657fe5b602002602001015161383f565b848281518110612a8f57fe5b6020908102919091010152600101612a4b565b6000612aac61117e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b158015612ae457600080fd5b505afa158015612af8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d191906156e6565b6000610cdc7f0000000000000000000000000000000000000000000000000000000000000000600684015b1c60019081161490565b60408051604180825260808201909252606091829190602082018180368337019050509050836020820152826040820152846060820153949350505050565b6000612b9b8561388d565b9050612bb1612bab8783876138a9565b83611719565b612bc0428410156101b8611719565b5050506001600160a01b039092166000908152600660205260409020805460010190555050565b600060606000612bf684613958565b9050612c116000826003811115612c0957fe5b1460ce611719565b6060612c1c8561396e565b9050612c2a815187516115e5565b612c348187612977565b6000612c3e6120e2565b5090506060612c4c83613984565b90506000612c5a838361272d565b9050806000612c776d80000000000000000000000000008361165e565b9050612c838d82612cc0565b8086612c8d61107e565b81518110612c9757fe5b602002602001018181525050612cad85846131dc565b509c939b50929950505050505050505050565b610cb38282613a26565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b612d0181824242613360565b7fa0d01593e47e69d07e0ccd87bece09411e07dd1ed40ca8f2e7af2976542a0233816040516122599190615ce8565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612d9d613ab3565b30604051602001612db2959493929190615d44565b60405160208183030381529060405280519060200120905090565b600281511015612ddc57610bfa565b600081600081518110612deb57fe5b602002602001015190506000600190505b8251811015611631576000838281518110612e1357fe5b60200260200101519050612e3c816001600160a01b0316846001600160a01b0316106065611719565b9150600101612dfc565b612e5561010083106064611719565b612e7d6001821015801561176c5750612e7360ff84610100036116f4565b8211156064611719565b61163183821c156101b4611719565b6109196121d8565b6000612e9e611737565b905060005b81811015610cb357612eb481613ab7565b600101612ea3565b600081612eea57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415612f1a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415612f4a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415612f7a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415612faa57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b6000828202612ff48415806115d75750838583816115d457fe5b670de0b6b3a764000090049392505050565b60006130128583612977565b613033866060015183858151811061302657fe5b6020026020010151613b0b565b6060870152600061304687878787613b17565b90506130658184878151811061305857fe5b6020026020010151613b2b565b90506107bc81613b37565b600080808751600181111561308157fe5b14905061308e8684612977565b6130ae876060015184836130a257866130a4565b875b8151811061302657fe5b876060018181525050600060606000806130c78a613b53565b93509350935093506000806130da61107e565b8a14613100576130fb878e60600151876130f38e613bbc565b888b89613bf1565b61311b565b61311b878e60600151876131138f613bbc565b888b89613c2a565b9150915061312c8486858985613c4e565b8661314657613141828a8d8151811061305857fe5b613163565b613163828a8c8151811061315657fe5b6020026020010151613cce565b9d9c50505050505050505050505050565b60006131838660600151613cda565b60608701526131928583612977565b6131a6866060015183868151811061302657fe5b606087015260006131b987878787613cfb565b90506107bc8184868151811061315657fe5b610bfa6131d66112d1565b82612cc0565b6131e981600060e96116e1565b6131f68360e960176116e1565b17600c55610cb3613d0f565b60006132118484111583611719565b5050900390565b600073ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b61323761115a565b6001600160a01b031614158015613252575061325283613d45565b1561327a5761325f61115a565b6001600160a01b0316336001600160a01b031614905061087d565b613282612aa2565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b81526004016132b193929190615cf1565b60206040518083038186803b1580156132c957600080fd5b505afa1580156132dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d991906155fb565b6000806000806133206000604060095461170a9092919063ffffffff16565b6009549094506133329060408061170a565b600954909350613345906080604061170a565b6009549092506133589060c0604061170a565b905090919293565b61336d8160c060406116e1565b61337a83608060406116e1565b613386856040806116e1565b61339387600060406116e1565b17171760095550505050565b64e8d4a5100090565b67016345785d8a000090565b6133bc611d96565b60606133c661117e565b6001600160a01b031663f94d46686133dc610bfd565b6040518263ffffffff1660e01b81526004016133f89190615ce8565b60006040518083038186803b15801561341057600080fd5b505afa158015613424573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261344c919081019061552f565b5091505061345c816126e5611773565b606061346782613984565b905060006134736120e2565b5090506000613482828461272d565b9050610ae582826131dc565b60006060600060606000806134a289613b53565b935093509350935061529c8a6134ba57613d506134be565b613de55b9050600060606134d6868689878f8f8963ffffffff16565b9150915061529c8d6134ea5761165e6134ee565b6122645b90506134fb878383613e63565b600061350b89858463ffffffff16565b905061351a8789888c85613c4e565b836135268460006136b6565b9a509a5050505050505050505094509492505050565b600060606135638361354c61107e565b8151811061355657fe5b6020026020010151613ed0565b61356c84613984565b91509150915091565b6000806000806000613588888888613ee4565b9250925092508581116135a35760009450925061296f915050565b85830383830360006135c16135b782610e16565b6117e7858761288f565b905060006135dc6135d26002610e16565b6117e7858861288f565b919091019b939a509298505050505050505050565b60006115de61360084846115ba565b6127c684613f55565b60006136188215156004611719565b81838161362157fe5b049392505050565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b60006060600061369984613f7b565b905060606136a8878784613f91565b919791965090945050505050565b6060825160010167ffffffffffffffff811180156136d357600080fd5b506040519080825280602002602001820160405280156136fd578160200160208202803683370190505b50905060005b815181101561376c5761371461107e565b811461374b578361372361107e565b82106137325760018203613734565b815b8151811061373e57fe5b602002602001015161374d565b825b82828151811061375957fe5b6020908102919091010152600101613703565b5092915050565b61378a6001600160a01b038316151561019b611719565b61379682600083611631565b6001600160a01b0382166000908152602081905260409020546137bc90826101b2613202565b6001600160a01b0383166000908152602081905260409020556137ef6137ea826137e461093f565b90614040565b61404e565b60006001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516138339190615ce8565b60405180910390a35050565b600061384e8215156004611719565b8261385b5750600061087d565b670de0b6b3a764000083810290613875908583816128c557fe5b82600182038161388157fe5b0460010191505061087d565b6000613897612d30565b826040516020016110e9929190615b7a565b60006138bb82516041146101b9611719565b60208281015160408085015160608601518251600080825295019283905292939092811a916001906138f4908990859088908890615da0565b6020604051602081039080840390855afa158015613916573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061394c5750876001600160a01b0316816001600160a01b0316145b98975050505050505050565b600081806020019051810190610cdc9190615811565b6060818060200190518101906115de919061582c565b606080600183510367ffffffffffffffff811180156139a257600080fd5b506040519080825280602002602001820160405280156139cc578160200160208202803683370190505b50905060005b815181101561376c57836139e461107e565b82106139f357816001016139f5565b815b815181106139ff57fe5b6020026020010151828281518110613a1357fe5b60209081029190910101526001016139d2565b613a3260008383611631565b613a416137ea8261280161093f565b6001600160a01b038216600090815260208190526040902054613a649082612264565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90613833908590615ce8565b4690565b613abf61107e565b811415613acb57610bfa565b6000818152600a60205260409020548015610cb357600080613aec83612a06565b9150915080421115610ae557610ae584613b0586611b8d565b84611fd1565b60006115de8383612fda565b600061185c60008660600151868686614053565b60006115de838361383f565b6000610cdc613b4c613b47610d45565b613f55565b839061383f565b60006060600080600080613b65610c5c565b91509150600060606000613b7a8a86866140c5565b9250925092506000613b8a6120e2565b5090506000868214613ba557613ba0828561272d565b613ba7565b825b949c939b509099509297509095505050505050565b6000613bd3613bc961107e565b8314156064611719565b613bdb61107e565b82106116dd57613bec82600161165e565b610cdc565b60008088613c0c57613c0788888888888861411d565b613c1a565b613c1a8888888888886141f4565b9150915097509795505050505050565b60008088613c4057613c07888888888888614255565b613c1a8888888888886142bb565b6000613c5a868661272d565b90506000613c68838561288f565b90506000613c768683612fda565b905080831115613cc4578083036000613ca0613c9a83613c9584610e16565b6115ba565b86613609565b90508015613cc1576000613cb487836135f1565b9050613cbf816131cb565b505b50505b61137688846131dc565b60006115de838361288f565b600080613cef613ce8610d45565b849061436a565b90506115de838261165e565b600061185c60018660600151868686614053565b6000613d19611737565b905060005b81811015610cb357613d2f81612b1c565b15613d3d57613d3d816143a6565b600101613d1e565b6000610cdc826143d4565b600060606000613d5f846143df565b90506001816002811115613d6f57fe5b1415613d8d57613d8387878a8c89896143f5565b9250925050613dda565b6002816002811115613d9b57fe5b1415613dac57613d83878a86614454565b6000816002811115613dba57fe5b1415613dcd57613d8387878a8c88614472565b613dd86101506128e0565b505b965096945050505050565b600060606000613df484613958565b90506001816003811115613e0457fe5b1415613e1857613d8387878a8c8989614513565b6003816003811115613e2657fe5b1415613e3757613d83878a86614562565b6002816003811115613e4557fe5b1415613e5857613d8387878a8c88614580565b613dd86101366128e0565b82518251613e729082906115e5565b60005b81811015611e2d57613eb1858281518110613e8c57fe5b6020026020010151858381518110613ea057fe5b60200260200101518563ffffffff16565b858281518110613ebd57fe5b6020908102919091010152600101613e75565b6000610cdc82613ede61093f565b9061165e565b6000806000613ef3858761272d565b9050838111613f0757808192509250613f4c565b613f1985613f14886145fa565b61272d565b9250613f2581846116f4565b9250613f3184846146eb565b9250613f3b610fed565b15613f4857829150613f4c565b8091505b93509350939050565b6000670de0b6b3a76400008210613f6d576000610cdc565b50670de0b6b3a76400000390565b6000818060200190518101906115de9190615a93565b60606000613f9f838561288f565b9050845167ffffffffffffffff81118015613fb957600080fd5b50604051908082528060200260200182016040528015613fe3578160200160208202803683370190505b50915060005b8551811015614037576140188287838151811061400257fe5b6020026020010151612fda90919063ffffffff16565b83828151811061402457fe5b6020908102919091010152600101613fe9565b50509392505050565b60006115de83836001613202565b600255565b6000606061406085613984565b9050600061406d85613bbc565b9050600061407a85613bbc565b905060006140866120e2565b5090506000614095828661272d565b90508a156140b7576140ab828686868e866146fb565b9550505050505061185c565b6140ab828686868e86614786565b6000606060008060606140d78861353c565b915091506000806140e9838a8a613575565b9150915060006140f985846135f1565b9050801561410a5761410a816131cb565b9390930199919850919650945050505050565b6000806060875167ffffffffffffffff8111801561413a57600080fd5b50604051908082528060200260200182016040528015614164578160200160208202803683370190505b5090508881888151811061417457fe5b6020026020010181815250506000614197878a848989614192610d45565b614819565b90506141bf8a8a8a815181106141a957fe5b602002602001015161165e90919063ffffffff16565b8989815181106141cb57fe5b602090810291909101015260006141e2878361165e565b919b919a509098505050505050505050565b600080600061420f8689898c898961420a610d45565b614aa9565b9050614221818989815181106141a957fe5b88888151811061422d57fe5b60209081029190910101526000614244868b61165e565b919a91995090975050505050505050565b60008060006142708689898c898961426b610d45565b614b98565b90506142988189898151811061428257fe5b602002602001015161226490919063ffffffff16565b8888815181106142a457fe5b60209081029190910101526000614244868b612264565b6000806060875167ffffffffffffffff811180156142d857600080fd5b50604051908082528060200260200182016040528015614302578160200160208202803683370190505b5090508881888151811061431257fe5b6020026020010181815250506000614335878a848989614330610d45565b614c65565b90506143478a8a8a8151811061428257fe5b89898151811061435357fe5b602090810291909101015260006141e28783612264565b60008282026143848415806115d75750838583816115d457fe5b8061439357600091505061087d565b670de0b6b3a76400006000198201613881565b6000818152600a60205260409020546143be816116ac565b6000928352600a60205260409092209190915550565b6000610cdc82614ecf565b600081806020019051810190610cdc9190615750565b6000606080600061440585614ef2565b91509150614415825188516115e5565b614422826126e588613984565b60006144348989858e8e614192610d45565b90506144448282111560cf611719565b9a91995090975050505050505050565b60006060600061446384614f15565b905060606136a8868884613f91565b6000606060008061448285614f2b565b91509150614494865182106064611719565b6060865167ffffffffffffffff811180156144ae57600080fd5b506040519080825280602002602001820160405280156144d8578160200160208202803683370190505b5090506144ec888884868e8e61420a610d45565b8183815181106144f857fe5b60209081029190910101529199919850909650505050505050565b6000606080600061452385614f42565b91509150614533875183516115e5565b614540826126e588613984565b60006145528989858e8e614330610d45565b90506144448282101560d0611719565b60006060600061457184614f5a565b905060606136a8868389614f70565b600060606000806145908561500c565b915091506145a2865182106064611719565b6060865167ffffffffffffffff811180156145bc57600080fd5b506040519080825280602002602001820160405280156145e6578160200160208202803683370190505b5090506144ec888884868e8e61426b610d45565b8051606090818167ffffffffffffffff8111801561461757600080fd5b50604051908082528060200260200182016040528015614641578160200160208202803683370190505b50905060005b828110156146e357600061465961107e565b821015614666578161466b565b816001015b905061467681612b1c565b6146935785828151811061468657fe5b60200260200101516146c3565b6146c38683815181106146a257fe5b6020026020010151600a600084815260200190815260200160002054615023565b8383815181106146cf57fe5b602090810291909101015250600101614647565b509392505050565b60008183101561170357816115de565b600061470d8387878151811061428257fe5b86868151811061471957fe5b60200260200101818152505060006147338888858861503e565b90508387878151811061474257fe5b60200260200101510387878151811061475757fe5b6020026020010181815250506147786001613ede838a89815181106141a957fe5b9150505b9695505050505050565b6000614798838786815181106141a957fe5b8685815181106147a457fe5b60200260200101818152505060006147be8888858961503e565b9050838786815181106147cd57fe5b6020026020010151018786815181106147e257fe5b602002602001018181525050614778600161280189898151811061480257fe5b60200260200101518461165e90919063ffffffff16565b600080805b87518110156148575761484d88828151811061483657fe5b60200260200101518361226490919063ffffffff16565b915060010161481e565b506060865167ffffffffffffffff8111801561487257600080fd5b5060405190808252806020026020018201604052801561489c578160200160208202803683370190505b5090506000805b89518110156149695760006148d4858c84815181106148be57fe5b602002602001015161383f90919063ffffffff16565b90506149168b83815181106148e557fe5b60200260200101516149108c85815181106148fc57fe5b60200260200101518e86815181106141a957fe5b9061383f565b84838151811061492257fe5b60200260200101818152505061495e6149578286858151811061494157fe5b602002602001015161436a90919063ffffffff16565b8490612264565b9250506001016148a3565b506060895167ffffffffffffffff8111801561498457600080fd5b506040519080825280602002602001820160405280156149ae578160200160208202803683370190505b50905060005b8a51811015614a795760008482815181106149cb57fe5b6020026020010151841115614a325760006149f46149e886613f55565b8e858151811061400257fe5b90506000614a08828e86815181106141a957fe5b9050614a29614a2282670de0b6b3a76400008d900361383f565b8390612264565b92505050614a49565b8a8281518110614a3e57fe5b602002602001015190505b614a59818d84815181106141a957fe5b838381518110614a6557fe5b6020908102919091010152506001016149b4565b506000614a868c8361272d565b90506000614a94828a61288f565b9050613163614aa282613f55565b8b9061436a565b600080614ac484614abe87614910818b61165e565b9061436a565b90506000614ad48a8a848b61503e565b90506000614ae8828b8b815181106141a957fe5b90506000805b8b51811015614b1057614b068c828151811061483657fe5b9150600101614aee565b506000614b39828d8d81518110614b2357fe5b602002602001015161288f90919063ffffffff16565b90506000614b4682613f55565b90506000614b54858361436a565b90506000614b62868361165e565b9050614b83614b7c83670de0b6b3a76400008d9003612fda565b8290612264565b98505050505050505050979650505050505050565b600080614bad84614abe87614910818b612264565b90506000614bbd8a8a848b61503e565b90506000614be78a8a81518110614bd057fe5b60200260200101518361165e90919063ffffffff16565b90506000805b8b51811015614c0f57614c058c828151811061483657fe5b9150600101614bed565b506000614c22828d8d81518110614b2357fe5b90506000614c2f82613f55565b90506000614c3d858361436a565b90506000614c4b868361165e565b9050614b83614b7c83670de0b6b3a76400008d900361383f565b600080805b8751811015614c8c57614c8288828151811061483657fe5b9150600101614c6a565b506060865167ffffffffffffffff81118015614ca757600080fd5b50604051908082528060200260200182016040528015614cd1578160200160208202803683370190505b5090506000805b8951811015614d6b576000614cf3858c8481518110614b2357fe5b9050614d358b8381518110614d0457fe5b6020026020010151614d2f8c8581518110614d1b57fe5b60200260200101518e868151811061428257fe5b9061288f565b848381518110614d4157fe5b602002602001018181525050614d606149578286858151811061400257fe5b925050600101614cd8565b506060895167ffffffffffffffff81118015614d8657600080fd5b50604051908082528060200260200182016040528015614db0578160200160208202803683370190505b50905060005b8a51811015614e7157600083858381518110614dce57fe5b60200260200101511115614e2a576000614df36149e886670de0b6b3a764000061165e565b90506000614e07828e86815181106141a957fe5b9050614e21614a2282670de0b6b3a76400008d9003612fda565b92505050614e41565b8a8281518110614e3657fe5b602002602001015190505b614e51818d848151811061428257fe5b838381518110614e5d57fe5b602090810291909101015250600101614db6565b506000614e7e8c8361272d565b90506000614e8c828a61288f565b9050670de0b6b3a7640000811115614ec057614eb38a670de0b6b3a763ffff198301612fda565b965050505050505061477c565b6000965050505050505061477c565b6000614ee163f4b7964d60e01b6110b4565b821480610cdc5750610cdc826151fb565b6060600082806020019051810190614f0a919061576b565b909590945092505050565b6000818060200190518101906115de91906157b0565b60008082806020019051810190614f0a91906157dc565b6060600082806020019051810190614f0a919061586f565b6000818060200190518101906115de919061588d565b60606000614f7e848461383f565b90506060855167ffffffffffffffff81118015614f9a57600080fd5b50604051908082528060200260200182016040528015614fc4578160200160208202803683370190505b50905060005b865181101561500257614fe38388838151811061494157fe5b828281518110614fef57fe5b6020908102919091010152600101614fca565b5095945050505050565b60008082806020019051810190614f0a91906158a9565b60006115de61503584613c95856129f8565b6127c6846129ea565b60008084518602905060008560008151811061505657fe5b60200260200101519050600086518760008151811061507157fe5b60200260200101510290506000600190505b87518110156150d7576150bc6150b66150af848b85815181106150a257fe5b60200260200101516115ba565b8a516115ba565b88613609565b91506150cd88828151811061274d57fe5b9250600101615083565b508685815181106150e457fe5b60200260200101518203915060006150fc87886115ba565b9050600061512861511c61511484610b8389886115ba565b6103e86115ba565b8a89815181106150a257fe5b9050600061514361513c6151148b89613609565b8690612264565b905060008061515f6151558686612264565b610b838d86612264565b905060005b60ff8110156151df578192506151946151818661280185866115ba565b610b838e613ede886128018860026115ba565b9150828211156151bd576001838303116151b8575097506116569650505050505050565b6151d7565b6001828403116151d7575097506116569650505050505050565b600101615164565b506151eb6101426128e0565b5050505050505050949350505050565b600061520d632f1a0bc960e01b6110b4565b8214806152285750615225637587926b60e11b6110b4565b82145b80610cdc5750610cdc826000615244631c74c91760e11b6110b4565b82148061525f575061525c6350dd6ed960e01b6110b4565b82145b80610cdc57506000610cdc565b6040805160a081019091528060008152600060208201819052604082018190526060820181905260809091015290565bfe5b803561087d81615e7e565b600082601f8301126152b9578081fd5b81356152cc6152c782615e5e565b615e37565b8181529150602080830190848101818402860182018710156152ed57600080fd5b60005b84811015612884578135845292820192908201906001016152f0565b600082601f83011261531c578081fd5b815161532a6152c782615e5e565b81815291506020808301908481018184028601820187101561534b57600080fd5b60005b848110156128845781518452928201929082019060010161534e565b600082601f83011261537a578081fd5b813567ffffffffffffffff811115615390578182fd5b6153a3601f8201601f1916602001615e37565b91508082528360208285010111156153ba57600080fd5b8060208401602084013760009082016020015292915050565b80516003811061087d57600080fd5b80516004811061087d57600080fd5b80356002811061087d57600080fd5b600060208284031215615411578081fd5b81356115de81615e7e565b6000806040838503121561542e578081fd5b823561543981615e7e565b9150602083013561544981615e7e565b809150509250929050565b600080600060608486031215615468578081fd5b833561547381615e7e565b9250602084013561548381615e7e565b929592945050506040919091013590565b600080600080600080600060e0888a0312156154ae578283fd5b87356154b981615e7e565b965060208801356154c981615e7e565b9550604088013594506060880135935060808801356154e781615e93565b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215615516578182fd5b823561552181615e7e565b946020939093013593505050565b600080600060608486031215615543578081fd5b835167ffffffffffffffff8082111561555a578283fd5b818601915086601f83011261556d578283fd5b815161557b6152c782615e5e565b80828252602080830192508086018b82838702890101111561559b578788fd5b8796505b848710156155c65780516155b281615e7e565b84526001969096019592810192810161559f565b5089015190975093505050808211156155dd578283fd5b506155ea8682870161530c565b925050604084015190509250925092565b60006020828403121561560c578081fd5b815180151581146115de578182fd5b600080600080600080600060e0888a031215615635578081fd5b87359650602088013561564781615e7e565b9550604088013561565781615e7e565b9450606088013567ffffffffffffffff80821115615673578283fd5b61567f8b838c016152a9565b955060808a0135945060a08a0135935060c08a01359150808211156156a2578283fd5b506156af8a828b0161536a565b91505092959891949750929550565b6000602082840312156156cf578081fd5b81356001600160e01b0319811681146115de578182fd5b6000602082840312156156f7578081fd5b81516115de81615e7e565b60008060408385031215615714578182fd5b823561571f81615e7e565b9150602083013567ffffffffffffffff81111561573a578182fd5b6157468582860161536a565b9150509250929050565b600060208284031215615761578081fd5b6115de83836153d3565b60008060006060848603121561577f578081fd5b61578985856153d3565b9250602084015167ffffffffffffffff8111156157a4578182fd5b6155ea8682870161530c565b600080604083850312156157c2578182fd5b6157cc84846153d3565b9150602083015190509250929050565b6000806000606084860312156157f0578081fd5b6157fa85856153d3565b925060208401519150604084015190509250925092565b600060208284031215615822578081fd5b6115de83836153e2565b6000806040838503121561583e578182fd5b61584884846153e2565b9150602083015167ffffffffffffffff811115615863578182fd5b6157468582860161530c565b600080600060608486031215615883578081fd5b61578985856153e2565b6000806040838503121561589f578182fd5b6157cc84846153e2565b6000806000606084860312156158bd578081fd5b6157fa85856153e2565b600080600080608085870312156158dc578182fd5b843567ffffffffffffffff808211156158f3578384fd5b818701915061012080838a031215615909578485fd5b61591281615e37565b905061591e89846153f1565b815261592d896020850161529e565b602082015261593f896040850161529e565b6040820152606083013560608201526080830135608082015260a083013560a082015261596f8960c0850161529e565b60c08201526159818960e0850161529e565b60e08201526101008084013583811115615999578687fd5b6159a58b82870161536a565b8284015250508096505060208701359150808211156159c2578384fd5b506159cf878288016152a9565b949794965050505060408301359260600135919050565b6000602082840312156159f7578081fd5b5035919050565b600060208284031215615a0f578081fd5b5051919050565b60008060408385031215615a28578182fd5b50508035926020909101359150565b60008060008060808587031215615a4c578182fd5b8451935060208501519250604085015191506060850151615a6c81615e7e565b939692955090935050565b600060208284031215615a88578081fd5b81516115de81615e93565b60008060408385031215615aa5578182fd5b8251615ab081615e93565b6020939093015192949293505050565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015615afc57815187529582019590820190600101615ae0565b509495945050505050565b60008151808452815b81811015615b2c57602081850181015186830182015201615b10565b81811115615b3d5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6000828483379101908152919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015615bea5783516001600160a01b031683529284019291840191600101615bc5565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015615c80578151805160048110615c2957fe5b855280870151615c3b88870182615ac0565b508581015186860152606080820151615c5682880182615ac0565b505060809081015190615c6b86820183615ac0565b505060a0939093019290850190600101615c13565b5091979650505050505050565b6000602082526115de6020830184615acd565b600060408252615cb36040830185615acd565b828103602084015261185c8185615acd565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6000838252604060208301526116566040830184615b07565b9182526001600160a01b0316602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526115de6020830184615b07565b6000838252604060208301526116566040830184615acd565b9283529015156020830152604082015260600190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715615e5657600080fd5b604052919050565b600067ffffffffffffffff821115615e74578081fd5b5060209081020190565b6001600160a01b0381168114610bfa57600080fd5b60ff81168114610bfa57600080fdfea2646970667358221220b4e550780037f90ebe851b3b7805b576dad987fb40b27b1310b67210681e408464736f6c634300070100336bfb689528fa96ec1ad670ad6d6064be1ae96bfd5d2ee35c837fd0fe0c11959a",
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100de5760003560e01c80636634b7531161008c578063851c1bb311610066578063851c1bb3146101845780638d928af8146101a4578063971e1833146101ac578063aaabadc5146101bf576100de565b80636634b753146101475780636c57f5a914610167578063739238d61461016f576100de565b80632f2770db116100bd5780632f2770db1461012d5780633f819b6f1461013757806354fd4d501461013f576100de565b8062c194db146100e3578063174481fa146101015780632da47c4014610117575b600080fd5b6100eb6101c7565b6040516100f89190610db5565b60405180910390f35b6101096101e6565b6040516100f8929190610d68565b61011f61022c565b6040516100f8929190610f17565b610135610296565b005b6100eb6102dd565b6100eb610373565b61015a610155366004610af6565b6103d1565b6040516100f89190610d82565b61015a6103ef565b6101776103f8565b6040516100f89190610dc8565b610197610192366004610b2e565b61041c565b6040516100f89190610d8d565b61017761046e565b6101776101ba366004610b72565b610492565b61017761056b565b60606101e160405180602001604052806000815250610637565b905090565b7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000009091565b600080427f000000000000000000000000000000000000000000000000000000000000000081101561028857807f000000000000000000000000000000000000000000000000000000000000000003925062278d009150610291565b60009250600091505b509091565b61029e610710565b6102a6610741565b6001805460ff1916811790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d5090600090a1565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b820191906000526020600020905b81548152906001019060200180831161034c57829003601f168201915b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b6001600160a01b031660009081526020819052604090205460ff1690565b60015460ff1690565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f000000000000000000000000000000000000000000000000000000000000000082604051602001610451929190610d50565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b600080600061049f61022c565b9150915061055a604051806101c001604052806104ba61046e565b6001600160a01b031681526020016104d06103f8565b6001600160a01b031681526020018f81526020018e81526020018d81526020018b81526020018a815260200189151581526020018c8152602001888152602001848152602001838152602001876001600160a01b031681526020016105336102dd565b90526040516105459190602001610ddc565b60405160208183030381529060405285610756565b9d9c50505050505050505050505050565b600061057561046e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ad57600080fd5b505afa1580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e19190610b56565b80517f602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe808352600091602081018484f090845291506106316001600160a01b03831615156101ac6107c3565b50919050565b8051604080517f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000818101858101848101602090810190965280855293957f00000000000000000000000000000000000000000000000000000000000000009592947f000000000000000000000000000000000000000000000000000000000000000094938801866000828a3c846000888301883c50602089810190898501016107028183866107d5565b505050505050505050919050565b60006107276000356001600160e01b03191661041c565b905061073e6107368233610813565b6101916107c3565b50565b61075461074c6103ef565b1560d36107c3565b565b6000610760610741565b600061076c84846108a3565b6001600160a01b038116600081815260208190526040808220805460ff191660011790555192935090917f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a290505b92915050565b816107d1576107d1816108e0565b5050565b5b602081106107f5578151835260209283019290910190601f19016107d6565b905182516020929092036101000a6000190180199091169116179052565b600061081d61056b565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b815260040161084c93929190610d96565b60206040518083038186803b15801561086457600080fd5b505afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610b12565b9392505050565b600060606108b084610637565b90506000838251602084016000f590506001600160a01b0381166108d8573d6000803e3d6000fd5b949350505050565b62461bcd60e51b600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b60445261073e916210905360ea1b906242414c90606490fd5b80356107bd81610f6c565b600082601f830112610956578081fd5b813561096961096482610f4c565b610f25565b81815291506020808301908481018184028601820187101561098a57600080fd5b60005b848110156109b25781356109a081610f6c565b8452928201929082019060010161098d565b505050505092915050565b600082601f8301126109cd578081fd5b81356109db61096482610f4c565b8181529150602080830190848101818402860182018710156109fc57600080fd5b60005b848110156109b2578135610a1281610f6c565b845292820192908201906001016109ff565b600082601f830112610a34578081fd5b8135610a4261096482610f4c565b818152915060208083019084810181840286018201871015610a6357600080fd5b60005b848110156109b257813584529282019290820190600101610a66565b80356107bd81610f81565b600082601f830112610a9d578081fd5b813567ffffffffffffffff811115610ab3578182fd5b610ac6601f8201601f1916602001610f25565b9150808252836020828501011115610add57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610b07578081fd5b813561089c81610f6c565b600060208284031215610b23578081fd5b815161089c81610f81565b600060208284031215610b3f578081fd5b81356001600160e01b03198116811461089c578182fd5b600060208284031215610b67578081fd5b815161089c81610f6c565b6000806000806000806000806000806101408b8d031215610b91578586fd5b8a3567ffffffffffffffff80821115610ba8578788fd5b610bb48e838f01610a8d565b9b5060208d0135915080821115610bc9578788fd5b610bd58e838f01610a8d565b9a5060408d0135915080821115610bea578788fd5b610bf68e838f01610946565b995060608d0135985060808d0135915080821115610c12578788fd5b610c1e8e838f016109bd565b975060a08d0135915080821115610c33578687fd5b50610c408d828e01610a24565b955050610c508c60c08d01610a82565b935060e08b01359250610c678c6101008d0161093b565b91506101208b013590509295989b9194979a5092959850565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015610cc55781516001600160a01b031687529582019590820190600101610ca0565b509495945050505050565b6000815180845260208085019450808401835b83811015610cc557815187529582019590820190600101610ce3565b15159052565b60008151808452815b81811015610d2a57602081850181015186830182015201610d0e565b81811115610d3b5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6001600160a01b0392831681529116602082015260400190565b901515815260200190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b60006020825261089c6020830184610d05565b6001600160a01b0391909116815260200190565b600060208252610df0602083018451610c80565b6020830151610e026040840182610c80565b5060408301516101c0806060850152610e1f6101e0850183610d05565b91506060850151601f1980868503016080870152610e3d8483610d05565b935060808701519150808685030160a0870152610e5a8483610c8d565b935060a08701519150808685030160c0870152610e778483610c8d565b935060c08701519150808685030160e0870152610e948483610cd0565b935060e08701519150610100610eac81880184610cff565b8701516101208781019190915287015161014080880191909152870151610160808801919091528701516101808088019190915287015191506101a0610ef481880184610c80565b870151868503909101838701529050610f0d8382610d05565b9695505050505050565b918252602082015260400190565b60405181810167ffffffffffffffff81118282101715610f4457600080fd5b604052919050565b600067ffffffffffffffff821115610f62578081fd5b5060209081020190565b6001600160a01b038116811461073e57600080fd5b801515811461073e57600080fdfea26469706673582212209e0aae2f26ba89d69b81af7af61eaa1316c922acdebe021f38d79fcb5f3c901364736f6c63430007010033",
+ "linkReferences": {},
+ "deployedLinkReferences": {}
+}
\ No newline at end of file
diff --git a/tasks/deprecated/20230711-zkevm-composable-stable-pool-v5/build-info/ComposableStablePoolFactory.json b/tasks/deprecated/20230711-zkevm-composable-stable-pool-v5/build-info/ComposableStablePoolFactory.json
new file mode 100644
index 000000000..fe7f6fd91
--- /dev/null
+++ b/tasks/deprecated/20230711-zkevm-composable-stable-pool-v5/build-info/ComposableStablePoolFactory.json
@@ -0,0 +1,215768 @@
+{
+ "id": "4dbbc5be9bb65aa31b08da241558df86",
+ "_format": "hh-sol-build-info-1",
+ "solcVersion": "0.7.1",
+ "solcLongVersion": "0.7.1+commit.f4a555be",
+ "input": {
+ "language": "Solidity",
+ "sources": {
+ "contracts/ComposableStablePoolFactory.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\";\n\nimport \"@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol\";\nimport \"@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol\";\n\nimport \"./ComposableStablePool.sol\";\n\ncontract ComposableStablePoolFactory is IVersion, IPoolVersion, BasePoolFactory, FactoryWidePauseWindow {\n string private _version;\n string private _poolVersion;\n\n constructor(\n IVault vault,\n IProtocolFeePercentagesProvider protocolFeeProvider,\n string memory factoryVersion,\n string memory poolVersion\n ) BasePoolFactory(vault, protocolFeeProvider, type(ComposableStablePool).creationCode) {\n _version = factoryVersion;\n _poolVersion = poolVersion;\n }\n\n function version() external view override returns (string memory) {\n return _version;\n }\n\n function getPoolVersion() public view override returns (string memory) {\n return _poolVersion;\n }\n\n /**\n * @dev Deploys a new `ComposableStablePool`.\n */\n function create(\n string memory name,\n string memory symbol,\n IERC20[] memory tokens,\n uint256 amplificationParameter,\n IRateProvider[] memory rateProviders,\n uint256[] memory tokenRateCacheDurations,\n bool exemptFromYieldProtocolFeeFlag,\n uint256 swapFeePercentage,\n address owner,\n bytes32 salt\n ) external returns (ComposableStablePool) {\n (uint256 pauseWindowDuration, uint256 bufferPeriodDuration) = getPauseConfiguration();\n return\n ComposableStablePool(\n _create(\n abi.encode(\n ComposableStablePool.NewPoolParams({\n vault: getVault(),\n protocolFeeProvider: getProtocolFeePercentagesProvider(),\n name: name,\n symbol: symbol,\n tokens: tokens,\n rateProviders: rateProviders,\n tokenRateCacheDurations: tokenRateCacheDurations,\n exemptFromYieldProtocolFeeFlag: exemptFromYieldProtocolFeeFlag,\n amplificationParameter: amplificationParameter,\n swapFeePercentage: swapFeePercentage,\n pauseWindowDuration: pauseWindowDuration,\n bufferPeriodDuration: bufferPeriodDuration,\n owner: owner,\n version: getPoolVersion()\n })\n ),\n salt\n )\n );\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity >=0.7.0 <0.9.0;\n\n/**\n * @notice Simple interface to retrieve the version of pools deployed by a pool factory.\n */\ninterface IPoolVersion {\n /**\n * @dev Returns a JSON representation of the deployed pool version containing name, version number and task ID.\n *\n * This is typically only useful in complex Pool deployment schemes, where multiple subsystems need to know about\n * each other. Note that this value will only be updated at factory creation time.\n */\n function getPoolVersion() external view returns (string memory);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity >=0.7.0 <0.9.0;\n\n/**\n * @notice Simple interface to retrieve the version of a deployed contract.\n */\ninterface IVersion {\n /**\n * @dev Returns a JSON representation of the contract version containing name, version number and task ID.\n */\n function version() external view returns (string memory);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma experimental ABIEncoderV2;\n\nimport \"../solidity-utils/openzeppelin/IERC20.sol\";\nimport \"../solidity-utils/helpers/IAuthentication.sol\";\nimport \"../solidity-utils/helpers/ISignaturesValidator.sol\";\nimport \"../solidity-utils/helpers/ITemporarilyPausable.sol\";\nimport \"../solidity-utils/misc/IWETH.sol\";\n\nimport \"./IAsset.sol\";\nimport \"./IAuthorizer.sol\";\nimport \"./IFlashLoanRecipient.sol\";\nimport \"./IProtocolFeesCollector.sol\";\n\npragma solidity ^0.7.0;\n\n/**\n * @dev Full external interface for the Vault core contract - no external or public methods exist in the contract that\n * don't override one of these declarations.\n */\ninterface IVault is ISignaturesValidator, ITemporarilyPausable, IAuthentication {\n // Generalities about the Vault:\n //\n // - Whenever documentation refers to 'tokens', it strictly refers to ERC20-compliant token contracts. Tokens are\n // transferred out of the Vault by calling the `IERC20.transfer` function, and transferred in by calling\n // `IERC20.transferFrom`. In these cases, the sender must have previously allowed the Vault to use their tokens by\n // calling `IERC20.approve`. The only deviation from the ERC20 standard that is supported is functions not returning\n // a boolean value: in these scenarios, a non-reverting call is assumed to be successful.\n //\n // - All non-view functions in the Vault are non-reentrant: calling them while another one is mid-execution (e.g.\n // while execution control is transferred to a token contract during a swap) will result in a revert. View\n // functions can be called in a re-reentrant way, but doing so might cause them to return inconsistent results.\n // Contracts calling view functions in the Vault must make sure the Vault has not already been entered.\n //\n // - View functions revert if referring to either unregistered Pools, or unregistered tokens for registered Pools.\n\n // Authorizer\n //\n // Some system actions are permissioned, like setting and collecting protocol fees. This permissioning system exists\n // outside of the Vault in the Authorizer contract: the Vault simply calls the Authorizer to check if the caller\n // can perform a given action.\n\n /**\n * @dev Returns the Vault's Authorizer.\n */\n function getAuthorizer() external view returns (IAuthorizer);\n\n /**\n * @dev Sets a new Authorizer for the Vault. The caller must be allowed by the current Authorizer to do this.\n *\n * Emits an `AuthorizerChanged` event.\n */\n function setAuthorizer(IAuthorizer newAuthorizer) external;\n\n /**\n * @dev Emitted when a new authorizer is set by `setAuthorizer`.\n */\n event AuthorizerChanged(IAuthorizer indexed newAuthorizer);\n\n // Relayers\n //\n // Additionally, it is possible for an account to perform certain actions on behalf of another one, using their\n // Vault ERC20 allowance and Internal Balance. These accounts are said to be 'relayers' for these Vault functions,\n // and are expected to be smart contracts with sound authentication mechanisms. For an account to be able to wield\n // this power, two things must occur:\n // - The Authorizer must grant the account the permission to be a relayer for the relevant Vault function. This\n // means that Balancer governance must approve each individual contract to act as a relayer for the intended\n // functions.\n // - Each user must approve the relayer to act on their behalf.\n // This double protection means users cannot be tricked into approving malicious relayers (because they will not\n // have been allowed by the Authorizer via governance), nor can malicious relayers approved by a compromised\n // Authorizer or governance drain user funds, since they would also need to be approved by each individual user.\n\n /**\n * @dev Returns true if `user` has approved `relayer` to act as a relayer for them.\n */\n function hasApprovedRelayer(address user, address relayer) external view returns (bool);\n\n /**\n * @dev Allows `relayer` to act as a relayer for `sender` if `approved` is true, and disallows it otherwise.\n *\n * Emits a `RelayerApprovalChanged` event.\n */\n function setRelayerApproval(\n address sender,\n address relayer,\n bool approved\n ) external;\n\n /**\n * @dev Emitted every time a relayer is approved or disapproved by `setRelayerApproval`.\n */\n event RelayerApprovalChanged(address indexed relayer, address indexed sender, bool approved);\n\n // Internal Balance\n //\n // Users can deposit tokens into the Vault, where they are allocated to their Internal Balance, and later\n // transferred or withdrawn. It can also be used as a source of tokens when joining Pools, as a destination\n // when exiting them, and as either when performing swaps. This usage of Internal Balance results in greatly reduced\n // gas costs when compared to relying on plain ERC20 transfers, leading to large savings for frequent users.\n //\n // Internal Balance management features batching, which means a single contract call can be used to perform multiple\n // operations of different kinds, with different senders and recipients, at once.\n\n /**\n * @dev Returns `user`'s Internal Balance for a set of tokens.\n */\n function getInternalBalance(address user, IERC20[] memory tokens) external view returns (uint256[] memory);\n\n /**\n * @dev Performs a set of user balance operations, which involve Internal Balance (deposit, withdraw or transfer)\n * and plain ERC20 transfers using the Vault's allowance. This last feature is particularly useful for relayers, as\n * it lets integrators reuse a user's Vault allowance.\n *\n * For each operation, if the caller is not `sender`, it must be an authorized relayer for them.\n */\n function manageUserBalance(UserBalanceOp[] memory ops) external payable;\n\n /**\n * @dev Data for `manageUserBalance` operations, which include the possibility for ETH to be sent and received\n without manual WETH wrapping or unwrapping.\n */\n struct UserBalanceOp {\n UserBalanceOpKind kind;\n IAsset asset;\n uint256 amount;\n address sender;\n address payable recipient;\n }\n\n // There are four possible operations in `manageUserBalance`:\n //\n // - DEPOSIT_INTERNAL\n // Increases the Internal Balance of the `recipient` account by transferring tokens from the corresponding\n // `sender`. The sender must have allowed the Vault to use their tokens via `IERC20.approve()`.\n //\n // ETH can be used by passing the ETH sentinel value as the asset and forwarding ETH in the call: it will be wrapped\n // and deposited as WETH. Any ETH amount remaining will be sent back to the caller (not the sender, which is\n // relevant for relayers).\n //\n // Emits an `InternalBalanceChanged` event.\n //\n //\n // - WITHDRAW_INTERNAL\n // Decreases the Internal Balance of the `sender` account by transferring tokens to the `recipient`.\n //\n // ETH can be used by passing the ETH sentinel value as the asset. This will deduct WETH instead, unwrap it and send\n // it to the recipient as ETH.\n //\n // Emits an `InternalBalanceChanged` event.\n //\n //\n // - TRANSFER_INTERNAL\n // Transfers tokens from the Internal Balance of the `sender` account to the Internal Balance of `recipient`.\n //\n // Reverts if the ETH sentinel value is passed.\n //\n // Emits an `InternalBalanceChanged` event.\n //\n //\n // - TRANSFER_EXTERNAL\n // Transfers tokens from `sender` to `recipient`, using the Vault's ERC20 allowance. This is typically used by\n // relayers, as it lets them reuse a user's Vault allowance.\n //\n // Reverts if the ETH sentinel value is passed.\n //\n // Emits an `ExternalBalanceTransfer` event.\n\n enum UserBalanceOpKind { DEPOSIT_INTERNAL, WITHDRAW_INTERNAL, TRANSFER_INTERNAL, TRANSFER_EXTERNAL }\n\n /**\n * @dev Emitted when a user's Internal Balance changes, either from calls to `manageUserBalance`, or through\n * interacting with Pools using Internal Balance.\n *\n * Because Internal Balance works exclusively with ERC20 tokens, ETH deposits and withdrawals will use the WETH\n * address.\n */\n event InternalBalanceChanged(address indexed user, IERC20 indexed token, int256 delta);\n\n /**\n * @dev Emitted when a user's Vault ERC20 allowance is used by the Vault to transfer tokens to an external account.\n */\n event ExternalBalanceTransfer(IERC20 indexed token, address indexed sender, address recipient, uint256 amount);\n\n // Pools\n //\n // There are three specialization settings for Pools, which allow for cheaper swaps at the cost of reduced\n // functionality:\n //\n // - General: no specialization, suited for all Pools. IGeneralPool is used for swap request callbacks, passing the\n // balance of all tokens in the Pool. These Pools have the largest swap costs (because of the extra storage reads),\n // which increase with the number of registered tokens.\n //\n // - Minimal Swap Info: IMinimalSwapInfoPool is used instead of IGeneralPool, which saves gas by only passing the\n // balance of the two tokens involved in the swap. This is suitable for some pricing algorithms, like the weighted\n // constant product one popularized by Balancer V1. Swap costs are smaller compared to general Pools, and are\n // independent of the number of registered tokens.\n //\n // - Two Token: only allows two tokens to be registered. This achieves the lowest possible swap gas cost. Like\n // minimal swap info Pools, these are called via IMinimalSwapInfoPool.\n\n enum PoolSpecialization { GENERAL, MINIMAL_SWAP_INFO, TWO_TOKEN }\n\n /**\n * @dev Registers the caller account as a Pool with a given specialization setting. Returns the Pool's ID, which\n * is used in all Pool-related functions. Pools cannot be deregistered, nor can the Pool's specialization be\n * changed.\n *\n * The caller is expected to be a smart contract that implements either `IGeneralPool` or `IMinimalSwapInfoPool`,\n * depending on the chosen specialization setting. This contract is known as the Pool's contract.\n *\n * Note that the same contract may register itself as multiple Pools with unique Pool IDs, or in other words,\n * multiple Pools may share the same contract.\n *\n * Emits a `PoolRegistered` event.\n */\n function registerPool(PoolSpecialization specialization) external returns (bytes32);\n\n /**\n * @dev Emitted when a Pool is registered by calling `registerPool`.\n */\n event PoolRegistered(bytes32 indexed poolId, address indexed poolAddress, PoolSpecialization specialization);\n\n /**\n * @dev Returns a Pool's contract address and specialization setting.\n */\n function getPool(bytes32 poolId) external view returns (address, PoolSpecialization);\n\n /**\n * @dev Registers `tokens` for the `poolId` Pool. Must be called by the Pool's contract.\n *\n * Pools can only interact with tokens they have registered. Users join a Pool by transferring registered tokens,\n * exit by receiving registered tokens, and can only swap registered tokens.\n *\n * Each token can only be registered once. For Pools with the Two Token specialization, `tokens` must have a length\n * of two, that is, both tokens must be registered in the same `registerTokens` call, and they must be sorted in\n * ascending order.\n *\n * The `tokens` and `assetManagers` arrays must have the same length, and each entry in these indicates the Asset\n * Manager for the corresponding token. Asset Managers can manage a Pool's tokens via `managePoolBalance`,\n * depositing and withdrawing them directly, and can even set their balance to arbitrary amounts. They are therefore\n * expected to be highly secured smart contracts with sound design principles, and the decision to register an\n * Asset Manager should not be made lightly.\n *\n * Pools can choose not to assign an Asset Manager to a given token by passing in the zero address. Once an Asset\n * Manager is set, it cannot be changed except by deregistering the associated token and registering again with a\n * different Asset Manager.\n *\n * Emits a `TokensRegistered` event.\n */\n function registerTokens(\n bytes32 poolId,\n IERC20[] memory tokens,\n address[] memory assetManagers\n ) external;\n\n /**\n * @dev Emitted when a Pool registers tokens by calling `registerTokens`.\n */\n event TokensRegistered(bytes32 indexed poolId, IERC20[] tokens, address[] assetManagers);\n\n /**\n * @dev Deregisters `tokens` for the `poolId` Pool. Must be called by the Pool's contract.\n *\n * Only registered tokens (via `registerTokens`) can be deregistered. Additionally, they must have zero total\n * balance. For Pools with the Two Token specialization, `tokens` must have a length of two, that is, both tokens\n * must be deregistered in the same `deregisterTokens` call.\n *\n * A deregistered token can be re-registered later on, possibly with a different Asset Manager.\n *\n * Emits a `TokensDeregistered` event.\n */\n function deregisterTokens(bytes32 poolId, IERC20[] memory tokens) external;\n\n /**\n * @dev Emitted when a Pool deregisters tokens by calling `deregisterTokens`.\n */\n event TokensDeregistered(bytes32 indexed poolId, IERC20[] tokens);\n\n /**\n * @dev Returns detailed information for a Pool's registered token.\n *\n * `cash` is the number of tokens the Vault currently holds for the Pool. `managed` is the number of tokens\n * withdrawn and held outside the Vault by the Pool's token Asset Manager. The Pool's total balance for `token`\n * equals the sum of `cash` and `managed`.\n *\n * Internally, `cash` and `managed` are stored using 112 bits. No action can ever cause a Pool's token `cash`,\n * `managed` or `total` balance to be greater than 2^112 - 1.\n *\n * `lastChangeBlock` is the number of the block in which `token`'s total balance was last modified (via either a\n * join, exit, swap, or Asset Manager update). This value is useful to avoid so-called 'sandwich attacks', for\n * example when developing price oracles. A change of zero (e.g. caused by a swap with amount zero) is considered a\n * change for this purpose, and will update `lastChangeBlock`.\n *\n * `assetManager` is the Pool's token Asset Manager.\n */\n function getPoolTokenInfo(bytes32 poolId, IERC20 token)\n external\n view\n returns (\n uint256 cash,\n uint256 managed,\n uint256 lastChangeBlock,\n address assetManager\n );\n\n /**\n * @dev Returns a Pool's registered tokens, the total balance for each, and the latest block when *any* of\n * the tokens' `balances` changed.\n *\n * The order of the `tokens` array is the same order that will be used in `joinPool`, `exitPool`, as well as in all\n * Pool hooks (where applicable). Calls to `registerTokens` and `deregisterTokens` may change this order.\n *\n * If a Pool only registers tokens once, and these are sorted in ascending order, they will be stored in the same\n * order as passed to `registerTokens`.\n *\n * Total balances include both tokens held by the Vault and those withdrawn by the Pool's Asset Managers. These are\n * the amounts used by joins, exits and swaps. For a detailed breakdown of token balances, use `getPoolTokenInfo`\n * instead.\n */\n function getPoolTokens(bytes32 poolId)\n external\n view\n returns (\n IERC20[] memory tokens,\n uint256[] memory balances,\n uint256 lastChangeBlock\n );\n\n /**\n * @dev Called by users to join a Pool, which transfers tokens from `sender` into the Pool's balance. This will\n * trigger custom Pool behavior, which will typically grant something in return to `recipient` - often tokenized\n * Pool shares.\n *\n * If the caller is not `sender`, it must be an authorized relayer for them.\n *\n * The `assets` and `maxAmountsIn` arrays must have the same length, and each entry indicates the maximum amount\n * to send for each asset. The amounts to send are decided by the Pool and not the Vault: it just enforces\n * these maximums.\n *\n * If joining a Pool that holds WETH, it is possible to send ETH directly: the Vault will do the wrapping. To enable\n * this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead of the\n * WETH address. Note that it is not possible to combine ETH and WETH in the same join. Any excess ETH will be sent\n * back to the caller (not the sender, which is important for relayers).\n *\n * `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when\n * interacting with Pools that register and deregister tokens frequently. If sending ETH however, the array must be\n * sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the final\n * `assets` array might not be sorted. Pools with no registered tokens cannot be joined.\n *\n * If `fromInternalBalance` is true, the caller's Internal Balance will be preferred: ERC20 transfers will only\n * be made for the difference between the requested amount and Internal Balance (if any). Note that ETH cannot be\n * withdrawn from Internal Balance: attempting to do so will trigger a revert.\n *\n * This causes the Vault to call the `IBasePool.onJoinPool` hook on the Pool's contract, where Pools implement\n * their own custom logic. This typically requires additional information from the user (such as the expected number\n * of Pool shares). This can be encoded in the `userData` argument, which is ignored by the Vault and passed\n * directly to the Pool's contract, as is `recipient`.\n *\n * Emits a `PoolBalanceChanged` event.\n */\n function joinPool(\n bytes32 poolId,\n address sender,\n address recipient,\n JoinPoolRequest memory request\n ) external payable;\n\n struct JoinPoolRequest {\n IAsset[] assets;\n uint256[] maxAmountsIn;\n bytes userData;\n bool fromInternalBalance;\n }\n\n /**\n * @dev Called by users to exit a Pool, which transfers tokens from the Pool's balance to `recipient`. This will\n * trigger custom Pool behavior, which will typically ask for something in return from `sender` - often tokenized\n * Pool shares. The amount of tokens that can be withdrawn is limited by the Pool's `cash` balance (see\n * `getPoolTokenInfo`).\n *\n * If the caller is not `sender`, it must be an authorized relayer for them.\n *\n * The `tokens` and `minAmountsOut` arrays must have the same length, and each entry in these indicates the minimum\n * token amount to receive for each token contract. The amounts to send are decided by the Pool and not the Vault:\n * it just enforces these minimums.\n *\n * If exiting a Pool that holds WETH, it is possible to receive ETH directly: the Vault will do the unwrapping. To\n * enable this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead\n * of the WETH address. Note that it is not possible to combine ETH and WETH in the same exit.\n *\n * `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when\n * interacting with Pools that register and deregister tokens frequently. If receiving ETH however, the array must\n * be sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the\n * final `assets` array might not be sorted. Pools with no registered tokens cannot be exited.\n *\n * If `toInternalBalance` is true, the tokens will be deposited to `recipient`'s Internal Balance. Otherwise,\n * an ERC20 transfer will be performed. Note that ETH cannot be deposited to Internal Balance: attempting to\n * do so will trigger a revert.\n *\n * `minAmountsOut` is the minimum amount of tokens the user expects to get out of the Pool, for each token in the\n * `tokens` array. This array must match the Pool's registered tokens.\n *\n * This causes the Vault to call the `IBasePool.onExitPool` hook on the Pool's contract, where Pools implement\n * their own custom logic. This typically requires additional information from the user (such as the expected number\n * of Pool shares to return). This can be encoded in the `userData` argument, which is ignored by the Vault and\n * passed directly to the Pool's contract.\n *\n * Emits a `PoolBalanceChanged` event.\n */\n function exitPool(\n bytes32 poolId,\n address sender,\n address payable recipient,\n ExitPoolRequest memory request\n ) external;\n\n struct ExitPoolRequest {\n IAsset[] assets;\n uint256[] minAmountsOut;\n bytes userData;\n bool toInternalBalance;\n }\n\n /**\n * @dev Emitted when a user joins or exits a Pool by calling `joinPool` or `exitPool`, respectively.\n */\n event PoolBalanceChanged(\n bytes32 indexed poolId,\n address indexed liquidityProvider,\n IERC20[] tokens,\n int256[] deltas,\n uint256[] protocolFeeAmounts\n );\n\n enum PoolBalanceChangeKind { JOIN, EXIT }\n\n // Swaps\n //\n // Users can swap tokens with Pools by calling the `swap` and `batchSwap` functions. To do this,\n // they need not trust Pool contracts in any way: all security checks are made by the Vault. They must however be\n // aware of the Pools' pricing algorithms in order to estimate the prices Pools will quote.\n //\n // The `swap` function executes a single swap, while `batchSwap` can perform multiple swaps in sequence.\n // In each individual swap, tokens of one kind are sent from the sender to the Pool (this is the 'token in'),\n // and tokens of another kind are sent from the Pool to the recipient in exchange (this is the 'token out').\n // More complex swaps, such as one token in to multiple tokens out can be achieved by batching together\n // individual swaps.\n //\n // There are two swap kinds:\n // - 'given in' swaps, where the amount of tokens in (sent to the Pool) is known, and the Pool determines (via the\n // `onSwap` hook) the amount of tokens out (to send to the recipient).\n // - 'given out' swaps, where the amount of tokens out (received from the Pool) is known, and the Pool determines\n // (via the `onSwap` hook) the amount of tokens in (to receive from the sender).\n //\n // Additionally, it is possible to chain swaps using a placeholder input amount, which the Vault replaces with\n // the calculated output of the previous swap. If the previous swap was 'given in', this will be the calculated\n // tokenOut amount. If the previous swap was 'given out', it will use the calculated tokenIn amount. These extended\n // swaps are known as 'multihop' swaps, since they 'hop' through a number of intermediate tokens before arriving at\n // the final intended token.\n //\n // In all cases, tokens are only transferred in and out of the Vault (or withdrawn from and deposited into Internal\n // Balance) after all individual swaps have been completed, and the net token balance change computed. This makes\n // certain swap patterns, such as multihops, or swaps that interact with the same token pair in multiple Pools, cost\n // much less gas than they would otherwise.\n //\n // It also means that under certain conditions it is possible to perform arbitrage by swapping with multiple\n // Pools in a way that results in net token movement out of the Vault (profit), with no tokens being sent in (only\n // updating the Pool's internal accounting).\n //\n // To protect users from front-running or the market changing rapidly, they supply a list of 'limits' for each token\n // involved in the swap, where either the maximum number of tokens to send (by passing a positive value) or the\n // minimum amount of tokens to receive (by passing a negative value) is specified.\n //\n // Additionally, a 'deadline' timestamp can also be provided, forcing the swap to fail if it occurs after\n // this point in time (e.g. if the transaction failed to be included in a block promptly).\n //\n // If interacting with Pools that hold WETH, it is possible to both send and receive ETH directly: the Vault will do\n // the wrapping and unwrapping. To enable this mechanism, the IAsset sentinel value (the zero address) must be\n // passed in the `assets` array instead of the WETH address. Note that it is possible to combine ETH and WETH in the\n // same swap. Any excess ETH will be sent back to the caller (not the sender, which is relevant for relayers).\n //\n // Finally, Internal Balance can be used when either sending or receiving tokens.\n\n enum SwapKind { GIVEN_IN, GIVEN_OUT }\n\n /**\n * @dev Performs a swap with a single Pool.\n *\n * If the swap is 'given in' (the number of tokens to send to the Pool is known), it returns the amount of tokens\n * taken from the Pool, which must be greater than or equal to `limit`.\n *\n * If the swap is 'given out' (the number of tokens to take from the Pool is known), it returns the amount of tokens\n * sent to the Pool, which must be less than or equal to `limit`.\n *\n * Internal Balance usage and the recipient are determined by the `funds` struct.\n *\n * Emits a `Swap` event.\n */\n function swap(\n SingleSwap memory singleSwap,\n FundManagement memory funds,\n uint256 limit,\n uint256 deadline\n ) external payable returns (uint256);\n\n /**\n * @dev Data for a single swap executed by `swap`. `amount` is either `amountIn` or `amountOut` depending on\n * the `kind` value.\n *\n * `assetIn` and `assetOut` are either token addresses, or the IAsset sentinel value for ETH (the zero address).\n * Note that Pools never interact with ETH directly: it will be wrapped to or unwrapped from WETH by the Vault.\n *\n * The `userData` field is ignored by the Vault, but forwarded to the Pool in the `onSwap` hook, and may be\n * used to extend swap behavior.\n */\n struct SingleSwap {\n bytes32 poolId;\n SwapKind kind;\n IAsset assetIn;\n IAsset assetOut;\n uint256 amount;\n bytes userData;\n }\n\n /**\n * @dev Performs a series of swaps with one or multiple Pools. In each individual swap, the caller determines either\n * the amount of tokens sent to or received from the Pool, depending on the `kind` value.\n *\n * Returns an array with the net Vault asset balance deltas. Positive amounts represent tokens (or ETH) sent to the\n * Vault, and negative amounts represent tokens (or ETH) sent by the Vault. Each delta corresponds to the asset at\n * the same index in the `assets` array.\n *\n * Swaps are executed sequentially, in the order specified by the `swaps` array. Each array element describes a\n * Pool, the token to be sent to this Pool, the token to receive from it, and an amount that is either `amountIn` or\n * `amountOut` depending on the swap kind.\n *\n * Multihop swaps can be executed by passing an `amount` value of zero for a swap. This will cause the amount in/out\n * of the previous swap to be used as the amount in for the current one. In a 'given in' swap, 'tokenIn' must equal\n * the previous swap's `tokenOut`. For a 'given out' swap, `tokenOut` must equal the previous swap's `tokenIn`.\n *\n * The `assets` array contains the addresses of all assets involved in the swaps. These are either token addresses,\n * or the IAsset sentinel value for ETH (the zero address). Each entry in the `swaps` array specifies tokens in and\n * out by referencing an index in `assets`. Note that Pools never interact with ETH directly: it will be wrapped to\n * or unwrapped from WETH by the Vault.\n *\n * Internal Balance usage, sender, and recipient are determined by the `funds` struct. The `limits` array specifies\n * the minimum or maximum amount of each token the vault is allowed to transfer.\n *\n * `batchSwap` can be used to make a single swap, like `swap` does, but doing so requires more gas than the\n * equivalent `swap` call.\n *\n * Emits `Swap` events.\n */\n function batchSwap(\n SwapKind kind,\n BatchSwapStep[] memory swaps,\n IAsset[] memory assets,\n FundManagement memory funds,\n int256[] memory limits,\n uint256 deadline\n ) external payable returns (int256[] memory);\n\n /**\n * @dev Data for each individual swap executed by `batchSwap`. The asset in and out fields are indexes into the\n * `assets` array passed to that function, and ETH assets are converted to WETH.\n *\n * If `amount` is zero, the multihop mechanism is used to determine the actual amount based on the amount in/out\n * from the previous swap, depending on the swap kind.\n *\n * The `userData` field is ignored by the Vault, but forwarded to the Pool in the `onSwap` hook, and may be\n * used to extend swap behavior.\n */\n struct BatchSwapStep {\n bytes32 poolId;\n uint256 assetInIndex;\n uint256 assetOutIndex;\n uint256 amount;\n bytes userData;\n }\n\n /**\n * @dev Emitted for each individual swap performed by `swap` or `batchSwap`.\n */\n event Swap(\n bytes32 indexed poolId,\n IERC20 indexed tokenIn,\n IERC20 indexed tokenOut,\n uint256 amountIn,\n uint256 amountOut\n );\n\n /**\n * @dev All tokens in a swap are either sent from the `sender` account to the Vault, or from the Vault to the\n * `recipient` account.\n *\n * If the caller is not `sender`, it must be an authorized relayer for them.\n *\n * If `fromInternalBalance` is true, the `sender`'s Internal Balance will be preferred, performing an ERC20\n * transfer for the difference between the requested amount and the User's Internal Balance (if any). The `sender`\n * must have allowed the Vault to use their tokens via `IERC20.approve()`. This matches the behavior of\n * `joinPool`.\n *\n * If `toInternalBalance` is true, tokens will be deposited to `recipient`'s internal balance instead of\n * transferred. This matches the behavior of `exitPool`.\n *\n * Note that ETH cannot be deposited to or withdrawn from Internal Balance: attempting to do so will trigger a\n * revert.\n */\n struct FundManagement {\n address sender;\n bool fromInternalBalance;\n address payable recipient;\n bool toInternalBalance;\n }\n\n /**\n * @dev Simulates a call to `batchSwap`, returning an array of Vault asset deltas. Calls to `swap` cannot be\n * simulated directly, but an equivalent `batchSwap` call can and will yield the exact same result.\n *\n * Each element in the array corresponds to the asset at the same index, and indicates the number of tokens (or ETH)\n * the Vault would take from the sender (if positive) or send to the recipient (if negative). The arguments it\n * receives are the same that an equivalent `batchSwap` call would receive.\n *\n * Unlike `batchSwap`, this function performs no checks on the sender or recipient field in the `funds` struct.\n * This makes it suitable to be called by off-chain applications via eth_call without needing to hold tokens,\n * approve them for the Vault, or even know a user's address.\n *\n * Note that this function is not 'view' (due to implementation details): the client code must explicitly execute\n * eth_call instead of eth_sendTransaction.\n */\n function queryBatchSwap(\n SwapKind kind,\n BatchSwapStep[] memory swaps,\n IAsset[] memory assets,\n FundManagement memory funds\n ) external returns (int256[] memory assetDeltas);\n\n // Flash Loans\n\n /**\n * @dev Performs a 'flash loan', sending tokens to `recipient`, executing the `receiveFlashLoan` hook on it,\n * and then reverting unless the tokens plus a proportional protocol fee have been returned.\n *\n * The `tokens` and `amounts` arrays must have the same length, and each entry in these indicates the loan amount\n * for each token contract. `tokens` must be sorted in ascending order.\n *\n * The 'userData' field is ignored by the Vault, and forwarded as-is to `recipient` as part of the\n * `receiveFlashLoan` call.\n *\n * Emits `FlashLoan` events.\n */\n function flashLoan(\n IFlashLoanRecipient recipient,\n IERC20[] memory tokens,\n uint256[] memory amounts,\n bytes memory userData\n ) external;\n\n /**\n * @dev Emitted for each individual flash loan performed by `flashLoan`.\n */\n event FlashLoan(IFlashLoanRecipient indexed recipient, IERC20 indexed token, uint256 amount, uint256 feeAmount);\n\n // Asset Management\n //\n // Each token registered for a Pool can be assigned an Asset Manager, which is able to freely withdraw the Pool's\n // tokens from the Vault, deposit them, or assign arbitrary values to its `managed` balance (see\n // `getPoolTokenInfo`). This makes them extremely powerful and dangerous. Even if an Asset Manager only directly\n // controls one of the tokens in a Pool, a malicious manager could set that token's balance to manipulate the\n // prices of the other tokens, and then drain the Pool with swaps. The risk of using Asset Managers is therefore\n // not constrained to the tokens they are managing, but extends to the entire Pool's holdings.\n //\n // However, a properly designed Asset Manager smart contract can be safely used for the Pool's benefit,\n // for example by lending unused tokens out for interest, or using them to participate in voting protocols.\n //\n // This concept is unrelated to the IAsset interface.\n\n /**\n * @dev Performs a set of Pool balance operations, which may be either withdrawals, deposits or updates.\n *\n * Pool Balance management features batching, which means a single contract call can be used to perform multiple\n * operations of different kinds, with different Pools and tokens, at once.\n *\n * For each operation, the caller must be registered as the Asset Manager for `token` in `poolId`.\n */\n function managePoolBalance(PoolBalanceOp[] memory ops) external;\n\n struct PoolBalanceOp {\n PoolBalanceOpKind kind;\n bytes32 poolId;\n IERC20 token;\n uint256 amount;\n }\n\n /**\n * Withdrawals decrease the Pool's cash, but increase its managed balance, leaving the total balance unchanged.\n *\n * Deposits increase the Pool's cash, but decrease its managed balance, leaving the total balance unchanged.\n *\n * Updates don't affect the Pool's cash balance, but because the managed balance changes, it does alter the total.\n * The external amount can be either increased or decreased by this call (i.e., reporting a gain or a loss).\n */\n enum PoolBalanceOpKind { WITHDRAW, DEPOSIT, UPDATE }\n\n /**\n * @dev Emitted when a Pool's token Asset Manager alters its balance via `managePoolBalance`.\n */\n event PoolBalanceManaged(\n bytes32 indexed poolId,\n address indexed assetManager,\n IERC20 indexed token,\n int256 cashDelta,\n int256 managedDelta\n );\n\n // Protocol Fees\n //\n // Some operations cause the Vault to collect tokens in the form of protocol fees, which can then be withdrawn by\n // permissioned accounts.\n //\n // There are two kinds of protocol fees:\n //\n // - flash loan fees: charged on all flash loans, as a percentage of the amounts lent.\n //\n // - swap fees: a percentage of the fees charged by Pools when performing swaps. For a number of reasons, including\n // swap gas costs and interface simplicity, protocol swap fees are not charged on each individual swap. Rather,\n // Pools are expected to keep track of how much they have charged in swap fees, and pay any outstanding debts to the\n // Vault when they are joined or exited. This prevents users from joining a Pool with unpaid debt, as well as\n // exiting a Pool in debt without first paying their share.\n\n /**\n * @dev Returns the current protocol fee module.\n */\n function getProtocolFeesCollector() external view returns (IProtocolFeesCollector);\n\n /**\n * @dev Safety mechanism to pause most Vault operations in the event of an emergency - typically detection of an\n * error in some part of the system.\n *\n * The Vault can only be paused during an initial time period, after which pausing is forever disabled.\n *\n * While the contract is paused, the following features are disabled:\n * - depositing and transferring internal balance\n * - transferring external balance (using the Vault's allowance)\n * - swaps\n * - joining Pools\n * - Asset Manager interactions\n *\n * Internal Balance can still be withdrawn, and Pools exited.\n */\n function setPaused(bool paused) external;\n\n /**\n * @dev Returns the Vault's WETH instance.\n */\n function WETH() external view returns (IWETH);\n // solhint-disable-previous-line func-name-mixedcase\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol\";\n\n/**\n * @notice Base contract for Pool factories.\n *\n * Pools are deployed from factories to allow third parties to reason about them. Unknown Pools may have arbitrary\n * logic: being able to assert that a Pool's behavior follows certain rules (those imposed by the contracts created by\n * the factory) is very powerful.\n *\n * @dev By using the split code mechanism, we can deploy Pools with creation code so large that a regular factory\n * contract would not be able to store it.\n *\n * Since we expect to release new versions of pool types regularly - and the blockchain is forever - versioning will\n * become increasingly important. Governance can deprecate a factory by calling `disable`, which will permanently\n * prevent the creation of any future pools from the factory.\n */\nabstract contract BasePoolFactory is IBasePoolFactory, BaseSplitCodeFactory, SingletonAuthentication {\n IProtocolFeePercentagesProvider private immutable _protocolFeeProvider;\n\n mapping(address => bool) private _isPoolFromFactory;\n bool private _disabled;\n\n event PoolCreated(address indexed pool);\n event FactoryDisabled();\n\n constructor(\n IVault vault,\n IProtocolFeePercentagesProvider protocolFeeProvider,\n bytes memory creationCode\n ) BaseSplitCodeFactory(creationCode) SingletonAuthentication(vault) {\n _protocolFeeProvider = protocolFeeProvider;\n }\n\n function isPoolFromFactory(address pool) external view override returns (bool) {\n return _isPoolFromFactory[pool];\n }\n\n function isDisabled() public view override returns (bool) {\n return _disabled;\n }\n\n function disable() external override authenticate {\n _ensureEnabled();\n\n _disabled = true;\n\n emit FactoryDisabled();\n }\n\n function _ensureEnabled() internal view {\n _require(!isDisabled(), Errors.DISABLED);\n }\n\n function getProtocolFeePercentagesProvider() public view returns (IProtocolFeePercentagesProvider) {\n return _protocolFeeProvider;\n }\n\n function _create(bytes memory constructorArgs, bytes32 salt) internal virtual override returns (address) {\n _ensureEnabled();\n\n address pool = super._create(constructorArgs, salt);\n\n _isPoolFromFactory[pool] = true;\n\n emit PoolCreated(pool);\n\n return pool;\n }\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\n/**\n * @dev Utility to create Pool factories for Pools that use the `TemporarilyPausable` contract.\n *\n * By calling `TemporarilyPausable`'s constructor with the result of `getPauseConfiguration`, all Pools created by this\n * factory will share the same Pause Window end time, after which both old and new Pools will not be pausable.\n */\ncontract FactoryWidePauseWindow {\n // This contract relies on timestamps in a similar way as `TemporarilyPausable` does - the same caveats apply.\n // solhint-disable not-rely-on-time\n\n uint256 private constant _INITIAL_PAUSE_WINDOW_DURATION = 90 days;\n uint256 private constant _BUFFER_PERIOD_DURATION = 30 days;\n\n // Time when the pause window for all created Pools expires, and the pause window duration of new Pools becomes\n // zero.\n uint256 private immutable _poolsPauseWindowEndTime;\n\n constructor() {\n _poolsPauseWindowEndTime = block.timestamp + _INITIAL_PAUSE_WINDOW_DURATION;\n }\n\n /**\n * @dev Returns the current `TemporarilyPausable` configuration that will be applied to Pools created by this\n * factory.\n *\n * `pauseWindowDuration` will decrease over time until it reaches zero, at which point both it and\n * `bufferPeriodDuration` will be zero forever, meaning deployed Pools will not be pausable.\n */\n function getPauseConfiguration() public view returns (uint256 pauseWindowDuration, uint256 bufferPeriodDuration) {\n uint256 currentTime = block.timestamp;\n if (currentTime < _poolsPauseWindowEndTime) {\n // The buffer period is always the same since its duration is related to how much time is needed to respond\n // to a potential emergency. The Pause Window duration however decreases as the end time approaches.\n\n pauseWindowDuration = _poolsPauseWindowEndTime - currentTime; // No need for checked arithmetic.\n bufferPeriodDuration = _BUFFER_PERIOD_DURATION;\n } else {\n // After the end time, newly created Pools have no Pause Window, nor Buffer Period (since they are not\n // pausable in the first place).\n\n pauseWindowDuration = 0;\n bufferPeriodDuration = 0;\n }\n }\n}\n"
+ },
+ "contracts/ComposableStablePool.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\";\n\nimport \"@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol\";\nimport \"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\";\n\nimport \"./ComposableStablePoolStorage.sol\";\nimport \"./ComposableStablePoolRates.sol\";\nimport \"./ComposableStablePoolStorage.sol\";\nimport \"./ComposableStablePoolRates.sol\";\nimport \"./ComposableStablePoolProtocolFees.sol\";\nimport \"./StablePoolAmplification.sol\";\nimport \"./StableMath.sol\";\n\n/**\n * @dev StablePool with preminted BPT and rate providers for each token, allowing for e.g. wrapped tokens with a known\n * price ratio, such as Compound's cTokens.\n *\n * BPT is preminted on Pool initialization and registered as one of the Pool's tokens, allowing for swaps to behave as\n * single-token joins or exits (by swapping a token for BPT). We also support regular joins and exits, which can mint\n * and burn BPT.\n *\n * Preminted BPT is deposited in the Vault as the initial balance of the Pool, and doesn't belong to any entity until\n * transferred out of the Pool. The Pool's arithmetic behaves as if it didn't exist, and the BPT total supply is not\n * a useful value: we rely on the 'virtual supply' (how much BPT is actually owned outside the Vault) instead.\n */\ncontract ComposableStablePool is\n IRateProvider,\n IVersion,\n BaseGeneralPool,\n StablePoolAmplification,\n ComposableStablePoolRates,\n ComposableStablePoolProtocolFees\n{\n using FixedPoint for uint256;\n using PriceRateCache for bytes32;\n using StablePoolUserData for bytes;\n using BasePoolUserData for bytes;\n\n // The maximum imposed by the Vault, which stores balances in a packed format, is 2**(112) - 1.\n // We are preminting half of that value (rounded up).\n uint256 private constant _PREMINTED_TOKEN_BALANCE = 2**(111);\n\n string private _version;\n\n // The constructor arguments are received in a struct to work around stack-too-deep issues\n struct NewPoolParams {\n IVault vault;\n IProtocolFeePercentagesProvider protocolFeeProvider;\n string name;\n string symbol;\n IERC20[] tokens;\n IRateProvider[] rateProviders;\n uint256[] tokenRateCacheDurations;\n bool exemptFromYieldProtocolFeeFlag;\n uint256 amplificationParameter;\n uint256 swapFeePercentage;\n uint256 pauseWindowDuration;\n uint256 bufferPeriodDuration;\n address owner;\n string version;\n }\n\n constructor(NewPoolParams memory params)\n BasePool(\n params.vault,\n IVault.PoolSpecialization.GENERAL,\n params.name,\n params.symbol,\n _insertSorted(params.tokens, IERC20(this)),\n new address[](params.tokens.length + 1),\n params.swapFeePercentage,\n params.pauseWindowDuration,\n params.bufferPeriodDuration,\n params.owner\n )\n StablePoolAmplification(params.amplificationParameter)\n ComposableStablePoolStorage(_extractStorageParams(params))\n ComposableStablePoolRates(_extractRatesParams(params))\n ProtocolFeeCache(params.protocolFeeProvider, ProtocolFeeCache.DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL)\n {\n _version = params.version;\n }\n\n // Translate parameters to avoid stack-too-deep issues in the constructor\n function _extractRatesParams(NewPoolParams memory params)\n private\n pure\n returns (ComposableStablePoolRates.RatesParams memory)\n {\n return\n ComposableStablePoolRates.RatesParams({\n tokens: params.tokens,\n rateProviders: params.rateProviders,\n tokenRateCacheDurations: params.tokenRateCacheDurations\n });\n }\n\n // Translate parameters to avoid stack-too-deep issues in the constructor\n function _extractStorageParams(NewPoolParams memory params)\n private\n view\n returns (ComposableStablePoolStorage.StorageParams memory)\n {\n return\n ComposableStablePoolStorage.StorageParams({\n registeredTokens: _insertSorted(params.tokens, IERC20(this)),\n tokenRateProviders: params.rateProviders,\n exemptFromYieldProtocolFeeFlag: params.exemptFromYieldProtocolFeeFlag\n });\n }\n\n function version() external view override returns (string memory) {\n return _version;\n }\n\n /**\n * @notice Return the minimum BPT balance, required to avoid minimum token balances.\n * @dev This amount is minted and immediately burned on pool initialization, so that the total supply\n * (and therefore post-exit token balances), can never be zero. This keeps the math well-behaved when\n * liquidity is low. (It also provides an easy way to check whether a pool has been initialized, to\n * ensure this is only done once.)\n */\n function getMinimumBpt() external pure returns (uint256) {\n return _getMinimumBpt();\n }\n\n // BasePool hook\n\n /**\n * @dev Override base pool hook invoked before any swap, join, or exit to ensure rates are updated before\n * the operation.\n */\n function _beforeSwapJoinExit() internal override {\n super._beforeSwapJoinExit();\n\n // Before the scaling factors are read, we must update the cached rates, as those will be used to compute the\n // scaling factors.\n // Note that this is not done in a recovery mode exit (since _beforeSwapjoinExit() is not called under those\n // conditions), but this is fine as recovery mode exits are unaffected by scaling factors anyway.\n _cacheTokenRatesIfNecessary();\n }\n\n // Swap Hooks\n\n /**\n * @dev Override this hook called by the base class `onSwap`, to check whether we are doing a regular swap,\n * or a swap involving BPT, which is equivalent to a single token join or exit. Since one of the Pool's\n * tokens is the preminted BPT, we need to handle swaps where BPT is involved separately.\n *\n * At this point, the balances are unscaled. The indices are coming from the Vault, so they are indices into\n * the array of registered tokens (including BPT).\n *\n * If this is a swap involving BPT, call `_swapWithBpt`, which computes the amountOut using the swapFeePercentage\n * and charges protocol fees, in the same manner as single token join/exits. Otherwise, perform the default\n * processing for a regular swap.\n */\n function _swapGivenIn(\n SwapRequest memory swapRequest,\n uint256[] memory registeredBalances,\n uint256 registeredIndexIn,\n uint256 registeredIndexOut,\n uint256[] memory scalingFactors\n ) internal virtual override returns (uint256) {\n return\n (swapRequest.tokenIn == IERC20(this) || swapRequest.tokenOut == IERC20(this))\n ? _swapWithBpt(swapRequest, registeredBalances, registeredIndexIn, registeredIndexOut, scalingFactors)\n : super._swapGivenIn(\n swapRequest,\n registeredBalances,\n registeredIndexIn,\n registeredIndexOut,\n scalingFactors\n );\n }\n\n /**\n * @dev Override this hook called by the base class `onSwap`, to check whether we are doing a regular swap,\n * or a swap involving BPT, which is equivalent to a single token join or exit. Since one of the Pool's\n * tokens is the preminted BPT, we need to handle swaps where BPT is involved separately.\n *\n * At this point, the balances are unscaled. The indices and balances are coming from the Vault, so they\n * refer to the full set of registered tokens (including BPT).\n *\n * If this is a swap involving BPT, call `_swapWithBpt`, which computes the amountOut using the swapFeePercentage\n * and charges protocol fees, in the same manner as single token join/exits. Otherwise, perform the default\n * processing for a regular swap.\n */\n function _swapGivenOut(\n SwapRequest memory swapRequest,\n uint256[] memory registeredBalances,\n uint256 registeredIndexIn,\n uint256 registeredIndexOut,\n uint256[] memory scalingFactors\n ) internal virtual override returns (uint256) {\n return\n (swapRequest.tokenIn == IERC20(this) || swapRequest.tokenOut == IERC20(this))\n ? _swapWithBpt(swapRequest, registeredBalances, registeredIndexIn, registeredIndexOut, scalingFactors)\n : super._swapGivenOut(\n swapRequest,\n registeredBalances,\n registeredIndexIn,\n registeredIndexOut,\n scalingFactors\n );\n }\n\n /**\n * @dev This is called from the base class `_swapGivenIn`, so at this point the amount has been adjusted\n * for swap fees, and balances have had scaling applied. This will only be called for regular (non-BPT) swaps,\n * so forward to `onRegularSwap`.\n */\n function _onSwapGivenIn(\n SwapRequest memory request,\n uint256[] memory registeredBalances,\n uint256 registeredIndexIn,\n uint256 registeredIndexOut\n ) internal virtual override returns (uint256) {\n return\n _onRegularSwap(\n true, // given in\n request.amount,\n registeredBalances,\n registeredIndexIn,\n registeredIndexOut\n );\n }\n\n /**\n * @dev This is called from the base class `_swapGivenOut`, so at this point the amount has been adjusted\n * for swap fees, and balances have had scaling applied. This will only be called for regular (non-BPT) swaps,\n * so forward to `onRegularSwap`.\n */\n function _onSwapGivenOut(\n SwapRequest memory request,\n uint256[] memory registeredBalances,\n uint256 registeredIndexIn,\n uint256 registeredIndexOut\n ) internal virtual override returns (uint256) {\n return\n _onRegularSwap(\n false, // given out\n request.amount,\n registeredBalances,\n registeredIndexIn,\n registeredIndexOut\n );\n }\n\n /**\n * @dev Perform a swap between non-BPT tokens. Scaling and fee adjustments have been performed upstream, so\n * all we need to do here is calculate the price quote, depending on the direction of the swap.\n */\n function _onRegularSwap(\n bool isGivenIn,\n uint256 amountGiven,\n uint256[] memory registeredBalances,\n uint256 registeredIndexIn,\n uint256 registeredIndexOut\n ) private view returns (uint256) {\n // Adjust indices and balances for BPT token\n uint256[] memory balances = _dropBptItem(registeredBalances);\n uint256 indexIn = _skipBptIndex(registeredIndexIn);\n uint256 indexOut = _skipBptIndex(registeredIndexOut);\n\n (uint256 currentAmp, ) = _getAmplificationParameter();\n uint256 invariant = StableMath._calculateInvariant(currentAmp, balances);\n\n if (isGivenIn) {\n return StableMath._calcOutGivenIn(currentAmp, balances, indexIn, indexOut, amountGiven, invariant);\n } else {\n return StableMath._calcInGivenOut(currentAmp, balances, indexIn, indexOut, amountGiven, invariant);\n }\n }\n\n /**\n * @dev Perform a swap involving the BPT token, equivalent to a single-token join or exit. As with the standard\n * joins and swaps, we first pay any protocol fees pending from swaps that occurred since the previous join or\n * exit, then perform the operation (joinSwap or exitSwap), and finally store the \"post operation\" invariant and\n * amp, which establishes the new basis for protocol fees.\n *\n * At this point, the scaling factors (including rates) have been computed by the base class, but not yet applied\n * to the balances.\n */\n function _swapWithBpt(\n SwapRequest memory swapRequest,\n uint256[] memory registeredBalances,\n uint256 registeredIndexIn,\n uint256 registeredIndexOut,\n uint256[] memory scalingFactors\n ) private returns (uint256) {\n bool isGivenIn = swapRequest.kind == IVault.SwapKind.GIVEN_IN;\n\n _upscaleArray(registeredBalances, scalingFactors);\n swapRequest.amount = _upscale(\n swapRequest.amount,\n scalingFactors[isGivenIn ? registeredIndexIn : registeredIndexOut]\n );\n\n (\n uint256 preJoinExitSupply,\n uint256[] memory balances,\n uint256 currentAmp,\n uint256 preJoinExitInvariant\n ) = _beforeJoinExit(registeredBalances);\n\n // These calls mutate `balances` so that it holds the post join-exit balances.\n (uint256 amountCalculated, uint256 postJoinExitSupply) = registeredIndexOut == getBptIndex()\n ? _doJoinSwap(\n isGivenIn,\n swapRequest.amount,\n balances,\n _skipBptIndex(registeredIndexIn),\n currentAmp,\n preJoinExitSupply,\n preJoinExitInvariant\n )\n : _doExitSwap(\n isGivenIn,\n swapRequest.amount,\n balances,\n _skipBptIndex(registeredIndexOut),\n currentAmp,\n preJoinExitSupply,\n preJoinExitInvariant\n );\n\n _updateInvariantAfterJoinExit(\n currentAmp,\n balances,\n preJoinExitInvariant,\n preJoinExitSupply,\n postJoinExitSupply\n );\n\n return\n isGivenIn\n ? _downscaleDown(amountCalculated, scalingFactors[registeredIndexOut]) // Amount out, round down\n : _downscaleUp(amountCalculated, scalingFactors[registeredIndexIn]); // Amount in, round up\n }\n\n /**\n * @dev This mutates `balances` so that they become the post-joinswap balances. The StableMath interfaces\n * are different depending on the swap direction, so we forward to the appropriate low-level join function.\n */\n function _doJoinSwap(\n bool isGivenIn,\n uint256 amount,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 currentAmp,\n uint256 actualSupply,\n uint256 preJoinExitInvariant\n ) internal view returns (uint256, uint256) {\n return\n isGivenIn\n ? _joinSwapExactTokenInForBptOut(\n amount,\n balances,\n indexIn,\n currentAmp,\n actualSupply,\n preJoinExitInvariant\n )\n : _joinSwapExactBptOutForTokenIn(\n amount,\n balances,\n indexIn,\n currentAmp,\n actualSupply,\n preJoinExitInvariant\n );\n }\n\n /**\n * @dev Since this is a join, we know the tokenOut is BPT. Since it is GivenIn, we know the tokenIn amount,\n * and must calculate the BPT amount out.\n * We are moving preminted BPT out of the Vault, which increases the virtual supply.\n */\n function _joinSwapExactTokenInForBptOut(\n uint256 amountIn,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 currentAmp,\n uint256 actualSupply,\n uint256 preJoinExitInvariant\n ) internal view returns (uint256, uint256) {\n // The StableMath function was created with joins in mind, so it expects a full amounts array. We create an\n // empty one and only set the amount for the token involved.\n uint256[] memory amountsIn = new uint256[](balances.length);\n amountsIn[indexIn] = amountIn;\n\n uint256 bptOut = StableMath._calcBptOutGivenExactTokensIn(\n currentAmp,\n balances,\n amountsIn,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n\n balances[indexIn] = balances[indexIn].add(amountIn);\n uint256 postJoinExitSupply = actualSupply.add(bptOut);\n\n return (bptOut, postJoinExitSupply);\n }\n\n /**\n * @dev Since this is a join, we know the tokenOut is BPT. Since it is GivenOut, we know the BPT amount,\n * and must calculate the token amount in.\n * We are moving preminted BPT out of the Vault, which increases the virtual supply.\n */\n function _joinSwapExactBptOutForTokenIn(\n uint256 bptOut,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 currentAmp,\n uint256 actualSupply,\n uint256 preJoinExitInvariant\n ) internal view returns (uint256, uint256) {\n uint256 amountIn = StableMath._calcTokenInGivenExactBptOut(\n currentAmp,\n balances,\n indexIn,\n bptOut,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n\n balances[indexIn] = balances[indexIn].add(amountIn);\n uint256 postJoinExitSupply = actualSupply.add(bptOut);\n\n return (amountIn, postJoinExitSupply);\n }\n\n /**\n * @dev This mutates balances so that they become the post-exitswap balances. The StableMath interfaces are\n * different depending on the swap direction, so we forward to the appropriate low-level exit function.\n */\n function _doExitSwap(\n bool isGivenIn,\n uint256 amount,\n uint256[] memory balances,\n uint256 indexOut,\n uint256 currentAmp,\n uint256 actualSupply,\n uint256 preJoinExitInvariant\n ) internal view returns (uint256, uint256) {\n return\n isGivenIn\n ? _exitSwapExactBptInForTokenOut(\n amount,\n balances,\n indexOut,\n currentAmp,\n actualSupply,\n preJoinExitInvariant\n )\n : _exitSwapExactTokenOutForBptIn(\n amount,\n balances,\n indexOut,\n currentAmp,\n actualSupply,\n preJoinExitInvariant\n );\n }\n\n /**\n * @dev Since this is an exit, we know the tokenIn is BPT. Since it is GivenIn, we know the BPT amount,\n * and must calculate the token amount out.\n * We are moving BPT out of circulation and into the Vault, which decreases the virtual supply.\n */\n function _exitSwapExactBptInForTokenOut(\n uint256 bptAmount,\n uint256[] memory balances,\n uint256 indexOut,\n uint256 currentAmp,\n uint256 actualSupply,\n uint256 preJoinExitInvariant\n ) internal view returns (uint256, uint256) {\n uint256 amountOut = StableMath._calcTokenOutGivenExactBptIn(\n currentAmp,\n balances,\n indexOut,\n bptAmount,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n\n balances[indexOut] = balances[indexOut].sub(amountOut);\n uint256 postJoinExitSupply = actualSupply.sub(bptAmount);\n\n return (amountOut, postJoinExitSupply);\n }\n\n /**\n * @dev Since this is an exit, we know the tokenIn is BPT. Since it is GivenOut, we know the token amount out,\n * and must calculate the BPT amount in.\n * We are moving BPT out of circulation and into the Vault, which decreases the virtual supply.\n */\n function _exitSwapExactTokenOutForBptIn(\n uint256 amountOut,\n uint256[] memory balances,\n uint256 indexOut,\n uint256 currentAmp,\n uint256 actualSupply,\n uint256 preJoinExitInvariant\n ) internal view returns (uint256, uint256) {\n // The StableMath function was created with exits in mind, so it expects a full amounts array. We create an\n // empty one and only set the amount for the token involved.\n uint256[] memory amountsOut = new uint256[](balances.length);\n amountsOut[indexOut] = amountOut;\n\n uint256 bptAmount = StableMath._calcBptInGivenExactTokensOut(\n currentAmp,\n balances,\n amountsOut,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n\n balances[indexOut] = balances[indexOut].sub(amountOut);\n uint256 postJoinExitSupply = actualSupply.sub(bptAmount);\n\n return (bptAmount, postJoinExitSupply);\n }\n\n // Join Hooks\n\n /**\n * Since this Pool has preminted BPT which is stored in the Vault, it cannot simply be minted at construction.\n *\n * We take advantage of the fact that StablePools have an initialization step where BPT is minted to the first\n * account joining them, and perform both actions at once. By minting the entire BPT supply for the initial joiner\n * and then pulling all tokens except those due the joiner, we arrive at the desired state of the Pool holding all\n * BPT except the joiner's.\n */\n function _onInitializePool(\n bytes32,\n address sender,\n address,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal override returns (uint256, uint256[] memory) {\n StablePoolUserData.JoinKind kind = userData.joinKind();\n _require(kind == StablePoolUserData.JoinKind.INIT, Errors.UNINITIALIZED);\n\n // AmountsIn usually does not include the BPT token; initialization is the one time it has to.\n uint256[] memory amountsInIncludingBpt = userData.initialAmountsIn();\n InputHelpers.ensureInputLengthMatch(amountsInIncludingBpt.length, scalingFactors.length);\n _upscaleArray(amountsInIncludingBpt, scalingFactors);\n\n (uint256 amp, ) = _getAmplificationParameter();\n uint256[] memory amountsIn = _dropBptItem(amountsInIncludingBpt);\n uint256 invariantAfterJoin = StableMath._calculateInvariant(amp, amountsIn);\n\n // Set the initial BPT to the value of the invariant\n uint256 bptAmountOut = invariantAfterJoin;\n\n // BasePool will mint bptAmountOut for the sender: we then also mint the remaining BPT to make up the total\n // supply, and have the Vault pull those tokens from the sender as part of the join.\n // We are only minting half of the maximum value - already an amount many orders of magnitude greater than any\n // conceivable real liquidity - to allow for minting new BPT as a result of regular joins.\n //\n // Note that the sender need not approve BPT for the Vault as the Vault already has infinite BPT allowance for\n // all accounts.\n uint256 initialBpt = _PREMINTED_TOKEN_BALANCE.sub(bptAmountOut);\n\n _mintPoolTokens(sender, initialBpt);\n amountsInIncludingBpt[getBptIndex()] = initialBpt;\n\n // Initialization is still a join, so we need to do post-join work.\n _updatePostJoinExit(amp, invariantAfterJoin);\n\n return (bptAmountOut, amountsInIncludingBpt);\n }\n\n /**\n * @dev Base pool hook called from `onJoinPool`. Forward to `onJoinExitPool` with `isJoin` set to true.\n */\n function _onJoinPool(\n bytes32,\n address,\n address,\n uint256[] memory registeredBalances,\n uint256,\n uint256,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal override returns (uint256, uint256[] memory) {\n return _onJoinExitPool(true, registeredBalances, scalingFactors, userData);\n }\n\n /**\n * @dev Base pool hook called from `onExitPool`. Forward to `onJoinExitPool` with `isJoin` set to false.\n * Note that recovery mode exits do not call `_onExitPool`.\n */\n function _onExitPool(\n bytes32,\n address,\n address,\n uint256[] memory registeredBalances,\n uint256,\n uint256,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal override returns (uint256, uint256[] memory) {\n return _onJoinExitPool(false, registeredBalances, scalingFactors, userData);\n }\n\n /**\n * @dev Pay protocol fees before the operation, and call `_updateInvariantAfterJoinExit` afterward, to establish\n * the new basis for protocol fees.\n */\n function _onJoinExitPool(\n bool isJoin,\n uint256[] memory registeredBalances,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal returns (uint256, uint256[] memory) {\n (\n uint256 preJoinExitSupply,\n uint256[] memory balances,\n uint256 currentAmp,\n uint256 preJoinExitInvariant\n ) = _beforeJoinExit(registeredBalances);\n\n\n function(uint256[] memory, uint256, uint256, uint256, uint256[] memory, bytes memory)\n internal\n view\n returns (uint256, uint256[] memory) _doJoinOrExit\n = (isJoin ? _doJoin : _doExit);\n\n (uint256 bptAmount, uint256[] memory amountsDelta) = _doJoinOrExit(\n balances,\n currentAmp,\n preJoinExitSupply,\n preJoinExitInvariant,\n scalingFactors,\n userData\n );\n\n // Unlike joinswaps, explicit joins do not mutate balances into the post join-exit balances so we must perform\n // this mutation here.\n function(uint256, uint256) internal pure returns (uint256) _addOrSub = isJoin ? FixedPoint.add : FixedPoint.sub;\n _mutateAmounts(balances, amountsDelta, _addOrSub);\n uint256 postJoinExitSupply = _addOrSub(preJoinExitSupply, bptAmount);\n\n // Pass in the post-join balances to reset the protocol fee basis.\n // We are minting bptAmount, increasing the total (and virtual) supply post-join\n _updateInvariantAfterJoinExit(\n currentAmp,\n balances,\n preJoinExitInvariant,\n preJoinExitSupply,\n postJoinExitSupply\n );\n\n // For clarity and simplicity, arrays used and computed in lower level functions do not include BPT.\n // But the amountsIn array passed back to the Vault must include BPT, so we add it back in here.\n return (bptAmount, _addBptItem(amountsDelta, 0));\n }\n\n /**\n * @dev Pay any due protocol fees and calculate values necessary for performing the join/exit.\n */\n function _beforeJoinExit(uint256[] memory registeredBalances)\n internal\n returns (\n uint256,\n uint256[] memory,\n uint256,\n uint256\n )\n {\n (uint256 lastJoinExitAmp, uint256 lastPostJoinExitInvariant) = getLastJoinExitData();\n (\n uint256 preJoinExitSupply,\n uint256[] memory balances,\n uint256 oldAmpPreJoinExitInvariant\n ) = _payProtocolFeesBeforeJoinExit(registeredBalances, lastJoinExitAmp, lastPostJoinExitInvariant);\n\n // If the amplification factor is the same as it was during the last join/exit then we can reuse the\n // value calculated using the \"old\" amplification factor. If not, then we have to calculate this now.\n (uint256 currentAmp, ) = _getAmplificationParameter();\n uint256 preJoinExitInvariant = currentAmp == lastJoinExitAmp\n ? oldAmpPreJoinExitInvariant\n : StableMath._calculateInvariant(currentAmp, balances);\n\n return (preJoinExitSupply, balances, currentAmp, preJoinExitInvariant);\n }\n\n /**\n * @dev Support single- and multi-token joins, plus explicit proportional joins.\n */\n function _doJoin(\n uint256[] memory balances,\n uint256 currentAmp,\n uint256 preJoinExitSupply,\n uint256 preJoinExitInvariant,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal view returns (uint256, uint256[] memory) {\n StablePoolUserData.JoinKind kind = userData.joinKind();\n if (kind == StablePoolUserData.JoinKind.EXACT_TOKENS_IN_FOR_BPT_OUT) {\n return\n _joinExactTokensInForBPTOut(\n preJoinExitSupply,\n preJoinExitInvariant,\n currentAmp,\n balances,\n scalingFactors,\n userData\n );\n } else if (kind == StablePoolUserData.JoinKind.ALL_TOKENS_IN_FOR_EXACT_BPT_OUT) {\n return _joinAllTokensInForExactBptOut(preJoinExitSupply, balances, userData);\n } else if (kind == StablePoolUserData.JoinKind.TOKEN_IN_FOR_EXACT_BPT_OUT) {\n return _joinTokenInForExactBPTOut(preJoinExitSupply, preJoinExitInvariant, currentAmp, balances, userData);\n } else {\n _revert(Errors.UNHANDLED_JOIN_KIND);\n }\n }\n\n /**\n * @dev Proportional join. Pays no swap fees.\n */\n function _joinAllTokensInForExactBptOut(\n uint256 actualSupply,\n uint256[] memory balances,\n bytes memory userData\n ) private pure returns (uint256, uint256[] memory) {\n uint256 bptAmountOut = userData.allTokensInForExactBptOut();\n uint256[] memory amountsIn = StableMath._computeProportionalAmountsIn(balances, bptAmountOut, actualSupply);\n\n return (bptAmountOut, amountsIn);\n }\n\n /**\n * @dev Multi-token join. Joins with proportional amounts will pay no protocol fees.\n */\n function _joinExactTokensInForBPTOut(\n uint256 actualSupply,\n uint256 preJoinExitInvariant,\n uint256 currentAmp,\n uint256[] memory balances,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) private view returns (uint256, uint256[] memory) {\n (uint256[] memory amountsIn, uint256 minBPTAmountOut) = userData.exactTokensInForBptOut();\n InputHelpers.ensureInputLengthMatch(balances.length, amountsIn.length);\n\n // The user-provided amountsIn is unscaled, so we address that.\n _upscaleArray(amountsIn, _dropBptItem(scalingFactors));\n\n uint256 bptAmountOut = StableMath._calcBptOutGivenExactTokensIn(\n currentAmp,\n balances,\n amountsIn,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n\n _require(bptAmountOut >= minBPTAmountOut, Errors.BPT_OUT_MIN_AMOUNT);\n\n return (bptAmountOut, amountsIn);\n }\n\n /**\n * @dev Single-token join, equivalent to swapping a pool token for BPT.\n */\n function _joinTokenInForExactBPTOut(\n uint256 actualSupply,\n uint256 preJoinExitInvariant,\n uint256 currentAmp,\n uint256[] memory balances,\n bytes memory userData\n ) private view returns (uint256, uint256[] memory) {\n // Since this index is sent in from the user, we interpret it as NOT including the BPT token.\n (uint256 bptAmountOut, uint256 tokenIndex) = userData.tokenInForExactBptOut();\n // Note that there is no maximum amountIn parameter: this is handled by `IVault.joinPool`.\n\n // Balances are passed through from the Vault hook, and include BPT\n _require(tokenIndex < balances.length, Errors.OUT_OF_BOUNDS);\n\n // We join with a single token, so initialize amountsIn with zeros.\n uint256[] memory amountsIn = new uint256[](balances.length);\n\n // And then assign the result to the selected token.\n amountsIn[tokenIndex] = StableMath._calcTokenInGivenExactBptOut(\n currentAmp,\n balances,\n tokenIndex,\n bptAmountOut,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n\n return (bptAmountOut, amountsIn);\n }\n\n // Exit Hooks\n\n /**\n * @dev Support single- and multi-token exits, plus explicit proportional exits (in addition to the\n * recovery mode exit).\n */\n function _doExit(\n uint256[] memory balances,\n uint256 currentAmp,\n uint256 preJoinExitSupply,\n uint256 preJoinExitInvariant,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal view returns (uint256, uint256[] memory) {\n StablePoolUserData.ExitKind kind = userData.exitKind();\n if (kind == StablePoolUserData.ExitKind.BPT_IN_FOR_EXACT_TOKENS_OUT) {\n return\n _exitBPTInForExactTokensOut(\n preJoinExitSupply,\n preJoinExitInvariant,\n currentAmp,\n balances,\n scalingFactors,\n userData\n );\n } else if (kind == StablePoolUserData.ExitKind.EXACT_BPT_IN_FOR_ALL_TOKENS_OUT) {\n return _exitExactBPTInForTokensOut(preJoinExitSupply, balances, userData);\n } else if (kind == StablePoolUserData.ExitKind.EXACT_BPT_IN_FOR_ONE_TOKEN_OUT) {\n return _exitExactBPTInForTokenOut(preJoinExitSupply, preJoinExitInvariant, currentAmp, balances, userData);\n } else {\n _revert(Errors.UNHANDLED_EXIT_KIND);\n }\n }\n\n /**\n * @dev Proportional exit. Pays no swap fees. This is functionally equivalent to the recovery mode exit,\n * except this doesn't skip protocol fee collection, calling rate providers, etc., and doesn't require\n * recovery mode to be enabled.\n */\n function _exitExactBPTInForTokensOut(\n uint256 actualSupply,\n uint256[] memory balances,\n bytes memory userData\n ) private pure returns (uint256, uint256[] memory) {\n uint256 bptAmountIn = userData.exactBptInForTokensOut();\n uint256[] memory amountsOut = _computeProportionalAmountsOut(balances, actualSupply, bptAmountIn);\n\n return (bptAmountIn, amountsOut);\n }\n\n /**\n * @dev Multi-token exit. Proportional exits will pay no protocol fees.\n */\n function _exitBPTInForExactTokensOut(\n uint256 actualSupply,\n uint256 preJoinExitInvariant,\n uint256 currentAmp,\n uint256[] memory balances,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) private view returns (uint256, uint256[] memory) {\n (uint256[] memory amountsOut, uint256 maxBPTAmountIn) = userData.bptInForExactTokensOut();\n InputHelpers.ensureInputLengthMatch(amountsOut.length, balances.length);\n\n // The user-provided amountsIn is unscaled, so we address that.\n _upscaleArray(amountsOut, _dropBptItem(scalingFactors));\n\n uint256 bptAmountIn = StableMath._calcBptInGivenExactTokensOut(\n currentAmp,\n balances,\n amountsOut,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n _require(bptAmountIn <= maxBPTAmountIn, Errors.BPT_IN_MAX_AMOUNT);\n\n return (bptAmountIn, amountsOut);\n }\n\n /**\n * @dev Single-token exit, equivalent to swapping BPT for a pool token.\n */\n function _exitExactBPTInForTokenOut(\n uint256 actualSupply,\n uint256 preJoinExitInvariant,\n uint256 currentAmp,\n uint256[] memory balances,\n bytes memory userData\n ) private view returns (uint256, uint256[] memory) {\n // Since this index is sent in from the user, we interpret it as NOT including the BPT token\n (uint256 bptAmountIn, uint256 tokenIndex) = userData.exactBptInForTokenOut();\n // Note that there is no minimum amountOut parameter: this is handled by `IVault.exitPool`.\n\n _require(tokenIndex < balances.length, Errors.OUT_OF_BOUNDS);\n\n // We exit in a single token, so initialize amountsOut with zeros\n uint256[] memory amountsOut = new uint256[](balances.length);\n\n // And then assign the result to the selected token.\n amountsOut[tokenIndex] = StableMath._calcTokenOutGivenExactBptIn(\n currentAmp,\n balances,\n tokenIndex,\n bptAmountIn,\n actualSupply,\n preJoinExitInvariant,\n getSwapFeePercentage()\n );\n\n return (bptAmountIn, amountsOut);\n }\n\n /**\n * @dev We cannot use the default RecoveryMode implementation here, since we need to account for the BPT token.\n */\n function _doRecoveryModeExit(\n uint256[] memory registeredBalances,\n uint256,\n bytes memory userData\n ) internal virtual override returns (uint256, uint256[] memory) {\n // Since this Pool uses preminted BPT, we need to replace the total supply with the virtual total supply, and\n // adjust the balances array by removing BPT from it.\n // Note that we don't compute the actual supply, which would require a lot of complex calculations and\n // interactions with external components. This is fine because virtual and actual supply are the same while\n // recovery mode is enabled (since all protocol fees are forfeit and the fee percentages zeroed out).\n (uint256 virtualSupply, uint256[] memory balances) = _dropBptItemFromBalances(registeredBalances);\n\n (uint256 bptAmountIn, uint256[] memory amountsOut) = super._doRecoveryModeExit(\n balances,\n virtualSupply,\n userData\n );\n\n // The vault requires an array including BPT, so add it back in here.\n return (bptAmountIn, _addBptItem(amountsOut, 0));\n }\n\n // BPT rate\n\n /**\n * Many functions require accessing multiple internal values that might at first seem unrelated, but are actually\n * quite intertwined, and computed at the same time for optimal performance (since calculating some of them also\n * yields intermediate results useful for other queries). This helper function returns many of these values,\n * greatly reducing bytecode size.\n *\n * The return values are:\n * @return balances - The current upscaled token balances (not including BPT)\n * @return virtualSupply - The Pool's virtual supply\n * @return protocolFeeAmount - The amount of unpaid protocol fees in BPT\n * @return lastJoinExitAmp - The Pool's amplification factor at the last join or exit operation\n * @return currentInvariantWithLastJoinExitAmp - The invariant of the current balances, calculated using the\n * amplification factor at the last join or exit operation.\n */\n function _getSupplyAndFeesData()\n private\n view\n returns (\n uint256[] memory balances,\n uint256 virtualSupply,\n uint256 protocolFeeAmount,\n uint256 lastJoinExitAmp,\n uint256 currentInvariantWithLastJoinExitAmp\n )\n {\n // First we query the Vault for current registered balances (which includes preminted BPT), to then calculate\n // the current scaled balances and virtual supply.\n (, uint256[] memory registeredBalances, ) = getVault().getPoolTokens(getPoolId());\n _upscaleArray(registeredBalances, _scalingFactors());\n (virtualSupply, balances) = _dropBptItemFromBalances(registeredBalances);\n\n // Now we need to calculate any BPT due in the form of protocol fees. This requires data from the last join or\n // exit operation. `lastJoinExitAmp` can be useful in the scenario in which the amplification factor has not\n // changed, meaning this old value is equal to the current value.\n uint256 lastPostJoinExitInvariant;\n (lastJoinExitAmp, lastPostJoinExitInvariant) = getLastJoinExitData();\n\n // Computing the protocol ownership percentage also yields the invariant using the old amplification factor. If\n // it has not changed, then this is also the current invariant.\n uint256 expectedProtocolOwnershipPercentage;\n (\n expectedProtocolOwnershipPercentage,\n currentInvariantWithLastJoinExitAmp\n ) = _getProtocolPoolOwnershipPercentage(balances, lastJoinExitAmp, lastPostJoinExitInvariant);\n\n protocolFeeAmount = ProtocolFees.bptForPoolOwnershipPercentage(\n virtualSupply,\n expectedProtocolOwnershipPercentage\n );\n }\n\n /**\n * @dev This function returns the appreciation of BPT relative to the underlying tokens, as an 18 decimal fixed\n * point number. It is simply the ratio of the invariant to the BPT supply.\n *\n * The total supply is initialized to equal the invariant, so this value starts at one. During Pool operation the\n * invariant always grows and shrinks either proportionally to the total supply (in scenarios with no price impact,\n * e.g. proportional joins), or grows faster and shrinks more slowly than it (whenever swap fees are collected or\n * the token rates increase). Therefore, the rate is a monotonically increasing function.\n *\n * WARNING: since this function reads balances directly from the Vault, it is potentially subject to manipulation\n * via reentrancy if called within a Vault context (i.e. in the middle of a join or an exit). It is up to the\n * caller to ensure that the function is safe to call.\n *\n * This may happen e.g. if one of the tokens in the Pool contains some form of callback behavior in the\n * `transferFrom` function (like ERC777 tokens do). These tokens are strictly incompatible with the\n * Vault and Pool design, and are not safe to be used.\n *\n * There are also other situations where calling this function is unsafe. See\n * https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n *\n * To call this function safely, attempt to trigger the reentrancy guard in the Vault by calling a non-reentrant\n * function before calling `getRate`. That will make the transaction revert in an unsafe context.\n * (See `whenNotInVaultContext` in `ComposableStablePoolRates`).\n */\n function getRate() external view virtual override returns (uint256) {\n // We need to compute the current invariant and actual total supply. The latter includes protocol fees that have\n // accrued but are not yet minted: in calculating these we'll actually end up fetching most of the data we need\n // for the invariant.\n\n (\n uint256[] memory balances,\n uint256 virtualSupply,\n uint256 protocolFeeAmount,\n uint256 lastJoinExitAmp,\n uint256 currentInvariantWithLastJoinExitAmp\n ) = _getSupplyAndFeesData();\n\n // Due protocol fees will be minted at the next join or exit, so we can simply add them to the current virtual\n // supply to get the actual supply.\n uint256 actualTotalSupply = virtualSupply.add(protocolFeeAmount);\n\n // All that's missing now is the invariant. We have the balances required to calculate it already, but still\n // need the current amplification factor.\n (uint256 currentAmp, ) = _getAmplificationParameter();\n\n // It turns out that the process for due protocol fee calculation involves computing the current invariant,\n // except using the amplification factor at the last join or exit. This would typically not be terribly useful,\n // but since the amplification factor only changes rarely there is high probability of its current value being\n // the same as it was in the last join or exit. If that is the case, then we can skip the costly invariant\n // computation altogether.\n uint256 currentInvariant = (currentAmp == lastJoinExitAmp)\n ? currentInvariantWithLastJoinExitAmp\n : StableMath._calculateInvariant(currentAmp, balances);\n\n // With the current invariant and actual total supply, we can compute the rate as a fixed-point number.\n return currentInvariant.divDown(actualTotalSupply);\n }\n\n /**\n * @dev Returns the effective BPT supply.\n *\n * In other pools, this would be the same as `totalSupply`, but there are two key differences here:\n * - this pool pre-mints BPT and holds it in the Vault as a token, and as such we need to subtract the Vault's\n * balance to get the total \"circulating supply\". This is called the 'virtualSupply'.\n * - the Pool owes debt to the Protocol in the form of unminted BPT, which will be minted immediately before the\n * next join or exit. We need to take these into account since, even if they don't yet exist, they will\n * effectively be included in any Pool operation that involves BPT.\n *\n * In the vast majority of cases, this function should be used instead of `totalSupply()`.\n *\n * **IMPORTANT NOTE**: calling this function within a Vault context (i.e. in the middle of a join or an exit) is\n * potentially unsafe, since the returned value is manipulable. It is up to the caller to ensure safety.\n *\n * This is because this function calculates the invariant, which requires the state of the pool to be in sync\n * with the state of the Vault. That condition may not be true in the middle of a join or an exit.\n *\n * To call this function safely, attempt to trigger the reentrancy guard in the Vault by calling a non-reentrant\n * function before calling `getActualSupply`. That will make the transaction revert in an unsafe context.\n * (See `whenNotInVaultContext` in `ComposableStablePoolRates`).\n *\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n */\n function getActualSupply() external view returns (uint256) {\n (, uint256 virtualSupply, uint256 protocolFeeAmount, , ) = _getSupplyAndFeesData();\n return virtualSupply.add(protocolFeeAmount);\n }\n\n /**\n * @dev This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n *\n * This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n * an exit, because the state of the pool could be out of sync with the state of the Vault. The modifier\n * `whenNotInVaultContext` prevents calling this function (and in turn, the external\n * `updateProtocolFeePercentageCache`) in such a context.\n *\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n */\n function _beforeProtocolFeeCacheUpdate() internal override whenNotInVaultContext {\n // The `getRate()` function depends on the actual supply, which in turn depends on the cached protocol fee\n // percentages. Changing these would therefore result in the rate changing, which is not acceptable as this is a\n // sensitive value.\n // Because of this, we pay any due protocol fees *before* updating the cache, making it so that the new\n // percentages only affect future operation of the Pool, and not past fees. As a result, `getRate()` is\n // unaffected by the cached protocol fee percentages changing.\n\n // Given that this operation is state-changing and relatively complex, we only allow it as long as the Pool is\n // not paused.\n _ensureNotPaused();\n\n // We need to calculate the amount of unminted BPT that represents protocol fees to then pay those. This yields\n // some auxiliary values that turn out to also be useful for the rest of the tasks we want to perform.\n (\n uint256[] memory balances,\n ,\n uint256 protocolFeeAmount,\n uint256 lastJoinExitAmp,\n uint256 currentInvariantWithLastJoinExitAmp\n ) = _getSupplyAndFeesData();\n\n if (protocolFeeAmount > 0) {\n _payProtocolFees(protocolFeeAmount);\n }\n\n // With the fees paid, we now need to calculate the current invariant so we can store it alongside the current\n // amplification factor, marking the Pool as free of protocol debt.\n (uint256 currentAmp, ) = _getAmplificationParameter();\n\n // It turns out that the process for due protocol fee calculation involves computing the current invariant,\n // except using the amplification factor at the last join or exit. This would typically not be terribly useful,\n // but since the amplification factor only changes rarely there is high probability of its current value being\n // the same as it was in the last join or exit. If that is the case, then we can skip the costly invariant\n // computation altogether.\n uint256 currentInvariant = (currentAmp == lastJoinExitAmp)\n ? currentInvariantWithLastJoinExitAmp\n : StableMath._calculateInvariant(currentAmp, balances);\n\n _updatePostJoinExit(currentAmp, currentInvariant);\n }\n\n /**\n * @dev This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n *\n * This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n * an exit, because the state of the pool could be out of sync with the state of the Vault.\n *\n * The modifier `whenNotInVaultContext` prevents calling this function (and in turn, the external\n * `disableRecoveryMode`) in such a context.\n *\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n */\n function _onDisableRecoveryMode() internal override whenNotInVaultContext {\n // Enabling recovery mode short-circuits protocol fee computations, forcefully returning a zero percentage,\n // increasing the return value of `getRate()` and effectively forfeiting due protocol fees.\n\n // Therefore, when exiting recovery mode we store the current invariant and the amplification factor used to\n // compute it, marking the Pool as free of protocol debt. Otherwise it'd be possible for debt to be\n // retroactively accrued, which would be incorrect and could lead to the value of `getRate` decreasing.\n\n (, uint256[] memory registeredBalances, ) = getVault().getPoolTokens(getPoolId());\n _upscaleArray(registeredBalances, _scalingFactors());\n uint256[] memory balances = _dropBptItem(registeredBalances);\n\n (uint256 currentAmp, ) = _getAmplificationParameter();\n uint256 currentInvariant = StableMath._calculateInvariant(currentAmp, balances);\n\n _updatePostJoinExit(currentAmp, currentInvariant);\n }\n\n // Helpers\n\n /**\n * @dev Mutates `amounts` by applying `mutation` with each entry in `arguments`.\n *\n * Equivalent to `amounts = amounts.map(mutation)`.\n */\n function _mutateAmounts(\n uint256[] memory toMutate,\n uint256[] memory arguments,\n function(uint256, uint256) pure returns (uint256) mutation\n ) private pure {\n uint256 length = toMutate.length;\n InputHelpers.ensureInputLengthMatch(length, arguments.length);\n\n for (uint256 i = 0; i < length; ++i) {\n toMutate[i] = mutation(toMutate[i], arguments[i]);\n }\n }\n\n // Permissioned functions\n\n /**\n * @dev Inheritance rules still require us to override this in the most derived contract, even though\n * it only calls super.\n */\n function _isOwnerOnlyAction(bytes32 actionId)\n internal\n view\n virtual\n override(\n // Our inheritance pattern creates a small diamond that requires explicitly listing the parents here.\n // Each parent calls the `super` version, so linearization ensures all implementations are called.\n BasePool,\n ComposableStablePoolProtocolFees,\n StablePoolAmplification,\n ComposableStablePoolRates\n )\n returns (bool)\n {\n return super._isOwnerOnlyAction(actionId);\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address recipient, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external returns (bool);\n\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\ninterface IAuthentication {\n /**\n * @dev Returns the action identifier associated with the external function described by `selector`.\n */\n function getActionId(bytes4 selector) external view returns (bytes32);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\n/**\n * @dev Interface for the SignatureValidator helper, used to support meta-transactions.\n */\ninterface ISignaturesValidator {\n /**\n * @dev Returns the EIP712 domain separator.\n */\n function getDomainSeparator() external view returns (bytes32);\n\n /**\n * @dev Returns the next nonce used by an address to sign messages.\n */\n function getNextNonce(address user) external view returns (uint256);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\n/**\n * @dev Interface for the TemporarilyPausable helper.\n */\ninterface ITemporarilyPausable {\n /**\n * @dev Emitted every time the pause state changes by `_setPaused`.\n */\n event PausedStateChanged(bool paused);\n\n /**\n * @dev Returns the current paused state.\n */\n function getPausedState()\n external\n view\n returns (\n bool paused,\n uint256 pauseWindowEndTime,\n uint256 bufferPeriodEndTime\n );\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"../openzeppelin/IERC20.sol\";\n\n/**\n * @dev Interface for WETH9.\n * See https://github.com/gnosis/canonical-weth/blob/0dd1ea3e295eef916d0c6223ec63141137d22d67/contracts/WETH9.sol\n */\ninterface IWETH is IERC20 {\n function deposit() external payable;\n\n function withdraw(uint256 amount) external;\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\n/**\n * @dev This is an empty interface used to represent either ERC20-conforming token contracts or ETH (using the zero\n * address sentinel value). We're just relying on the fact that `interface` can be used to declare new address-like\n * types.\n *\n * This concept is unrelated to a Pool's Asset Managers.\n */\ninterface IAsset {\n // solhint-disable-previous-line no-empty-blocks\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\ninterface IAuthorizer {\n /**\n * @dev Returns true if `account` can perform the action described by `actionId` in the contract `where`.\n */\n function canPerform(\n bytes32 actionId,\n address account,\n address where\n ) external view returns (bool);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\n// Inspired by Aave Protocol's IFlashLoanReceiver.\n\nimport \"../solidity-utils/openzeppelin/IERC20.sol\";\n\ninterface IFlashLoanRecipient {\n /**\n * @dev When `flashLoan` is called on the Vault, it invokes the `receiveFlashLoan` hook on the recipient.\n *\n * At the time of the call, the Vault will have transferred `amounts` for `tokens` to the recipient. Before this\n * call returns, the recipient must have transferred `amounts` plus `feeAmounts` for each token back to the\n * Vault, or else the entire flash loan will revert.\n *\n * `userData` is the same value passed in the `IVault.flashLoan` call.\n */\n function receiveFlashLoan(\n IERC20[] memory tokens,\n uint256[] memory amounts,\n uint256[] memory feeAmounts,\n bytes memory userData\n ) external;\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"../solidity-utils/openzeppelin/IERC20.sol\";\n\nimport \"./IVault.sol\";\nimport \"./IAuthorizer.sol\";\n\ninterface IProtocolFeesCollector {\n event SwapFeePercentageChanged(uint256 newSwapFeePercentage);\n event FlashLoanFeePercentageChanged(uint256 newFlashLoanFeePercentage);\n\n function withdrawCollectedFees(\n IERC20[] calldata tokens,\n uint256[] calldata amounts,\n address recipient\n ) external;\n\n function setSwapFeePercentage(uint256 newSwapFeePercentage) external;\n\n function setFlashLoanFeePercentage(uint256 newFlashLoanFeePercentage) external;\n\n function getSwapFeePercentage() external view returns (uint256);\n\n function getFlashLoanFeePercentage() external view returns (uint256);\n\n function getCollectedFeeAmounts(IERC20[] memory tokens) external view returns (uint256[] memory feeAmounts);\n\n function getAuthorizer() external view returns (IAuthorizer);\n\n function vault() external view returns (IVault);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\n/**\n * @dev Source of truth for all Protocol Fee percentages, that is, how much the protocol charges certain actions. Some\n * of these values may also be retrievable from other places (such as the swap fee percentage), but this is the\n * preferred source nonetheless.\n */\ninterface IProtocolFeePercentagesProvider {\n // All fee percentages are 18-decimal fixed point numbers, so e.g. 1e18 = 100% and 1e16 = 1%.\n\n // Emitted when a new fee type is registered.\n event ProtocolFeeTypeRegistered(uint256 indexed feeType, string name, uint256 maximumPercentage);\n\n // Emitted when the value of a fee type changes.\n // IMPORTANT: it is possible for a third party to modify the SWAP and FLASH_LOAN fee type values directly in the\n // ProtocolFeesCollector, which will result in this event not being emitted despite their value changing. Such usage\n // of the ProtocolFeesCollector is however discouraged: all state-changing interactions with it should originate in\n // this contract.\n event ProtocolFeePercentageChanged(uint256 indexed feeType, uint256 percentage);\n\n /**\n * @dev Registers a new fee type in the system, making it queryable via `getFeeTypePercentage` and `getFeeTypeName`,\n * as well as configurable via `setFeeTypePercentage`.\n *\n * `feeType` can be any arbitrary value (that is not in use).\n *\n * It is not possible to de-register fee types, nor change their name or maximum value.\n */\n function registerFeeType(\n uint256 feeType,\n string memory name,\n uint256 maximumValue,\n uint256 initialValue\n ) external;\n\n /**\n * @dev Returns true if `feeType` has been registered and can be queried.\n */\n function isValidFeeType(uint256 feeType) external view returns (bool);\n\n /**\n * @dev Returns true if `value` is a valid percentage value for `feeType`.\n */\n function isValidFeeTypePercentage(uint256 feeType, uint256 value) external view returns (bool);\n\n /**\n * @dev Sets the percentage value for `feeType` to `newValue`.\n *\n * IMPORTANT: it is possible for a third party to modify the SWAP and FLASH_LOAN fee type values directly in the\n * ProtocolFeesCollector, without invoking this function. This will result in the `ProtocolFeePercentageChanged`\n * event not being emitted despite their value changing. Such usage of the ProtocolFeesCollector is however\n * discouraged: only this contract should be granted permission to call `setSwapFeePercentage` and\n * `setFlashLoanFeePercentage`.\n */\n function setFeeTypePercentage(uint256 feeType, uint256 newValue) external;\n\n /**\n * @dev Returns the current percentage value for `feeType`. This is the preferred mechanism for querying these -\n * whenever possible, use this fucntion instead of e.g. querying the ProtocolFeesCollector.\n */\n function getFeeTypePercentage(uint256 feeType) external view returns (uint256);\n\n /**\n * @dev Returns `feeType`'s maximum value.\n */\n function getFeeTypeMaximumPercentage(uint256 feeType) external view returns (uint256);\n\n /**\n * @dev Returns `feeType`'s name.\n */\n function getFeeTypeName(uint256 feeType) external view returns (string memory);\n}\n\nlibrary ProtocolFeeType {\n // This list is not exhaustive - more fee types can be added to the system. It is expected for this list to be\n // extended with new fee types as they are registered, to keep them all in one place and reduce\n // likelihood of user error.\n\n // solhint-disable private-vars-leading-underscore\n uint256 internal constant SWAP = 0;\n uint256 internal constant FLASH_LOAN = 1;\n uint256 internal constant YIELD = 2;\n uint256 internal constant AUM = 3;\n // solhint-enable private-vars-leading-underscore\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"../solidity-utils/helpers/IAuthentication.sol\";\n\ninterface IBasePoolFactory is IAuthentication {\n /**\n * @dev Returns true if `pool` was created by this factory.\n */\n function isPoolFromFactory(address pool) external view returns (bool);\n\n /**\n * @dev Check whether the derived factory has been disabled.\n */\n function isDisabled() external view returns (bool);\n\n /**\n * @dev Disable the factory, preventing the creation of more pools. Already existing pools are unaffected.\n * Once a factory is disabled, it cannot be re-enabled.\n */\n function disable() external;\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"./CodeDeployer.sol\";\n\n/**\n * @dev Base factory for contracts whose creation code is so large that the factory cannot hold it. This happens when\n * the contract's creation code grows close to 24kB.\n *\n * Note that this factory cannot help with contracts that have a *runtime* (deployed) bytecode larger than 24kB.\n */\nabstract contract BaseSplitCodeFactory {\n // The contract's creation code is stored as code in two separate addresses, and retrieved via `extcodecopy`. This\n // means this factory supports contracts with creation code of up to 48kB.\n // We rely on inline-assembly to achieve this, both to make the entire operation highly gas efficient, and because\n // `extcodecopy` is not available in Solidity.\n\n // solhint-disable no-inline-assembly\n\n address private immutable _creationCodeContractA;\n uint256 private immutable _creationCodeSizeA;\n\n address private immutable _creationCodeContractB;\n uint256 private immutable _creationCodeSizeB;\n\n /**\n * @dev The creation code of a contract Foo can be obtained inside Solidity with `type(Foo).creationCode`.\n */\n constructor(bytes memory creationCode) {\n uint256 creationCodeSize = creationCode.length;\n\n // We are going to deploy two contracts: one with approximately the first half of `creationCode`'s contents\n // (A), and another with the remaining half (B).\n // We store the lengths in both immutable and stack variables, since immutable variables cannot be read during\n // construction.\n uint256 creationCodeSizeA = creationCodeSize / 2;\n _creationCodeSizeA = creationCodeSizeA;\n\n uint256 creationCodeSizeB = creationCodeSize - creationCodeSizeA;\n _creationCodeSizeB = creationCodeSizeB;\n\n // To deploy the contracts, we're going to use `CodeDeployer.deploy()`, which expects a memory array with\n // the code to deploy. Note that we cannot simply create arrays for A and B's code by copying or moving\n // `creationCode`'s contents as they are expected to be very large (> 24kB), so we must operate in-place.\n\n // Memory: [ code length ] [ A.data ] [ B.data ]\n\n // Creating A's array is simple: we simply replace `creationCode`'s length with A's length. We'll later restore\n // the original length.\n\n bytes memory creationCodeA;\n assembly {\n creationCodeA := creationCode\n mstore(creationCodeA, creationCodeSizeA)\n }\n\n // Memory: [ A.length ] [ A.data ] [ B.data ]\n // ^ creationCodeA\n\n _creationCodeContractA = CodeDeployer.deploy(creationCodeA);\n\n // Creating B's array is a bit more involved: since we cannot move B's contents, we are going to create a 'new'\n // memory array starting at A's last 32 bytes, which will be replaced with B's length. We'll back-up this last\n // byte to later restore it.\n\n bytes memory creationCodeB;\n bytes32 lastByteA;\n\n assembly {\n // `creationCode` points to the array's length, not data, so by adding A's length to it we arrive at A's\n // last 32 bytes.\n creationCodeB := add(creationCode, creationCodeSizeA)\n lastByteA := mload(creationCodeB)\n mstore(creationCodeB, creationCodeSizeB)\n }\n\n // Memory: [ A.length ] [ A.data[ : -1] ] [ B.length ][ B.data ]\n // ^ creationCodeA ^ creationCodeB\n\n _creationCodeContractB = CodeDeployer.deploy(creationCodeB);\n\n // We now restore the original contents of `creationCode` by writing back the original length and A's last byte.\n assembly {\n mstore(creationCodeA, creationCodeSize)\n mstore(creationCodeB, lastByteA)\n }\n }\n\n /**\n * @dev Returns the two addresses where the creation code of the contract crated by this factory is stored.\n */\n function getCreationCodeContracts() public view returns (address contractA, address contractB) {\n return (_creationCodeContractA, _creationCodeContractB);\n }\n\n /**\n * @dev Returns the creation code of the contract this factory creates.\n */\n function getCreationCode() public view returns (bytes memory) {\n return _getCreationCodeWithArgs(\"\");\n }\n\n /**\n * @dev Returns the creation code that will result in a contract being deployed with `constructorArgs`.\n */\n function _getCreationCodeWithArgs(bytes memory constructorArgs) private view returns (bytes memory code) {\n // This function exists because `abi.encode()` cannot be instructed to place its result at a specific address.\n // We need for the ABI-encoded constructor arguments to be located immediately after the creation code, but\n // cannot rely on `abi.encodePacked()` to perform concatenation as that would involve copying the creation code,\n // which would be prohibitively expensive.\n // Instead, we compute the creation code in a pre-allocated array that is large enough to hold *both* the\n // creation code and the constructor arguments, and then copy the ABI-encoded arguments (which should not be\n // overly long) right after the end of the creation code.\n\n // Immutable variables cannot be used in assembly, so we store them in the stack first.\n address creationCodeContractA = _creationCodeContractA;\n uint256 creationCodeSizeA = _creationCodeSizeA;\n address creationCodeContractB = _creationCodeContractB;\n uint256 creationCodeSizeB = _creationCodeSizeB;\n\n uint256 creationCodeSize = creationCodeSizeA + creationCodeSizeB;\n uint256 constructorArgsSize = constructorArgs.length;\n\n uint256 codeSize = creationCodeSize + constructorArgsSize;\n\n assembly {\n // First, we allocate memory for `code` by retrieving the free memory pointer and then moving it ahead of\n // `code` by the size of the creation code plus constructor arguments, and 32 bytes for the array length.\n code := mload(0x40)\n mstore(0x40, add(code, add(codeSize, 32)))\n\n // We now store the length of the code plus constructor arguments.\n mstore(code, codeSize)\n\n // Next, we concatenate the creation code stored in A and B.\n let dataStart := add(code, 32)\n extcodecopy(creationCodeContractA, dataStart, 0, creationCodeSizeA)\n extcodecopy(creationCodeContractB, add(dataStart, creationCodeSizeA), 0, creationCodeSizeB)\n }\n\n // Finally, we copy the constructorArgs to the end of the array. Unfortunately there is no way to avoid this\n // copy, as it is not possible to tell Solidity where to store the result of `abi.encode()`.\n uint256 constructorArgsDataPtr;\n uint256 constructorArgsCodeDataPtr;\n assembly {\n constructorArgsDataPtr := add(constructorArgs, 32)\n constructorArgsCodeDataPtr := add(add(code, 32), creationCodeSize)\n }\n\n _memcpy(constructorArgsCodeDataPtr, constructorArgsDataPtr, constructorArgsSize);\n }\n\n /**\n * @dev Deploys a contract with constructor arguments and a user-provided salt, using the create2 opcode.\n * To create `constructorArgs`, call `abi.encode()` with the contract's constructor arguments, in order.\n */\n function _create(bytes memory constructorArgs, bytes32 salt) internal virtual returns (address) {\n bytes memory creationCode = _getCreationCodeWithArgs(constructorArgs);\n\n address destination;\n assembly {\n destination := create2(0, add(creationCode, 32), mload(creationCode), salt)\n }\n\n if (destination == address(0)) {\n // Bubble up inner revert reason\n // solhint-disable-next-line no-inline-assembly\n assembly {\n returndatacopy(0, 0, returndatasize())\n revert(0, returndatasize())\n }\n }\n\n return destination;\n }\n\n // From\n // https://github.com/Arachnid/solidity-stringutils/blob/b9a6f6615cf18a87a823cbc461ce9e140a61c305/src/strings.sol\n function _memcpy(\n uint256 dest,\n uint256 src,\n uint256 len\n ) private pure {\n // Copy word-length chunks while possible\n for (; len >= 32; len -= 32) {\n assembly {\n mstore(dest, mload(src))\n }\n dest += 32;\n src += 32;\n }\n\n // Copy remaining bytes\n uint256 mask = 256**(32 - len) - 1;\n assembly {\n let srcpart := and(mload(src), not(mask))\n let destpart := and(mload(dest), mask)\n mstore(dest, or(destpart, srcpart))\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\";\n\nimport \"./Authentication.sol\";\n\nabstract contract SingletonAuthentication is Authentication {\n IVault private immutable _vault;\n\n // Use the contract's own address to disambiguate action identifiers\n constructor(IVault vault) Authentication(bytes32(uint256(address(this)))) {\n _vault = vault;\n }\n\n /**\n * @notice Returns the Balancer Vault\n */\n function getVault() public view returns (IVault) {\n return _vault;\n }\n\n /**\n * @notice Returns the Authorizer\n */\n function getAuthorizer() public view returns (IAuthorizer) {\n return getVault().getAuthorizer();\n }\n\n function _canPerform(bytes32 actionId, address account) internal view override returns (bool) {\n return getAuthorizer().canPerform(actionId, account, address(this));\n }\n\n function _canPerform(\n bytes32 actionId,\n address account,\n address where\n ) internal view returns (bool) {\n return getAuthorizer().canPerform(actionId, account, where);\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\n/**\n * @dev Library used to deploy contracts with specific code. This can be used for long-term storage of immutable data as\n * contract code, which can be retrieved via the `extcodecopy` opcode.\n */\nlibrary CodeDeployer {\n // During contract construction, the full code supplied exists as code, and can be accessed via `codesize` and\n // `codecopy`. This is not the contract's final code however: whatever the constructor returns is what will be\n // stored as its code.\n //\n // We use this mechanism to have a simple constructor that stores whatever is appended to it. The following opcode\n // sequence corresponds to the creation code of the following equivalent Solidity contract, plus padding to make the\n // full code 32 bytes long:\n //\n // contract CodeDeployer {\n // constructor() payable {\n // uint256 size;\n // assembly {\n // size := sub(codesize(), 32) // size of appended data, as constructor is 32 bytes long\n // codecopy(0, 32, size) // copy all appended data to memory at position 0\n // return(0, size) // return appended data for it to be stored as code\n // }\n // }\n // }\n //\n // More specifically, it is composed of the following opcodes (plus padding):\n //\n // [1] PUSH1 0x20\n // [2] CODESIZE\n // [3] SUB\n // [4] DUP1\n // [6] PUSH1 0x20\n // [8] PUSH1 0x00\n // [9] CODECOPY\n // [11] PUSH1 0x00\n // [12] RETURN\n //\n // The padding is just the 0xfe sequence (invalid opcode). It is important as it lets us work in-place, avoiding\n // memory allocation and copying.\n bytes32\n private constant _DEPLOYER_CREATION_CODE = 0x602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe;\n\n /**\n * @dev Deploys a contract with `code` as its code, returning the destination address.\n *\n * Reverts if deployment fails.\n */\n function deploy(bytes memory code) internal returns (address destination) {\n bytes32 deployerCreationCode = _DEPLOYER_CREATION_CODE;\n\n // We need to concatenate the deployer creation code and `code` in memory, but want to avoid copying all of\n // `code` (which could be quite long) into a new memory location. Therefore, we operate in-place using\n // assembly.\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let codeLength := mload(code)\n\n // `code` is composed of length and data. We've already stored its length in `codeLength`, so we simply\n // replace it with the deployer creation code (which is exactly 32 bytes long).\n mstore(code, deployerCreationCode)\n\n // At this point, `code` now points to the deployer creation code immediately followed by `code`'s data\n // contents. This is exactly what the deployer expects to receive when created.\n destination := create(0, code, add(codeLength, 32))\n\n // Finally, we restore the original length in order to not mutate `code`.\n mstore(code, codeLength)\n }\n\n // The create opcode returns the zero address when contract creation fails, so we revert if this happens.\n _require(destination != address(0), Errors.CODE_DEPLOYMENT_FAILED);\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\n// solhint-disable\n\n/**\n * @dev Reverts if `condition` is false, with a revert reason containing `errorCode`. Only codes up to 999 are\n * supported.\n * Uses the default 'BAL' prefix for the error code\n */\nfunction _require(bool condition, uint256 errorCode) pure {\n if (!condition) _revert(errorCode);\n}\n\n/**\n * @dev Reverts if `condition` is false, with a revert reason containing `errorCode`. Only codes up to 999 are\n * supported.\n */\nfunction _require(bool condition, uint256 errorCode, bytes3 prefix) pure {\n if (!condition) _revert(errorCode, prefix);\n}\n\n/**\n * @dev Reverts with a revert reason containing `errorCode`. Only codes up to 999 are supported.\n * Uses the default 'BAL' prefix for the error code\n */\nfunction _revert(uint256 errorCode) pure {\n _revert(errorCode, 0x42414c); // This is the raw byte representation of \"BAL\"\n}\n\n/**\n * @dev Reverts with a revert reason containing `errorCode`. Only codes up to 999 are supported.\n */\nfunction _revert(uint256 errorCode, bytes3 prefix) pure {\n uint256 prefixUint = uint256(uint24(prefix));\n // We're going to dynamically create a revert string based on the error code, with the following format:\n // 'BAL#{errorCode}'\n // where the code is left-padded with zeroes to three digits (so they range from 000 to 999).\n //\n // We don't have revert strings embedded in the contract to save bytecode size: it takes much less space to store a\n // number (8 to 16 bits) than the individual string characters.\n //\n // The dynamic string creation algorithm that follows could be implemented in Solidity, but assembly allows for a\n // much denser implementation, again saving bytecode size. Given this function unconditionally reverts, this is a\n // safe place to rely on it without worrying about how its usage might affect e.g. memory contents.\n assembly {\n // First, we need to compute the ASCII representation of the error code. We assume that it is in the 0-999\n // range, so we only need to convert three digits. To convert the digits to ASCII, we add 0x30, the value for\n // the '0' character.\n\n let units := add(mod(errorCode, 10), 0x30)\n\n errorCode := div(errorCode, 10)\n let tenths := add(mod(errorCode, 10), 0x30)\n\n errorCode := div(errorCode, 10)\n let hundreds := add(mod(errorCode, 10), 0x30)\n\n // With the individual characters, we can now construct the full string.\n // We first append the '#' character (0x23) to the prefix. In the case of 'BAL', it results in 0x42414c23 ('BAL#')\n // Then, we shift this by 24 (to provide space for the 3 bytes of the error code), and add the\n // characters to it, each shifted by a multiple of 8.\n // The revert reason is then shifted left by 200 bits (256 minus the length of the string, 7 characters * 8 bits\n // per character = 56) to locate it in the most significant part of the 256 slot (the beginning of a byte\n // array).\n let formattedPrefix := shl(24, add(0x23, shl(8, prefixUint)))\n\n let revertReason := shl(200, add(formattedPrefix, add(add(units, shl(8, tenths)), shl(16, hundreds))))\n\n // We can now encode the reason in memory, which can be safely overwritten as we're about to revert. The encoded\n // message will have the following layout:\n // [ revert reason identifier ] [ string location offset ] [ string length ] [ string contents ]\n\n // The Solidity revert reason identifier is 0x08c739a0, the function selector of the Error(string) function. We\n // also write zeroes to the next 28 bytes of memory, but those are about to be overwritten.\n mstore(0x0, 0x08c379a000000000000000000000000000000000000000000000000000000000)\n // Next is the offset to the location of the string, which will be placed immediately after (20 bytes away).\n mstore(0x04, 0x0000000000000000000000000000000000000000000000000000000000000020)\n // The string length is fixed: 7 characters.\n mstore(0x24, 7)\n // Finally, the string itself is stored.\n mstore(0x44, revertReason)\n\n // Even if the string is only 7 bytes long, we need to return a full 32 byte slot containing it. The length of\n // the encoded message is therefore 4 + 32 + 32 + 32 = 100.\n revert(0, 100)\n }\n}\n\nlibrary Errors {\n // Math\n uint256 internal constant ADD_OVERFLOW = 0;\n uint256 internal constant SUB_OVERFLOW = 1;\n uint256 internal constant SUB_UNDERFLOW = 2;\n uint256 internal constant MUL_OVERFLOW = 3;\n uint256 internal constant ZERO_DIVISION = 4;\n uint256 internal constant DIV_INTERNAL = 5;\n uint256 internal constant X_OUT_OF_BOUNDS = 6;\n uint256 internal constant Y_OUT_OF_BOUNDS = 7;\n uint256 internal constant PRODUCT_OUT_OF_BOUNDS = 8;\n uint256 internal constant INVALID_EXPONENT = 9;\n\n // Input\n uint256 internal constant OUT_OF_BOUNDS = 100;\n uint256 internal constant UNSORTED_ARRAY = 101;\n uint256 internal constant UNSORTED_TOKENS = 102;\n uint256 internal constant INPUT_LENGTH_MISMATCH = 103;\n uint256 internal constant ZERO_TOKEN = 104;\n\n // Shared pools\n uint256 internal constant MIN_TOKENS = 200;\n uint256 internal constant MAX_TOKENS = 201;\n uint256 internal constant MAX_SWAP_FEE_PERCENTAGE = 202;\n uint256 internal constant MIN_SWAP_FEE_PERCENTAGE = 203;\n uint256 internal constant MINIMUM_BPT = 204;\n uint256 internal constant CALLER_NOT_VAULT = 205;\n uint256 internal constant UNINITIALIZED = 206;\n uint256 internal constant BPT_IN_MAX_AMOUNT = 207;\n uint256 internal constant BPT_OUT_MIN_AMOUNT = 208;\n uint256 internal constant EXPIRED_PERMIT = 209;\n uint256 internal constant NOT_TWO_TOKENS = 210;\n uint256 internal constant DISABLED = 211;\n\n // Pools\n uint256 internal constant MIN_AMP = 300;\n uint256 internal constant MAX_AMP = 301;\n uint256 internal constant MIN_WEIGHT = 302;\n uint256 internal constant MAX_STABLE_TOKENS = 303;\n uint256 internal constant MAX_IN_RATIO = 304;\n uint256 internal constant MAX_OUT_RATIO = 305;\n uint256 internal constant MIN_BPT_IN_FOR_TOKEN_OUT = 306;\n uint256 internal constant MAX_OUT_BPT_FOR_TOKEN_IN = 307;\n uint256 internal constant NORMALIZED_WEIGHT_INVARIANT = 308;\n uint256 internal constant INVALID_TOKEN = 309;\n uint256 internal constant UNHANDLED_JOIN_KIND = 310;\n uint256 internal constant ZERO_INVARIANT = 311;\n uint256 internal constant ORACLE_INVALID_SECONDS_QUERY = 312;\n uint256 internal constant ORACLE_NOT_INITIALIZED = 313;\n uint256 internal constant ORACLE_QUERY_TOO_OLD = 314;\n uint256 internal constant ORACLE_INVALID_INDEX = 315;\n uint256 internal constant ORACLE_BAD_SECS = 316;\n uint256 internal constant AMP_END_TIME_TOO_CLOSE = 317;\n uint256 internal constant AMP_ONGOING_UPDATE = 318;\n uint256 internal constant AMP_RATE_TOO_HIGH = 319;\n uint256 internal constant AMP_NO_ONGOING_UPDATE = 320;\n uint256 internal constant STABLE_INVARIANT_DIDNT_CONVERGE = 321;\n uint256 internal constant STABLE_GET_BALANCE_DIDNT_CONVERGE = 322;\n uint256 internal constant RELAYER_NOT_CONTRACT = 323;\n uint256 internal constant BASE_POOL_RELAYER_NOT_CALLED = 324;\n uint256 internal constant REBALANCING_RELAYER_REENTERED = 325;\n uint256 internal constant GRADUAL_UPDATE_TIME_TRAVEL = 326;\n uint256 internal constant SWAPS_DISABLED = 327;\n uint256 internal constant CALLER_IS_NOT_LBP_OWNER = 328;\n uint256 internal constant PRICE_RATE_OVERFLOW = 329;\n uint256 internal constant INVALID_JOIN_EXIT_KIND_WHILE_SWAPS_DISABLED = 330;\n uint256 internal constant WEIGHT_CHANGE_TOO_FAST = 331;\n uint256 internal constant LOWER_GREATER_THAN_UPPER_TARGET = 332;\n uint256 internal constant UPPER_TARGET_TOO_HIGH = 333;\n uint256 internal constant UNHANDLED_BY_LINEAR_POOL = 334;\n uint256 internal constant OUT_OF_TARGET_RANGE = 335;\n uint256 internal constant UNHANDLED_EXIT_KIND = 336;\n uint256 internal constant UNAUTHORIZED_EXIT = 337;\n uint256 internal constant MAX_MANAGEMENT_SWAP_FEE_PERCENTAGE = 338;\n uint256 internal constant UNHANDLED_BY_MANAGED_POOL = 339;\n uint256 internal constant UNHANDLED_BY_PHANTOM_POOL = 340;\n uint256 internal constant TOKEN_DOES_NOT_HAVE_RATE_PROVIDER = 341;\n uint256 internal constant INVALID_INITIALIZATION = 342;\n uint256 internal constant OUT_OF_NEW_TARGET_RANGE = 343;\n uint256 internal constant FEATURE_DISABLED = 344;\n uint256 internal constant UNINITIALIZED_POOL_CONTROLLER = 345;\n uint256 internal constant SET_SWAP_FEE_DURING_FEE_CHANGE = 346;\n uint256 internal constant SET_SWAP_FEE_PENDING_FEE_CHANGE = 347;\n uint256 internal constant CHANGE_TOKENS_DURING_WEIGHT_CHANGE = 348;\n uint256 internal constant CHANGE_TOKENS_PENDING_WEIGHT_CHANGE = 349;\n uint256 internal constant MAX_WEIGHT = 350;\n uint256 internal constant UNAUTHORIZED_JOIN = 351;\n uint256 internal constant MAX_MANAGEMENT_AUM_FEE_PERCENTAGE = 352;\n uint256 internal constant FRACTIONAL_TARGET = 353;\n\n // Lib\n uint256 internal constant REENTRANCY = 400;\n uint256 internal constant SENDER_NOT_ALLOWED = 401;\n uint256 internal constant PAUSED = 402;\n uint256 internal constant PAUSE_WINDOW_EXPIRED = 403;\n uint256 internal constant MAX_PAUSE_WINDOW_DURATION = 404;\n uint256 internal constant MAX_BUFFER_PERIOD_DURATION = 405;\n uint256 internal constant INSUFFICIENT_BALANCE = 406;\n uint256 internal constant INSUFFICIENT_ALLOWANCE = 407;\n uint256 internal constant ERC20_TRANSFER_FROM_ZERO_ADDRESS = 408;\n uint256 internal constant ERC20_TRANSFER_TO_ZERO_ADDRESS = 409;\n uint256 internal constant ERC20_MINT_TO_ZERO_ADDRESS = 410;\n uint256 internal constant ERC20_BURN_FROM_ZERO_ADDRESS = 411;\n uint256 internal constant ERC20_APPROVE_FROM_ZERO_ADDRESS = 412;\n uint256 internal constant ERC20_APPROVE_TO_ZERO_ADDRESS = 413;\n uint256 internal constant ERC20_TRANSFER_EXCEEDS_ALLOWANCE = 414;\n uint256 internal constant ERC20_DECREASED_ALLOWANCE_BELOW_ZERO = 415;\n uint256 internal constant ERC20_TRANSFER_EXCEEDS_BALANCE = 416;\n uint256 internal constant ERC20_BURN_EXCEEDS_ALLOWANCE = 417;\n uint256 internal constant SAFE_ERC20_CALL_FAILED = 418;\n uint256 internal constant ADDRESS_INSUFFICIENT_BALANCE = 419;\n uint256 internal constant ADDRESS_CANNOT_SEND_VALUE = 420;\n uint256 internal constant SAFE_CAST_VALUE_CANT_FIT_INT256 = 421;\n uint256 internal constant GRANT_SENDER_NOT_ADMIN = 422;\n uint256 internal constant REVOKE_SENDER_NOT_ADMIN = 423;\n uint256 internal constant RENOUNCE_SENDER_NOT_ALLOWED = 424;\n uint256 internal constant BUFFER_PERIOD_EXPIRED = 425;\n uint256 internal constant CALLER_IS_NOT_OWNER = 426;\n uint256 internal constant NEW_OWNER_IS_ZERO = 427;\n uint256 internal constant CODE_DEPLOYMENT_FAILED = 428;\n uint256 internal constant CALL_TO_NON_CONTRACT = 429;\n uint256 internal constant LOW_LEVEL_CALL_FAILED = 430;\n uint256 internal constant NOT_PAUSED = 431;\n uint256 internal constant ADDRESS_ALREADY_ALLOWLISTED = 432;\n uint256 internal constant ADDRESS_NOT_ALLOWLISTED = 433;\n uint256 internal constant ERC20_BURN_EXCEEDS_BALANCE = 434;\n uint256 internal constant INVALID_OPERATION = 435;\n uint256 internal constant CODEC_OVERFLOW = 436;\n uint256 internal constant IN_RECOVERY_MODE = 437;\n uint256 internal constant NOT_IN_RECOVERY_MODE = 438;\n uint256 internal constant INDUCED_FAILURE = 439;\n uint256 internal constant EXPIRED_SIGNATURE = 440;\n uint256 internal constant MALFORMED_SIGNATURE = 441;\n uint256 internal constant SAFE_CAST_VALUE_CANT_FIT_UINT64 = 442;\n uint256 internal constant UNHANDLED_FEE_TYPE = 443;\n\n // Vault\n uint256 internal constant INVALID_POOL_ID = 500;\n uint256 internal constant CALLER_NOT_POOL = 501;\n uint256 internal constant SENDER_NOT_ASSET_MANAGER = 502;\n uint256 internal constant USER_DOESNT_ALLOW_RELAYER = 503;\n uint256 internal constant INVALID_SIGNATURE = 504;\n uint256 internal constant EXIT_BELOW_MIN = 505;\n uint256 internal constant JOIN_ABOVE_MAX = 506;\n uint256 internal constant SWAP_LIMIT = 507;\n uint256 internal constant SWAP_DEADLINE = 508;\n uint256 internal constant CANNOT_SWAP_SAME_TOKEN = 509;\n uint256 internal constant UNKNOWN_AMOUNT_IN_FIRST_SWAP = 510;\n uint256 internal constant MALCONSTRUCTED_MULTIHOP_SWAP = 511;\n uint256 internal constant INTERNAL_BALANCE_OVERFLOW = 512;\n uint256 internal constant INSUFFICIENT_INTERNAL_BALANCE = 513;\n uint256 internal constant INVALID_ETH_INTERNAL_BALANCE = 514;\n uint256 internal constant INVALID_POST_LOAN_BALANCE = 515;\n uint256 internal constant INSUFFICIENT_ETH = 516;\n uint256 internal constant UNALLOCATED_ETH = 517;\n uint256 internal constant ETH_TRANSFER = 518;\n uint256 internal constant CANNOT_USE_ETH_SENTINEL = 519;\n uint256 internal constant TOKENS_MISMATCH = 520;\n uint256 internal constant TOKEN_NOT_REGISTERED = 521;\n uint256 internal constant TOKEN_ALREADY_REGISTERED = 522;\n uint256 internal constant TOKENS_ALREADY_SET = 523;\n uint256 internal constant TOKENS_LENGTH_MUST_BE_2 = 524;\n uint256 internal constant NONZERO_TOKEN_BALANCE = 525;\n uint256 internal constant BALANCE_TOTAL_OVERFLOW = 526;\n uint256 internal constant POOL_NO_TOKENS = 527;\n uint256 internal constant INSUFFICIENT_FLASH_LOAN_BALANCE = 528;\n\n // Fees\n uint256 internal constant SWAP_FEE_PERCENTAGE_TOO_HIGH = 600;\n uint256 internal constant FLASH_LOAN_FEE_PERCENTAGE_TOO_HIGH = 601;\n uint256 internal constant INSUFFICIENT_FLASH_LOAN_FEE_AMOUNT = 602;\n uint256 internal constant AUM_FEE_PERCENTAGE_TOO_HIGH = 603;\n\n // Misc\n uint256 internal constant UNIMPLEMENTED = 998;\n uint256 internal constant SHOULD_NOT_HAPPEN = 999;\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"../solidity-utils/helpers/IAuthentication.sol\";\nimport \"../vault/IVault.sol\";\n\ninterface IAuthorizerAdaptor is IAuthentication {\n /**\n * @notice Returns the Balancer Vault\n */\n function getVault() external view returns (IVault);\n\n /**\n * @notice Returns the Authorizer\n */\n function getAuthorizer() external view returns (IAuthorizer);\n\n /**\n * @notice Performs an arbitrary function call on a target contract, provided the caller is authorized to do so.\n * @param target - Address of the contract to be called\n * @param data - Calldata to be sent to the target contract\n * @return The bytes encoded return value from the performed function call\n */\n function performAction(address target, bytes calldata data) external payable returns (bytes memory);\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\";\n\n/**\n * @dev Building block for performing access control on external functions.\n *\n * This contract is used via the `authenticate` modifier (or the `_authenticateCaller` function), which can be applied\n * to external functions to only make them callable by authorized accounts.\n *\n * Derived contracts must implement the `_canPerform` function, which holds the actual access control logic.\n */\nabstract contract Authentication is IAuthentication {\n bytes32 private immutable _actionIdDisambiguator;\n\n /**\n * @dev The main purpose of the `actionIdDisambiguator` is to prevent accidental function selector collisions in\n * multi contract systems.\n *\n * There are two main uses for it:\n * - if the contract is a singleton, any unique identifier can be used to make the associated action identifiers\n * unique. The contract's own address is a good option.\n * - if the contract belongs to a family that shares action identifiers for the same functions, an identifier\n * shared by the entire family (and no other contract) should be used instead.\n */\n constructor(bytes32 actionIdDisambiguator) {\n _actionIdDisambiguator = actionIdDisambiguator;\n }\n\n /**\n * @dev Reverts unless the caller is allowed to call this function. Should only be applied to external functions.\n */\n modifier authenticate() {\n _authenticateCaller();\n _;\n }\n\n /**\n * @dev Reverts unless the caller is allowed to call the entry point function.\n */\n function _authenticateCaller() internal view {\n bytes32 actionId = getActionId(msg.sig);\n _require(_canPerform(actionId, msg.sender), Errors.SENDER_NOT_ALLOWED);\n }\n\n function getActionId(bytes4 selector) public view override returns (bytes32) {\n // Each external function is dynamically assigned an action identifier as the hash of the disambiguator and the\n // function selector. Disambiguation is necessary to avoid potential collisions in the function selectors of\n // multiple contracts.\n return keccak256(abi.encodePacked(_actionIdDisambiguator, selector));\n }\n\n function _canPerform(bytes32 actionId, address user) internal view virtual returns (bool);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nlibrary StablePoolUserData {\n enum JoinKind { INIT, EXACT_TOKENS_IN_FOR_BPT_OUT, TOKEN_IN_FOR_EXACT_BPT_OUT, ALL_TOKENS_IN_FOR_EXACT_BPT_OUT }\n enum ExitKind { EXACT_BPT_IN_FOR_ONE_TOKEN_OUT, BPT_IN_FOR_EXACT_TOKENS_OUT, EXACT_BPT_IN_FOR_ALL_TOKENS_OUT }\n\n function joinKind(bytes memory self) internal pure returns (JoinKind) {\n return abi.decode(self, (JoinKind));\n }\n\n function exitKind(bytes memory self) internal pure returns (ExitKind) {\n return abi.decode(self, (ExitKind));\n }\n\n // Joins\n\n function initialAmountsIn(bytes memory self) internal pure returns (uint256[] memory amountsIn) {\n (, amountsIn) = abi.decode(self, (JoinKind, uint256[]));\n }\n\n function exactTokensInForBptOut(bytes memory self)\n internal\n pure\n returns (uint256[] memory amountsIn, uint256 minBPTAmountOut)\n {\n (, amountsIn, minBPTAmountOut) = abi.decode(self, (JoinKind, uint256[], uint256));\n }\n\n function tokenInForExactBptOut(bytes memory self) internal pure returns (uint256 bptAmountOut, uint256 tokenIndex) {\n (, bptAmountOut, tokenIndex) = abi.decode(self, (JoinKind, uint256, uint256));\n }\n\n function allTokensInForExactBptOut(bytes memory self) internal pure returns (uint256 bptAmountOut) {\n (, bptAmountOut) = abi.decode(self, (JoinKind, uint256));\n }\n\n // Exits\n\n function exactBptInForTokenOut(bytes memory self) internal pure returns (uint256 bptAmountIn, uint256 tokenIndex) {\n (, bptAmountIn, tokenIndex) = abi.decode(self, (ExitKind, uint256, uint256));\n }\n\n function exactBptInForTokensOut(bytes memory self) internal pure returns (uint256 bptAmountIn) {\n (, bptAmountIn) = abi.decode(self, (ExitKind, uint256));\n }\n\n function bptInForExactTokensOut(bytes memory self)\n internal\n pure\n returns (uint256[] memory amountsOut, uint256 maxBPTAmountIn)\n {\n (, amountsOut, maxBPTAmountIn) = abi.decode(self, (ExitKind, uint256[], uint256));\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\ninterface IRateProvider {\n /**\n * @dev Returns an 18 decimal fixed point number that is the exchange rate of the token to some other underlying\n * token. The meaning of this rate depends on the context.\n */\n function getRate() external view returns (uint256);\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\nimport \"./LogExpMath.sol\";\n\n/* solhint-disable private-vars-leading-underscore */\n\nlibrary FixedPoint {\n uint256 internal constant ONE = 1e18; // 18 decimal places\n uint256 internal constant TWO = 2 * ONE;\n uint256 internal constant FOUR = 4 * ONE;\n uint256 internal constant MAX_POW_RELATIVE_ERROR = 10000; // 10^(-14)\n\n // Minimum base for the power function when the exponent is 'free' (larger than ONE).\n uint256 internal constant MIN_POW_BASE_FREE_EXPONENT = 0.7e18;\n\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n // Fixed Point addition is the same as regular checked addition\n\n uint256 c = a + b;\n _require(c >= a, Errors.ADD_OVERFLOW);\n return c;\n }\n\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n // Fixed Point addition is the same as regular checked addition\n\n _require(b <= a, Errors.SUB_OVERFLOW);\n uint256 c = a - b;\n return c;\n }\n\n function mulDown(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 product = a * b;\n _require(a == 0 || product / a == b, Errors.MUL_OVERFLOW);\n\n return product / ONE;\n }\n\n function mulUp(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 product = a * b;\n _require(a == 0 || product / a == b, Errors.MUL_OVERFLOW);\n\n if (product == 0) {\n return 0;\n } else {\n // The traditional divUp formula is:\n // divUp(x, y) := (x + y - 1) / y\n // To avoid intermediate overflow in the addition, we distribute the division and get:\n // divUp(x, y) := (x - 1) / y + 1\n // Note that this requires x != 0, which we already tested for.\n\n return ((product - 1) / ONE) + 1;\n }\n }\n\n function divDown(uint256 a, uint256 b) internal pure returns (uint256) {\n _require(b != 0, Errors.ZERO_DIVISION);\n\n if (a == 0) {\n return 0;\n } else {\n uint256 aInflated = a * ONE;\n _require(aInflated / a == ONE, Errors.DIV_INTERNAL); // mul overflow\n\n return aInflated / b;\n }\n }\n\n function divUp(uint256 a, uint256 b) internal pure returns (uint256) {\n _require(b != 0, Errors.ZERO_DIVISION);\n\n if (a == 0) {\n return 0;\n } else {\n uint256 aInflated = a * ONE;\n _require(aInflated / a == ONE, Errors.DIV_INTERNAL); // mul overflow\n\n // The traditional divUp formula is:\n // divUp(x, y) := (x + y - 1) / y\n // To avoid intermediate overflow in the addition, we distribute the division and get:\n // divUp(x, y) := (x - 1) / y + 1\n // Note that this requires x != 0, which we already tested for.\n\n return ((aInflated - 1) / b) + 1;\n }\n }\n\n /**\n * @dev Returns x^y, assuming both are fixed point numbers, rounding down. The result is guaranteed to not be above\n * the true value (that is, the error function expected - actual is always positive).\n */\n function powDown(uint256 x, uint256 y) internal pure returns (uint256) {\n // Optimize for when y equals 1.0, 2.0 or 4.0, as those are very simple to implement and occur often in 50/50\n // and 80/20 Weighted Pools\n if (y == ONE) {\n return x;\n } else if (y == TWO) {\n return mulDown(x, x);\n } else if (y == FOUR) {\n uint256 square = mulDown(x, x);\n return mulDown(square, square);\n } else {\n uint256 raw = LogExpMath.pow(x, y);\n uint256 maxError = add(mulUp(raw, MAX_POW_RELATIVE_ERROR), 1);\n\n if (raw < maxError) {\n return 0;\n } else {\n return sub(raw, maxError);\n }\n }\n }\n\n /**\n * @dev Returns x^y, assuming both are fixed point numbers, rounding up. The result is guaranteed to not be below\n * the true value (that is, the error function expected - actual is always negative).\n */\n function powUp(uint256 x, uint256 y) internal pure returns (uint256) {\n // Optimize for when y equals 1.0, 2.0 or 4.0, as those are very simple to implement and occur often in 50/50\n // and 80/20 Weighted Pools\n if (y == ONE) {\n return x;\n } else if (y == TWO) {\n return mulUp(x, x);\n } else if (y == FOUR) {\n uint256 square = mulUp(x, x);\n return mulUp(square, square);\n } else {\n uint256 raw = LogExpMath.pow(x, y);\n uint256 maxError = add(mulUp(raw, MAX_POW_RELATIVE_ERROR), 1);\n\n return add(raw, maxError);\n }\n }\n\n /**\n * @dev Returns the complement of a value (1 - x), capped to 0 if x is larger than 1.\n *\n * Useful when computing the complement for values with some level of relative error, as it strips this error and\n * prevents intermediate negative values.\n */\n function complement(uint256 x) internal pure returns (uint256) {\n return (x < ONE) ? (ONE - x) : 0;\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow checks.\n * Adapted from OpenZeppelin's SafeMath library.\n */\nlibrary Math {\n /**\n * @dev Returns the absolute value of a signed integer.\n */\n function abs(int256 a) internal pure returns (uint256) {\n return a > 0 ? uint256(a) : uint256(-a);\n }\n\n /**\n * @dev Returns the addition of two unsigned integers of 256 bits, reverting on overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n _require(c >= a, Errors.ADD_OVERFLOW);\n return c;\n }\n\n /**\n * @dev Returns the addition of two signed integers, reverting on overflow.\n */\n function add(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a + b;\n _require((b >= 0 && c >= a) || (b < 0 && c < a), Errors.ADD_OVERFLOW);\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers of 256 bits, reverting on overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n _require(b <= a, Errors.SUB_OVERFLOW);\n uint256 c = a - b;\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two signed integers, reverting on overflow.\n */\n function sub(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a - b;\n _require((b >= 0 && c <= a) || (b < 0 && c > a), Errors.SUB_OVERFLOW);\n return c;\n }\n\n /**\n * @dev Returns the largest of two numbers of 256 bits.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a >= b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers of 256 bits.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n _require(a == 0 || c / a == b, Errors.MUL_OVERFLOW);\n return c;\n }\n\n function div(\n uint256 a,\n uint256 b,\n bool roundUp\n ) internal pure returns (uint256) {\n return roundUp ? divUp(a, b) : divDown(a, b);\n }\n\n function divDown(uint256 a, uint256 b) internal pure returns (uint256) {\n _require(b != 0, Errors.ZERO_DIVISION);\n return a / b;\n }\n\n function divUp(uint256 a, uint256 b) internal pure returns (uint256) {\n _require(b != 0, Errors.ZERO_DIVISION);\n\n if (a == 0) {\n return 0;\n } else {\n return 1 + (a - 1) / b;\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\";\n\n// solhint-disable\n\nfunction _asIAsset(IERC20[] memory tokens) pure returns (IAsset[] memory assets) {\n // solhint-disable-next-line no-inline-assembly\n assembly {\n assets := tokens\n }\n}\n\nfunction _sortTokens(\n IERC20 tokenA,\n IERC20 tokenB,\n IERC20 tokenC\n) pure returns (IERC20[] memory tokens) {\n (uint256 indexTokenA, uint256 indexTokenB, uint256 indexTokenC) = _getSortedTokenIndexes(tokenA, tokenB, tokenC);\n tokens = new IERC20[](3);\n tokens[indexTokenA] = tokenA;\n tokens[indexTokenB] = tokenB;\n tokens[indexTokenC] = tokenC;\n}\n\nfunction _insertSorted(IERC20[] memory tokens, IERC20 token) pure returns (IERC20[] memory sorted) {\n sorted = new IERC20[](tokens.length + 1);\n\n if (tokens.length == 0) {\n sorted[0] = token;\n return sorted;\n }\n\n uint256 i;\n for (i = tokens.length; i > 0 && tokens[i - 1] > token; i--) sorted[i] = tokens[i - 1];\n for (uint256 j = 0; j < i; j++) sorted[j] = tokens[j];\n sorted[i] = token;\n}\n\nfunction _appendToken(IERC20[] memory tokens, IERC20 newToken) pure returns (IERC20[] memory newTokens) {\n uint256 numTokens = tokens.length;\n newTokens = new IERC20[](numTokens + 1);\n\n for (uint256 i = 0; i < numTokens; ++i) newTokens[i] = tokens[i];\n newTokens[numTokens] = newToken;\n}\n\nfunction _findTokenIndex(IERC20[] memory tokens, IERC20 token) pure returns (uint256) {\n // Note that while we know tokens are initially sorted, we cannot assume this will hold throughout\n // the pool's lifetime, as pools with mutable tokens can append and remove tokens in any order.\n uint256 tokensLength = tokens.length;\n for (uint256 i = 0; i < tokensLength; i++) {\n if (tokens[i] == token) {\n return i;\n }\n }\n\n _revert(Errors.INVALID_TOKEN);\n}\n\nfunction _getSortedTokenIndexes(\n IERC20 tokenA,\n IERC20 tokenB,\n IERC20 tokenC\n)\n pure\n returns (\n uint256 indexTokenA,\n uint256 indexTokenB,\n uint256 indexTokenC\n )\n{\n if (tokenA < tokenB) {\n if (tokenB < tokenC) {\n // (tokenA, tokenB, tokenC)\n return (0, 1, 2);\n } else if (tokenA < tokenC) {\n // (tokenA, tokenC, tokenB)\n return (0, 2, 1);\n } else {\n // (tokenC, tokenA, tokenB)\n return (1, 2, 0);\n }\n } else {\n // tokenB < tokenA\n if (tokenC < tokenB) {\n // (tokenC, tokenB, tokenA)\n return (2, 1, 0);\n } else if (tokenC < tokenA) {\n // (tokenB, tokenC, tokenA)\n return (2, 0, 1);\n } else {\n // (tokenB, tokenA, tokenC)\n return (1, 0, 2);\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\nlibrary InputHelpers {\n function ensureInputLengthMatch(uint256 a, uint256 b) internal pure {\n _require(a == b, Errors.INPUT_LENGTH_MISMATCH);\n }\n\n function ensureInputLengthMatch(\n uint256 a,\n uint256 b,\n uint256 c\n ) internal pure {\n _require(a == b && b == c, Errors.INPUT_LENGTH_MISMATCH);\n }\n\n function ensureArrayIsSorted(IERC20[] memory array) internal pure {\n address[] memory addressArray;\n // solhint-disable-next-line no-inline-assembly\n assembly {\n addressArray := array\n }\n ensureArrayIsSorted(addressArray);\n }\n\n function ensureArrayIsSorted(address[] memory array) internal pure {\n if (array.length < 2) {\n return;\n }\n\n address previous = array[0];\n for (uint256 i = 1; i < array.length; ++i) {\n address current = array[i];\n _require(previous < current, Errors.UNSORTED_ARRAY);\n previous = current;\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol\";\n\nimport \"./BasePool.sol\";\n\n/**\n * @dev Extension of `BasePool`, adding a handler for `IGeneralPool.onSwap`.\n *\n * Derived contracts must call `BasePool`'s constructor, and implement `_onSwapGivenIn` and `_onSwapGivenOut` along with\n * `BasePool`'s virtual functions. Inheriting from this contract lets derived contracts choose the General\n * specialization setting.\n */\nabstract contract BaseGeneralPool is IGeneralPool, BasePool {\n // Swap Hooks\n\n function onSwap(\n SwapRequest memory swapRequest,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 indexOut\n ) external override onlyVault(swapRequest.poolId) returns (uint256) {\n _beforeSwapJoinExit();\n\n _validateIndexes(indexIn, indexOut, _getTotalTokens());\n uint256[] memory scalingFactors = _scalingFactors();\n\n return\n swapRequest.kind == IVault.SwapKind.GIVEN_IN\n ? _swapGivenIn(swapRequest, balances, indexIn, indexOut, scalingFactors)\n : _swapGivenOut(swapRequest, balances, indexIn, indexOut, scalingFactors);\n }\n\n function _swapGivenIn(\n SwapRequest memory swapRequest,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 indexOut,\n uint256[] memory scalingFactors\n ) internal virtual returns (uint256) {\n // Fees are subtracted before scaling, to reduce the complexity of the rounding direction analysis.\n swapRequest.amount = _subtractSwapFeeAmount(swapRequest.amount);\n\n _upscaleArray(balances, scalingFactors);\n swapRequest.amount = _upscale(swapRequest.amount, scalingFactors[indexIn]);\n\n uint256 amountOut = _onSwapGivenIn(swapRequest, balances, indexIn, indexOut);\n\n // amountOut tokens are exiting the Pool, so we round down.\n return _downscaleDown(amountOut, scalingFactors[indexOut]);\n }\n\n function _swapGivenOut(\n SwapRequest memory swapRequest,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 indexOut,\n uint256[] memory scalingFactors\n ) internal virtual returns (uint256) {\n _upscaleArray(balances, scalingFactors);\n swapRequest.amount = _upscale(swapRequest.amount, scalingFactors[indexOut]);\n\n uint256 amountIn = _onSwapGivenOut(swapRequest, balances, indexIn, indexOut);\n\n // amountIn tokens are entering the Pool, so we round up.\n amountIn = _downscaleUp(amountIn, scalingFactors[indexIn]);\n\n // Fees are added after scaling happens, to reduce the complexity of the rounding direction analysis.\n return _addSwapFeeAmount(amountIn);\n }\n\n /*\n * @dev Called when a swap with the Pool occurs, where the amount of tokens entering the Pool is known.\n *\n * Returns the amount of tokens that will be taken from the Pool in return.\n *\n * All amounts inside `swapRequest` and `balances` are upscaled. The swap fee has already been deducted from\n * `swapRequest.amount`.\n *\n * The return value is also considered upscaled, and will be downscaled (rounding down) before returning it to the\n * Vault.\n */\n function _onSwapGivenIn(\n SwapRequest memory swapRequest,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 indexOut\n ) internal virtual returns (uint256);\n\n /*\n * @dev Called when a swap with the Pool occurs, where the amount of tokens exiting the Pool is known.\n *\n * Returns the amount of tokens that will be granted to the Pool in return.\n *\n * All amounts inside `swapRequest` and `balances` are upscaled.\n *\n * The return value is also considered upscaled, and will be downscaled (rounding up) before applying the swap fee\n * and returning it to the Vault.\n */\n function _onSwapGivenOut(\n SwapRequest memory swapRequest,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 indexOut\n ) internal virtual returns (uint256);\n\n function _validateIndexes(\n uint256 indexIn,\n uint256 indexOut,\n uint256 limit\n ) private pure {\n _require(indexIn < limit && indexOut < limit, Errors.OUT_OF_BOUNDS);\n }\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\";\n\n/**\n * Price rate caches are used to avoid querying the price rate for a token every time we need to work with it. It is\n * useful for slow changing rates, such as those that arise from interest-bearing tokens (e.g. waDAI into DAI).\n *\n * The cache data is packed into a single bytes32 value with the following structure:\n * [ 32 bits | 32 bits | 96 bits | 96 bits ]\n * [ expires | duration | old rate | current rate ]\n * |MSB LSB|\n *\n * 'rate' is an 18 decimal fixed point number, supporting rates of up to ~3e10. 'expires' is a Unix timestamp, and\n * 'duration' is expressed in seconds.\n */\nlibrary PriceRateCache {\n using WordCodec for bytes32;\n\n uint256 private constant _CURRENT_PRICE_RATE_OFFSET = 0;\n uint256 private constant _OLD_PRICE_RATE_OFFSET = 96;\n uint256 private constant _PRICE_RATE_CACHE_DURATION_OFFSET = 192;\n uint256 private constant _PRICE_RATE_CACHE_EXPIRES_OFFSET = 224;\n\n uint256 private constant _RATE_BIT_LENGTH = 96;\n uint256 private constant _DURATION_BIT_LENGTH = 32;\n\n /**\n * @dev Returns the current rate in the price rate cache.\n */\n function getCurrentRate(bytes32 cache) internal pure returns (uint256) {\n return cache.decodeUint(_CURRENT_PRICE_RATE_OFFSET, _RATE_BIT_LENGTH);\n }\n\n /**\n * @dev Returns the old rate in the price rate cache.\n */\n function getOldRate(bytes32 cache) internal pure returns (uint256) {\n return cache.decodeUint(_OLD_PRICE_RATE_OFFSET, _RATE_BIT_LENGTH);\n }\n\n /**\n * @dev Copies the current rate to the old rate.\n */\n function updateOldRate(bytes32 cache) internal pure returns (bytes32) {\n return cache.insertUint(getCurrentRate(cache), _OLD_PRICE_RATE_OFFSET, _RATE_BIT_LENGTH);\n }\n\n /**\n * @dev Returns the duration of a price rate cache.\n */\n function getDuration(bytes32 cache) internal pure returns (uint256) {\n return cache.decodeUint(_PRICE_RATE_CACHE_DURATION_OFFSET, _DURATION_BIT_LENGTH);\n }\n\n /**\n * @dev Returns the duration and expiration time of a price rate cache.\n */\n function getTimestamps(bytes32 cache) internal pure returns (uint256 duration, uint256 expires) {\n duration = getDuration(cache);\n expires = cache.decodeUint(_PRICE_RATE_CACHE_EXPIRES_OFFSET, _DURATION_BIT_LENGTH);\n }\n\n /**\n * @dev Encodes rate and duration into a price rate cache. The expiration time is computed automatically, counting\n * from the current time.\n */\n function updateRateAndDuration(\n bytes32 cache,\n uint256 rate,\n uint256 duration\n ) internal view returns (bytes32) {\n _require(rate >> _RATE_BIT_LENGTH == 0, Errors.PRICE_RATE_OVERFLOW);\n\n // solhint-disable not-rely-on-time\n return\n cache\n .insertUint(rate, _CURRENT_PRICE_RATE_OFFSET, _RATE_BIT_LENGTH)\n .insertUint(duration, _PRICE_RATE_CACHE_DURATION_OFFSET, _DURATION_BIT_LENGTH)\n .insertUint(block.timestamp + duration, _PRICE_RATE_CACHE_EXPIRES_OFFSET, _DURATION_BIT_LENGTH);\n }\n\n /**\n * @dev Update the current rate in a price rate cache.\n */\n function updateCurrentRate(bytes32 cache, uint256 rate) internal pure returns (bytes32) {\n _require(rate >> _RATE_BIT_LENGTH == 0, Errors.PRICE_RATE_OVERFLOW);\n\n return cache.insertUint(rate, _CURRENT_PRICE_RATE_OFFSET, _RATE_BIT_LENGTH);\n }\n\n /**\n * @dev Update the duration (and expiration) in a price rate cache.\n */\n function updateDuration(bytes32 cache, uint256 duration) internal view returns (bytes32) {\n return\n cache.insertUint(duration, _PRICE_RATE_CACHE_DURATION_OFFSET, _DURATION_BIT_LENGTH).insertUint(\n block.timestamp + duration,\n _PRICE_RATE_CACHE_EXPIRES_OFFSET,\n _DURATION_BIT_LENGTH\n );\n }\n\n /**\n * @dev Returns rate, duration and expiration time of a price rate cache.\n */\n function decode(bytes32 cache)\n internal\n pure\n returns (\n uint256 rate,\n uint256 duration,\n uint256 expires\n )\n {\n rate = getCurrentRate(cache);\n (duration, expires) = getTimestamps(cache);\n }\n}\n"
+ },
+ "contracts/ComposableStablePoolStorage.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\";\n\nimport \"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\";\n\nimport \"./StableMath.sol\";\n\nabstract contract ComposableStablePoolStorage is BasePool {\n using FixedPoint for uint256;\n using WordCodec for bytes32;\n\n struct StorageParams {\n IERC20[] registeredTokens;\n IRateProvider[] tokenRateProviders;\n bool exemptFromYieldProtocolFeeFlag;\n }\n\n // This minimum refers not to the total tokens, but rather to the non-BPT tokens. The minimum value for _totalTokens\n // is therefore _MIN_NON_BPT_TOKENS + 1.\n uint256 private constant _MIN_NON_BPT_TOKENS = 2;\n\n // The Pool will register n+1 tokens, where n are the actual tokens in the Pool, and the other one is the BPT\n // itself.\n uint256 private immutable _totalTokens;\n\n // The index of BPT in the tokens and balances arrays, i.e. its index when calling IVault.registerTokens().\n uint256 private immutable _bptIndex;\n\n // These are the registered tokens: one of them will be the BPT.\n IERC20 private immutable _token0;\n IERC20 private immutable _token1;\n IERC20 private immutable _token2;\n IERC20 private immutable _token3;\n IERC20 private immutable _token4;\n IERC20 private immutable _token5;\n\n // All token balances are normalized to behave as if the token had 18 decimals. We assume a token's decimals will\n // not change throughout its lifetime, and store the corresponding scaling factor for each at construction time.\n // These factors are always greater than or equal to one: tokens with more than 18 decimals are not supported.\n\n uint256 internal immutable _scalingFactor0;\n uint256 internal immutable _scalingFactor1;\n uint256 internal immutable _scalingFactor2;\n uint256 internal immutable _scalingFactor3;\n uint256 internal immutable _scalingFactor4;\n uint256 internal immutable _scalingFactor5;\n\n // Rate Providers accommodate tokens with a known price ratio, such as Compound's cTokens.\n\n IRateProvider internal immutable _rateProvider0;\n IRateProvider internal immutable _rateProvider1;\n IRateProvider internal immutable _rateProvider2;\n IRateProvider internal immutable _rateProvider3;\n IRateProvider internal immutable _rateProvider4;\n IRateProvider internal immutable _rateProvider5;\n\n // This is a bitmap which allows querying whether a token at a particular index:\n // - has a rate provider associated with it.\n // - is exempt from yield protocol fees.\n // This is required as the data stored in this bitmap is computed from values in immutable storage,\n // without this bitmap we would have to manually search through token by token to reach these values.\n // The data structure is as follows:\n //\n // [ unused | rate provider flags | exemption flags ]\n // [ 244 bits | 6 bits | 6 bits ]\n bytes32 private immutable _rateProviderInfoBitmap;\n\n // Indicates whether all the tokens from the pool are exempt from yield protocol fee or not.\n bool private immutable _exemptFromYieldProtocolFee;\n\n uint256 private constant _RATE_PROVIDER_FLAGS_OFFSET = 6;\n\n constructor(StorageParams memory params) {\n // BasePool checks that the Pool has at least two tokens, but since one of them is the BPT (this contract), we\n // need to check ourselves that there are at least creator-supplied tokens (i.e. the minimum number of total\n // tokens for this contract is actually three, including the BPT).\n uint256 totalTokens = params.registeredTokens.length;\n _require(totalTokens > _MIN_NON_BPT_TOKENS, Errors.MIN_TOKENS);\n InputHelpers.ensureInputLengthMatch(totalTokens - 1, params.tokenRateProviders.length);\n\n _totalTokens = totalTokens;\n\n // Immutable variables cannot be initialized inside an if statement, so we must do conditional assignments\n _token0 = params.registeredTokens[0];\n _token1 = params.registeredTokens[1];\n _token2 = params.registeredTokens[2];\n _token3 = totalTokens > 3 ? params.registeredTokens[3] : IERC20(0);\n _token4 = totalTokens > 4 ? params.registeredTokens[4] : IERC20(0);\n _token5 = totalTokens > 5 ? params.registeredTokens[5] : IERC20(0);\n\n _scalingFactor0 = _computeScalingFactor(params.registeredTokens[0]);\n _scalingFactor1 = _computeScalingFactor(params.registeredTokens[1]);\n _scalingFactor2 = _computeScalingFactor(params.registeredTokens[2]);\n _scalingFactor3 = totalTokens > 3 ? _computeScalingFactor(params.registeredTokens[3]) : 0;\n _scalingFactor4 = totalTokens > 4 ? _computeScalingFactor(params.registeredTokens[4]) : 0;\n _scalingFactor5 = totalTokens > 5 ? _computeScalingFactor(params.registeredTokens[5]) : 0;\n\n // The Vault keeps track of all Pool tokens in a specific order: we need to know what the index of BPT is in\n // this ordering to be able to identify it when balances arrays are received. Since the tokens array is sorted,\n // we need to find the correct BPT index in the array returned by `_insertSorted()`.\n // See `IVault.getPoolTokens()` for more information regarding token ordering.\n uint256 bptIndex;\n for (\n bptIndex = params.registeredTokens.length - 1;\n bptIndex > 0 && params.registeredTokens[bptIndex] > IERC20(this);\n bptIndex--\n ) {\n // solhint-disable-previous-line no-empty-blocks\n }\n _bptIndex = bptIndex;\n\n // The rate providers are stored as immutable state variables, and for simplicity when accessing those we'll\n // reference them by token index in the full base tokens plus BPT set (i.e. the tokens the Pool registers). Due\n // to immutable variables requiring an explicit assignment instead of defaulting to an empty value, it is\n // simpler to create a new memory array with the values we want to assign to the immutable state variables.\n IRateProvider[] memory rateProviders = new IRateProvider[](params.registeredTokens.length);\n\n bytes32 rateProviderInfoBitmap;\n\n // The exemptFromYieldFlag should never be set on a token without a rate provider.\n // This would cause division by zero errors downstream.\n for (uint256 i = 0; i < params.registeredTokens.length; ++i) {\n if (i < bptIndex) {\n rateProviders[i] = params.tokenRateProviders[i];\n } else if (i != bptIndex) {\n rateProviders[i] = params.tokenRateProviders[i - 1];\n } else {\n // do nothing for i == bptIndex\n continue;\n }\n // Store whether token has rate provider\n rateProviderInfoBitmap = rateProviderInfoBitmap.insertBool(\n rateProviders[i] != IRateProvider(0),\n _RATE_PROVIDER_FLAGS_OFFSET + i\n );\n // Store whether token is exempt from yield fees (only with rate providers).\n if (params.exemptFromYieldProtocolFeeFlag && rateProviders[i] != IRateProvider(0)) {\n rateProviderInfoBitmap = rateProviderInfoBitmap.insertBool(true, i);\n }\n }\n\n // Either all tokens are exempt, or none of them are. This is defined by the input parameter.\n _exemptFromYieldProtocolFee = params.exemptFromYieldProtocolFeeFlag;\n\n // Immutable variables cannot be initialized inside an if statement, so we must do conditional assignments\n _rateProvider0 = rateProviders[0];\n _rateProvider1 = rateProviders[1];\n _rateProvider2 = rateProviders[2];\n _rateProvider3 = (rateProviders.length > 3) ? rateProviders[3] : IRateProvider(0);\n _rateProvider4 = (rateProviders.length > 4) ? rateProviders[4] : IRateProvider(0);\n _rateProvider5 = (rateProviders.length > 5) ? rateProviders[5] : IRateProvider(0);\n\n _rateProviderInfoBitmap = rateProviderInfoBitmap;\n }\n\n // Tokens\n\n function _getTotalTokens() internal view virtual override returns (uint256) {\n return _totalTokens;\n }\n\n function _getMaxTokens() internal pure override returns (uint256) {\n // The BPT will be one of the Pool tokens, but it is unaffected by the Stable 5 token limit.\n return StableMath._MAX_STABLE_TOKENS + 1;\n }\n\n function getBptIndex() public view returns (uint256) {\n return _bptIndex;\n }\n\n function _getTokenIndex(IERC20 token) internal view returns (uint256) {\n if (token == _token0) return 0;\n if (token == _token1) return 1;\n if (token == _token2) return 2;\n if (token == _token3) return 3;\n if (token == _token4) return 4;\n if (token == _token5) return 5;\n\n _revert(Errors.INVALID_TOKEN);\n }\n\n function _scalingFactor(IERC20) internal view virtual override returns (uint256) {\n // We never use a single token's scaling factor by itself, we always process the entire array at once.\n // Therefore we don't bother providing an implementation for this.\n _revert(Errors.UNIMPLEMENTED);\n }\n\n // Index helpers\n\n // Convert from an index into an array including BPT (the Vault's registered token list), to an index\n // into an array excluding BPT (usually from user input, such as amountsIn/Out).\n // `index` must not be the BPT token index itself.\n function _skipBptIndex(uint256 index) internal view returns (uint256) {\n // Currently this is never called with an index passed in from user input, so this check\n // should not be necessary. Included for completion (and future proofing).\n _require(index != getBptIndex(), Errors.OUT_OF_BOUNDS);\n\n return index < getBptIndex() ? index : index.sub(1);\n }\n\n /**\n * @dev Remove the item at `_bptIndex` from an arbitrary array (e.g., amountsIn).\n */\n function _dropBptItem(uint256[] memory amounts) internal view returns (uint256[] memory) {\n uint256[] memory amountsWithoutBpt = new uint256[](amounts.length - 1);\n for (uint256 i = 0; i < amountsWithoutBpt.length; i++) {\n amountsWithoutBpt[i] = amounts[i < getBptIndex() ? i : i + 1];\n }\n\n return amountsWithoutBpt;\n }\n\n /**\n * @dev Same as `_dropBptItem`, except the virtual supply is also returned, and `balances` is assumed to be the\n * current Pool balances (including BPT).\n */\n function _dropBptItemFromBalances(uint256[] memory registeredBalances)\n internal\n view\n returns (uint256, uint256[] memory)\n {\n return (_getVirtualSupply(registeredBalances[getBptIndex()]), _dropBptItem(registeredBalances));\n }\n\n // Convert from an index into an array excluding BPT (usually from user input, such as amountsIn/Out),\n // to an index into an array including BPT (the Vault's registered token list).\n // `index` must not be the BPT token index itself, if it is the last element, and the result must be\n // in the range of registered tokens.\n function _addBptIndex(uint256 index) internal view returns (uint256 registeredIndex) {\n // This can be called from an index passed in from user input.\n registeredIndex = index < getBptIndex() ? index : index.add(1);\n\n // TODO: `indexWithBpt != getBptIndex()` follows from above line and so can be removed.\n _require(registeredIndex < _totalTokens && registeredIndex != getBptIndex(), Errors.OUT_OF_BOUNDS);\n }\n\n /**\n * @dev Take an array of arbitrary values the size of the token set without BPT, and insert the given\n * bptAmount at the bptIndex location.\n *\n * The caller is responsible for ensuring the `amounts` input array is sized properly; this function\n * performs no checks.\n */\n function _addBptItem(uint256[] memory amounts, uint256 bptAmount)\n internal\n view\n returns (uint256[] memory registeredTokenAmounts)\n {\n registeredTokenAmounts = new uint256[](amounts.length + 1);\n for (uint256 i = 0; i < registeredTokenAmounts.length; i++) {\n registeredTokenAmounts[i] = i == getBptIndex() ? bptAmount : amounts[i < getBptIndex() ? i : i - 1];\n }\n }\n\n // Rate Providers\n\n function _getScalingFactor(uint256 index) internal view returns (uint256) {\n if (index == 0) return _scalingFactor0;\n if (index == 1) return _scalingFactor1;\n if (index == 2) return _scalingFactor2;\n if (index == 3) return _scalingFactor3;\n if (index == 4) return _scalingFactor4;\n if (index == 5) return _scalingFactor5;\n else {\n _revert(Errors.INVALID_TOKEN);\n }\n }\n\n /**\n * @dev Returns the rate providers configured for each token (in the same order as registered).\n */\n function getRateProviders() external view returns (IRateProvider[] memory) {\n uint256 totalTokens = _getTotalTokens();\n IRateProvider[] memory providers = new IRateProvider[](totalTokens);\n\n for (uint256 i = 0; i < totalTokens; ++i) {\n providers[i] = _getRateProvider(i);\n }\n\n return providers;\n }\n\n function _getRateProvider(uint256 index) internal view returns (IRateProvider) {\n if (index == 0) return _rateProvider0;\n if (index == 1) return _rateProvider1;\n if (index == 2) return _rateProvider2;\n if (index == 3) return _rateProvider3;\n if (index == 4) return _rateProvider4;\n if (index == 5) return _rateProvider5;\n else {\n _revert(Errors.INVALID_TOKEN);\n }\n }\n\n /**\n * @notice Return true if the token at this index has a rate provider\n */\n function _hasRateProvider(uint256 tokenIndex) internal view returns (bool) {\n return _rateProviderInfoBitmap.decodeBool(_RATE_PROVIDER_FLAGS_OFFSET + tokenIndex);\n }\n\n /**\n * @notice Return true if all tokens are exempt from yield fees.\n */\n function isExemptFromYieldProtocolFee() public view returns (bool) {\n return _exemptFromYieldProtocolFee;\n }\n\n /**\n * @dev Returns whether the token is exempt from protocol fees on the yield.\n * If the BPT token is passed in (which doesn't make much sense, but shouldn't fail,\n * since it is a valid pool token), the corresponding flag will be false.\n */\n function isTokenExemptFromYieldProtocolFee(IERC20 token) external view returns (bool) {\n return _exemptFromYieldProtocolFee && _hasRateProvider(_getTokenIndex(token));\n }\n\n // Virtual Supply\n\n /**\n * @dev Returns the number of tokens in circulation.\n *\n * WARNING: in the vast majority of cases this is not a useful value, since it does not include the debt the Pool\n * accrued in the form of unminted BPT for the ProtocolFeesCollector. Look into `getActualSupply()` and how that's\n * different.\n *\n * In other pools, this would be the same as `totalSupply`, but since this pool pre-mints BPT and holds it in the\n * Vault as a token, we need to subtract the Vault's balance to get the total \"circulating supply\". Both the\n * totalSupply and Vault balance can change. If users join or exit using swaps, some of the preminted BPT are\n * exchanged, so the Vault's balance increases after joins and decreases after exits. If users call the regular\n * joins/exit functions, the totalSupply can change as BPT are minted for joins or burned for exits.\n */\n function _getVirtualSupply(uint256 bptBalance) internal view returns (uint256) {\n // The initial amount of BPT pre-minted is _PREMINTED_TOKEN_BALANCE, and it goes entirely to the pool balance in\n // the vault. So the virtualSupply (the amount of BPT supply in circulation) is defined as:\n // virtualSupply = totalSupply() - _balances[_bptIndex]\n return totalSupply().sub(bptBalance);\n }\n}\n"
+ },
+ "contracts/ComposableStablePoolRates.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\";\nimport \"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\";\n\nimport \"./ComposableStablePoolStorage.sol\";\n\nabstract contract ComposableStablePoolRates is ComposableStablePoolStorage {\n using PriceRateCache for bytes32;\n using FixedPoint for uint256;\n\n struct RatesParams {\n IERC20[] tokens;\n IRateProvider[] rateProviders;\n uint256[] tokenRateCacheDurations;\n }\n\n // Token rate caches are used to avoid querying the price rate for a token every time we need to work with it.\n // The \"old rate\" field is used for precise protocol fee calculation, to ensure that token yield is only\n // \"taxed\" once. The data structure is as follows:\n //\n // [ expires | duration | old rate | current rate ]\n // [ uint32 | uint32 | uint96 | uint96 ]\n\n // Since we never need just one cache but all of them at once, instead of making the mapping go from token address\n // to cache, we go from token index (including BPT), i.e. an array. We use a mapping however instead of a native\n // array to skip the extra read associated with the out-of-bounds check, as we have cheaper ways to guarantee the\n // indices are valid.\n mapping(uint256 => bytes32) internal _tokenRateCaches;\n\n event TokenRateCacheUpdated(uint256 indexed tokenIndex, uint256 rate);\n event TokenRateProviderSet(uint256 indexed tokenIndex, IRateProvider indexed provider, uint256 cacheDuration);\n\n constructor(RatesParams memory rateParams) {\n InputHelpers.ensureInputLengthMatch(\n rateParams.tokens.length,\n rateParams.rateProviders.length,\n rateParams.tokenRateCacheDurations.length\n );\n\n IERC20[] memory registeredTokens = _insertSorted(rateParams.tokens, IERC20(this));\n uint256 bptIndex;\n for (\n bptIndex = registeredTokens.length - 1;\n bptIndex > 0 && registeredTokens[bptIndex] > IERC20(this);\n bptIndex--\n ) {\n // solhint-disable-previous-line no-empty-blocks\n }\n\n uint256 skipBpt = 0;\n for (uint256 i = 0; i < rateParams.tokens.length; i++) {\n if (i == bptIndex) {\n skipBpt = 1;\n }\n\n uint256 k = i + skipBpt;\n if (rateParams.rateProviders[i] != IRateProvider(0)) {\n _updateTokenRateCache(k, rateParams.rateProviders[i], rateParams.tokenRateCacheDurations[i]);\n\n emit TokenRateProviderSet(k, rateParams.rateProviders[i], rateParams.tokenRateCacheDurations[i]);\n\n // Initialize the old rates as well, in case they are referenced before the first join.\n _updateOldRate(k);\n }\n }\n }\n\n /**\n * @dev Ensure we are not in a Vault context when this function is called, by attempting a no-op internal\n * balance operation. If we are already in a Vault transaction (e.g., a swap, join, or exit), the Vault's\n * reentrancy protection will cause this function to revert.\n *\n * The exact function call doesn't really matter: we're just trying to trigger the Vault reentrancy check\n * (and not hurt anything in case it works). An empty operation array with no specific operation at all works\n * for that purpose, and is also the least expensive in terms of gas and bytecode size.\n *\n * Use this modifier with any function that can cause a state change in a pool and is either public itself,\n * or called by a public function *outside* a Vault operation (e.g., join, exit, or swap).\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n */\n modifier whenNotInVaultContext() {\n _ensureNotInVaultContext();\n _;\n }\n\n /**\n * @dev Reverts if called in the middle of a Vault operation; has no effect otherwise.\n */\n function _ensureNotInVaultContext() private {\n IVault.UserBalanceOp[] memory noop = new IVault.UserBalanceOp[](0);\n getVault().manageUserBalance(noop);\n }\n\n /**\n * @dev Updates the old rate for the token at `index` (including BPT). Assumes `index` is valid.\n */\n function _updateOldRate(uint256 index) internal {\n bytes32 cache = _tokenRateCaches[index];\n _tokenRateCaches[index] = cache.updateOldRate();\n }\n\n /**\n * @dev Returns the rate for a given token. All token rates are fixed-point values with 18 decimals.\n * If there is no rate provider for the provided token, it returns FixedPoint.ONE.\n */\n function getTokenRate(IERC20 token) external view returns (uint256) {\n return _getTokenRate(_getTokenIndex(token));\n }\n\n function _getTokenRate(uint256 index) internal view virtual returns (uint256) {\n // We optimize for the scenario where all tokens have rate providers, except the BPT (which never has a rate\n // provider). Therefore, we return early if `token` is the BPT, and otherwise optimistically read the cache\n // expecting that it will not be empty (instead of e.g. fetching the provider to avoid a cache read, since\n // we don't need the provider at all).\n\n if (index == getBptIndex()) {\n return FixedPoint.ONE;\n }\n\n bytes32 tokenRateCache = _tokenRateCaches[index];\n return tokenRateCache == bytes32(0) ? FixedPoint.ONE : tokenRateCache.getCurrentRate();\n }\n\n /**\n * @dev Returns the cached value for token's rate. Reverts if the token doesn't belong to the pool or has no rate\n * provider.\n */\n function getTokenRateCache(IERC20 token)\n external\n view\n returns (\n uint256 rate,\n uint256 oldRate,\n uint256 duration,\n uint256 expires\n )\n {\n bytes32 cache = _tokenRateCaches[_getTokenIndex(token)];\n\n // A zero cache indicates that the token doesn't have a rate provider associated with it.\n _require(cache != bytes32(0), Errors.TOKEN_DOES_NOT_HAVE_RATE_PROVIDER);\n\n rate = cache.getCurrentRate();\n oldRate = cache.getOldRate();\n (duration, expires) = cache.getTimestamps();\n }\n\n /**\n * @dev Sets a new duration for a token rate cache.\n * Note this function also updates the current cached value.\n *\n * This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n *\n * This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a\n * join or an exit because the state of the pool could be out of sync with the state of the Vault.\n *\n * It will also revert if there was no rate provider set initially.\n *\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n *\n * @param duration Number of seconds until the current token rate is fetched again.\n */\n function setTokenRateCacheDuration(IERC20 token, uint256 duration) external authenticate whenNotInVaultContext {\n uint256 index = _getTokenIndex(token);\n IRateProvider provider = _getRateProvider(index);\n _require(address(provider) != address(0), Errors.TOKEN_DOES_NOT_HAVE_RATE_PROVIDER);\n _updateTokenRateCache(index, provider, duration);\n emit TokenRateProviderSet(index, provider, duration);\n }\n\n /**\n * @dev Forces a rate cache hit for a token.\n *\n * This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n *\n * This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a\n * join or an exit because the state of the pool could be out of sync with the state of the Vault.\n *\n * It will also revert if the requested token does not have an associated rate provider.\n *\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n */\n function updateTokenRateCache(IERC20 token) external whenNotInVaultContext {\n uint256 index = _getTokenIndex(token);\n\n IRateProvider provider = _getRateProvider(index);\n _require(address(provider) != address(0), Errors.TOKEN_DOES_NOT_HAVE_RATE_PROVIDER);\n uint256 duration = _tokenRateCaches[index].getDuration();\n _updateTokenRateCache(index, provider, duration);\n }\n\n /**\n * @dev Internal function to update a token rate cache for a known provider and duration.\n * It trusts the given values, and does not perform any checks.\n */\n function _updateTokenRateCache(\n uint256 index,\n IRateProvider provider,\n uint256 duration\n ) internal virtual {\n uint256 rate = provider.getRate();\n bytes32 cache = _tokenRateCaches[index];\n\n _tokenRateCaches[index] = cache.updateRateAndDuration(rate, duration);\n\n emit TokenRateCacheUpdated(index, rate);\n }\n\n /**\n * @dev Caches the rates of all tokens if necessary\n */\n function _cacheTokenRatesIfNecessary() internal {\n uint256 totalTokens = _getTotalTokens();\n for (uint256 i = 0; i < totalTokens; ++i) {\n _cacheTokenRateIfNecessary(i);\n }\n }\n\n /**\n * @dev Caches the rate for a token if necessary. It ignores the call if there is no provider set.\n */\n function _cacheTokenRateIfNecessary(uint256 index) internal {\n // We optimize for the scenario where all tokens have rate providers, except the BPT (which never has a rate\n // provider). Therefore, we return early if token is BPT, and otherwise optimistically read the cache expecting\n // that it will not be empty (instead of e.g. fetching the provider to avoid a cache read in situations where\n // we might not need the provider if the cache is still valid).\n\n if (index == getBptIndex()) return;\n\n bytes32 cache = _tokenRateCaches[index];\n if (cache != bytes32(0)) {\n (uint256 duration, uint256 expires) = cache.getTimestamps();\n if (block.timestamp > expires) {\n // solhint-disable-previous-line not-rely-on-time\n _updateTokenRateCache(index, _getRateProvider(index), duration);\n }\n }\n }\n\n // To compute the yield protocol fees, we need the oldRate for all tokens, even if the exempt flag is not set.\n // We do need to ensure the token has a rate provider before updating; otherwise it will not be in the cache.\n function _updateOldRates() internal {\n uint256 totalTokens = _getTotalTokens();\n for (uint256 i = 0; i < totalTokens; ++i) {\n if (_hasRateProvider(i)) _updateOldRate(i);\n }\n }\n\n /**\n * @dev Apply the token ratios to a set of balances, only if they have a rate provider.\n * The `balances` array is assumed to not include BPT to ensure that token indices align.\n */\n function _getAdjustedBalances(uint256[] memory balances) internal view returns (uint256[] memory) {\n uint256 totalTokensWithoutBpt = balances.length;\n uint256[] memory adjustedBalances = new uint256[](totalTokensWithoutBpt);\n\n for (uint256 i = 0; i < totalTokensWithoutBpt; ++i) {\n uint256 skipBptIndex = i >= getBptIndex() ? i + 1 : i;\n adjustedBalances[i] = _hasRateProvider(skipBptIndex)\n ? _adjustedBalance(balances[i], _tokenRateCaches[skipBptIndex])\n : balances[i];\n }\n\n return adjustedBalances;\n }\n\n // Compute balance * oldRate/currentRate, doing division last to minimize rounding error.\n function _adjustedBalance(uint256 balance, bytes32 cache) private pure returns (uint256) {\n return Math.divDown(Math.mul(balance, cache.getOldRate()), cache.getCurrentRate());\n }\n\n // Scaling Factors\n\n /**\n * @dev Overrides scaling factor getter to compute the tokens' rates.\n */\n function _scalingFactors() internal view virtual override returns (uint256[] memory) {\n // There is no need to check the arrays length since both are based on `_getTotalTokens`\n uint256 totalTokens = _getTotalTokens();\n uint256[] memory scalingFactors = new uint256[](totalTokens);\n\n for (uint256 i = 0; i < totalTokens; ++i) {\n scalingFactors[i] = _getScalingFactor(i).mulDown(_getTokenRate(i));\n }\n\n return scalingFactors;\n }\n\n /**\n * @dev Overrides only owner action to allow setting the cache duration for the token rates\n */\n function _isOwnerOnlyAction(bytes32 actionId) internal view virtual override returns (bool) {\n return (actionId == getActionId(this.setTokenRateCacheDuration.selector)) || super._isOwnerOnlyAction(actionId);\n }\n}\n"
+ },
+ "contracts/ComposableStablePoolProtocolFees.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\";\nimport \"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol\";\nimport \"@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol\";\n\nimport \"./ComposableStablePoolStorage.sol\";\nimport \"./ComposableStablePoolRates.sol\";\nimport \"./StableMath.sol\";\n\nabstract contract ComposableStablePoolProtocolFees is\n ComposableStablePoolStorage,\n ComposableStablePoolRates,\n ProtocolFeeCache\n{\n using FixedPoint for uint256;\n using WordCodec for bytes32;\n\n // To track protocol fees, we measure and store the value of the invariant after every join and exit.\n // All invariant growth that happens between join and exit events is due to swap fees and yield.\n // For selected tokens, we exclude the yield portion from the computation.\n // Because the invariant depends on the amplification parameter, and this value may change over time, we should only\n // compare invariants that were computed using the same value. We therefore store both values together.\n //\n // These values reside in the same storage slot. The amplification factor is bound by _MAX_AMP * _AMP_PRECISION, or\n // 5e6, which fits in 23 bits. We use all remaining bits for the invariant: this is more than enough, as the\n // invariant is proportional to the total supply, which is capped at 112 bits.\n // The data structure is as follows:\n //\n // [ last join-exit amplification | last post join-exit invariant ]\n // [ 23 bits | 233 bits ]\n bytes32 private _lastJoinExitData;\n\n uint256 private constant _LAST_POST_JOIN_EXIT_INVARIANT_OFFSET = 0;\n uint256 private constant _LAST_POST_JOIN_EXIT_INVARIANT_SIZE = 233;\n uint256 private constant _LAST_JOIN_EXIT_AMPLIFICATION_OFFSET = _LAST_POST_JOIN_EXIT_INVARIANT_OFFSET +\n _LAST_POST_JOIN_EXIT_INVARIANT_SIZE;\n\n uint256 private constant _LAST_JOIN_EXIT_AMPLIFICATION_SIZE = 23;\n\n /**\n * @dev Calculates due protocol fees originating from accumulated swap fees and yield of non-exempt tokens, pays\n * them by minting BPT, and returns the actual supply and current balances.\n *\n * We also return the current invariant computed using the amplification factor at the last join or exit, which can\n * be useful to skip computations in scenarios where the amplification factor is not changing.\n */\n function _payProtocolFeesBeforeJoinExit(\n uint256[] memory registeredBalances,\n uint256 lastJoinExitAmp,\n uint256 lastPostJoinExitInvariant\n )\n internal\n returns (\n uint256,\n uint256[] memory,\n uint256\n )\n {\n (uint256 virtualSupply, uint256[] memory balances) = _dropBptItemFromBalances(registeredBalances);\n\n // First, we'll compute what percentage of the Pool the protocol should own due to charging protocol fees on\n // swap fees and yield.\n (\n uint256 expectedProtocolOwnershipPercentage,\n uint256 currentInvariantWithLastJoinExitAmp\n ) = _getProtocolPoolOwnershipPercentage(balances, lastJoinExitAmp, lastPostJoinExitInvariant);\n\n // Now that we know what percentage of the Pool's current value the protocol should own, we can compute how\n // much BPT we need to mint to get to this state. Since we're going to mint BPT for the protocol, the value\n // of each BPT is going to be reduced as all LPs get diluted.\n uint256 protocolFeeAmount = ProtocolFees.bptForPoolOwnershipPercentage(\n virtualSupply,\n expectedProtocolOwnershipPercentage\n );\n\n if (protocolFeeAmount > 0) {\n _payProtocolFees(protocolFeeAmount);\n }\n\n // We pay fees before a join or exit to ensure the pool is debt-free. This increases the virtual supply (making\n // it match the actual supply).\n //\n // For this addition to overflow, `totalSupply` would also have already overflowed.\n return (virtualSupply + protocolFeeAmount, balances, currentInvariantWithLastJoinExitAmp);\n }\n\n function _getProtocolPoolOwnershipPercentage(\n uint256[] memory balances,\n uint256 lastJoinExitAmp,\n uint256 lastPostJoinExitInvariant\n ) internal view returns (uint256, uint256) {\n // We compute three invariants, adjusting the balances of tokens that have rate providers by undoing the current\n // rate adjustment and then applying the old rate. This is equivalent to multiplying by old rate / current rate.\n //\n // In all cases we compute invariants with the last join-exit amplification factor, so that changes to the\n // amplification are not translated into changes to the invariant. Since amplification factor changes are both\n // infrequent and slow, they should have little effect on the pool balances, making this a very good\n // approximation.\n //\n // With this technique we obtain an invariant that does not include yield at all, meaning any growth will be due\n // exclusively to swap fees. We call this the 'swap fee growth invariant'.\n // A second invariant will exclude the yield of exempt tokens, and therefore include both swap fees and\n // non-exempt yield. This is called the 'non exempt growth invariant'.\n // Finally, a third invariant includes the yield of all tokens by using only the current rates. We call this the\n // 'total growth invariant', since it includes both swap fee growth, non-exempt yield growth and exempt yield\n // growth. If the last join-exit amplification equals the current one, this invariant equals the current\n // invariant.\n\n (\n uint256 swapFeeGrowthInvariant,\n uint256 totalNonExemptGrowthInvariant,\n uint256 totalGrowthInvariant\n ) = _getGrowthInvariants(balances, lastJoinExitAmp, lastPostJoinExitInvariant);\n\n // By comparing the invariant increase attributable to each source of growth to the total growth invariant,\n // we can calculate how much of the current Pool value originates from that source, and then apply the\n // corresponding protocol fee percentage to that amount.\n\n // We have two sources of growth: swap fees, and non-exempt yield. As we illustrate graphically below:\n //\n // growth due to swap fees = (swap fee growth invariant - last post join-exit invariant)\n // growth due to non-exempt yield = (non-exempt growth invariant - swap fee growth invariant)\n //\n // These can be converted to additive percentages by normalizing against the total growth invariant value:\n // growth due to swap fees / total growth invariant = % pool ownership due from swap fees\n // growth due to non-exempt yield / total growth invariant = % pool ownership due from non-exempt yield\n //\n // ┌───────────────────────┐ ──┐\n // │ exempt yield │ │ total growth invariant\n // ├───────────────────────┤ │ ──┐\n // │ non-exempt yield │ │ │ non-exempt growth invariant\n // ├───────────────────────┤ │ │ ──┐\n // │ swap fees │ │ │ │ swap fee growth invariant\n // ├───────────────────────┤ │ │ │ ──┐\n // │ original value │ │ │ │ │ last post join-exit invariant\n // └───────────────────────┘ ──┘ ──┘ ──┘ ──┘\n //\n // Each invariant should be larger than its precedessor. In case any rounding error results in them being\n // smaller, we adjust the subtraction to equal 0.\n\n // Note: in the unexpected scenario where the rates of the tokens shrink over time instead of growing (i.e. if\n // the yield is negative), the non-exempt growth invariant might actually be *smaller* than the swap fee growth\n // invariant, and the total growth invariant might be *smaller* than the non-exempt growth invariant. Depending\n // on the order in which swaps, joins/exits and rate changes happen, as well as their relative magnitudes, it is\n // possible for the Pool to either pay more or less protocol fees than it should.\n\n // This patched version handles these edge cases gracefully, as it 1) forcibly bounds the swap fee growth\n // invariant between the total growth and last post join-exit invariant; 2) enforces \"all or nothing\" exempt\n // flags, which constrains the non-exempt growth invariant to be equal to either the total growth or swap\n // fee growth invariant.\n //\n // Furthermore, the protocol ownership percentage is hard-coded to zero (so protocol fees will be zero),\n // if the total growth invariant has gone *down* since the last join or exit, which is possible if rates\n // declined. Together, these measures ensure protocol fee amounts will be bound by the non-manipulable\n // swap fee growth, or zero in any pathological situations.\n\n // If the total invariant decreased or stayed the same, there is no growth to split between swap and yield fees.\n if (totalGrowthInvariant <= lastPostJoinExitInvariant) {\n return (0, totalGrowthInvariant);\n }\n\n // By now, the following inequality applies:\n // totalGrowthInvariant >= totalNonExemptGrowthInvariant >= swapFeeGrowthInvariant >= lastPostJoinExitInvariant\n // So these differences are safe to execute; their lower bound is 0 and they will not overflow.\n uint256 swapFeeGrowthInvariantDelta = swapFeeGrowthInvariant - lastPostJoinExitInvariant;\n uint256 nonExemptYieldGrowthInvariantDelta = totalNonExemptGrowthInvariant - swapFeeGrowthInvariant;\n\n // We can now derive what percentage of the Pool's total value each invariant delta represents by dividing by\n // the total growth invariant. These values, multiplied by the protocol fee percentage for each growth type,\n // represent the percentage of Pool ownership the protocol should have due to each source.\n\n uint256 protocolSwapFeePercentage = swapFeeGrowthInvariantDelta.divDown(totalGrowthInvariant).mulDown(\n getProtocolFeePercentageCache(ProtocolFeeType.SWAP)\n );\n\n uint256 protocolYieldPercentage = nonExemptYieldGrowthInvariantDelta.divDown(totalGrowthInvariant).mulDown(\n getProtocolFeePercentageCache(ProtocolFeeType.YIELD)\n );\n\n // These percentages can then be simply added to compute the total protocol Pool ownership percentage.\n // This is naturally bounded above by FixedPoint.ONE so this addition cannot overflow.\n return (protocolSwapFeePercentage + protocolYieldPercentage, totalGrowthInvariant);\n }\n\n /**\n * @dev Returns total growth invariant and swap / yield invariant approximations.\n * The calculated invariants are bounded such that:\n *\n * - if totalGrowthInvariant <= lastPostJoinExitInvariant, the total value has decreased, so we can skip all\n * other invariant calculations and just return `totalGrowthInvariant` for all. Protocol fees should be zero\n * in this case, so callers using this to compute fees must also check for this, and return zero for the\n * protocol ownership percentage.\n *\n * - Otherwise, totalGrowthInvariant >= totalNonExemptGrowthInvariant >=\n * swapFeeGrowthInvariant >= lastPostJoinExitInvariant\n * This was previously an assumption, but is now ensured by the logic in this function.\n */\n function _getGrowthInvariants(\n uint256[] memory balances,\n uint256 lastJoinExitAmp,\n uint256 lastPostJoinExitInvariant\n )\n internal\n view\n returns (\n uint256 swapFeeGrowthInvariant,\n uint256 totalNonExemptGrowthInvariant,\n uint256 totalGrowthInvariant\n )\n {\n // Total growth invariant is always calculated with the current (scaled / unadjusted) balances.\n totalGrowthInvariant = StableMath._calculateInvariant(lastJoinExitAmp, balances);\n\n // If total invariant decreased, calculating the other approximations is unnecessary.\n if (totalGrowthInvariant <= lastPostJoinExitInvariant) {\n return (totalGrowthInvariant, totalGrowthInvariant, totalGrowthInvariant);\n }\n\n // Swap fee invariant is calculated with adjusted balances, to discount the yield.\n swapFeeGrowthInvariant = StableMath._calculateInvariant(\n lastJoinExitAmp,\n _getAdjustedBalances(balances) // Adjust all token balances with rate providers.\n );\n\n // The `swapFeeGrowthInvariant` cannot ever be outside the bounds:\n // totalGrowthInvariant >= swapFeeGrowthInvariant >= lastPostJoinExitInvariant\n swapFeeGrowthInvariant = Math.min(totalGrowthInvariant, swapFeeGrowthInvariant); // Set upper bound.\n swapFeeGrowthInvariant = Math.max(lastPostJoinExitInvariant, swapFeeGrowthInvariant); // Set lower bound.\n\n // The only two accepted possibilities are either all tokens exempt, or none tokens exempt.\n // totalNonExemptGrowthInvariant will either be totalGrowthInvariant or swapFeeGrowthInvariant.\n // At this point,\n // - totalGrowthInvariant > lastPostJoinExitInvariant\n // - totalGrowthInvariant >= swapFeeGrowthInvariant >= lastPostJoinExitInvariant\n // So the complete inequality will apply by the end of this function:\n // totalGrowthInvariant >= totalNonExemptGrowthInvariant >= swapFeeGrowthInvariant >= lastPostJoinExitInvariant\n if (isExemptFromYieldProtocolFee()) {\n // If no tokens are charged fees on yield, then the non-exempt growth is equal to the swap fee growth - no\n // yield fees will be collected.\n\n totalNonExemptGrowthInvariant = swapFeeGrowthInvariant;\n } else {\n // If there are no tokens with fee-exempt yield, then the total non-exempt growth will equal the total\n // growth: all yield growth is non-exempt. There's also no point in adjusting balances, since we\n // already know none are exempt.\n\n totalNonExemptGrowthInvariant = totalGrowthInvariant;\n }\n }\n\n /**\n * @dev Store the latest invariant based on the adjusted balances after the join or exit, using current rates.\n * Also cache the amp factor, so that the invariant is not affected by amp updates between joins and exits.\n *\n * Pay protocol fees due on any current join or exit swap.\n */\n function _updateInvariantAfterJoinExit(\n uint256 currentAmp,\n uint256[] memory balances,\n uint256 preJoinExitInvariant,\n uint256 preJoinExitSupply,\n uint256 postJoinExitSupply\n ) internal {\n // `_payProtocolFeesBeforeJoinExit` paid protocol fees accumulated between the previous and current\n // join or exit, while this code pays any protocol fees due on the current join or exit.\n // The amp and rates are constant during a single transaction, so it doesn't matter if there\n // is an ongoing amp change, and we can ignore yield.\n\n // Compute the growth ratio between the pre- and post-join/exit balances.\n // Note that the pre-join/exit invariant is *not* the invariant from the last join,\n // but computed from the balances before this particular join/exit.\n\n uint256 postJoinExitInvariant = StableMath._calculateInvariant(currentAmp, balances);\n\n // Compute the portion of the invariant increase due to fees\n uint256 supplyGrowthRatio = postJoinExitSupply.divDown(preJoinExitSupply);\n uint256 feelessInvariant = preJoinExitInvariant.mulDown(supplyGrowthRatio);\n\n // The postJoinExitInvariant should always be greater than the feelessInvariant (since the invariant and total\n // supply move proportionally outside of fees, which the postJoinInvariant includes and the feelessInvariant\n // does not). However, in the unexpected case in which due to rounding errors this is not true, we simply skip\n // further computation of protocol fees.\n if (postJoinExitInvariant > feelessInvariant) {\n uint256 invariantDeltaFromFees = postJoinExitInvariant - feelessInvariant;\n\n // To convert to a percentage of pool ownership, multiply by the rate,\n // then normalize against the final invariant\n uint256 protocolOwnershipPercentage = Math.divDown(\n Math.mul(invariantDeltaFromFees, getProtocolFeePercentageCache(ProtocolFeeType.SWAP)),\n postJoinExitInvariant\n );\n\n if (protocolOwnershipPercentage > 0) {\n uint256 protocolFeeAmount = ProtocolFees.bptForPoolOwnershipPercentage(\n postJoinExitSupply,\n protocolOwnershipPercentage\n );\n\n _payProtocolFees(protocolFeeAmount);\n }\n }\n\n _updatePostJoinExit(currentAmp, postJoinExitInvariant);\n }\n\n /**\n * @dev Update the stored values of the amp and final post-join/exit invariant, to reset the basis for protocol\n * swap fees. Also copy the current rates to the old rates, to establish the new protocol yield basis for protocol\n * yield fees.\n */\n function _updatePostJoinExit(uint256 currentAmp, uint256 postJoinExitInvariant) internal {\n _lastJoinExitData =\n WordCodec.encodeUint(currentAmp, _LAST_JOIN_EXIT_AMPLIFICATION_OFFSET, _LAST_JOIN_EXIT_AMPLIFICATION_SIZE) |\n WordCodec.encodeUint(\n postJoinExitInvariant,\n _LAST_POST_JOIN_EXIT_INVARIANT_OFFSET,\n _LAST_POST_JOIN_EXIT_INVARIANT_SIZE\n );\n\n _updateOldRates();\n }\n\n /**\n * @notice Return the amplification factor and invariant as of the most recent join or exit (including BPT swaps)\n */\n function getLastJoinExitData()\n public\n view\n returns (uint256 lastJoinExitAmplification, uint256 lastPostJoinExitInvariant)\n {\n bytes32 rawData = _lastJoinExitData;\n\n lastJoinExitAmplification = rawData.decodeUint(\n _LAST_JOIN_EXIT_AMPLIFICATION_OFFSET,\n _LAST_JOIN_EXIT_AMPLIFICATION_SIZE\n );\n\n lastPostJoinExitInvariant = rawData.decodeUint(\n _LAST_POST_JOIN_EXIT_INVARIANT_OFFSET,\n _LAST_POST_JOIN_EXIT_INVARIANT_SIZE\n );\n }\n\n /**\n * @dev Inheritance rules still require us to override this in the most derived contract, even though\n * it only calls super.\n */\n function _isOwnerOnlyAction(bytes32 actionId)\n internal\n view\n virtual\n override(\n // Our inheritance pattern creates a small diamond that requires explicitly listing the parents here.\n // Each parent calls the `super` version, so linearization ensures all implementations are called.\n BasePool,\n BasePoolAuthorization,\n ComposableStablePoolRates\n )\n returns (bool)\n {\n return super._isOwnerOnlyAction(actionId);\n }\n}\n"
+ },
+ "contracts/StablePoolAmplification.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\";\n\nimport \"./StableMath.sol\";\n\nabstract contract StablePoolAmplification is BasePoolAuthorization {\n using WordCodec for bytes32;\n\n // This contract uses timestamps to slowly update its Amplification parameter over time. These changes must occur\n // over a minimum time period much larger than the blocktime, making timestamp manipulation a non-issue.\n // solhint-disable not-rely-on-time\n\n // Amplification factor changes must happen over a minimum period of one day, and can at most divide or multiply the\n // current value by 2 every day.\n // WARNING: this only limits *a single* amplification change to have a maximum rate of change of twice the original\n // value daily. It is possible to perform multiple amplification changes in sequence to increase this value more\n // rapidly: for example, by doubling the value every day it can increase by a factor of 8 over three days (2^3).\n uint256 private constant _MIN_UPDATE_TIME = 1 days;\n uint256 private constant _MAX_AMP_UPDATE_DAILY_RATE = 2;\n\n // The amplification data structure is as follows:\n // [ 64 bits | 64 bits | 64 bits | 64 bits ]\n // [ end time | start time | end value | start value ]\n // |MSB LSB|\n\n uint256 private constant _AMP_START_VALUE_OFFSET = 0;\n uint256 private constant _AMP_END_VALUE_OFFSET = 64;\n uint256 private constant _AMP_START_TIME_OFFSET = 128;\n uint256 private constant _AMP_END_TIME_OFFSET = 192;\n\n uint256 private constant _AMP_VALUE_BIT_LENGTH = 64;\n uint256 private constant _AMP_TIMESTAMP_BIT_LENGTH = 64;\n\n bytes32 private _packedAmplificationData;\n\n event AmpUpdateStarted(uint256 startValue, uint256 endValue, uint256 startTime, uint256 endTime);\n event AmpUpdateStopped(uint256 currentValue);\n\n constructor(uint256 amplificationParameter) {\n _require(amplificationParameter >= StableMath._MIN_AMP, Errors.MIN_AMP);\n _require(amplificationParameter <= StableMath._MAX_AMP, Errors.MAX_AMP);\n\n uint256 initialAmp = Math.mul(amplificationParameter, StableMath._AMP_PRECISION);\n _setAmplificationData(initialAmp);\n }\n\n function getAmplificationParameter()\n external\n view\n returns (\n uint256 value,\n bool isUpdating,\n uint256 precision\n )\n {\n (value, isUpdating) = _getAmplificationParameter();\n precision = StableMath._AMP_PRECISION;\n }\n\n // Return the current amp value, which will be an interpolation if there is an ongoing amp update.\n // Also return a flag indicating whether there is an ongoing update.\n function _getAmplificationParameter() internal view returns (uint256 value, bool isUpdating) {\n (uint256 startValue, uint256 endValue, uint256 startTime, uint256 endTime) = _getAmplificationData();\n\n // Note that block.timestamp >= startTime, since startTime is set to the current time when an update starts\n\n if (block.timestamp < endTime) {\n isUpdating = true;\n\n // We can skip checked arithmetic as:\n // - block.timestamp is always larger or equal to startTime\n // - endTime is always larger than startTime\n // - the value delta is bounded by the largest amplification parameter, which never causes the\n // multiplication to overflow.\n // This also means that the following computation will never revert nor yield invalid results.\n if (endValue > startValue) {\n value = startValue + ((endValue - startValue) * (block.timestamp - startTime)) / (endTime - startTime);\n } else {\n value = startValue - ((startValue - endValue) * (block.timestamp - startTime)) / (endTime - startTime);\n }\n } else {\n isUpdating = false;\n value = endValue;\n }\n }\n\n // Unpack and return all amplification-related parameters.\n function _getAmplificationData()\n private\n view\n returns (\n uint256 startValue,\n uint256 endValue,\n uint256 startTime,\n uint256 endTime\n )\n {\n startValue = _packedAmplificationData.decodeUint(_AMP_START_VALUE_OFFSET, _AMP_VALUE_BIT_LENGTH);\n endValue = _packedAmplificationData.decodeUint(_AMP_END_VALUE_OFFSET, _AMP_VALUE_BIT_LENGTH);\n startTime = _packedAmplificationData.decodeUint(_AMP_START_TIME_OFFSET, _AMP_TIMESTAMP_BIT_LENGTH);\n endTime = _packedAmplificationData.decodeUint(_AMP_END_TIME_OFFSET, _AMP_TIMESTAMP_BIT_LENGTH);\n }\n\n /**\n * @dev Begin changing the amplification parameter to `rawEndValue` over time. The value will change linearly until\n * `endTime` is reached, when it will be `rawEndValue`.\n *\n * NOTE: Internally, the amplification parameter is represented using higher precision. The values returned by\n * `getAmplificationParameter` have to be corrected to account for this when comparing to `rawEndValue`.\n */\n function startAmplificationParameterUpdate(uint256 rawEndValue, uint256 endTime) external authenticate {\n _require(rawEndValue >= StableMath._MIN_AMP, Errors.MIN_AMP);\n _require(rawEndValue <= StableMath._MAX_AMP, Errors.MAX_AMP);\n\n uint256 duration = Math.sub(endTime, block.timestamp);\n _require(duration >= _MIN_UPDATE_TIME, Errors.AMP_END_TIME_TOO_CLOSE);\n\n (uint256 currentValue, bool isUpdating) = _getAmplificationParameter();\n _require(!isUpdating, Errors.AMP_ONGOING_UPDATE);\n\n uint256 endValue = Math.mul(rawEndValue, StableMath._AMP_PRECISION);\n\n // daily rate = (endValue / currentValue) / duration * 1 day\n // We perform all multiplications first to not reduce precision, and round the division up as we want to avoid\n // large rates. Note that these are regular integer multiplications and divisions, not fixed point.\n uint256 dailyRate = endValue > currentValue\n ? Math.divUp(Math.mul(1 days, endValue), Math.mul(currentValue, duration))\n : Math.divUp(Math.mul(1 days, currentValue), Math.mul(endValue, duration));\n _require(dailyRate <= _MAX_AMP_UPDATE_DAILY_RATE, Errors.AMP_RATE_TOO_HIGH);\n\n _setAmplificationData(currentValue, endValue, block.timestamp, endTime);\n }\n\n /**\n * @dev Stops the amplification parameter change process, keeping the current value.\n */\n function stopAmplificationParameterUpdate() external authenticate {\n (uint256 currentValue, bool isUpdating) = _getAmplificationParameter();\n _require(isUpdating, Errors.AMP_NO_ONGOING_UPDATE);\n\n _setAmplificationData(currentValue);\n }\n\n function _setAmplificationData(uint256 value) private {\n _storeAmplificationData(value, value, block.timestamp, block.timestamp);\n emit AmpUpdateStopped(value);\n }\n\n function _setAmplificationData(\n uint256 startValue,\n uint256 endValue,\n uint256 startTime,\n uint256 endTime\n ) private {\n _storeAmplificationData(startValue, endValue, startTime, endTime);\n emit AmpUpdateStarted(startValue, endValue, startTime, endTime);\n }\n\n function _storeAmplificationData(\n uint256 startValue,\n uint256 endValue,\n uint256 startTime,\n uint256 endTime\n ) private {\n _packedAmplificationData =\n WordCodec.encodeUint(startValue, _AMP_START_VALUE_OFFSET, _AMP_VALUE_BIT_LENGTH) |\n WordCodec.encodeUint(endValue, _AMP_END_VALUE_OFFSET, _AMP_VALUE_BIT_LENGTH) |\n WordCodec.encodeUint(startTime, _AMP_START_TIME_OFFSET, _AMP_TIMESTAMP_BIT_LENGTH) |\n WordCodec.encodeUint(endTime, _AMP_END_TIME_OFFSET, _AMP_TIMESTAMP_BIT_LENGTH);\n }\n\n // Permissioned functions\n\n /**\n * @dev Overrides only owner action to allow setting the cache duration for the token rates\n */\n function _isOwnerOnlyAction(bytes32 actionId) internal view virtual override returns (bool) {\n return\n (actionId == getActionId(this.startAmplificationParameterUpdate.selector)) ||\n (actionId == getActionId(this.stopAmplificationParameterUpdate.selector)) ||\n super._isOwnerOnlyAction(actionId);\n }\n}\n"
+ },
+ "contracts/StableMath.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\";\n\n// These functions start with an underscore, as if they were part of a contract and not a library. At some point this\n// should be fixed. Additionally, some variables have non mixed case names (e.g. P_D) that relate to the mathematical\n// derivations.\n// solhint-disable private-vars-leading-underscore, var-name-mixedcase\n\nlibrary StableMath {\n using FixedPoint for uint256;\n\n uint256 internal constant _MIN_AMP = 1;\n uint256 internal constant _MAX_AMP = 5000;\n uint256 internal constant _AMP_PRECISION = 1e3;\n\n uint256 internal constant _MAX_STABLE_TOKENS = 5;\n\n // Note on unchecked arithmetic:\n // This contract performs a large number of additions, subtractions, multiplications and divisions, often inside\n // loops. Since many of these operations are gas-sensitive (as they happen e.g. during a swap), it is important to\n // not make any unnecessary checks. We rely on a set of invariants to avoid having to use checked arithmetic (the\n // Math library), including:\n // - the number of tokens is bounded by _MAX_STABLE_TOKENS\n // - the amplification parameter is bounded by _MAX_AMP * _AMP_PRECISION, which fits in 23 bits\n // - the token balances are bounded by 2^112 (guaranteed by the Vault) times 1e18 (the maximum scaling factor),\n // which fits in 172 bits\n //\n // This means e.g. we can safely multiply a balance by the amplification parameter without worrying about overflow.\n\n // About swap fees on joins and exits:\n // Any join or exit that is not perfectly balanced (e.g. all single token joins or exits) is mathematically\n // equivalent to a perfectly balanced join or exit followed by a series of swaps. Since these swaps would charge\n // swap fees, it follows that (some) joins and exits should as well.\n // On these operations, we split the token amounts in 'taxable' and 'non-taxable' portions, where the 'taxable' part\n // is the one to which swap fees are applied.\n\n // Computes the invariant given the current balances, using the Newton-Raphson approximation.\n // The amplification parameter equals: A n^(n-1)\n // See: https://github.com/curvefi/curve-contract/blob/b0bbf77f8f93c9c5f4e415bce9cd71f0cdee960e/contracts/pool-templates/base/SwapTemplateBase.vy#L206\n // solhint-disable-previous-line max-line-length\n function _calculateInvariant(uint256 amplificationParameter, uint256[] memory balances)\n internal\n pure\n returns (uint256)\n {\n /**********************************************************************************************\n // invariant //\n // D = invariant D^(n+1) //\n // A = amplification coefficient A n^n S + D = A D n^n + ----------- //\n // S = sum of balances n^n P //\n // P = product of balances //\n // n = number of tokens //\n **********************************************************************************************/\n\n // Always round down, to match Vyper's arithmetic (which always truncates).\n\n uint256 sum = 0; // S in the Curve version\n uint256 numTokens = balances.length;\n for (uint256 i = 0; i < numTokens; i++) {\n sum = sum.add(balances[i]);\n }\n if (sum == 0) {\n return 0;\n }\n\n uint256 prevInvariant; // Dprev in the Curve version\n uint256 invariant = sum; // D in the Curve version\n uint256 ampTimesTotal = amplificationParameter * numTokens; // Ann in the Curve version\n\n for (uint256 i = 0; i < 255; i++) {\n uint256 D_P = invariant;\n\n for (uint256 j = 0; j < numTokens; j++) {\n // (D_P * invariant) / (balances[j] * numTokens)\n D_P = Math.divDown(Math.mul(D_P, invariant), Math.mul(balances[j], numTokens));\n }\n\n prevInvariant = invariant;\n\n invariant = Math.divDown(\n Math.mul(\n // (ampTimesTotal * sum) / AMP_PRECISION + D_P * numTokens\n (Math.divDown(Math.mul(ampTimesTotal, sum), _AMP_PRECISION).add(Math.mul(D_P, numTokens))),\n invariant\n ),\n // ((ampTimesTotal - _AMP_PRECISION) * invariant) / _AMP_PRECISION + (numTokens + 1) * D_P\n (\n Math.divDown(Math.mul((ampTimesTotal - _AMP_PRECISION), invariant), _AMP_PRECISION).add(\n Math.mul((numTokens + 1), D_P)\n )\n )\n );\n\n if (invariant > prevInvariant) {\n if (invariant - prevInvariant <= 1) {\n return invariant;\n }\n } else if (prevInvariant - invariant <= 1) {\n return invariant;\n }\n }\n\n _revert(Errors.STABLE_INVARIANT_DIDNT_CONVERGE);\n }\n\n // Computes how many tokens can be taken out of a pool if `tokenAmountIn` are sent, given the current balances.\n // The amplification parameter equals: A n^(n-1)\n function _calcOutGivenIn(\n uint256 amplificationParameter,\n uint256[] memory balances,\n uint256 tokenIndexIn,\n uint256 tokenIndexOut,\n uint256 tokenAmountIn,\n uint256 invariant\n ) internal pure returns (uint256) {\n /**************************************************************************************************************\n // outGivenIn token x for y - polynomial equation to solve //\n // ay = amount out to calculate //\n // by = balance token out //\n // y = by - ay (finalBalanceOut) //\n // D = invariant D D^(n+1) //\n // A = amplification coefficient y^2 + ( S - ---------- - D) * y - ------------- = 0 //\n // n = number of tokens (A * n^n) A * n^2n * P //\n // S = sum of final balances but y //\n // P = product of final balances but y //\n **************************************************************************************************************/\n\n // Amount out, so we round down overall.\n balances[tokenIndexIn] = balances[tokenIndexIn].add(tokenAmountIn);\n\n uint256 finalBalanceOut = _getTokenBalanceGivenInvariantAndAllOtherBalances(\n amplificationParameter,\n balances,\n invariant,\n tokenIndexOut\n );\n\n // No need to use checked arithmetic since `tokenAmountIn` was actually added to the same balance right before\n // calling `_getTokenBalanceGivenInvariantAndAllOtherBalances` which doesn't alter the balances array.\n balances[tokenIndexIn] = balances[tokenIndexIn] - tokenAmountIn;\n\n return balances[tokenIndexOut].sub(finalBalanceOut).sub(1);\n }\n\n // Computes how many tokens must be sent to a pool if `tokenAmountOut` are sent given the\n // current balances, using the Newton-Raphson approximation.\n // The amplification parameter equals: A n^(n-1)\n function _calcInGivenOut(\n uint256 amplificationParameter,\n uint256[] memory balances,\n uint256 tokenIndexIn,\n uint256 tokenIndexOut,\n uint256 tokenAmountOut,\n uint256 invariant\n ) internal pure returns (uint256) {\n /**************************************************************************************************************\n // inGivenOut token x for y - polynomial equation to solve //\n // ax = amount in to calculate //\n // bx = balance token in //\n // x = bx + ax (finalBalanceIn) //\n // D = invariant D D^(n+1) //\n // A = amplification coefficient x^2 + ( S - ---------- - D) * x - ------------- = 0 //\n // n = number of tokens (A * n^n) A * n^2n * P //\n // S = sum of final balances but x //\n // P = product of final balances but x //\n **************************************************************************************************************/\n\n // Amount in, so we round up overall.\n balances[tokenIndexOut] = balances[tokenIndexOut].sub(tokenAmountOut);\n\n uint256 finalBalanceIn = _getTokenBalanceGivenInvariantAndAllOtherBalances(\n amplificationParameter,\n balances,\n invariant,\n tokenIndexIn\n );\n\n // No need to use checked arithmetic since `tokenAmountOut` was actually subtracted from the same balance right\n // before calling `_getTokenBalanceGivenInvariantAndAllOtherBalances` which doesn't alter the balances array.\n balances[tokenIndexOut] = balances[tokenIndexOut] + tokenAmountOut;\n\n return finalBalanceIn.sub(balances[tokenIndexIn]).add(1);\n }\n\n function _calcBptOutGivenExactTokensIn(\n uint256 amp,\n uint256[] memory balances,\n uint256[] memory amountsIn,\n uint256 bptTotalSupply,\n uint256 currentInvariant,\n uint256 swapFeePercentage\n ) internal pure returns (uint256) {\n // BPT out, so we round down overall.\n\n // First loop calculates the sum of all token balances, which will be used to calculate\n // the current weights of each token, relative to this sum\n uint256 sumBalances = 0;\n for (uint256 i = 0; i < balances.length; i++) {\n sumBalances = sumBalances.add(balances[i]);\n }\n\n // Calculate the weighted balance ratio without considering fees\n uint256[] memory balanceRatiosWithFee = new uint256[](amountsIn.length);\n // The weighted sum of token balance ratios with fee\n uint256 invariantRatioWithFees = 0;\n for (uint256 i = 0; i < balances.length; i++) {\n uint256 currentWeight = balances[i].divDown(sumBalances);\n balanceRatiosWithFee[i] = balances[i].add(amountsIn[i]).divDown(balances[i]);\n invariantRatioWithFees = invariantRatioWithFees.add(balanceRatiosWithFee[i].mulDown(currentWeight));\n }\n\n // Second loop calculates new amounts in, taking into account the fee on the percentage excess\n uint256[] memory newBalances = new uint256[](balances.length);\n for (uint256 i = 0; i < balances.length; i++) {\n uint256 amountInWithoutFee;\n\n // Check if the balance ratio is greater than the ideal ratio to charge fees or not\n if (balanceRatiosWithFee[i] > invariantRatioWithFees) {\n uint256 nonTaxableAmount = balances[i].mulDown(invariantRatioWithFees.sub(FixedPoint.ONE));\n uint256 taxableAmount = amountsIn[i].sub(nonTaxableAmount);\n // No need to use checked arithmetic for the swap fee, it is guaranteed to be lower than 50%\n amountInWithoutFee = nonTaxableAmount.add(taxableAmount.mulDown(FixedPoint.ONE - swapFeePercentage));\n } else {\n amountInWithoutFee = amountsIn[i];\n }\n\n newBalances[i] = balances[i].add(amountInWithoutFee);\n }\n\n uint256 newInvariant = _calculateInvariant(amp, newBalances);\n uint256 invariantRatio = newInvariant.divDown(currentInvariant);\n\n // If the invariant didn't increase for any reason, we simply don't mint BPT\n if (invariantRatio > FixedPoint.ONE) {\n return bptTotalSupply.mulDown(invariantRatio - FixedPoint.ONE);\n } else {\n return 0;\n }\n }\n\n function _calcTokenInGivenExactBptOut(\n uint256 amp,\n uint256[] memory balances,\n uint256 tokenIndex,\n uint256 bptAmountOut,\n uint256 bptTotalSupply,\n uint256 currentInvariant,\n uint256 swapFeePercentage\n ) internal pure returns (uint256) {\n // Token in, so we round up overall.\n\n uint256 newInvariant = bptTotalSupply.add(bptAmountOut).divUp(bptTotalSupply).mulUp(currentInvariant);\n\n // Calculate amount in without fee.\n uint256 newBalanceTokenIndex = _getTokenBalanceGivenInvariantAndAllOtherBalances(\n amp,\n balances,\n newInvariant,\n tokenIndex\n );\n uint256 amountInWithoutFee = newBalanceTokenIndex.sub(balances[tokenIndex]);\n\n // First calculate the sum of all token balances, which will be used to calculate\n // the current weight of each token\n uint256 sumBalances = 0;\n for (uint256 i = 0; i < balances.length; i++) {\n sumBalances = sumBalances.add(balances[i]);\n }\n\n // We can now compute how much extra balance is being deposited and used in virtual swaps, and charge swap fees\n // accordingly.\n uint256 currentWeight = balances[tokenIndex].divDown(sumBalances);\n uint256 taxablePercentage = currentWeight.complement();\n uint256 taxableAmount = amountInWithoutFee.mulUp(taxablePercentage);\n uint256 nonTaxableAmount = amountInWithoutFee.sub(taxableAmount);\n\n // No need to use checked arithmetic for the swap fee, it is guaranteed to be lower than 50%\n return nonTaxableAmount.add(taxableAmount.divUp(FixedPoint.ONE - swapFeePercentage));\n }\n\n /*\n Flow of calculations:\n amountsTokenOut -> amountsOutProportional ->\n amountOutPercentageExcess -> amountOutBeforeFee -> newInvariant -> amountBPTIn\n */\n function _calcBptInGivenExactTokensOut(\n uint256 amp,\n uint256[] memory balances,\n uint256[] memory amountsOut,\n uint256 bptTotalSupply,\n uint256 currentInvariant,\n uint256 swapFeePercentage\n ) internal pure returns (uint256) {\n // BPT in, so we round up overall.\n\n // First loop calculates the sum of all token balances, which will be used to calculate\n // the current weights of each token relative to this sum\n uint256 sumBalances = 0;\n for (uint256 i = 0; i < balances.length; i++) {\n sumBalances = sumBalances.add(balances[i]);\n }\n\n // Calculate the weighted balance ratio without considering fees\n uint256[] memory balanceRatiosWithoutFee = new uint256[](amountsOut.length);\n uint256 invariantRatioWithoutFees = 0;\n for (uint256 i = 0; i < balances.length; i++) {\n uint256 currentWeight = balances[i].divUp(sumBalances);\n balanceRatiosWithoutFee[i] = balances[i].sub(amountsOut[i]).divUp(balances[i]);\n invariantRatioWithoutFees = invariantRatioWithoutFees.add(balanceRatiosWithoutFee[i].mulUp(currentWeight));\n }\n\n // Second loop calculates new amounts in, taking into account the fee on the percentage excess\n uint256[] memory newBalances = new uint256[](balances.length);\n for (uint256 i = 0; i < balances.length; i++) {\n // Swap fees are typically charged on 'token in', but there is no 'token in' here, so we apply it to\n // 'token out'. This results in slightly larger price impact.\n\n uint256 amountOutWithFee;\n if (invariantRatioWithoutFees > balanceRatiosWithoutFee[i]) {\n uint256 nonTaxableAmount = balances[i].mulDown(invariantRatioWithoutFees.complement());\n uint256 taxableAmount = amountsOut[i].sub(nonTaxableAmount);\n // No need to use checked arithmetic for the swap fee, it is guaranteed to be lower than 50%\n amountOutWithFee = nonTaxableAmount.add(taxableAmount.divUp(FixedPoint.ONE - swapFeePercentage));\n } else {\n amountOutWithFee = amountsOut[i];\n }\n\n newBalances[i] = balances[i].sub(amountOutWithFee);\n }\n\n uint256 newInvariant = _calculateInvariant(amp, newBalances);\n uint256 invariantRatio = newInvariant.divDown(currentInvariant);\n\n // return amountBPTIn\n return bptTotalSupply.mulUp(invariantRatio.complement());\n }\n\n function _calcTokenOutGivenExactBptIn(\n uint256 amp,\n uint256[] memory balances,\n uint256 tokenIndex,\n uint256 bptAmountIn,\n uint256 bptTotalSupply,\n uint256 currentInvariant,\n uint256 swapFeePercentage\n ) internal pure returns (uint256) {\n // Token out, so we round down overall.\n\n uint256 newInvariant = bptTotalSupply.sub(bptAmountIn).divUp(bptTotalSupply).mulUp(currentInvariant);\n\n // Calculate amount out without fee\n uint256 newBalanceTokenIndex = _getTokenBalanceGivenInvariantAndAllOtherBalances(\n amp,\n balances,\n newInvariant,\n tokenIndex\n );\n uint256 amountOutWithoutFee = balances[tokenIndex].sub(newBalanceTokenIndex);\n\n // First calculate the sum of all token balances, which will be used to calculate\n // the current weight of each token\n uint256 sumBalances = 0;\n for (uint256 i = 0; i < balances.length; i++) {\n sumBalances = sumBalances.add(balances[i]);\n }\n\n // We can now compute how much excess balance is being withdrawn as a result of the virtual swaps, which result\n // in swap fees.\n uint256 currentWeight = balances[tokenIndex].divDown(sumBalances);\n uint256 taxablePercentage = currentWeight.complement();\n\n // Swap fees are typically charged on 'token in', but there is no 'token in' here, so we apply it\n // to 'token out'. This results in slightly larger price impact. Fees are rounded up.\n uint256 taxableAmount = amountOutWithoutFee.mulUp(taxablePercentage);\n uint256 nonTaxableAmount = amountOutWithoutFee.sub(taxableAmount);\n\n // No need to use checked arithmetic for the swap fee, it is guaranteed to be lower than 50%\n return nonTaxableAmount.add(taxableAmount.mulDown(FixedPoint.ONE - swapFeePercentage));\n }\n\n // This function calculates the balance of a given token (tokenIndex)\n // given all the other balances and the invariant\n function _getTokenBalanceGivenInvariantAndAllOtherBalances(\n uint256 amplificationParameter,\n uint256[] memory balances,\n uint256 invariant,\n uint256 tokenIndex\n ) internal pure returns (uint256) {\n // Rounds result up overall\n\n uint256 ampTimesTotal = amplificationParameter * balances.length;\n uint256 sum = balances[0];\n uint256 P_D = balances[0] * balances.length;\n for (uint256 j = 1; j < balances.length; j++) {\n P_D = Math.divDown(Math.mul(Math.mul(P_D, balances[j]), balances.length), invariant);\n sum = sum.add(balances[j]);\n }\n // No need to use safe math, based on the loop above `sum` is greater than or equal to `balances[tokenIndex]`\n sum = sum - balances[tokenIndex];\n\n uint256 inv2 = Math.mul(invariant, invariant);\n // We remove the balance from c by multiplying it\n uint256 c = Math.mul(\n Math.mul(Math.divUp(inv2, Math.mul(ampTimesTotal, P_D)), _AMP_PRECISION),\n balances[tokenIndex]\n );\n uint256 b = sum.add(Math.mul(Math.divDown(invariant, ampTimesTotal), _AMP_PRECISION));\n\n // We iterate to find the balance\n uint256 prevTokenBalance = 0;\n // We multiply the first iteration outside the loop with the invariant to set the value of the\n // initial approximation.\n uint256 tokenBalance = Math.divUp(inv2.add(c), invariant.add(b));\n\n for (uint256 i = 0; i < 255; i++) {\n prevTokenBalance = tokenBalance;\n\n tokenBalance = Math.divUp(\n Math.mul(tokenBalance, tokenBalance).add(c),\n Math.mul(tokenBalance, 2).add(b).sub(invariant)\n );\n\n if (tokenBalance > prevTokenBalance) {\n if (tokenBalance - prevTokenBalance <= 1) {\n return tokenBalance;\n }\n } else if (prevTokenBalance - tokenBalance <= 1) {\n return tokenBalance;\n }\n }\n\n _revert(Errors.STABLE_GET_BALANCE_DIDNT_CONVERGE);\n }\n\n function _computeProportionalAmountsIn(\n uint256[] memory balances,\n uint256 bptAmountOut,\n uint256 totalBPT\n ) internal pure returns (uint256[] memory) {\n /************************************************************************************\n // tokensInForExactBptOut //\n // (per token) //\n // aI = amountIn / bptOut \\ //\n // b = balance aI = b * | ------------ | //\n // bptOut = bptAmountOut \\ totalBPT / //\n // bpt = totalBPT //\n ************************************************************************************/\n\n // Tokens in, so we round up overall.\n uint256 bptRatio = bptAmountOut.divUp(totalBPT);\n\n uint256[] memory amountsIn = new uint256[](balances.length);\n for (uint256 i = 0; i < balances.length; i++) {\n amountsIn[i] = balances[i].mulUp(bptRatio);\n }\n\n return amountsIn;\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\n// documentation files (the “Software”), to deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the\n// Software.\n\n// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\n// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\n/* solhint-disable */\n\n/**\n * @dev Exponentiation and logarithm functions for 18 decimal fixed point numbers (both base and exponent/argument).\n *\n * Exponentiation and logarithm with arbitrary bases (x^y and log_x(y)) are implemented by conversion to natural\n * exponentiation and logarithm (where the base is Euler's number).\n *\n * @author Fernando Martinelli - @fernandomartinelli\n * @author Sergio Yuhjtman - @sergioyuhjtman\n * @author Daniel Fernandez - @dmf7z\n */\nlibrary LogExpMath {\n // All fixed point multiplications and divisions are inlined. This means we need to divide by ONE when multiplying\n // two numbers, and multiply by ONE when dividing them.\n\n // All arguments and return values are 18 decimal fixed point numbers.\n int256 constant ONE_18 = 1e18;\n\n // Internally, intermediate values are computed with higher precision as 20 decimal fixed point numbers, and in the\n // case of ln36, 36 decimals.\n int256 constant ONE_20 = 1e20;\n int256 constant ONE_36 = 1e36;\n\n // The domain of natural exponentiation is bound by the word size and number of decimals used.\n //\n // Because internally the result will be stored using 20 decimals, the largest possible result is\n // (2^255 - 1) / 10^20, which makes the largest exponent ln((2^255 - 1) / 10^20) = 130.700829182905140221.\n // The smallest possible result is 10^(-18), which makes largest negative argument\n // ln(10^(-18)) = -41.446531673892822312.\n // We use 130.0 and -41.0 to have some safety margin.\n int256 constant MAX_NATURAL_EXPONENT = 130e18;\n int256 constant MIN_NATURAL_EXPONENT = -41e18;\n\n // Bounds for ln_36's argument. Both ln(0.9) and ln(1.1) can be represented with 36 decimal places in a fixed point\n // 256 bit integer.\n int256 constant LN_36_LOWER_BOUND = ONE_18 - 1e17;\n int256 constant LN_36_UPPER_BOUND = ONE_18 + 1e17;\n\n uint256 constant MILD_EXPONENT_BOUND = 2**254 / uint256(ONE_20);\n\n // 18 decimal constants\n int256 constant x0 = 128000000000000000000; // 2ˆ7\n int256 constant a0 = 38877084059945950922200000000000000000000000000000000000; // eˆ(x0) (no decimals)\n int256 constant x1 = 64000000000000000000; // 2ˆ6\n int256 constant a1 = 6235149080811616882910000000; // eˆ(x1) (no decimals)\n\n // 20 decimal constants\n int256 constant x2 = 3200000000000000000000; // 2ˆ5\n int256 constant a2 = 7896296018268069516100000000000000; // eˆ(x2)\n int256 constant x3 = 1600000000000000000000; // 2ˆ4\n int256 constant a3 = 888611052050787263676000000; // eˆ(x3)\n int256 constant x4 = 800000000000000000000; // 2ˆ3\n int256 constant a4 = 298095798704172827474000; // eˆ(x4)\n int256 constant x5 = 400000000000000000000; // 2ˆ2\n int256 constant a5 = 5459815003314423907810; // eˆ(x5)\n int256 constant x6 = 200000000000000000000; // 2ˆ1\n int256 constant a6 = 738905609893065022723; // eˆ(x6)\n int256 constant x7 = 100000000000000000000; // 2ˆ0\n int256 constant a7 = 271828182845904523536; // eˆ(x7)\n int256 constant x8 = 50000000000000000000; // 2ˆ-1\n int256 constant a8 = 164872127070012814685; // eˆ(x8)\n int256 constant x9 = 25000000000000000000; // 2ˆ-2\n int256 constant a9 = 128402541668774148407; // eˆ(x9)\n int256 constant x10 = 12500000000000000000; // 2ˆ-3\n int256 constant a10 = 113314845306682631683; // eˆ(x10)\n int256 constant x11 = 6250000000000000000; // 2ˆ-4\n int256 constant a11 = 106449445891785942956; // eˆ(x11)\n\n /**\n * @dev Exponentiation (x^y) with unsigned 18 decimal fixed point base and exponent.\n *\n * Reverts if ln(x) * y is smaller than `MIN_NATURAL_EXPONENT`, or larger than `MAX_NATURAL_EXPONENT`.\n */\n function pow(uint256 x, uint256 y) internal pure returns (uint256) {\n if (y == 0) {\n // We solve the 0^0 indetermination by making it equal one.\n return uint256(ONE_18);\n }\n\n if (x == 0) {\n return 0;\n }\n\n // Instead of computing x^y directly, we instead rely on the properties of logarithms and exponentiation to\n // arrive at that result. In particular, exp(ln(x)) = x, and ln(x^y) = y * ln(x). This means\n // x^y = exp(y * ln(x)).\n\n // The ln function takes a signed value, so we need to make sure x fits in the signed 256 bit range.\n _require(x >> 255 == 0, Errors.X_OUT_OF_BOUNDS);\n int256 x_int256 = int256(x);\n\n // We will compute y * ln(x) in a single step. Depending on the value of x, we can either use ln or ln_36. In\n // both cases, we leave the division by ONE_18 (due to fixed point multiplication) to the end.\n\n // This prevents y * ln(x) from overflowing, and at the same time guarantees y fits in the signed 256 bit range.\n _require(y < MILD_EXPONENT_BOUND, Errors.Y_OUT_OF_BOUNDS);\n int256 y_int256 = int256(y);\n\n int256 logx_times_y;\n if (LN_36_LOWER_BOUND < x_int256 && x_int256 < LN_36_UPPER_BOUND) {\n int256 ln_36_x = _ln_36(x_int256);\n\n // ln_36_x has 36 decimal places, so multiplying by y_int256 isn't as straightforward, since we can't just\n // bring y_int256 to 36 decimal places, as it might overflow. Instead, we perform two 18 decimal\n // multiplications and add the results: one with the first 18 decimals of ln_36_x, and one with the\n // (downscaled) last 18 decimals.\n logx_times_y = ((ln_36_x / ONE_18) * y_int256 + ((ln_36_x % ONE_18) * y_int256) / ONE_18);\n } else {\n logx_times_y = _ln(x_int256) * y_int256;\n }\n logx_times_y /= ONE_18;\n\n // Finally, we compute exp(y * ln(x)) to arrive at x^y\n _require(\n MIN_NATURAL_EXPONENT <= logx_times_y && logx_times_y <= MAX_NATURAL_EXPONENT,\n Errors.PRODUCT_OUT_OF_BOUNDS\n );\n\n return uint256(exp(logx_times_y));\n }\n\n /**\n * @dev Natural exponentiation (e^x) with signed 18 decimal fixed point exponent.\n *\n * Reverts if `x` is smaller than MIN_NATURAL_EXPONENT, or larger than `MAX_NATURAL_EXPONENT`.\n */\n function exp(int256 x) internal pure returns (int256) {\n _require(x >= MIN_NATURAL_EXPONENT && x <= MAX_NATURAL_EXPONENT, Errors.INVALID_EXPONENT);\n\n if (x < 0) {\n // We only handle positive exponents: e^(-x) is computed as 1 / e^x. We can safely make x positive since it\n // fits in the signed 256 bit range (as it is larger than MIN_NATURAL_EXPONENT).\n // Fixed point division requires multiplying by ONE_18.\n return ((ONE_18 * ONE_18) / exp(-x));\n }\n\n // First, we use the fact that e^(x+y) = e^x * e^y to decompose x into a sum of powers of two, which we call x_n,\n // where x_n == 2^(7 - n), and e^x_n = a_n has been precomputed. We choose the first x_n, x0, to equal 2^7\n // because all larger powers are larger than MAX_NATURAL_EXPONENT, and therefore not present in the\n // decomposition.\n // At the end of this process we will have the product of all e^x_n = a_n that apply, and the remainder of this\n // decomposition, which will be lower than the smallest x_n.\n // exp(x) = k_0 * a_0 * k_1 * a_1 * ... + k_n * a_n * exp(remainder), where each k_n equals either 0 or 1.\n // We mutate x by subtracting x_n, making it the remainder of the decomposition.\n\n // The first two a_n (e^(2^7) and e^(2^6)) are too large if stored as 18 decimal numbers, and could cause\n // intermediate overflows. Instead we store them as plain integers, with 0 decimals.\n // Additionally, x0 + x1 is larger than MAX_NATURAL_EXPONENT, which means they will not both be present in the\n // decomposition.\n\n // For each x_n, we test if that term is present in the decomposition (if x is larger than it), and if so deduct\n // it and compute the accumulated product.\n\n int256 firstAN;\n if (x >= x0) {\n x -= x0;\n firstAN = a0;\n } else if (x >= x1) {\n x -= x1;\n firstAN = a1;\n } else {\n firstAN = 1; // One with no decimal places\n }\n\n // We now transform x into a 20 decimal fixed point number, to have enhanced precision when computing the\n // smaller terms.\n x *= 100;\n\n // `product` is the accumulated product of all a_n (except a0 and a1), which starts at 20 decimal fixed point\n // one. Recall that fixed point multiplication requires dividing by ONE_20.\n int256 product = ONE_20;\n\n if (x >= x2) {\n x -= x2;\n product = (product * a2) / ONE_20;\n }\n if (x >= x3) {\n x -= x3;\n product = (product * a3) / ONE_20;\n }\n if (x >= x4) {\n x -= x4;\n product = (product * a4) / ONE_20;\n }\n if (x >= x5) {\n x -= x5;\n product = (product * a5) / ONE_20;\n }\n if (x >= x6) {\n x -= x6;\n product = (product * a6) / ONE_20;\n }\n if (x >= x7) {\n x -= x7;\n product = (product * a7) / ONE_20;\n }\n if (x >= x8) {\n x -= x8;\n product = (product * a8) / ONE_20;\n }\n if (x >= x9) {\n x -= x9;\n product = (product * a9) / ONE_20;\n }\n\n // x10 and x11 are unnecessary here since we have high enough precision already.\n\n // Now we need to compute e^x, where x is small (in particular, it is smaller than x9). We use the Taylor series\n // expansion for e^x: 1 + x + (x^2 / 2!) + (x^3 / 3!) + ... + (x^n / n!).\n\n int256 seriesSum = ONE_20; // The initial one in the sum, with 20 decimal places.\n int256 term; // Each term in the sum, where the nth term is (x^n / n!).\n\n // The first term is simply x.\n term = x;\n seriesSum += term;\n\n // Each term (x^n / n!) equals the previous one times x, divided by n. Since x is a fixed point number,\n // multiplying by it requires dividing by ONE_20, but dividing by the non-fixed point n values does not.\n\n term = ((term * x) / ONE_20) / 2;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 3;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 4;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 5;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 6;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 7;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 8;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 9;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 10;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 11;\n seriesSum += term;\n\n term = ((term * x) / ONE_20) / 12;\n seriesSum += term;\n\n // 12 Taylor terms are sufficient for 18 decimal precision.\n\n // We now have the first a_n (with no decimals), and the product of all other a_n present, and the Taylor\n // approximation of the exponentiation of the remainder (both with 20 decimals). All that remains is to multiply\n // all three (one 20 decimal fixed point multiplication, dividing by ONE_20, and one integer multiplication),\n // and then drop two digits to return an 18 decimal value.\n\n return (((product * seriesSum) / ONE_20) * firstAN) / 100;\n }\n\n /**\n * @dev Logarithm (log(arg, base), with signed 18 decimal fixed point base and argument.\n */\n function log(int256 arg, int256 base) internal pure returns (int256) {\n // This performs a simple base change: log(arg, base) = ln(arg) / ln(base).\n\n // Both logBase and logArg are computed as 36 decimal fixed point numbers, either by using ln_36, or by\n // upscaling.\n\n int256 logBase;\n if (LN_36_LOWER_BOUND < base && base < LN_36_UPPER_BOUND) {\n logBase = _ln_36(base);\n } else {\n logBase = _ln(base) * ONE_18;\n }\n\n int256 logArg;\n if (LN_36_LOWER_BOUND < arg && arg < LN_36_UPPER_BOUND) {\n logArg = _ln_36(arg);\n } else {\n logArg = _ln(arg) * ONE_18;\n }\n\n // When dividing, we multiply by ONE_18 to arrive at a result with 18 decimal places\n return (logArg * ONE_18) / logBase;\n }\n\n /**\n * @dev Natural logarithm (ln(a)) with signed 18 decimal fixed point argument.\n */\n function ln(int256 a) internal pure returns (int256) {\n // The real natural logarithm is not defined for negative numbers or zero.\n _require(a > 0, Errors.OUT_OF_BOUNDS);\n if (LN_36_LOWER_BOUND < a && a < LN_36_UPPER_BOUND) {\n return _ln_36(a) / ONE_18;\n } else {\n return _ln(a);\n }\n }\n\n /**\n * @dev Internal natural logarithm (ln(a)) with signed 18 decimal fixed point argument.\n */\n function _ln(int256 a) private pure returns (int256) {\n if (a < ONE_18) {\n // Since ln(a^k) = k * ln(a), we can compute ln(a) as ln(a) = ln((1/a)^(-1)) = - ln((1/a)). If a is less\n // than one, 1/a will be greater than one, and this if statement will not be entered in the recursive call.\n // Fixed point division requires multiplying by ONE_18.\n return (-_ln((ONE_18 * ONE_18) / a));\n }\n\n // First, we use the fact that ln^(a * b) = ln(a) + ln(b) to decompose ln(a) into a sum of powers of two, which\n // we call x_n, where x_n == 2^(7 - n), which are the natural logarithm of precomputed quantities a_n (that is,\n // ln(a_n) = x_n). We choose the first x_n, x0, to equal 2^7 because the exponential of all larger powers cannot\n // be represented as 18 fixed point decimal numbers in 256 bits, and are therefore larger than a.\n // At the end of this process we will have the sum of all x_n = ln(a_n) that apply, and the remainder of this\n // decomposition, which will be lower than the smallest a_n.\n // ln(a) = k_0 * x_0 + k_1 * x_1 + ... + k_n * x_n + ln(remainder), where each k_n equals either 0 or 1.\n // We mutate a by subtracting a_n, making it the remainder of the decomposition.\n\n // For reasons related to how `exp` works, the first two a_n (e^(2^7) and e^(2^6)) are not stored as fixed point\n // numbers with 18 decimals, but instead as plain integers with 0 decimals, so we need to multiply them by\n // ONE_18 to convert them to fixed point.\n // For each a_n, we test if that term is present in the decomposition (if a is larger than it), and if so divide\n // by it and compute the accumulated sum.\n\n int256 sum = 0;\n if (a >= a0 * ONE_18) {\n a /= a0; // Integer, not fixed point division\n sum += x0;\n }\n\n if (a >= a1 * ONE_18) {\n a /= a1; // Integer, not fixed point division\n sum += x1;\n }\n\n // All other a_n and x_n are stored as 20 digit fixed point numbers, so we convert the sum and a to this format.\n sum *= 100;\n a *= 100;\n\n // Because further a_n are 20 digit fixed point numbers, we multiply by ONE_20 when dividing by them.\n\n if (a >= a2) {\n a = (a * ONE_20) / a2;\n sum += x2;\n }\n\n if (a >= a3) {\n a = (a * ONE_20) / a3;\n sum += x3;\n }\n\n if (a >= a4) {\n a = (a * ONE_20) / a4;\n sum += x4;\n }\n\n if (a >= a5) {\n a = (a * ONE_20) / a5;\n sum += x5;\n }\n\n if (a >= a6) {\n a = (a * ONE_20) / a6;\n sum += x6;\n }\n\n if (a >= a7) {\n a = (a * ONE_20) / a7;\n sum += x7;\n }\n\n if (a >= a8) {\n a = (a * ONE_20) / a8;\n sum += x8;\n }\n\n if (a >= a9) {\n a = (a * ONE_20) / a9;\n sum += x9;\n }\n\n if (a >= a10) {\n a = (a * ONE_20) / a10;\n sum += x10;\n }\n\n if (a >= a11) {\n a = (a * ONE_20) / a11;\n sum += x11;\n }\n\n // a is now a small number (smaller than a_11, which roughly equals 1.06). This means we can use a Taylor series\n // that converges rapidly for values of `a` close to one - the same one used in ln_36.\n // Let z = (a - 1) / (a + 1).\n // ln(a) = 2 * (z + z^3 / 3 + z^5 / 5 + z^7 / 7 + ... + z^(2 * n + 1) / (2 * n + 1))\n\n // Recall that 20 digit fixed point division requires multiplying by ONE_20, and multiplication requires\n // division by ONE_20.\n int256 z = ((a - ONE_20) * ONE_20) / (a + ONE_20);\n int256 z_squared = (z * z) / ONE_20;\n\n // num is the numerator of the series: the z^(2 * n + 1) term\n int256 num = z;\n\n // seriesSum holds the accumulated sum of each term in the series, starting with the initial z\n int256 seriesSum = num;\n\n // In each step, the numerator is multiplied by z^2\n num = (num * z_squared) / ONE_20;\n seriesSum += num / 3;\n\n num = (num * z_squared) / ONE_20;\n seriesSum += num / 5;\n\n num = (num * z_squared) / ONE_20;\n seriesSum += num / 7;\n\n num = (num * z_squared) / ONE_20;\n seriesSum += num / 9;\n\n num = (num * z_squared) / ONE_20;\n seriesSum += num / 11;\n\n // 6 Taylor terms are sufficient for 36 decimal precision.\n\n // Finally, we multiply by 2 (non fixed point) to compute ln(remainder)\n seriesSum *= 2;\n\n // We now have the sum of all x_n present, and the Taylor approximation of the logarithm of the remainder (both\n // with 20 decimals). All that remains is to sum these two, and then drop two digits to return a 18 decimal\n // value.\n\n return (sum + seriesSum) / 100;\n }\n\n /**\n * @dev Intrnal high precision (36 decimal places) natural logarithm (ln(x)) with signed 18 decimal fixed point argument,\n * for x close to one.\n *\n * Should only be used if x is between LN_36_LOWER_BOUND and LN_36_UPPER_BOUND.\n */\n function _ln_36(int256 x) private pure returns (int256) {\n // Since ln(1) = 0, a value of x close to one will yield a very small result, which makes using 36 digits\n // worthwhile.\n\n // First, we transform x to a 36 digit fixed point value.\n x *= ONE_18;\n\n // We will use the following Taylor expansion, which converges very rapidly. Let z = (x - 1) / (x + 1).\n // ln(x) = 2 * (z + z^3 / 3 + z^5 / 5 + z^7 / 7 + ... + z^(2 * n + 1) / (2 * n + 1))\n\n // Recall that 36 digit fixed point division requires multiplying by ONE_36, and multiplication requires\n // division by ONE_36.\n int256 z = ((x - ONE_36) * ONE_36) / (x + ONE_36);\n int256 z_squared = (z * z) / ONE_36;\n\n // num is the numerator of the series: the z^(2 * n + 1) term\n int256 num = z;\n\n // seriesSum holds the accumulated sum of each term in the series, starting with the initial z\n int256 seriesSum = num;\n\n // In each step, the numerator is multiplied by z^2\n num = (num * z_squared) / ONE_36;\n seriesSum += num / 3;\n\n num = (num * z_squared) / ONE_36;\n seriesSum += num / 5;\n\n num = (num * z_squared) / ONE_36;\n seriesSum += num / 7;\n\n num = (num * z_squared) / ONE_36;\n seriesSum += num / 9;\n\n num = (num * z_squared) / ONE_36;\n seriesSum += num / 11;\n\n num = (num * z_squared) / ONE_36;\n seriesSum += num / 13;\n\n num = (num * z_squared) / ONE_36;\n seriesSum += num / 15;\n\n // 8 Taylor terms are sufficient for 36 decimal precision.\n\n // All that remains is multiplying by 2 (non fixed point).\n return seriesSum * 2;\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"./IBasePool.sol\";\n\n/**\n * @dev IPools with the General specialization setting should implement this interface.\n *\n * This is called by the Vault when a user calls `IVault.swap` or `IVault.batchSwap` to swap with this Pool.\n * Returns the number of tokens the Pool will grant to the user in a 'given in' swap, or that the user will\n * grant to the pool in a 'given out' swap.\n *\n * This can often be implemented by a `view` function, since many pricing algorithms don't need to track state\n * changes in swaps. However, contracts implementing this in non-view functions should check that the caller is\n * indeed the Vault.\n */\ninterface IGeneralPool is IBasePool {\n function onSwap(\n SwapRequest memory swapRequest,\n uint256[] memory balances,\n uint256 indexIn,\n uint256 indexOut\n ) external returns (uint256 amount);\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BasePool.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\";\n\nimport \"./BalancerPoolToken.sol\";\nimport \"./BasePoolAuthorization.sol\";\nimport \"./RecoveryMode.sol\";\n\n// solhint-disable max-states-count\n\n/**\n * @notice Reference implementation for the base layer of a Pool contract.\n * @dev Reference implementation for the base layer of a Pool contract that manages a single Pool with optional\n * Asset Managers, an admin-controlled swap fee percentage, and an emergency pause mechanism.\n *\n * This Pool pays protocol fees by minting BPT directly to the ProtocolFeeCollector instead of using the\n * `dueProtocolFees` return value. This results in the underlying tokens continuing to provide liquidity\n * for traders, while still keeping gas usage to a minimum since only a single token (the BPT) is transferred.\n *\n * Note that neither swap fees nor the pause mechanism are used by this contract. They are passed through so that\n * derived contracts can use them via the `_addSwapFeeAmount` and `_subtractSwapFeeAmount` functions, and the\n * `whenNotPaused` modifier.\n *\n * No admin permissions are checked here: instead, this contract delegates that to the Vault's own Authorizer.\n *\n * Because this contract doesn't implement the swap hooks, derived contracts should generally inherit from\n * BaseGeneralPool or BaseMinimalSwapInfoPool. Otherwise, subclasses must inherit from the corresponding interfaces\n * and implement the swap callbacks themselves.\n */\nabstract contract BasePool is\n IBasePool,\n IControlledPool,\n BasePoolAuthorization,\n BalancerPoolToken,\n TemporarilyPausable,\n RecoveryMode\n{\n using WordCodec for bytes32;\n using FixedPoint for uint256;\n using BasePoolUserData for bytes;\n\n uint256 private constant _MIN_TOKENS = 2;\n\n uint256 private constant _DEFAULT_MINIMUM_BPT = 1e6;\n\n // 1e18 corresponds to 1.0, or a 100% fee\n uint256 private constant _MIN_SWAP_FEE_PERCENTAGE = 1e12; // 0.0001%\n uint256 private constant _MAX_SWAP_FEE_PERCENTAGE = 1e17; // 10% - this fits in 64 bits\n\n // `_miscData` is a storage slot that can be used to store unrelated pieces of information. All pools store the\n // recovery mode flag and swap fee percentage, but `miscData` can be extended to store more pieces of information.\n // The most signficant bit is reserved for the recovery mode flag, and the swap fee percentage is stored in\n // the next most significant 63 bits, leaving the remaining 192 bits free to store any other information derived\n // pools might need.\n //\n // This slot is preferred for gas-sensitive operations as it is read in all joins, swaps and exits,\n // and therefore warm.\n\n // [ recovery | swap fee | available ]\n // [ 1 bit | 63 bits | 192 bits ]\n // [ MSB LSB ]\n bytes32 private _miscData;\n\n uint256 private constant _SWAP_FEE_PERCENTAGE_OFFSET = 192;\n uint256 private constant _RECOVERY_MODE_BIT_OFFSET = 255;\n\n // A fee can never be larger than FixedPoint.ONE, which fits in 60 bits, so 63 is more than enough.\n uint256 private constant _SWAP_FEE_PERCENTAGE_BIT_LENGTH = 63;\n\n bytes32 private immutable _poolId;\n\n // Note that this value is immutable in the Vault, so we can make it immutable here and save gas\n IProtocolFeesCollector private immutable _protocolFeesCollector;\n\n event SwapFeePercentageChanged(uint256 swapFeePercentage);\n\n constructor(\n IVault vault,\n IVault.PoolSpecialization specialization,\n string memory name,\n string memory symbol,\n IERC20[] memory tokens,\n address[] memory assetManagers,\n uint256 swapFeePercentage,\n uint256 pauseWindowDuration,\n uint256 bufferPeriodDuration,\n address owner\n )\n // Base Pools are expected to be deployed using factories. By using the factory address as the action\n // disambiguator, we make all Pools deployed by the same factory share action identifiers. This allows for\n // simpler management of permissions (such as being able to manage granting the 'set fee percentage' action in\n // any Pool created by the same factory), while still making action identifiers unique among different factories\n // if the selectors match, preventing accidental errors.\n Authentication(bytes32(uint256(msg.sender)))\n BalancerPoolToken(name, symbol, vault)\n BasePoolAuthorization(owner)\n TemporarilyPausable(pauseWindowDuration, bufferPeriodDuration)\n {\n _require(tokens.length >= _MIN_TOKENS, Errors.MIN_TOKENS);\n _require(tokens.length <= _getMaxTokens(), Errors.MAX_TOKENS);\n\n // The Vault only requires the token list to be ordered for the Two Token Pools specialization. However,\n // to make the developer experience consistent, we are requiring this condition for all the native pools.\n // Also, since these Pools will register tokens only once, we can ensure the Pool tokens will follow the same\n // order. We rely on this property to make Pools simpler to write, as it lets us assume that the\n // order of token-specific parameters (such as token weights) will not change.\n InputHelpers.ensureArrayIsSorted(tokens);\n\n _setSwapFeePercentage(swapFeePercentage);\n\n bytes32 poolId = vault.registerPool(specialization);\n\n vault.registerTokens(poolId, tokens, assetManagers);\n\n // Set immutable state variables - these cannot be read from during construction\n _poolId = poolId;\n _protocolFeesCollector = vault.getProtocolFeesCollector();\n }\n\n // Getters / Setters\n\n /**\n * @notice Return the pool id.\n */\n function getPoolId() public view override returns (bytes32) {\n return _poolId;\n }\n\n function _getTotalTokens() internal view virtual returns (uint256);\n\n function _getMaxTokens() internal pure virtual returns (uint256);\n\n /**\n * @dev Returns the minimum BPT supply. This amount is minted to the zero address during initialization, effectively\n * locking it.\n *\n * This is useful to make sure Pool initialization happens only once, but derived Pools can change this value (even\n * to zero) by overriding this function.\n */\n function _getMinimumBpt() internal pure virtual returns (uint256) {\n return _DEFAULT_MINIMUM_BPT;\n }\n\n /**\n * @notice Return the current value of the swap fee percentage.\n * @dev This is stored in `_miscData`.\n */\n function getSwapFeePercentage() public view virtual override returns (uint256) {\n return _miscData.decodeUint(_SWAP_FEE_PERCENTAGE_OFFSET, _SWAP_FEE_PERCENTAGE_BIT_LENGTH);\n }\n\n /**\n * @notice Return the ProtocolFeesCollector contract.\n * @dev This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)\n */\n function getProtocolFeesCollector() public view returns (IProtocolFeesCollector) {\n return _protocolFeesCollector;\n }\n\n /**\n * @notice Set the swap fee percentage.\n * @dev This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the\n * bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event.\n */\n function setSwapFeePercentage(uint256 swapFeePercentage) public virtual override authenticate whenNotPaused {\n _setSwapFeePercentage(swapFeePercentage);\n }\n\n function _setSwapFeePercentage(uint256 swapFeePercentage) internal virtual {\n _require(swapFeePercentage >= _getMinSwapFeePercentage(), Errors.MIN_SWAP_FEE_PERCENTAGE);\n _require(swapFeePercentage <= _getMaxSwapFeePercentage(), Errors.MAX_SWAP_FEE_PERCENTAGE);\n\n _miscData = _miscData.insertUint(\n swapFeePercentage,\n _SWAP_FEE_PERCENTAGE_OFFSET,\n _SWAP_FEE_PERCENTAGE_BIT_LENGTH\n );\n\n emit SwapFeePercentageChanged(swapFeePercentage);\n }\n\n function _getMinSwapFeePercentage() internal pure virtual returns (uint256) {\n return _MIN_SWAP_FEE_PERCENTAGE;\n }\n\n function _getMaxSwapFeePercentage() internal pure virtual returns (uint256) {\n return _MAX_SWAP_FEE_PERCENTAGE;\n }\n\n /**\n * @notice Returns whether the pool is in Recovery Mode.\n */\n function inRecoveryMode() public view override returns (bool) {\n return _miscData.decodeBool(_RECOVERY_MODE_BIT_OFFSET);\n }\n\n /**\n * @dev Sets the recoveryMode state, and emits the corresponding event.\n */\n function _setRecoveryMode(bool enabled) internal virtual override {\n _miscData = _miscData.insertBool(enabled, _RECOVERY_MODE_BIT_OFFSET);\n\n emit RecoveryModeStateChanged(enabled);\n\n // Some pools need to update their state when leaving recovery mode to ensure proper functioning of the Pool.\n // We do not allow an `_onEnableRecoveryMode()` hook as this may jeopardize the ability to enable Recovery mode.\n if (!enabled) _onDisableRecoveryMode();\n }\n\n /**\n * @dev Performs any necessary actions on the disabling of Recovery Mode.\n * This is usually to reset any fee collection mechanisms to ensure that they operate correctly going forward.\n */\n function _onDisableRecoveryMode() internal virtual {}\n\n /**\n * @notice Set the asset manager parameters for the given token.\n * @dev This is a permissioned function, unavailable when the pool is paused.\n * The details of the configuration data are set by each Asset Manager. (For an example, see\n * `RewardsAssetManager`.)\n */\n function setAssetManagerPoolConfig(IERC20 token, bytes memory poolConfig)\n public\n virtual\n override\n authenticate\n whenNotPaused\n {\n _setAssetManagerPoolConfig(token, poolConfig);\n }\n\n function _setAssetManagerPoolConfig(IERC20 token, bytes memory poolConfig) private {\n bytes32 poolId = getPoolId();\n (, , , address assetManager) = getVault().getPoolTokenInfo(poolId, token);\n\n IAssetManager(assetManager).setConfig(poolId, poolConfig);\n }\n\n /**\n * @notice Pause the pool: an emergency action which disables all pool functions.\n * @dev This is a permissioned function that will only work during the Pause Window set during pool factory\n * deployment (see `TemporarilyPausable`).\n */\n function pause() external authenticate {\n _setPaused(true);\n }\n\n /**\n * @notice Reverse a `pause` operation, and restore a pool to normal functionality.\n * @dev This is a permissioned function that will only work on a paused pool within the Buffer Period set during\n * pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause\n * after the Buffer Period expires.\n */\n function unpause() external authenticate {\n _setPaused(false);\n }\n\n function _isOwnerOnlyAction(bytes32 actionId) internal view virtual override returns (bool) {\n return\n (actionId == getActionId(this.setSwapFeePercentage.selector)) ||\n (actionId == getActionId(this.setAssetManagerPoolConfig.selector)) ||\n super._isOwnerOnlyAction(actionId);\n }\n\n function _getMiscData() internal view returns (bytes32) {\n return _miscData;\n }\n\n /**\n * @dev Inserts data into the least-significant 192 bits of the misc data storage slot.\n * Note that the remaining 64 bits are used for the swap fee percentage and cannot be overloaded.\n */\n function _setMiscData(bytes32 newData) internal {\n _miscData = _miscData.insertBits192(newData, 0);\n }\n\n // Join / Exit Hooks\n\n modifier onlyVault(bytes32 poolId) {\n _require(msg.sender == address(getVault()), Errors.CALLER_NOT_VAULT);\n _require(poolId == getPoolId(), Errors.INVALID_POOL_ID);\n _;\n }\n\n /**\n * @notice Vault hook for adding liquidity to a pool (including the first time, \"initializing\" the pool).\n * @dev This function can only be called from the Vault, from `joinPool`.\n */\n function onJoinPool(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external override onlyVault(poolId) returns (uint256[] memory, uint256[] memory) {\n _beforeSwapJoinExit();\n\n uint256[] memory scalingFactors = _scalingFactors();\n\n if (totalSupply() == 0) {\n (uint256 bptAmountOut, uint256[] memory amountsIn) = _onInitializePool(\n poolId,\n sender,\n recipient,\n scalingFactors,\n userData\n );\n\n // On initialization, we lock _getMinimumBpt() by minting it for the zero address. This BPT acts as a\n // minimum as it will never be burned, which reduces potential issues with rounding, and also prevents the\n // Pool from ever being fully drained.\n _require(bptAmountOut >= _getMinimumBpt(), Errors.MINIMUM_BPT);\n _mintPoolTokens(address(0), _getMinimumBpt());\n _mintPoolTokens(recipient, bptAmountOut - _getMinimumBpt());\n\n // amountsIn are amounts entering the Pool, so we round up.\n _downscaleUpArray(amountsIn, scalingFactors);\n\n return (amountsIn, new uint256[](balances.length));\n } else {\n _upscaleArray(balances, scalingFactors);\n (uint256 bptAmountOut, uint256[] memory amountsIn) = _onJoinPool(\n poolId,\n sender,\n recipient,\n balances,\n lastChangeBlock,\n inRecoveryMode() ? 0 : protocolSwapFeePercentage, // Protocol fees are disabled while in recovery mode\n scalingFactors,\n userData\n );\n\n // Note we no longer use `balances` after calling `_onJoinPool`, which may mutate it.\n\n _mintPoolTokens(recipient, bptAmountOut);\n\n // amountsIn are amounts entering the Pool, so we round up.\n _downscaleUpArray(amountsIn, scalingFactors);\n\n // This Pool ignores the `dueProtocolFees` return value, so we simply return a zeroed-out array.\n return (amountsIn, new uint256[](balances.length));\n }\n }\n\n /**\n * @notice Vault hook for removing liquidity from a pool.\n * @dev This function can only be called from the Vault, from `exitPool`.\n */\n function onExitPool(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external override onlyVault(poolId) returns (uint256[] memory, uint256[] memory) {\n uint256[] memory amountsOut;\n uint256 bptAmountIn;\n\n // When a user calls `exitPool`, this is the first point of entry from the Vault.\n // We first check whether this is a Recovery Mode exit - if so, we proceed using this special lightweight exit\n // mechanism which avoids computing any complex values, interacting with external contracts, etc., and generally\n // should always work, even if the Pool's mathematics or a dependency break down.\n if (userData.isRecoveryModeExitKind()) {\n // This exit kind is only available in Recovery Mode.\n _ensureInRecoveryMode();\n\n // Note that we don't upscale balances nor downscale amountsOut - we don't care about scaling factors during\n // a recovery mode exit.\n (bptAmountIn, amountsOut) = _doRecoveryModeExit(balances, totalSupply(), userData);\n } else {\n // Note that we only call this if we're not in a recovery mode exit.\n _beforeSwapJoinExit();\n\n uint256[] memory scalingFactors = _scalingFactors();\n _upscaleArray(balances, scalingFactors);\n\n (bptAmountIn, amountsOut) = _onExitPool(\n poolId,\n sender,\n recipient,\n balances,\n lastChangeBlock,\n inRecoveryMode() ? 0 : protocolSwapFeePercentage, // Protocol fees are disabled while in recovery mode\n scalingFactors,\n userData\n );\n\n // amountsOut are amounts exiting the Pool, so we round down.\n _downscaleDownArray(amountsOut, scalingFactors);\n }\n\n // Note we no longer use `balances` after calling `_onExitPool`, which may mutate it.\n\n _burnPoolTokens(sender, bptAmountIn);\n\n // This Pool ignores the `dueProtocolFees` return value, so we simply return a zeroed-out array.\n return (amountsOut, new uint256[](balances.length));\n }\n\n // Query functions\n\n /**\n * @notice \"Dry run\" `onJoinPool`.\n * @dev Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the\n * Vault with the same arguments, along with the number of tokens `sender` would have to supply.\n *\n * This function is not meant to be called directly, but rather from a helper contract that fetches current Vault\n * data, such as the protocol swap fee percentage and Pool balances.\n *\n * Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must\n * explicitly use eth_call instead of eth_sendTransaction.\n */\n function queryJoin(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external override returns (uint256 bptOut, uint256[] memory amountsIn) {\n InputHelpers.ensureInputLengthMatch(balances.length, _getTotalTokens());\n\n _queryAction(\n poolId,\n sender,\n recipient,\n balances,\n lastChangeBlock,\n protocolSwapFeePercentage,\n userData,\n _onJoinPool,\n _downscaleUpArray\n );\n\n // The `return` opcode is executed directly inside `_queryAction`, so execution never reaches this statement,\n // and we don't need to return anything here - it just silences compiler warnings.\n return (bptOut, amountsIn);\n }\n\n /**\n * @notice \"Dry run\" `onExitPool`.\n * @dev Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the\n * Vault with the same arguments, along with the number of tokens `recipient` would receive.\n *\n * This function is not meant to be called directly, but rather from a helper contract that fetches current Vault\n * data, such as the protocol swap fee percentage and Pool balances.\n *\n * Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must\n * explicitly use eth_call instead of eth_sendTransaction.\n */\n function queryExit(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external override returns (uint256 bptIn, uint256[] memory amountsOut) {\n InputHelpers.ensureInputLengthMatch(balances.length, _getTotalTokens());\n\n _queryAction(\n poolId,\n sender,\n recipient,\n balances,\n lastChangeBlock,\n protocolSwapFeePercentage,\n userData,\n _onExitPool,\n _downscaleDownArray\n );\n\n // The `return` opcode is executed directly inside `_queryAction`, so execution never reaches this statement,\n // and we don't need to return anything here - it just silences compiler warnings.\n return (bptIn, amountsOut);\n }\n\n // Internal hooks to be overridden by derived contracts - all token amounts (except BPT) in these interfaces are\n // upscaled.\n\n /**\n * @dev Called when the Pool is joined for the first time; that is, when the BPT total supply is zero.\n *\n * Returns the amount of BPT to mint, and the token amounts the Pool will receive in return.\n *\n * Minted BPT will be sent to `recipient`, except for _getMinimumBpt(), which will be deducted from this amount and\n * sent to the zero address instead. This will cause that BPT to remain forever locked there, preventing total BTP\n * from ever dropping below that value, and ensuring `_onInitializePool` can only be called once in the entire\n * Pool's lifetime.\n *\n * The tokens granted to the Pool will be transferred from `sender`. These amounts are considered upscaled and will\n * be downscaled (rounding up) before being returned to the Vault.\n */\n function _onInitializePool(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal virtual returns (uint256 bptAmountOut, uint256[] memory amountsIn);\n\n /**\n * @dev Called whenever the Pool is joined after the first initialization join (see `_onInitializePool`).\n *\n * Returns the amount of BPT to mint, the token amounts that the Pool will receive in return, and the number of\n * tokens to pay in protocol swap fees.\n *\n * Implementations of this function might choose to mutate the `balances` array to save gas (e.g. when\n * performing intermediate calculations, such as subtraction of due protocol fees). This can be done safely.\n *\n * Minted BPT will be sent to `recipient`.\n *\n * The tokens granted to the Pool will be transferred from `sender`. These amounts are considered upscaled and will\n * be downscaled (rounding up) before being returned to the Vault.\n *\n * Due protocol swap fees will be taken from the Pool's balance in the Vault (see `IBasePool.onJoinPool`). These\n * amounts are considered upscaled and will be downscaled (rounding down) before being returned to the Vault.\n */\n function _onJoinPool(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal virtual returns (uint256 bptAmountOut, uint256[] memory amountsIn);\n\n /**\n * @dev Called whenever the Pool is exited.\n *\n * Returns the amount of BPT to burn, the token amounts for each Pool token that the Pool will grant in return, and\n * the number of tokens to pay in protocol swap fees.\n *\n * Implementations of this function might choose to mutate the `balances` array to save gas (e.g. when\n * performing intermediate calculations, such as subtraction of due protocol fees). This can be done safely.\n *\n * BPT will be burnt from `sender`.\n *\n * The Pool will grant tokens to `recipient`. These amounts are considered upscaled and will be downscaled\n * (rounding down) before being returned to the Vault.\n *\n * Due protocol swap fees will be taken from the Pool's balance in the Vault (see `IBasePool.onExitPool`). These\n * amounts are considered upscaled and will be downscaled (rounding down) before being returned to the Vault.\n */\n function _onExitPool(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n uint256[] memory scalingFactors,\n bytes memory userData\n ) internal virtual returns (uint256 bptAmountIn, uint256[] memory amountsOut);\n\n /**\n * @dev Called at the very beginning of swaps, joins and exits, even before the scaling factors are read. Derived\n * contracts can extend this implementation to perform any state-changing operations they might need (including e.g.\n * updating the scaling factors),\n *\n * The only scenario in which this function is not called is during a recovery mode exit. This makes it safe to\n * perform non-trivial computations or interact with external dependencies here, as recovery mode will not be\n * affected.\n *\n * Since this contract does not implement swaps, derived contracts must also make sure this function is called on\n * swap handlers.\n */\n function _beforeSwapJoinExit() internal virtual {\n // All joins, exits and swaps are disabled (except recovery mode exits).\n _ensureNotPaused();\n }\n\n // Internal functions\n\n /**\n * @dev Pays protocol fees by minting `bptAmount` to the Protocol Fee Collector.\n */\n function _payProtocolFees(uint256 bptAmount) internal {\n _mintPoolTokens(address(getProtocolFeesCollector()), bptAmount);\n }\n\n /**\n * @dev Adds swap fee amount to `amount`, returning a higher value.\n */\n function _addSwapFeeAmount(uint256 amount) internal view returns (uint256) {\n // This returns amount + fee amount, so we round up (favoring a higher fee amount).\n return amount.divUp(getSwapFeePercentage().complement());\n }\n\n /**\n * @dev Subtracts swap fee amount from `amount`, returning a lower value.\n */\n function _subtractSwapFeeAmount(uint256 amount) internal view returns (uint256) {\n // This returns amount - fee amount, so we round up (favoring a higher fee amount).\n uint256 feeAmount = amount.mulUp(getSwapFeePercentage());\n return amount.sub(feeAmount);\n }\n\n // Scaling\n\n /**\n * @dev Returns a scaling factor that, when multiplied to a token amount for `token`, normalizes its balance as if\n * it had 18 decimals.\n */\n function _computeScalingFactor(IERC20 token) internal view returns (uint256) {\n if (address(token) == address(this)) {\n return FixedPoint.ONE;\n }\n\n // Tokens that don't implement the `decimals` method are not supported.\n uint256 tokenDecimals = ERC20(address(token)).decimals();\n\n // Tokens with more than 18 decimals are not supported.\n uint256 decimalsDifference = Math.sub(18, tokenDecimals);\n return FixedPoint.ONE * 10**decimalsDifference;\n }\n\n /**\n * @dev Returns the scaling factor for one of the Pool's tokens. Reverts if `token` is not a token registered by the\n * Pool.\n *\n * All scaling factors are fixed-point values with 18 decimals, to allow for this function to be overridden by\n * derived contracts that need to apply further scaling, making these factors potentially non-integer.\n *\n * The largest 'base' scaling factor (i.e. in tokens with less than 18 decimals) is 10**18, which in fixed-point is\n * 10**36. This value can be multiplied with a 112 bit Vault balance with no overflow by a factor of ~1e7, making\n * even relatively 'large' factors safe to use.\n *\n * The 1e7 figure is the result of 2**256 / (1e18 * 1e18 * 2**112).\n */\n function _scalingFactor(IERC20 token) internal view virtual returns (uint256);\n\n /**\n * @dev Same as `_scalingFactor()`, except for all registered tokens (in the same order as registered). The Vault\n * will always pass balances in this order when calling any of the Pool hooks.\n */\n function _scalingFactors() internal view virtual returns (uint256[] memory);\n\n function getScalingFactors() external view override returns (uint256[] memory) {\n return _scalingFactors();\n }\n\n /**\n * @dev Applies `scalingFactor` to `amount`, resulting in a larger or equal value depending on whether it needed\n * scaling or not.\n */\n function _upscale(uint256 amount, uint256 scalingFactor) internal pure returns (uint256) {\n // Upscale rounding wouldn't necessarily always go in the same direction: in a swap for example the balance of\n // token in should be rounded up, and that of token out rounded down. This is the only place where we round in\n // the same direction for all amounts, as the impact of this rounding is expected to be minimal (and there's no\n // rounding error unless `_scalingFactor()` is overriden).\n return FixedPoint.mulDown(amount, scalingFactor);\n }\n\n /**\n * @dev Same as `_upscale`, but for an entire array. This function does not return anything, but instead *mutates*\n * the `amounts` array.\n */\n function _upscaleArray(uint256[] memory amounts, uint256[] memory scalingFactors) internal pure {\n uint256 length = amounts.length;\n InputHelpers.ensureInputLengthMatch(length, scalingFactors.length);\n\n for (uint256 i = 0; i < length; ++i) {\n amounts[i] = FixedPoint.mulDown(amounts[i], scalingFactors[i]);\n }\n }\n\n /**\n * @dev Reverses the `scalingFactor` applied to `amount`, resulting in a smaller or equal value depending on\n * whether it needed scaling or not. The result is rounded down.\n */\n function _downscaleDown(uint256 amount, uint256 scalingFactor) internal pure returns (uint256) {\n return FixedPoint.divDown(amount, scalingFactor);\n }\n\n /**\n * @dev Same as `_downscaleDown`, but for an entire array. This function does not return anything, but instead\n * *mutates* the `amounts` array.\n */\n function _downscaleDownArray(uint256[] memory amounts, uint256[] memory scalingFactors) internal pure {\n uint256 length = amounts.length;\n InputHelpers.ensureInputLengthMatch(length, scalingFactors.length);\n\n for (uint256 i = 0; i < length; ++i) {\n amounts[i] = FixedPoint.divDown(amounts[i], scalingFactors[i]);\n }\n }\n\n /**\n * @dev Reverses the `scalingFactor` applied to `amount`, resulting in a smaller or equal value depending on\n * whether it needed scaling or not. The result is rounded up.\n */\n function _downscaleUp(uint256 amount, uint256 scalingFactor) internal pure returns (uint256) {\n return FixedPoint.divUp(amount, scalingFactor);\n }\n\n /**\n * @dev Same as `_downscaleUp`, but for an entire array. This function does not return anything, but instead\n * *mutates* the `amounts` array.\n */\n function _downscaleUpArray(uint256[] memory amounts, uint256[] memory scalingFactors) internal pure {\n uint256 length = amounts.length;\n InputHelpers.ensureInputLengthMatch(length, scalingFactors.length);\n\n for (uint256 i = 0; i < length; ++i) {\n amounts[i] = FixedPoint.divUp(amounts[i], scalingFactors[i]);\n }\n }\n\n function _getAuthorizer() internal view override returns (IAuthorizer) {\n // Access control management is delegated to the Vault's Authorizer. This lets Balancer Governance manage which\n // accounts can call permissioned functions: for example, to perform emergency pauses.\n // If the owner is delegated, then *all* permissioned functions, including `setSwapFeePercentage`, will be under\n // Governance control.\n return getVault().getAuthorizer();\n }\n\n function _queryAction(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData,\n function(bytes32, address, address, uint256[] memory, uint256, uint256, uint256[] memory, bytes memory)\n internal\n returns (uint256, uint256[] memory) _action,\n function(uint256[] memory, uint256[] memory) internal view _downscaleArray\n ) private {\n // This uses the same technique used by the Vault in queryBatchSwap. Refer to that function for a detailed\n // explanation.\n\n if (msg.sender != address(this)) {\n // We perform an external call to ourselves, forwarding the same calldata. In this call, the else clause of\n // the preceding if statement will be executed instead.\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, ) = address(this).call(msg.data);\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n // This call should always revert to decode the bpt and token amounts from the revert reason\n switch success\n case 0 {\n // Note we are manually writing the memory slot 0. We can safely overwrite whatever is\n // stored there as we take full control of the execution and then immediately return.\n\n // We copy the first 4 bytes to check if it matches with the expected signature, otherwise\n // there was another revert reason and we should forward it.\n returndatacopy(0, 0, 0x04)\n let error := and(mload(0), 0xffffffff00000000000000000000000000000000000000000000000000000000)\n\n // If the first 4 bytes don't match with the expected signature, we forward the revert reason.\n if eq(eq(error, 0x43adbafb00000000000000000000000000000000000000000000000000000000), 0) {\n returndatacopy(0, 0, returndatasize())\n revert(0, returndatasize())\n }\n\n // The returndata contains the signature, followed by the raw memory representation of the\n // `bptAmount` and `tokenAmounts` (array: length + data). We need to return an ABI-encoded\n // representation of these.\n // An ABI-encoded response will include one additional field to indicate the starting offset of\n // the `tokenAmounts` array. The `bptAmount` will be laid out in the first word of the\n // returndata.\n //\n // In returndata:\n // [ signature ][ bptAmount ][ tokenAmounts length ][ tokenAmounts values ]\n // [ 4 bytes ][ 32 bytes ][ 32 bytes ][ (32 * length) bytes ]\n //\n // We now need to return (ABI-encoded values):\n // [ bptAmount ][ tokeAmounts offset ][ tokenAmounts length ][ tokenAmounts values ]\n // [ 32 bytes ][ 32 bytes ][ 32 bytes ][ (32 * length) bytes ]\n\n // We copy 32 bytes for the `bptAmount` from returndata into memory.\n // Note that we skip the first 4 bytes for the error signature\n returndatacopy(0, 0x04, 32)\n\n // The offsets are 32-bytes long, so the array of `tokenAmounts` will start after\n // the initial 64 bytes.\n mstore(0x20, 64)\n\n // We now copy the raw memory array for the `tokenAmounts` from returndata into memory.\n // Since bpt amount and offset take up 64 bytes, we start copying at address 0x40. We also\n // skip the first 36 bytes from returndata, which correspond to the signature plus bpt amount.\n returndatacopy(0x40, 0x24, sub(returndatasize(), 36))\n\n // We finally return the ABI-encoded uint256 and the array, which has a total length equal to\n // the size of returndata, plus the 32 bytes of the offset but without the 4 bytes of the\n // error signature.\n return(0, add(returndatasize(), 28))\n }\n default {\n // This call should always revert, but we fail nonetheless if that didn't happen\n invalid()\n }\n }\n } else {\n // This imitates the relevant parts of the bodies of onJoin and onExit. Since they're not virtual, we know\n // that their implementations will match this regardless of what derived contracts might do.\n\n _beforeSwapJoinExit();\n\n uint256[] memory scalingFactors = _scalingFactors();\n _upscaleArray(balances, scalingFactors);\n\n (uint256 bptAmount, uint256[] memory tokenAmounts) = _action(\n poolId,\n sender,\n recipient,\n balances,\n lastChangeBlock,\n protocolSwapFeePercentage,\n scalingFactors,\n userData\n );\n\n _downscaleArray(tokenAmounts, scalingFactors);\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n // We will return a raw representation of `bptAmount` and `tokenAmounts` in memory, which is composed of\n // a 32-byte uint256, followed by a 32-byte for the array length, and finally the 32-byte uint256 values\n // Because revert expects a size in bytes, we multiply the array length (stored at `tokenAmounts`) by 32\n let size := mul(mload(tokenAmounts), 32)\n\n // We store the `bptAmount` in the previous slot to the `tokenAmounts` array. We can make sure there\n // will be at least one available slot due to how the memory scratch space works.\n // We can safely overwrite whatever is stored in this slot as we will revert immediately after that.\n let start := sub(tokenAmounts, 0x20)\n mstore(start, bptAmount)\n\n // We send one extra value for the error signature \"QueryError(uint256,uint256[])\" which is 0x43adbafb\n // We use the previous slot to `bptAmount`.\n mstore(sub(start, 0x20), 0x0000000000000000000000000000000000000000000000000000000043adbafb)\n start := sub(start, 0x04)\n\n // When copying from `tokenAmounts` into returndata, we copy the additional 68 bytes to also return\n // the `bptAmount`, the array 's length, and the error signature.\n revert(start, add(size, 68))\n }\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"./IVault.sol\";\nimport \"./IPoolSwapStructs.sol\";\n\n/**\n * @dev Interface for adding and removing liquidity that all Pool contracts should implement. Note that this is not\n * the complete Pool contract interface, as it is missing the swap hooks. Pool contracts should also inherit from\n * either IGeneralPool or IMinimalSwapInfoPool\n */\ninterface IBasePool is IPoolSwapStructs {\n /**\n * @dev Called by the Vault when a user calls `IVault.joinPool` to add liquidity to this Pool. Returns how many of\n * each registered token the user should provide, as well as the amount of protocol fees the Pool owes to the Vault.\n * The Vault will then take tokens from `sender` and add them to the Pool's balances, as well as collect\n * the reported amount in protocol fees, which the pool should calculate based on `protocolSwapFeePercentage`.\n *\n * Protocol fees are reported and charged on join events so that the Pool is free of debt whenever new users join.\n *\n * `sender` is the account performing the join (from which tokens will be withdrawn), and `recipient` is the account\n * designated to receive any benefits (typically pool shares). `balances` contains the total balances\n * for each token the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return.\n *\n * `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total\n * balance.\n *\n * `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of\n * join (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.)\n *\n * Contracts implementing this function should check that the caller is indeed the Vault before performing any\n * state-changing operations, such as minting pool shares.\n */\n function onJoinPool(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external returns (uint256[] memory amountsIn, uint256[] memory dueProtocolFeeAmounts);\n\n /**\n * @dev Called by the Vault when a user calls `IVault.exitPool` to remove liquidity from this Pool. Returns how many\n * tokens the Vault should deduct from the Pool's balances, as well as the amount of protocol fees the Pool owes\n * to the Vault. The Vault will then take tokens from the Pool's balances and send them to `recipient`,\n * as well as collect the reported amount in protocol fees, which the Pool should calculate based on\n * `protocolSwapFeePercentage`.\n *\n * Protocol fees are charged on exit events to guarantee that users exiting the Pool have paid their share.\n *\n * `sender` is the account performing the exit (typically the pool shareholder), and `recipient` is the account\n * to which the Vault will send the proceeds. `balances` contains the total token balances for each token\n * the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return.\n *\n * `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total\n * balance.\n *\n * `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of\n * exit (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.)\n *\n * Contracts implementing this function should check that the caller is indeed the Vault before performing any\n * state-changing operations, such as burning pool shares.\n */\n function onExitPool(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external returns (uint256[] memory amountsOut, uint256[] memory dueProtocolFeeAmounts);\n\n /**\n * @dev Returns this Pool's ID, used when interacting with the Vault (to e.g. join the Pool or swap with it).\n */\n function getPoolId() external view returns (bytes32);\n\n /**\n * @dev Returns the current swap fee percentage as a 18 decimal fixed point number, so e.g. 1e17 corresponds to a\n * 10% swap fee.\n */\n function getSwapFeePercentage() external view returns (uint256);\n\n /**\n * @dev Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically\n * not relevant for outside parties, but which might be useful for some types of Pools.\n */\n function getScalingFactors() external view returns (uint256[] memory);\n\n function queryJoin(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external returns (uint256 bptOut, uint256[] memory amountsIn);\n\n function queryExit(\n bytes32 poolId,\n address sender,\n address recipient,\n uint256[] memory balances,\n uint256 lastChangeBlock,\n uint256 protocolSwapFeePercentage,\n bytes memory userData\n ) external returns (uint256 bptIn, uint256[] memory amountsOut);\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"../solidity-utils/openzeppelin/IERC20.sol\";\n\nimport \"./IVault.sol\";\n\ninterface IPoolSwapStructs {\n // This is not really an interface - it just defines common structs used by other interfaces: IGeneralPool and\n // IMinimalSwapInfoPool.\n //\n // This data structure represents a request for a token swap, where `kind` indicates the swap type ('given in' or\n // 'given out') which indicates whether or not the amount sent by the pool is known.\n //\n // The pool receives `tokenIn` and sends `tokenOut`. `amount` is the number of `tokenIn` tokens the pool will take\n // in, or the number of `tokenOut` tokens the Pool will send out, depending on the given swap `kind`.\n //\n // All other fields are not strictly necessary for most swaps, but are provided to support advanced scenarios in\n // some Pools.\n //\n // `poolId` is the ID of the Pool involved in the swap - this is useful for Pool contracts that implement more than\n // one Pool.\n //\n // The meaning of `lastChangeBlock` depends on the Pool specialization:\n // - Two Token or Minimal Swap Info: the last block in which either `tokenIn` or `tokenOut` changed its total\n // balance.\n // - General: the last block in which *any* of the Pool's registered tokens changed its total balance.\n //\n // `from` is the origin address for the funds the Pool receives, and `to` is the destination address\n // where the Pool sends the outgoing tokens.\n //\n // `userData` is extra data provided by the caller - typically a signature from a trusted party.\n struct SwapRequest {\n IVault.SwapKind kind;\n IERC20 tokenIn;\n IERC20 tokenOut;\n uint256 amount;\n // Misc data\n bytes32 poolId;\n uint256 lastChangeBlock;\n address from;\n address to;\n bytes userData;\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\npragma experimental ABIEncoderV2;\n\nimport \"../solidity-utils/openzeppelin/IERC20.sol\";\n\ninterface IAssetManager {\n /**\n * @notice Emitted when asset manager is rebalanced\n */\n event Rebalance(bytes32 poolId);\n\n /**\n * @notice Sets the config\n */\n function setConfig(bytes32 poolId, bytes calldata config) external;\n\n /**\n * Note: No function to read the asset manager config is included in IAssetManager\n * as the signature is expected to vary between asset manager implementations\n */\n\n /**\n * @notice Returns the asset manager's token\n */\n function getToken() external view returns (IERC20);\n\n /**\n * @return the current assets under management of this asset manager\n */\n function getAUM(bytes32 poolId) external view returns (uint256);\n\n /**\n * @return poolCash - The up-to-date cash balance of the pool\n * @return poolManaged - The up-to-date managed balance of the pool\n */\n function getPoolBalances(bytes32 poolId) external view returns (uint256 poolCash, uint256 poolManaged);\n\n /**\n * @return The difference in tokens between the target investment\n * and the currently invested amount (i.e. the amount that can be invested)\n */\n function maxInvestableBalance(bytes32 poolId) external view returns (int256);\n\n /**\n * @notice Updates the Vault on the value of the pool's investment returns\n */\n function updateBalanceOfPool(bytes32 poolId) external;\n\n /**\n * @notice Determines whether the pool should rebalance given the provided balances\n */\n function shouldRebalance(uint256 cash, uint256 managed) external view returns (bool);\n\n /**\n * @notice Rebalances funds between the pool and the asset manager to maintain target investment percentage.\n * @param poolId - the poolId of the pool to be rebalanced\n * @param force - a boolean representing whether a rebalance should be forced even when the pool is near balance\n */\n function rebalance(bytes32 poolId, bool force) external;\n\n /**\n * @notice allows an authorized rebalancer to remove capital to facilitate large withdrawals\n * @param poolId - the poolId of the pool to withdraw funds back to\n * @param amount - the amount of tokens to withdraw back to the pool\n */\n function capitalOut(bytes32 poolId, uint256 amount) external;\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"../solidity-utils/openzeppelin/IERC20.sol\";\n\ninterface IControlledPool {\n function setSwapFeePercentage(uint256 swapFeePercentage) external;\n\n function setAssetManagerPoolConfig(IERC20 token, bytes memory poolConfig) external;\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\nimport \"../math/Math.sol\";\n\n/**\n * @dev Library for encoding and decoding values stored inside a 256 bit word. Typically used to pack multiple values in\n * a single storage slot, saving gas by performing less storage accesses.\n *\n * Each value is defined by its size and the least significant bit in the word, also known as offset. For example, two\n * 128 bit values may be encoded in a word by assigning one an offset of 0, and the other an offset of 128.\n *\n * We could use Solidity structs to pack values together in a single storage slot instead of relying on a custom and\n * error-prone library, but unfortunately Solidity only allows for structs to live in either storage, calldata or\n * memory. Because a memory struct uses not just memory but also a slot in the stack (to store its memory location),\n * using memory for word-sized values (i.e. of 256 bits or less) is strictly less gas performant, and doesn't even\n * prevent stack-too-deep issues. This is compounded by the fact that Balancer contracts typically are memory-intensive,\n * and the cost of accesing memory increases quadratically with the number of allocated words. Manual packing and\n * unpacking is therefore the preferred approach.\n */\nlibrary WordCodec {\n // Masks are values with the least significant N bits set. They can be used to extract an encoded value from a word,\n // or to insert a new one replacing the old.\n uint256 private constant _MASK_1 = 2**(1) - 1;\n uint256 private constant _MASK_192 = 2**(192) - 1;\n\n // In-place insertion\n\n /**\n * @dev Inserts an unsigned integer of bitLength, shifted by an offset, into a 256 bit word,\n * replacing the old value. Returns the new word.\n */\n function insertUint(\n bytes32 word,\n uint256 value,\n uint256 offset,\n uint256 bitLength\n ) internal pure returns (bytes32) {\n _validateEncodingParams(value, offset, bitLength);\n\n uint256 mask = (1 << bitLength) - 1;\n bytes32 clearedWord = bytes32(uint256(word) & ~(mask << offset));\n return clearedWord | bytes32(value << offset);\n }\n\n /**\n * @dev Inserts a signed integer shifted by an offset into a 256 bit word, replacing the old value. Returns\n * the new word.\n *\n * Assumes `value` can be represented using `bitLength` bits.\n */\n function insertInt(\n bytes32 word,\n int256 value,\n uint256 offset,\n uint256 bitLength\n ) internal pure returns (bytes32) {\n _validateEncodingParams(value, offset, bitLength);\n\n uint256 mask = (1 << bitLength) - 1;\n bytes32 clearedWord = bytes32(uint256(word) & ~(mask << offset));\n // Integer values need masking to remove the upper bits of negative values.\n return clearedWord | bytes32((uint256(value) & mask) << offset);\n }\n\n // Encoding\n\n /**\n * @dev Encodes an unsigned integer shifted by an offset. Ensures value fits within\n * `bitLength` bits.\n *\n * The return value can be ORed bitwise with other encoded values to form a 256 bit word.\n */\n function encodeUint(\n uint256 value,\n uint256 offset,\n uint256 bitLength\n ) internal pure returns (bytes32) {\n _validateEncodingParams(value, offset, bitLength);\n\n return bytes32(value << offset);\n }\n\n /**\n * @dev Encodes a signed integer shifted by an offset.\n *\n * The return value can be ORed bitwise with other encoded values to form a 256 bit word.\n */\n function encodeInt(\n int256 value,\n uint256 offset,\n uint256 bitLength\n ) internal pure returns (bytes32) {\n _validateEncodingParams(value, offset, bitLength);\n\n uint256 mask = (1 << bitLength) - 1;\n // Integer values need masking to remove the upper bits of negative values.\n return bytes32((uint256(value) & mask) << offset);\n }\n\n // Decoding\n\n /**\n * @dev Decodes and returns an unsigned integer with `bitLength` bits, shifted by an offset, from a 256 bit word.\n */\n function decodeUint(\n bytes32 word,\n uint256 offset,\n uint256 bitLength\n ) internal pure returns (uint256) {\n return uint256(word >> offset) & ((1 << bitLength) - 1);\n }\n\n /**\n * @dev Decodes and returns a signed integer with `bitLength` bits, shifted by an offset, from a 256 bit word.\n */\n function decodeInt(\n bytes32 word,\n uint256 offset,\n uint256 bitLength\n ) internal pure returns (int256) {\n int256 maxInt = int256((1 << (bitLength - 1)) - 1);\n uint256 mask = (1 << bitLength) - 1;\n\n int256 value = int256(uint256(word >> offset) & mask);\n // In case the decoded value is greater than the max positive integer that can be represented with bitLength\n // bits, we know it was originally a negative integer. Therefore, we mask it to restore the sign in the 256 bit\n // representation.\n return value > maxInt ? (value | int256(~mask)) : value;\n }\n\n // Special cases\n\n /**\n * @dev Decodes and returns a boolean shifted by an offset from a 256 bit word.\n */\n function decodeBool(bytes32 word, uint256 offset) internal pure returns (bool) {\n return (uint256(word >> offset) & _MASK_1) == 1;\n }\n\n /**\n * @dev Inserts a 192 bit value shifted by an offset into a 256 bit word, replacing the old value.\n * Returns the new word.\n *\n * Assumes `value` can be represented using 192 bits.\n */\n function insertBits192(\n bytes32 word,\n bytes32 value,\n uint256 offset\n ) internal pure returns (bytes32) {\n bytes32 clearedWord = bytes32(uint256(word) & ~(_MASK_192 << offset));\n return clearedWord | bytes32((uint256(value) & _MASK_192) << offset);\n }\n\n /**\n * @dev Inserts a boolean value shifted by an offset into a 256 bit word, replacing the old value. Returns the new\n * word.\n */\n function insertBool(\n bytes32 word,\n bool value,\n uint256 offset\n ) internal pure returns (bytes32) {\n bytes32 clearedWord = bytes32(uint256(word) & ~(_MASK_1 << offset));\n return clearedWord | bytes32(uint256(value ? 1 : 0) << offset);\n }\n\n // Helpers\n\n function _validateEncodingParams(\n uint256 value,\n uint256 offset,\n uint256 bitLength\n ) private pure {\n _require(offset < 256, Errors.OUT_OF_BOUNDS);\n // We never accept 256 bit values (which would make the codec pointless), and the larger the offset the smaller\n // the maximum bit length.\n _require(bitLength >= 1 && bitLength <= Math.min(255, 256 - offset), Errors.OUT_OF_BOUNDS);\n\n // Testing unsigned values for size is straightforward: their upper bits must be cleared.\n _require(value >> bitLength == 0, Errors.CODEC_OVERFLOW);\n }\n\n function _validateEncodingParams(\n int256 value,\n uint256 offset,\n uint256 bitLength\n ) private pure {\n _require(offset < 256, Errors.OUT_OF_BOUNDS);\n // We never accept 256 bit values (which would make the codec pointless), and the larger the offset the smaller\n // the maximum bit length.\n _require(bitLength >= 1 && bitLength <= Math.min(255, 256 - offset), Errors.OUT_OF_BOUNDS);\n\n // Testing signed values for size is a bit more involved.\n if (value >= 0) {\n // For positive values, we can simply check that the upper bits are clear. Notice we remove one bit from the\n // length for the sign bit.\n _require(value >> (bitLength - 1) == 0, Errors.CODEC_OVERFLOW);\n } else {\n // Negative values can receive the same treatment by making them positive, with the caveat that the range\n // for negative values in two's complement supports one more value than for the positive case.\n _require(Math.abs(value + 1) >> (bitLength - 1) == 0, Errors.CODEC_OVERFLOW);\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\";\n\n/**\n * @dev Allows for a contract to be paused during an initial period after deployment, disabling functionality. Can be\n * used as an emergency switch in case a security vulnerability or threat is identified.\n *\n * The contract can only be paused during the Pause Window, a period that starts at deployment. It can also be\n * unpaused and repaused any number of times during this period. This is intended to serve as a safety measure: it lets\n * system managers react quickly to potentially dangerous situations, knowing that this action is reversible if careful\n * analysis later determines there was a false alarm.\n *\n * If the contract is paused when the Pause Window finishes, it will remain in the paused state through an additional\n * Buffer Period, after which it will be automatically unpaused forever. This is to ensure there is always enough time\n * to react to an emergency, even if the threat is discovered shortly before the Pause Window expires.\n *\n * Note that since the contract can only be paused within the Pause Window, unpausing during the Buffer Period is\n * irreversible.\n */\nabstract contract TemporarilyPausable is ITemporarilyPausable {\n // The Pause Window and Buffer Period are timestamp-based: they should not be relied upon for sub-minute accuracy.\n // solhint-disable not-rely-on-time\n\n uint256 private constant _MAX_PAUSE_WINDOW_DURATION = 90 days;\n uint256 private constant _MAX_BUFFER_PERIOD_DURATION = 30 days;\n\n uint256 private immutable _pauseWindowEndTime;\n uint256 private immutable _bufferPeriodEndTime;\n\n bool private _paused;\n\n constructor(uint256 pauseWindowDuration, uint256 bufferPeriodDuration) {\n _require(pauseWindowDuration <= _MAX_PAUSE_WINDOW_DURATION, Errors.MAX_PAUSE_WINDOW_DURATION);\n _require(bufferPeriodDuration <= _MAX_BUFFER_PERIOD_DURATION, Errors.MAX_BUFFER_PERIOD_DURATION);\n\n uint256 pauseWindowEndTime = block.timestamp + pauseWindowDuration;\n\n _pauseWindowEndTime = pauseWindowEndTime;\n _bufferPeriodEndTime = pauseWindowEndTime + bufferPeriodDuration;\n }\n\n /**\n * @dev Reverts if the contract is paused.\n */\n modifier whenNotPaused() {\n _ensureNotPaused();\n _;\n }\n\n /**\n * @dev Returns the current contract pause status, as well as the end times of the Pause Window and Buffer\n * Period.\n */\n function getPausedState()\n external\n view\n override\n returns (\n bool paused,\n uint256 pauseWindowEndTime,\n uint256 bufferPeriodEndTime\n )\n {\n paused = !_isNotPaused();\n pauseWindowEndTime = _getPauseWindowEndTime();\n bufferPeriodEndTime = _getBufferPeriodEndTime();\n }\n\n /**\n * @dev Sets the pause state to `paused`. The contract can only be paused until the end of the Pause Window, and\n * unpaused until the end of the Buffer Period.\n *\n * Once the Buffer Period expires, this function reverts unconditionally.\n */\n function _setPaused(bool paused) internal {\n if (paused) {\n _require(block.timestamp < _getPauseWindowEndTime(), Errors.PAUSE_WINDOW_EXPIRED);\n } else {\n _require(block.timestamp < _getBufferPeriodEndTime(), Errors.BUFFER_PERIOD_EXPIRED);\n }\n\n _paused = paused;\n emit PausedStateChanged(paused);\n }\n\n /**\n * @dev Reverts if the contract is paused.\n */\n function _ensureNotPaused() internal view {\n _require(_isNotPaused(), Errors.PAUSED);\n }\n\n /**\n * @dev Reverts if the contract is not paused.\n */\n function _ensurePaused() internal view {\n _require(!_isNotPaused(), Errors.NOT_PAUSED);\n }\n\n /**\n * @dev Returns true if the contract is unpaused.\n *\n * Once the Buffer Period expires, the gas cost of calling this function is reduced dramatically, as storage is no\n * longer accessed.\n */\n function _isNotPaused() internal view returns (bool) {\n // After the Buffer Period, the (inexpensive) timestamp check short-circuits the storage access.\n return block.timestamp > _getBufferPeriodEndTime() || !_paused;\n }\n\n // These getters lead to reduced bytecode size by inlining the immutable variables in a single place.\n\n function _getPauseWindowEndTime() private view returns (uint256) {\n return _pauseWindowEndTime;\n }\n\n function _getBufferPeriodEndTime() private view returns (uint256) {\n return _bufferPeriodEndTime;\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\";\n\nimport \"./SafeMath.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is IERC20 {\n using SafeMath for uint256;\n\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n uint8 private _decimals;\n\n /**\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\n * a default value of 18.\n *\n * To select a different value for {decimals}, use {_setupDecimals}.\n *\n * All three of these values are immutable: they can only be set once during\n * construction.\n */\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n _decimals = 18;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the symbol of the token, usually a shorter version of the\n * name.\n */\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the number of decimals used to get its user representation.\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\n *\n * Tokens usually opt for a value of 18, imitating the relationship between\n * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\n * called.\n *\n * NOTE: This information is only used for _display_ purposes: it in\n * no way affects any of the arithmetic of the contract, including\n * {IERC20-balanceOf} and {IERC20-transfer}.\n */\n function decimals() public view returns (uint8) {\n return _decimals;\n }\n\n /**\n * @dev See {IERC20-totalSupply}. The total supply should only be read using this function\n *\n * Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other\n * storage values).\n */\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev Sets a new value for the total supply. It should only be set using this function.\n *\n * * Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other\n * storage values).\n */\n function _setTotalSupply(uint256 value) internal virtual {\n _totalSupply = value;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `recipient` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(msg.sender, recipient, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n _approve(msg.sender, spender, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Emits an {Approval} event indicating the updated allowance. This is not\n * required by the EIP. See the note at the beginning of {ERC20}.\n *\n * Requirements:\n *\n * - `sender` and `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n * - the caller must have allowance for ``sender``'s tokens of at least\n * `amount`.\n */\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(\n sender,\n msg.sender,\n _allowances[sender][msg.sender].sub(amount, Errors.ERC20_TRANSFER_EXCEEDS_ALLOWANCE)\n );\n return true;\n }\n\n /**\n * @dev Atomically increases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));\n return true;\n }\n\n /**\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `spender` must have allowance for the caller of at least\n * `subtractedValue`.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n _approve(\n msg.sender,\n spender,\n _allowances[msg.sender][spender].sub(subtractedValue, Errors.ERC20_DECREASED_ALLOWANCE_BELOW_ZERO)\n );\n return true;\n }\n\n /**\n * @dev Moves tokens `amount` from `sender` to `recipient`.\n *\n * This is internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * Requirements:\n *\n * - `sender` cannot be the zero address.\n * - `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n */\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n _require(sender != address(0), Errors.ERC20_TRANSFER_FROM_ZERO_ADDRESS);\n _require(recipient != address(0), Errors.ERC20_TRANSFER_TO_ZERO_ADDRESS);\n\n _beforeTokenTransfer(sender, recipient, amount);\n\n _balances[sender] = _balances[sender].sub(amount, Errors.ERC20_TRANSFER_EXCEEDS_BALANCE);\n _balances[recipient] = _balances[recipient].add(amount);\n emit Transfer(sender, recipient, amount);\n }\n\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n */\n function _mint(address account, uint256 amount) internal virtual {\n _beforeTokenTransfer(address(0), account, amount);\n\n _setTotalSupply(totalSupply().add(amount));\n _balances[account] = _balances[account].add(amount);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the\n * total supply.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n */\n function _burn(address account, uint256 amount) internal virtual {\n _require(account != address(0), Errors.ERC20_BURN_FROM_ZERO_ADDRESS);\n\n _beforeTokenTransfer(account, address(0), amount);\n\n _balances[account] = _balances[account].sub(amount, Errors.ERC20_BURN_EXCEEDS_BALANCE);\n _setTotalSupply(totalSupply().sub(amount));\n emit Transfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n *\n * This internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n */\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n /**\n * @dev Sets {decimals} to a value other than the default one of 18.\n *\n * WARNING: This function should only be called from the constructor. Most\n * applications that interact with token contracts will not expect\n * {decimals} to ever change, and may work incorrectly if it does.\n */\n function _setupDecimals(uint8 decimals_) internal {\n _decimals = decimals_;\n }\n\n /**\n * @dev Hook that is called before any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * will be to transferred to `to`.\n * - when `from` is zero, `amount` tokens will be minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n // solhint-disable-previous-line no-empty-blocks\n }\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\";\n\n/**\n * @title Highly opinionated token implementation\n * @author Balancer Labs\n * @dev\n * - Includes functions to increase and decrease allowance as a workaround\n * for the well-known issue with `approve`:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n * - Allows for 'infinite allowance', where an allowance of 0xff..ff is not\n * decreased by calls to transferFrom\n * - Lets a token holder use `transferFrom` to send their own tokens,\n * without first setting allowance\n * - Emits 'Approval' events whenever allowance is changed by `transferFrom`\n * - Assigns infinite allowance for all token holders to the Vault\n */\ncontract BalancerPoolToken is ERC20Permit {\n IVault private immutable _vault;\n\n constructor(\n string memory tokenName,\n string memory tokenSymbol,\n IVault vault\n ) ERC20(tokenName, tokenSymbol) ERC20Permit(tokenName) {\n _vault = vault;\n }\n\n function getVault() public view returns (IVault) {\n return _vault;\n }\n\n // Overrides\n\n /**\n * @dev Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval.\n *\n * This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this\n * contract inherits.\n */\n function allowance(address owner, address spender) public view override returns (uint256) {\n if (spender == address(getVault())) {\n return uint256(-1);\n } else {\n return super.allowance(owner, spender);\n }\n }\n\n /**\n * @dev Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\n */\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n uint256 currentAllowance = allowance(sender, msg.sender);\n _require(msg.sender == sender || currentAllowance >= amount, Errors.ERC20_TRANSFER_EXCEEDS_ALLOWANCE);\n\n _transfer(sender, recipient, amount);\n\n if (msg.sender != sender && currentAllowance != uint256(-1)) {\n // Because of the previous require, we know that if msg.sender != sender then currentAllowance >= amount\n _approve(sender, msg.sender, currentAllowance - amount);\n }\n\n return true;\n }\n\n /**\n * @dev Override to allow decreasing allowance by more than the current amount (setting it to zero)\n */\n function decreaseAllowance(address spender, uint256 amount) public override returns (bool) {\n uint256 currentAllowance = allowance(msg.sender, spender);\n\n if (amount >= currentAllowance) {\n _approve(msg.sender, spender, 0);\n } else {\n // No risk of underflow due to if condition\n _approve(msg.sender, spender, currentAllowance - amount);\n }\n\n return true;\n }\n\n // Internal functions\n\n function _mintPoolTokens(address recipient, uint256 amount) internal {\n _mint(recipient, amount);\n }\n\n function _burnPoolTokens(address sender, uint256 amount) internal {\n _burn(sender, amount);\n }\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\";\n\n/**\n * @dev Base authorization layer implementation for Pools.\n *\n * The owner account can call some of the permissioned functions - access control of the rest is delegated to the\n * Authorizer. Note that this owner is immutable: more sophisticated permission schemes, such as multiple ownership,\n * granular roles, etc., could be built on top of this by making the owner a smart contract.\n *\n * Access control of all other permissioned functions is delegated to an Authorizer. It is also possible to delegate\n * control of *all* permissioned functions to the Authorizer by setting the owner address to `_DELEGATE_OWNER`.\n */\nabstract contract BasePoolAuthorization is Authentication {\n address private immutable _owner;\n\n address private constant _DELEGATE_OWNER = 0xBA1BA1ba1BA1bA1bA1Ba1BA1ba1BA1bA1ba1ba1B;\n\n constructor(address owner) {\n _owner = owner;\n }\n\n function getOwner() public view returns (address) {\n return _owner;\n }\n\n function getAuthorizer() external view returns (IAuthorizer) {\n return _getAuthorizer();\n }\n\n function _canPerform(bytes32 actionId, address account) internal view override returns (bool) {\n if ((getOwner() != _DELEGATE_OWNER) && _isOwnerOnlyAction(actionId)) {\n // Only the owner can perform \"owner only\" actions, unless the owner is delegated.\n return msg.sender == getOwner();\n } else {\n // Non-owner actions are always processed via the Authorizer, as \"owner only\" ones are when delegated.\n return _getAuthorizer().canPerform(actionId, account, address(this));\n }\n }\n\n function _isOwnerOnlyAction(bytes32) internal view virtual returns (bool) {\n return false;\n }\n\n function _getAuthorizer() internal view virtual returns (IAuthorizer);\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\";\n\nimport \"./BasePoolAuthorization.sol\";\n\n/**\n * @notice Handle storage and state changes for pools that support \"Recovery Mode\".\n *\n * @dev This is intended to provide a safe way to exit any pool during some kind of emergency, to avoid locking funds\n * in the event the pool enters a non-functional state (i.e., some code that normally runs during exits is causing\n * them to revert).\n *\n * Recovery Mode is *not* the same as pausing the pool. The pause function is only available during a short window\n * after factory deployment. Pausing can only be intentionally reversed during a buffer period, and the contract\n * will permanently unpause itself thereafter. Paused pools are completely disabled, in a kind of suspended animation,\n * until they are voluntarily or involuntarily unpaused.\n *\n * By contrast, a privileged account - typically a governance multisig - can place a pool in Recovery Mode at any\n * time, and it is always reversible. The pool is *not* disabled while in this mode: though of course whatever\n * condition prompted the transition to Recovery Mode has likely effectively disabled some functions. Rather,\n * a special \"clean\" exit is enabled, which runs the absolute minimum code necessary to exit proportionally.\n * In particular, stable pools do not attempt to compute the invariant (which is a complex, iterative calculation\n * that can fail in extreme circumstances), and no protocol fees are collected.\n *\n * It is critical to ensure that turning on Recovery Mode would do no harm, if activated maliciously or in error.\n */\nabstract contract RecoveryMode is IRecoveryMode, BasePoolAuthorization {\n using FixedPoint for uint256;\n using BasePoolUserData for bytes;\n\n /**\n * @dev Reverts if the contract is in Recovery Mode.\n */\n modifier whenNotInRecoveryMode() {\n _ensureNotInRecoveryMode();\n _;\n }\n\n /**\n * @notice Enable recovery mode, which enables a special safe exit path for LPs.\n * @dev Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may\n * perform certain operations in a \"safer\" manner that is less likely to fail, in an attempt to keep the pool\n * running, even in a pathological state. Unlike the Pause operation, which is only available during a short window\n * after factory deployment, Recovery Mode can always be enabled.\n */\n function enableRecoveryMode() external override authenticate {\n _setRecoveryMode(true);\n }\n\n /**\n * @notice Disable recovery mode, which disables the special safe exit path for LPs.\n * @dev Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly\n * necessary.\n *\n * This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n *\n * This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n * an exit, because the state of the pool could be out of sync with the state of the Vault.\n * `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively\n * protecting this function.\n *\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n */\n function disableRecoveryMode() external override authenticate {\n _setRecoveryMode(false);\n }\n\n // Defer implementation for functions that require storage\n\n /**\n * @notice Override to check storage and return whether the pool is in Recovery Mode\n */\n function inRecoveryMode() public view virtual override returns (bool);\n\n /**\n * @dev Override to update storage and emit the event\n *\n * No complex code or external calls that could fail should be placed in the implementations,\n * which could jeopardize the ability to enable and disable Recovery Mode.\n */\n function _setRecoveryMode(bool enabled) internal virtual;\n\n /**\n * @dev Reverts if the contract is not in Recovery Mode.\n */\n function _ensureInRecoveryMode() internal view {\n _require(inRecoveryMode(), Errors.NOT_IN_RECOVERY_MODE);\n }\n\n /**\n * @dev Reverts if the contract is in Recovery Mode.\n */\n function _ensureNotInRecoveryMode() internal view {\n _require(!inRecoveryMode(), Errors.IN_RECOVERY_MODE);\n }\n\n /**\n * @dev A minimal proportional exit, suitable as is for most pools: though not for pools with preminted BPT\n * or other special considerations. Designed to be overridden if a pool needs to do extra processing,\n * such as scaling a stored invariant, or caching the new total supply.\n *\n * No complex code or external calls should be made in derived contracts that override this!\n */\n function _doRecoveryModeExit(\n uint256[] memory balances,\n uint256 totalSupply,\n bytes memory userData\n ) internal virtual returns (uint256, uint256[] memory) {\n uint256 bptAmountIn = userData.recoveryModeExit();\n\n uint256[] memory amountsOut = _computeProportionalAmountsOut(balances, totalSupply, bptAmountIn);\n\n return (bptAmountIn, amountsOut);\n }\n\n function _computeProportionalAmountsOut(\n uint256[] memory balances,\n uint256 totalSupply,\n uint256 bptAmountIn\n ) internal pure returns (uint256[] memory amountsOut) {\n /**********************************************************************************************\n // exactBPTInForTokensOut //\n // (per token) //\n // aO = tokenAmountOut / bptIn \\ //\n // b = tokenBalance a0 = b * | --------------------- | //\n // bptIn = bptAmountIn \\ bptTotalSupply / //\n // bpt = bptTotalSupply //\n **********************************************************************************************/\n\n // Since we're computing an amount out, we round down overall. This means rounding down on both the\n // multiplication and division.\n\n uint256 bptRatio = bptAmountIn.divDown(totalSupply);\n\n amountsOut = new uint256[](balances.length);\n for (uint256 i = 0; i < balances.length; i++) {\n amountsOut[i] = balances[i].mulDown(bptRatio);\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeMath {\n /**\n * @dev Returns the addition of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n _require(c >= a, Errors.ADD_OVERFLOW);\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n return sub(a, b, Errors.SUB_OVERFLOW);\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(\n uint256 a,\n uint256 b,\n uint256 errorCode\n ) internal pure returns (uint256) {\n _require(b <= a, errorCode);\n uint256 c = a - b;\n\n return c;\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\";\n\nimport \"./ERC20.sol\";\nimport \"../helpers/EOASignaturesValidator.sol\";\n\n/**\n * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * _Available since v3.4._\n */\nabstract contract ERC20Permit is ERC20, IERC20Permit, EOASignaturesValidator {\n // solhint-disable-next-line var-name-mixedcase\n bytes32 private constant _PERMIT_TYPEHASH = keccak256(\n \"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\"\n );\n\n /**\n * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\"1\"`.\n *\n * It's a good idea to use the same `name` that is defined as the ERC20 token name.\n */\n constructor(string memory name) EIP712(name, \"1\") {\n // solhint-disable-previous-line no-empty-blocks\n }\n\n /**\n * @dev See {IERC20Permit-permit}.\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) public virtual override {\n bytes32 structHash = keccak256(\n abi.encode(_PERMIT_TYPEHASH, owner, spender, value, getNextNonce(owner), deadline)\n );\n\n _ensureValidSignature(owner, structHash, _toArraySignature(v, r, s), deadline, Errors.INVALID_SIGNATURE);\n\n _approve(owner, spender, value);\n }\n\n /**\n * @dev See {IERC20Permit-nonces}.\n */\n function nonces(address owner) public view override returns (uint256) {\n return getNextNonce(owner);\n }\n\n /**\n * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view override returns (bytes32) {\n return getDomainSeparator();\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over `owner`'s tokens,\n * given `owner`'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for `permit`, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\";\n\nimport \"../openzeppelin/EIP712.sol\";\n\n/**\n * @dev Utility for signing Solidity function calls.\n */\nabstract contract EOASignaturesValidator is ISignaturesValidator, EIP712 {\n // Replay attack prevention for each account.\n mapping(address => uint256) internal _nextNonce;\n\n function getDomainSeparator() public view override returns (bytes32) {\n return _domainSeparatorV4();\n }\n\n function getNextNonce(address account) public view override returns (uint256) {\n return _nextNonce[account];\n }\n\n function _ensureValidSignature(\n address account,\n bytes32 structHash,\n bytes memory signature,\n uint256 errorCode\n ) internal {\n return _ensureValidSignature(account, structHash, signature, type(uint256).max, errorCode);\n }\n\n function _ensureValidSignature(\n address account,\n bytes32 structHash,\n bytes memory signature,\n uint256 deadline,\n uint256 errorCode\n ) internal {\n bytes32 digest = _hashTypedDataV4(structHash);\n _require(_isValidSignature(account, digest, signature), errorCode);\n\n // We could check for the deadline before validating the signature, but this leads to saner error processing (as\n // we only care about expired deadlines if the signature is correct) and only affects the gas cost of the revert\n // scenario, which will only occur infrequently, if ever.\n // The deadline is timestamp-based: it should not be relied upon for sub-minute accuracy.\n // solhint-disable-next-line not-rely-on-time\n _require(deadline >= block.timestamp, Errors.EXPIRED_SIGNATURE);\n\n // We only advance the nonce after validating the signature. This is irrelevant for this module, but it can be\n // important in derived contracts that override _isValidSignature (e.g. SignaturesValidator), as we want for\n // the observable state to still have the current nonce as the next valid one.\n _nextNonce[account] += 1;\n }\n\n function _isValidSignature(\n address account,\n bytes32 digest,\n bytes memory signature\n ) internal view virtual returns (bool) {\n _require(signature.length == 65, Errors.MALFORMED_SIGNATURE);\n\n bytes32 r;\n bytes32 s;\n uint8 v;\n\n // ecrecover takes the r, s and v signature parameters, and the only way to get them is to use assembly.\n // solhint-disable-next-line no-inline-assembly\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n\n address recoveredAddress = ecrecover(digest, v, r, s);\n\n // ecrecover returns the zero address on recover failure, so we need to handle that explicitly.\n return (recoveredAddress != address(0) && recoveredAddress == account);\n }\n\n function _toArraySignature(\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (bytes memory) {\n bytes memory signature = new bytes(65);\n // solhint-disable-next-line no-inline-assembly\n assembly {\n mstore(add(signature, 32), r)\n mstore(add(signature, 64), s)\n mstore8(add(signature, 96), v)\n }\n\n return signature;\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\n *\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\n *\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\n * ({_hashTypedDataV4}).\n *\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\n * the chain id to protect against replay attacks on an eventual fork of the chain.\n *\n * NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\n *\n * _Available since v3.4._\n */\nabstract contract EIP712 {\n /* solhint-disable var-name-mixedcase */\n bytes32 private immutable _HASHED_NAME;\n bytes32 private immutable _HASHED_VERSION;\n bytes32 private immutable _TYPE_HASH;\n\n /* solhint-enable var-name-mixedcase */\n\n /**\n * @dev Initializes the domain separator and parameter caches.\n *\n * The meaning of `name` and `version` is specified in\n * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\n *\n * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\n * - `version`: the current major version of the signing domain.\n *\n * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\n * contract upgrade].\n */\n constructor(string memory name, string memory version) {\n _HASHED_NAME = keccak256(bytes(name));\n _HASHED_VERSION = keccak256(bytes(version));\n _TYPE_HASH = keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view virtual returns (bytes32) {\n return keccak256(abi.encode(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION, _getChainId(), address(this)));\n }\n\n /**\n * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\n * function returns the hash of the fully encoded EIP712 message for this domain.\n *\n * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\n *\n * ```solidity\n * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\n * keccak256(\"Mail(address to,string contents)\"),\n * mailTo,\n * keccak256(bytes(mailContents))\n * )));\n * address signer = ECDSA.recover(digest, signature);\n * ```\n */\n function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\n return keccak256(abi.encodePacked(\"\\x19\\x01\", _domainSeparatorV4(), structHash));\n }\n\n function _getChainId() private view returns (uint256 chainId) {\n // Silence state mutability warning without generating bytecode.\n // See https://github.com/ethereum/solidity/issues/10090#issuecomment-741789128 and\n // https://github.com/ethereum/solidity/issues/2691\n this;\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n chainId := chainid()\n }\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nlibrary BasePoolUserData {\n // Special ExitKind for all pools, used in Recovery Mode. Use the max 8-bit value to prevent conflicts\n // with future additions to the ExitKind enums (or any front-end code that maps to existing values)\n uint8 public constant RECOVERY_MODE_EXIT_KIND = 255;\n\n // Return true if this is the special exit kind.\n function isRecoveryModeExitKind(bytes memory self) internal pure returns (bool) {\n // Check for the \"no data\" case, or abi.decode would revert\n return self.length > 0 && abi.decode(self, (uint8)) == RECOVERY_MODE_EXIT_KIND;\n }\n\n // Parse the bptAmountIn out of the userData\n function recoveryModeExit(bytes memory self) internal pure returns (uint256 bptAmountIn) {\n (, bptAmountIn) = abi.decode(self, (uint8, uint256));\n }\n}\n"
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\n/**\n * @dev Interface for the RecoveryMode module.\n */\ninterface IRecoveryMode {\n /**\n * @dev Emitted when the Recovery Mode status changes.\n */\n event RecoveryModeStateChanged(bool enabled);\n\n /**\n * @notice Enables Recovery Mode in the Pool, disabling protocol fee collection and allowing for safe proportional\n * exits with low computational complexity and no dependencies.\n */\n function enableRecoveryMode() external;\n\n /**\n * @notice Disables Recovery Mode in the Pool, restoring protocol fee collection and disallowing proportional exits.\n */\n function disableRecoveryMode() external;\n\n /**\n * @notice Returns true if the Pool is in Recovery Mode.\n */\n function inRecoveryMode() external view returns (bool);\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\nimport \"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\";\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol\";\n\nimport \"../RecoveryMode.sol\";\n\n/**\n * @dev The Vault does not provide the protocol swap fee percentage in swap hooks (as swaps don't typically need this\n * value), so for swaps that need this value, we would have to to fetch it ourselves from the\n * ProtocolFeePercentagesProvider. Additionally, other protocol fee types (such as Yield or AUM) can only be obtained\n * by making said call.\n *\n * However, these values change so rarely that it doesn't make sense to perform the required calls to get the current\n * values in every single user interaction. Instead, we keep a local copy that can be permissionlessly updated by anyone\n * with the real value. We also pack these values together, performing a single storage read to get them all.\n *\n * When initialized with a special sentinel value, the swap fee is delegated, meaning the mutable protocol swap fee\n * cache is set to the current value stored in the ProtocolFeePercentagesProvider, and can be updated by anyone with a\n * call to `updateProtocolFeePercentageCache`. Any other value means the protocol swap fee is fixed, so it is instead\n * stored in the immutable `_fixedProtocolSwapFeePercentage`.\n */\nabstract contract ProtocolFeeCache is RecoveryMode {\n using SafeCast for uint256;\n\n IProtocolFeePercentagesProvider private immutable _protocolFeeProvider;\n\n // Protocol Fee Percentages can never be larger than 100% (1e18), which fits in ~59 bits, so using 64 for each type\n // is sufficient.\n struct FeeTypeCache {\n uint64 swapFee;\n uint64 yieldFee;\n uint64 aumFee;\n }\n\n FeeTypeCache private _cache;\n\n event ProtocolFeePercentageCacheUpdated(uint256 indexed feeType, uint256 protocolFeePercentage);\n\n // Swap fees can be set to a fixed value at construction, or delegated to the ProtocolFeePercentagesProvider if\n // passing the special sentinel value.\n uint256 public constant DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL = type(uint256).max;\n\n bool private immutable _delegatedProtocolSwapFees;\n\n // Only valid when `_delegatedProtocolSwapFees` is false\n uint256 private immutable _fixedProtocolSwapFeePercentage;\n\n constructor(IProtocolFeePercentagesProvider protocolFeeProvider, uint256 protocolSwapFeePercentage) {\n // Protocol swap fees are delegated to the value reported by the ProtocolFeePercentagesProvider if the sentinel\n // value is passed.\n bool delegatedProtocolSwapFees = protocolSwapFeePercentage == DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL;\n\n _delegatedProtocolSwapFees = delegatedProtocolSwapFees;\n _protocolFeeProvider = protocolFeeProvider;\n\n _updateProtocolFeeCache(protocolFeeProvider, ProtocolFeeType.YIELD);\n _updateProtocolFeeCache(protocolFeeProvider, ProtocolFeeType.AUM);\n\n if (delegatedProtocolSwapFees) {\n _updateProtocolFeeCache(protocolFeeProvider, ProtocolFeeType.SWAP);\n } else {\n _require(\n protocolSwapFeePercentage <= protocolFeeProvider.getFeeTypeMaximumPercentage(ProtocolFeeType.SWAP),\n Errors.SWAP_FEE_PERCENTAGE_TOO_HIGH\n );\n\n // We cannot set `_fixedProtocolSwapFeePercentage` here due to it being immutable so instead we must set it\n // in the main function scope with a value based on whether protocol fees are delegated.\n\n // Emit an event as we do in `_updateProtocolFeeCache` to appear the same to offchain indexers.\n emit ProtocolFeePercentageCacheUpdated(ProtocolFeeType.SWAP, protocolSwapFeePercentage);\n }\n\n // As `_fixedProtocolSwapFeePercentage` is immutable we must set a value, but just set to zero if it's not used.\n _fixedProtocolSwapFeePercentage = delegatedProtocolSwapFees ? 0 : protocolSwapFeePercentage;\n }\n\n /**\n * @dev Returns the cached protocol fee percentage. If `getProtocolSwapFeeDelegation()` is false, this value is\n * immutable for swap fee queries. Alternatively, it will track the global fee percentage set in the\n * ProtocolFeePercentagesProvider.\n */\n function getProtocolFeePercentageCache(uint256 feeType) public view returns (uint256) {\n if (inRecoveryMode()) {\n return 0;\n }\n\n if (feeType == ProtocolFeeType.SWAP) {\n return getProtocolSwapFeeDelegation() ? _cache.swapFee : _fixedProtocolSwapFeePercentage;\n } else if (feeType == ProtocolFeeType.YIELD) {\n return _cache.yieldFee;\n } else if (feeType == ProtocolFeeType.AUM) {\n return _cache.aumFee;\n } else {\n _revert(Errors.UNHANDLED_FEE_TYPE);\n }\n }\n\n /**\n * @dev Can be called by anyone to update the cached fee percentages (swap fee is only updated when delegated).\n * Updates the cache to the latest value set by governance.\n *\n * This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n *\n * This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n * an exit, because the state of the pool could be out of sync with the state of the Vault.\n * `_beforeProtocolFeeCacheUpdate` will revert when called from such a context for composable stable pools,\n * effectively protecting this function.\n *\n * See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n */\n function updateProtocolFeePercentageCache() external {\n _beforeProtocolFeeCacheUpdate();\n\n if (getProtocolSwapFeeDelegation()) {\n _updateProtocolFeeCache(_protocolFeeProvider, ProtocolFeeType.SWAP);\n }\n\n _updateProtocolFeeCache(_protocolFeeProvider, ProtocolFeeType.YIELD);\n _updateProtocolFeeCache(_protocolFeeProvider, ProtocolFeeType.AUM);\n }\n\n /**\n * @dev Override in derived contracts to perform some action before the cache is updated. This is typically relevant\n * to Pools that incur protocol debt between operations. To avoid altering the amount due retroactively, this debt\n * needs to be paid before the fee percentages change.\n */\n function _beforeProtocolFeeCacheUpdate() internal virtual {}\n\n /**\n * @dev Returns whether this Pool tracks protocol swap fee changes in the IProtocolFeePercentagesProvider.\n */\n function getProtocolSwapFeeDelegation() public view returns (bool) {\n return _delegatedProtocolSwapFees;\n }\n\n function _updateProtocolFeeCache(IProtocolFeePercentagesProvider protocolFeeProvider, uint256 feeType) private {\n uint256 currentValue = protocolFeeProvider.getFeeTypePercentage(feeType);\n\n if (feeType == ProtocolFeeType.SWAP) {\n _cache.swapFee = currentValue.toUint64();\n } else if (feeType == ProtocolFeeType.YIELD) {\n _cache.yieldFee = currentValue.toUint64();\n } else if (feeType == ProtocolFeeType.AUM) {\n _cache.aumFee = currentValue.toUint64();\n } else {\n _revert(Errors.UNHANDLED_FEE_TYPE);\n }\n\n emit ProtocolFeePercentageCacheUpdated(feeType, currentValue);\n }\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\";\nimport \"./ProtocolFees.sol\";\n\nlibrary InvariantGrowthProtocolSwapFees {\n using FixedPoint for uint256;\n\n function getProtocolOwnershipPercentage(\n uint256 invariantGrowthRatio,\n uint256 supplyGrowthRatio,\n uint256 protocolSwapFeePercentage\n ) internal pure returns (uint256) {\n // Joins and exits are symmetrical; for simplicity, we consider a join, where the invariant and supply\n // both increase.\n\n // |-------------------------|-- original invariant * invariantGrowthRatio\n // | increase from fees |\n // |-------------------------|-- original invariant * supply growth ratio (fee-less invariant)\n // | |\n // | increase from balances |\n // |-------------------------|-- original invariant\n // | |\n // | | |------------------|-- currentSupply\n // | | | BPT minted |\n // | | |------------------|-- previousSupply\n // | original invariant | | original supply |\n // |_________________________| |__________________|\n //\n // If the join is proportional, the invariant and supply will likewise increase proportionally,\n // so the growth ratios (invariantGrowthRatio / supplyGrowthRatio) will be equal. In this case, we do not charge\n // any protocol fees.\n // We also charge no protocol fees in the case where `invariantGrowthRatio < supplyGrowthRatio` to avoid\n // potential underflows, however this should only occur in extremely low volume actions due solely to rounding\n // error.\n\n if ((supplyGrowthRatio >= invariantGrowthRatio) || (protocolSwapFeePercentage == 0)) return 0;\n\n // If the join is non-proportional, the supply increase will be proportionally less than the invariant increase,\n // since the BPT minted will be based on fewer tokens (because swap fees are not included). So the supply growth\n // is due entirely to the balance changes, while the invariant growth also includes swap fees.\n //\n // To isolate the amount of increase by fees then, we multiply the original invariant by the supply growth\n // ratio to get the \"feeless invariant\". The difference between the final invariant and this value is then\n // the amount of the invariant due to fees, which we convert to a percentage by normalizing against the\n // final invariant. This is expressed as the expression below:\n //\n // invariantGrowthFromFees = currentInvariant - supplyGrowthRatio * previousInvariant\n //\n // We then divide through by current invariant so the LHS can be identified as the fraction of the pool which\n // is made up of accumulated swap fees.\n //\n // swapFeesPercentage = 1 - supplyGrowthRatio * previousInvariant / currentInvariant\n //\n // We then define `invariantGrowthRatio` in a similar fashion to `supplyGrowthRatio` to give the result:\n //\n // swapFeesPercentage = 1 - supplyGrowthRatio / invariantGrowthRatio\n //\n // Using this form allows us to consider only the ratios of the two invariants, rather than their absolute\n // values: a useful property, as this is sometimes easier than calculating the full invariant twice.\n\n // We've already checked that `supplyGrowthRatio` is smaller than `invariantGrowthRatio`, and hence their ratio\n // smaller than FixedPoint.ONE, allowing for unchecked arithmetic.\n uint256 swapFeesPercentage = FixedPoint.ONE - supplyGrowthRatio.divDown(invariantGrowthRatio);\n\n // We then multiply by the protocol swap fee percentage to get the fraction of the pool which the protocol\n // should own once fees have been collected.\n return swapFeesPercentage.mulDown(protocolSwapFeePercentage);\n }\n\n function calcDueProtocolFees(\n uint256 invariantGrowthRatio,\n uint256 previousSupply,\n uint256 currentSupply,\n uint256 protocolSwapFeePercentage\n ) internal pure returns (uint256) {\n uint256 protocolOwnershipPercentage = getProtocolOwnershipPercentage(\n invariantGrowthRatio,\n currentSupply.divDown(previousSupply),\n protocolSwapFeePercentage\n );\n\n return ProtocolFees.bptForPoolOwnershipPercentage(currentSupply, protocolOwnershipPercentage);\n }\n}\n"
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol": {
+ "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\";\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n *\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n * all math on `uint256` and `int256` and then downcasting.\n */\nlibrary SafeCast {\n /**\n * @dev Converts an unsigned uint256 into a signed int256.\n *\n * Requirements:\n *\n * - input must be less than or equal to maxInt256.\n */\n function toInt256(uint256 value) internal pure returns (int256) {\n _require(value >> 255 == 0, Errors.SAFE_CAST_VALUE_CANT_FIT_INT256);\n return int256(value);\n }\n\n /**\n * @dev Converts an unsigned uint256 into an unsigned uint64.\n *\n * Requirements:\n *\n * - input must be less than or equal to maxUint64.\n */\n function toUint64(uint256 value) internal pure returns (uint64) {\n _require(value <= type(uint64).max, Errors.SAFE_CAST_VALUE_CANT_FIT_UINT64);\n return uint64(value);\n }\n}\n"
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol": {
+ "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU General Public License for more details.\n\n// You should have received a copy of the GNU General Public License\n// along with this program. If not, see .\n\npragma solidity ^0.7.0;\n\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\";\nimport \"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\";\n\nlibrary ProtocolFees {\n using FixedPoint for uint256;\n\n /**\n * @dev Calculates the amount of BPT necessary to give ownership of a given percentage of the Pool.\n * Note that this function reverts if `poolPercentage` >= 100%, it's expected that the caller will enforce this.\n * @param totalSupply - The total supply of the pool prior to minting BPT.\n * @param poolOwnershipPercentage - The desired ownership percentage of the pool to have as a result of minting BPT.\n * @return bptAmount - The amount of BPT to mint such that it is `poolPercentage` of the resultant total supply.\n */\n function bptForPoolOwnershipPercentage(uint256 totalSupply, uint256 poolOwnershipPercentage)\n internal\n pure\n returns (uint256)\n {\n // If we mint some amount `bptAmount` of BPT then the percentage ownership of the pool this grants is given by:\n // `poolOwnershipPercentage = bptAmount / (totalSupply + bptAmount)`.\n // Solving for `bptAmount`, we arrive at:\n // `bptAmount = totalSupply * poolOwnershipPercentage / (1 - poolOwnershipPercentage)`.\n return Math.divDown(Math.mul(totalSupply, poolOwnershipPercentage), poolOwnershipPercentage.complement());\n }\n}\n"
+ }
+ },
+ "settings": {
+ "optimizer": {
+ "enabled": true,
+ "runs": 800
+ },
+ "outputSelection": {
+ "*": {
+ "*": [
+ "abi",
+ "evm.bytecode",
+ "evm.deployedBytecode",
+ "evm.methodIdentifiers",
+ "metadata"
+ ],
+ "": [
+ "ast"
+ ]
+ }
+ }
+ }
+ },
+ "output": {
+ "contracts": {
+ "@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol": {
+ "IAuthorizerAdaptor": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "performAction",
+ "outputs": [
+ {
+ "internalType": "bytes",
+ "name": "",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getVault()": "8d928af8",
+ "performAction(address,bytes)": "4036176a"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"performAction\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"performAction(address,bytes)\":{\"params\":{\"data\":\"- Calldata to be sent to the target contract\",\"target\":\"- Address of the contract to be called\"},\"returns\":{\"_0\":\"The bytes encoded return value from the performed function call\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getAuthorizer()\":{\"notice\":\"Returns the Authorizer\"},\"getVault()\":{\"notice\":\"Returns the Balancer Vault\"},\"performAction(address,bytes)\":{\"notice\":\"Performs an arbitrary function call on a target contract, provided the caller is authorized to do so.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol\":\"IAuthorizerAdaptor\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol\":{\"keccak256\":\"0x1e5bca6b4fb897adc2458f65aa7abed8499dcf146ac5872c62544d91516867cb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://faa81254fe029b7ccd05635d6919da30bcb2114026996d10f6b51fc0e1f5b850\",\"dweb:/ipfs/Qmax3d2kq51xjt6hjYgskuXSrsB3fBZ4LAxBPRDDzbg8XD\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol": {
+ "StablePoolUserData": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122090092331de0e9ea503f02917f96862533bc721dc55dd8ec7de9945e8777ccf6f64736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP1 MULMOD 0x23 BALANCE 0xDE 0xE SWAP15 0xA5 SUB CREATE 0x29 OR 0xF9 PUSH9 0x62533BC721DC55DD8E 0xC7 0xDE SWAP10 GASLIMIT 0xE8 PUSH24 0x7CCF6F64736F6C6343000701003300000000000000000000 ",
+ "sourceMap": "713:2017:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122090092331de0e9ea503f02917f96862533bc721dc55dd8ec7de9945e8777ccf6f64736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP1 MULMOD 0x23 BALANCE 0xDE 0xE SWAP15 0xA5 SUB CREATE 0x29 OR 0xF9 PUSH9 0x62533BC721DC55DD8E 0xC7 0xDE SWAP10 GASLIMIT 0xE8 PUSH24 0x7CCF6F64736F6C6343000701003300000000000000000000 ",
+ "sourceMap": "713:2017:1:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol\":\"StablePoolUserData\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol\":{\"keccak256\":\"0x809d1ab36b1c4190aeffd3bad9c8a54880a9524c679e770ef185323dafaf6833\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3a7d7e901eafecae0f4a8829bbb952cda0928f55290d368ab1370c92284d1469\",\"dweb:/ipfs/QmWDpNu8sZEwK3nmetwoaXrASta5RWqGZb7Z4TqHnMu7a1\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol": {
+ "BasePoolUserData": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "RECOVERY_MODE_EXIT_KIND",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "608f610024600b82828239805160001a607314601757fe5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c806309564cb1146038575b600080fd5b603e6054565b6040805160ff9092168252519081900360200190f35b60ff8156fea26469706673582212204175ee0b7b5d669a7c8da3ad8770f35bc05d3857a44e0bffe44acc6fa24d431c64736f6c63430007010033",
+ "opcodes": "PUSH1 0x8F PUSH2 0x24 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x17 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x33 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x9564CB1 EQ PUSH1 0x38 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3E PUSH1 0x54 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0xFF DUP2 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 COINBASE PUSH22 0xEE0B7B5D669A7C8DA3AD8770F35BC05D3857A44E0BFF 0xE4 0x4A 0xCC PUSH16 0xA24D431C64736F6C6343000701003300 ",
+ "sourceMap": "713:811:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "730000000000000000000000000000000000000000301460806040526004361060335760003560e01c806309564cb1146038575b600080fd5b603e6054565b6040805160ff9092168252519081900360200190f35b60ff8156fea26469706673582212204175ee0b7b5d669a7c8da3ad8770f35bc05d3857a44e0bffe44acc6fa24d431c64736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x33 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x9564CB1 EQ PUSH1 0x38 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3E PUSH1 0x54 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH1 0xFF DUP2 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 COINBASE PUSH22 0xEE0B7B5D669A7C8DA3AD8770F35BC05D3857A44E0BFF 0xE4 0x4A 0xCC PUSH16 0xA24D431C64736F6C6343000701003300 ",
+ "sourceMap": "713:811:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;955:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;1003:3;955:51;:::o"
+ },
+ "methodIdentifiers": {
+ "RECOVERY_MODE_EXIT_KIND()": "09564cb1"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"RECOVERY_MODE_EXIT_KIND\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":\"BasePoolUserData\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol": {
+ "IAssetManager": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "Rebalance",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "capitalOut",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "getAUM",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "getPoolBalances",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "poolCash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "poolManaged",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getToken",
+ "outputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "maxInvestableBalance",
+ "outputs": [
+ {
+ "internalType": "int256",
+ "name": "",
+ "type": "int256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "bool",
+ "name": "force",
+ "type": "bool"
+ }
+ ],
+ "name": "rebalance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "bytes",
+ "name": "config",
+ "type": "bytes"
+ }
+ ],
+ "name": "setConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "managed",
+ "type": "uint256"
+ }
+ ],
+ "name": "shouldRebalance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "updateBalanceOfPool",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "capitalOut(bytes32,uint256)": "2b13a509",
+ "getAUM(bytes32)": "dc99fc21",
+ "getPoolBalances(bytes32)": "76bad529",
+ "getToken()": "21df0da7",
+ "maxInvestableBalance(bytes32)": "ea748923",
+ "rebalance(bytes32,bool)": "4c936d8a",
+ "setConfig(bytes32,bytes)": "18e736d4",
+ "shouldRebalance(uint256,uint256)": "9c64ad30",
+ "updateBalanceOfPool(bytes32)": "0b5ff6b9"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"Rebalance\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"capitalOut\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"getAUM\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"getPoolBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"poolCash\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"poolManaged\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"maxInvestableBalance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"force\",\"type\":\"bool\"}],\"name\":\"rebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"config\",\"type\":\"bytes\"}],\"name\":\"setConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cash\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"managed\",\"type\":\"uint256\"}],\"name\":\"shouldRebalance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"updateBalanceOfPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"capitalOut(bytes32,uint256)\":{\"params\":{\"amount\":\"- the amount of tokens to withdraw back to the pool\",\"poolId\":\"- the poolId of the pool to withdraw funds back to\"}},\"getAUM(bytes32)\":{\"returns\":{\"_0\":\"the current assets under management of this asset manager\"}},\"getPoolBalances(bytes32)\":{\"returns\":{\"poolCash\":\"- The up-to-date cash balance of the pool\",\"poolManaged\":\"- The up-to-date managed balance of the pool\"}},\"maxInvestableBalance(bytes32)\":{\"returns\":{\"_0\":\"The difference in tokens between the target investment and the currently invested amount (i.e. the amount that can be invested)\"}},\"rebalance(bytes32,bool)\":{\"params\":{\"force\":\"- a boolean representing whether a rebalance should be forced even when the pool is near balance\",\"poolId\":\"- the poolId of the pool to be rebalanced\"}}},\"version\":1},\"userdoc\":{\"events\":{\"Rebalance(bytes32)\":{\"notice\":\"Emitted when asset manager is rebalanced\"}},\"kind\":\"user\",\"methods\":{\"capitalOut(bytes32,uint256)\":{\"notice\":\"allows an authorized rebalancer to remove capital to facilitate large withdrawals\"},\"getToken()\":{\"notice\":\"Returns the asset manager's token\"},\"rebalance(bytes32,bool)\":{\"notice\":\"Rebalances funds between the pool and the asset manager to maintain target investment percentage.\"},\"setConfig(bytes32,bytes)\":{\"notice\":\"Sets the config\"},\"shouldRebalance(uint256,uint256)\":{\"notice\":\"Determines whether the pool should rebalance given the provided balances\"},\"updateBalanceOfPool(bytes32)\":{\"notice\":\"Updates the Vault on the value of the pool's investment returns\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":\"IAssetManager\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol": {
+ "IBasePoolFactory": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "disable",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isDisabled",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "pool",
+ "type": "address"
+ }
+ ],
+ "name": "isPoolFromFactory",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "disable()": "2f2770db",
+ "getActionId(bytes4)": "851c1bb3",
+ "isDisabled()": "6c57f5a9",
+ "isPoolFromFactory(address)": "6634b753"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"disable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isDisabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"isPoolFromFactory\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"disable()\":{\"details\":\"Disable the factory, preventing the creation of more pools. Already existing pools are unaffected. Once a factory is disabled, it cannot be re-enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"isDisabled()\":{\"details\":\"Check whether the derived factory has been disabled.\"},\"isPoolFromFactory(address)\":{\"details\":\"Returns true if `pool` was created by this factory.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol\":\"IBasePoolFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol\":{\"keccak256\":\"0xf5cf4f466955514781a7a7c571b905ed20168ea5b352963bcf5dd2d8fd4fd0e9\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://5e0c9405a058b809ceee4d89187c67926f20e2ec5cf9f5b77d14226780674b27\",\"dweb:/ipfs/QmXCbDCthmF34C7bzHMS15x8jV7kBXgmGe2Xwoop1b9NQ4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol": {
+ "IControlledPool": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "poolConfig",
+ "type": "bytes"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "setAssetManagerPoolConfig(address,bytes)": "50dd6ed9",
+ "setSwapFeePercentage(uint256)": "38e9922e"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"name\":\"setAssetManagerPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":\"IControlledPool\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol": {
+ "IPoolVersion": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "getPoolVersion",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getPoolVersion()": "3f819b6f"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getPoolVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getPoolVersion()\":{\"details\":\"Returns a JSON representation of the deployed pool version containing name, version number and task ID. This is typically only useful in complex Pool deployment schemes, where multiple subsystems need to know about each other. Note that this value will only be updated at factory creation time.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Simple interface to retrieve the version of pools deployed by a pool factory.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol\":\"IPoolVersion\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol\":{\"keccak256\":\"0xa4d02a91c12fb22b14ef4180dfc3909f8de5d0fc0fdbffd437dc5b5bba9b3920\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://b830017902f0da9ba73219585e18d31ca226af95900724961090be9bc3627d0a\",\"dweb:/ipfs/QmUTon5DFuK81ghM1baGD1Tq8izYM5iPzvVqkmRNuESWdF\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol": {
+ "IRateProvider": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "getRate",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getRate()": "679aefce"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getRate()\":{\"details\":\"Returns an 18 decimal fixed point number that is the exchange rate of the token to some other underlying token. The meaning of this rate depends on the context.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\":\"IRateProvider\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\":{\"keccak256\":\"0x9f35f065d838cfeffaa7d085b3c204f9cdb8ab32b4b843957a851a55339980c1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://f8c0057b70b373133433619b1ee98b58bd8d1082c9d8bda7e9837ca3b46f6cd6\",\"dweb:/ipfs/QmVoCVhSnnknSavEZV1FY3hVkivuBqS2Crk6B1dHTXyYLt\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol": {
+ "IRecoveryMode": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "inRecoveryMode()": "b35056b8"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for the RecoveryMode module.\",\"events\":{\"RecoveryModeStateChanged(bool)\":{\"details\":\"Emitted when the Recovery Mode status changes.\"}},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disables Recovery Mode in the Pool, restoring protocol fee collection and disallowing proportional exits.\"},\"enableRecoveryMode()\":{\"notice\":\"Enables Recovery Mode in the Pool, disabling protocol fee collection and allowing for safe proportional exits with low computational complexity and no dependencies.\"},\"inRecoveryMode()\":{\"notice\":\"Returns true if the Pool is in Recovery Mode.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":\"IRecoveryMode\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol": {
+ "IVersion": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "version",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "version()": "54fd4d50"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"version()\":{\"details\":\"Returns a JSON representation of the contract version containing name, version number and task ID.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Simple interface to retrieve the version of a deployed contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol\":\"IVersion\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol\":{\"keccak256\":\"0x19103ec3d00cbdbe25ef95721ba669cfcfaf046a60447a1b49986026e61fc57c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://6765d86f532928df96af43990b5bccd20a0d2965707cb5e9d5afda9580be3fe4\",\"dweb:/ipfs/QmZmhVpWcGpFk9u4iy4srKs248c9FdAzjjmdMATexpqa6j\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol": {
+ "Errors": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203afa266f55f404ffb58398e925992d26fb09583acc4264c9f46d4a125e176a9f64736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 GASPRICE STATICCALL 0x26 PUSH16 0x55F404FFB58398E925992D26FB09583A 0xCC TIMESTAMP PUSH5 0xC9F46D4A12 0x5E OR PUSH11 0x9F64736F6C634300070100 CALLER ",
+ "sourceMap": "5050:9524:10:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203afa266f55f404ffb58398e925992d26fb09583acc4264c9f46d4a125e176a9f64736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 GASPRICE STATICCALL 0x26 PUSH16 0x55F404FFB58398E925992D26FB09583A 0xCC TIMESTAMP PUSH5 0xC9F46D4A12 0x5E OR PUSH11 0x9F64736F6C634300070100 CALLER ",
+ "sourceMap": "5050:9524:10:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":\"Errors\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol": {
+ "IAuthentication": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getActionId(bytes4)": "851c1bb3"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":\"IAuthentication\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol": {
+ "ISignaturesValidator": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "user",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for the SignatureValidator helper, used to support meta-transactions.\",\"kind\":\"dev\",\"methods\":{\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getNextNonce(address)\":{\"details\":\"Returns the next nonce used by an address to sign messages.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":\"ISignaturesValidator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol": {
+ "ITemporarilyPausable": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getPausedState()": "1c0de051"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for the TemporarilyPausable helper.\",\"events\":{\"PausedStateChanged(bool)\":{\"details\":\"Emitted every time the pause state changes by `_setPaused`.\"}},\"kind\":\"dev\",\"methods\":{\"getPausedState()\":{\"details\":\"Returns the current paused state.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":\"ITemporarilyPausable\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol": {
+ "IWETH": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "deposit",
+ "outputs": [],
+ "stateMutability": "payable",
+ "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": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "withdraw",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "deposit()": "d0e30db0",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd",
+ "withdraw(uint256)": "2e1a7d4d"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"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\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for WETH9. See https://github.com/gnosis/canonical-weth/blob/0dd1ea3e295eef916d0c6223ec63141137d22d67/contracts/WETH9.sol\",\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"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.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":\"IWETH\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol": {
+ "IERC20": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "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"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"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\"}],\"devdoc\":{\"details\":\"Interface of the ERC20 standard as defined in the EIP.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"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.\"},\"approve(address,uint256)\":{\"details\":\"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.\"},\"balanceOf(address)\":{\"details\":\"Returns the amount of tokens owned by `account`.\"},\"totalSupply()\":{\"details\":\"Returns the amount of tokens in existence.\"},\"transfer(address,uint256)\":{\"details\":\"Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":\"IERC20\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol": {
+ "IERC20Permit": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "nonces",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "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"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "nonces(address)": "7ecebe00",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\"}],\"devdoc\":{\"details\":\"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.\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"Returns the domain separator used in the encoding of the signature for `permit`, as defined by {EIP712}.\"},\"nonces(address)\":{\"details\":\"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.\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"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].\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":\"IERC20Permit\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol": {
+ "IProtocolFeePercentagesProvider": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "percentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "ProtocolFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "string",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "maximumPercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "ProtocolFeeTypeRegistered",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFeeTypeMaximumPercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFeeTypeName",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFeeTypePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ }
+ ],
+ "name": "isValidFeeType",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "isValidFeeTypePercentage",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "internalType": "string",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "internalType": "uint256",
+ "name": "maximumValue",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "initialValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "registerFeeType",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "newValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "setFeeTypePercentage",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getFeeTypeMaximumPercentage(uint256)": "5e2cae4c",
+ "getFeeTypeName(uint256)": "b661eda1",
+ "getFeeTypePercentage(uint256)": "1a7c3263",
+ "isValidFeeType(uint256)": "868897a0",
+ "isValidFeeTypePercentage(uint256,uint256)": "74735e0b",
+ "registerFeeType(uint256,string,uint256,uint256)": "7268d6ce",
+ "setFeeTypePercentage(uint256,uint256)": "4d44f0e9"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"percentage\",\"type\":\"uint256\"}],\"name\":\"ProtocolFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maximumPercentage\",\"type\":\"uint256\"}],\"name\":\"ProtocolFeeTypeRegistered\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"}],\"name\":\"getFeeTypeMaximumPercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"}],\"name\":\"getFeeTypeName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"}],\"name\":\"getFeeTypePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"}],\"name\":\"isValidFeeType\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"isValidFeeTypePercentage\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"maximumValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"initialValue\",\"type\":\"uint256\"}],\"name\":\"registerFeeType\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"setFeeTypePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Source of truth for all Protocol Fee percentages, that is, how much the protocol charges certain actions. Some of these values may also be retrievable from other places (such as the swap fee percentage), but this is the preferred source nonetheless.\",\"kind\":\"dev\",\"methods\":{\"getFeeTypeMaximumPercentage(uint256)\":{\"details\":\"Returns `feeType`'s maximum value.\"},\"getFeeTypeName(uint256)\":{\"details\":\"Returns `feeType`'s name.\"},\"getFeeTypePercentage(uint256)\":{\"details\":\"Returns the current percentage value for `feeType`. This is the preferred mechanism for querying these - whenever possible, use this fucntion instead of e.g. querying the ProtocolFeesCollector.\"},\"isValidFeeType(uint256)\":{\"details\":\"Returns true if `feeType` has been registered and can be queried.\"},\"isValidFeeTypePercentage(uint256,uint256)\":{\"details\":\"Returns true if `value` is a valid percentage value for `feeType`.\"},\"registerFeeType(uint256,string,uint256,uint256)\":{\"details\":\"Registers a new fee type in the system, making it queryable via `getFeeTypePercentage` and `getFeeTypeName`, as well as configurable via `setFeeTypePercentage`. `feeType` can be any arbitrary value (that is not in use). It is not possible to de-register fee types, nor change their name or maximum value.\"},\"setFeeTypePercentage(uint256,uint256)\":{\"details\":\"Sets the percentage value for `feeType` to `newValue`. IMPORTANT: it is possible for a third party to modify the SWAP and FLASH_LOAN fee type values directly in the ProtocolFeesCollector, without invoking this function. This will result in the `ProtocolFeePercentageChanged` event not being emitted despite their value changing. Such usage of the ProtocolFeesCollector is however discouraged: only this contract should be granted permission to call `setSwapFeePercentage` and `setFlashLoanFeePercentage`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":\"IProtocolFeePercentagesProvider\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":{\"keccak256\":\"0xf6fd47a273c8f275d115dac4d216acffd976573410a5f92e2dd8c1125ce3b134\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://41febf9d4bc242065cb96d9d1258e926bf1b4f4c36131964cbf0b4cdd5ce1f99\",\"dweb:/ipfs/QmbKk893VkGw3w49xWyQS8ehqdXxbL4sqNW6TcWMXRpnGu\"]}},\"version\":1}"
+ },
+ "ProtocolFeeType": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220aed355762f9da03205c043c8763c8eb7353e5a53853c0df39e532eec02c9d26f64736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xAE 0xD3 SSTORE PUSH23 0x2F9DA03205C043C8763C8EB7353E5A53853C0DF39E532E 0xEC MUL 0xC9 0xD2 PUSH16 0x64736F6C634300070100330000000000 ",
+ "sourceMap": "3992:551:17:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220aed355762f9da03205c043c8763c8eb7353e5a53853c0df39e532eec02c9d26f64736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xAE 0xD3 SSTORE PUSH23 0x2F9DA03205C043C8763C8EB7353E5A53853C0DF39E532E 0xEC MUL 0xC9 0xD2 PUSH16 0x64736F6C634300070100330000000000 ",
+ "sourceMap": "3992:551:17:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":\"ProtocolFeeType\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":{\"keccak256\":\"0xf6fd47a273c8f275d115dac4d216acffd976573410a5f92e2dd8c1125ce3b134\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://41febf9d4bc242065cb96d9d1258e926bf1b4f4c36131964cbf0b4cdd5ce1f99\",\"dweb:/ipfs/QmbKk893VkGw3w49xWyQS8ehqdXxbL4sqNW6TcWMXRpnGu\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol": {
+ "IAsset": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"This is an empty interface used to represent either ERC20-conforming token contracts or ETH (using the zero address sentinel value). We're just relying on the fact that `interface` can be used to declare new address-like types. This concept is unrelated to a Pool's Asset Managers.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":\"IAsset\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol": {
+ "IAuthorizer": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "actionId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "where",
+ "type": "address"
+ }
+ ],
+ "name": "canPerform",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "canPerform(bytes32,address,address)": "9be2a884"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"actionId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"where\",\"type\":\"address\"}],\"name\":\"canPerform\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"canPerform(bytes32,address,address)\":{\"details\":\"Returns true if `account` can perform the action described by `actionId` in the contract `where`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":\"IAuthorizer\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol": {
+ "IBasePool": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "dueProtocolFeeAmounts",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "dueProtocolFeeAmounts",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getPoolId()": "38fff2d0",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"dueProtocolFeeAmounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"dueProtocolFeeAmounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for adding and removing liquidity that all Pool contracts should implement. Note that this is not the complete Pool contract interface, as it is missing the swap hooks. Pool contracts should also inherit from either IGeneralPool or IMinimalSwapInfoPool\",\"kind\":\"dev\",\"methods\":{\"getPoolId()\":{\"details\":\"Returns this Pool's ID, used when interacting with the Vault (to e.g. join the Pool or swap with it).\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"Returns the current swap fee percentage as a 18 decimal fixed point number, so e.g. 1e17 corresponds to a 10% swap fee.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Called by the Vault when a user calls `IVault.exitPool` to remove liquidity from this Pool. Returns how many tokens the Vault should deduct from the Pool's balances, as well as the amount of protocol fees the Pool owes to the Vault. The Vault will then take tokens from the Pool's balances and send them to `recipient`, as well as collect the reported amount in protocol fees, which the Pool should calculate based on `protocolSwapFeePercentage`. Protocol fees are charged on exit events to guarantee that users exiting the Pool have paid their share. `sender` is the account performing the exit (typically the pool shareholder), and `recipient` is the account to which the Vault will send the proceeds. `balances` contains the total token balances for each token the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return. `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total balance. `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of exit (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.) Contracts implementing this function should check that the caller is indeed the Vault before performing any state-changing operations, such as burning pool shares.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Called by the Vault when a user calls `IVault.joinPool` to add liquidity to this Pool. Returns how many of each registered token the user should provide, as well as the amount of protocol fees the Pool owes to the Vault. The Vault will then take tokens from `sender` and add them to the Pool's balances, as well as collect the reported amount in protocol fees, which the pool should calculate based on `protocolSwapFeePercentage`. Protocol fees are reported and charged on join events so that the Pool is free of debt whenever new users join. `sender` is the account performing the join (from which tokens will be withdrawn), and `recipient` is the account designated to receive any benefits (typically pool shares). `balances` contains the total balances for each token the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return. `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total balance. `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of join (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.) Contracts implementing this function should check that the caller is indeed the Vault before performing any state-changing operations, such as minting pool shares.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":\"IBasePool\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol": {
+ "IFlashLoanRecipient": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amounts",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "feeAmounts",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "receiveFlashLoan",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "receiveFlashLoan(address[],uint256[],uint256[],bytes)": "f04f2707"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"feeAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"receiveFlashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"receiveFlashLoan(address[],uint256[],uint256[],bytes)\":{\"details\":\"When `flashLoan` is called on the Vault, it invokes the `receiveFlashLoan` hook on the recipient. At the time of the call, the Vault will have transferred `amounts` for `tokens` to the recipient. Before this call returns, the recipient must have transferred `amounts` plus `feeAmounts` for each token back to the Vault, or else the entire flash loan will revert. `userData` is the same value passed in the `IVault.flashLoan` call.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":\"IFlashLoanRecipient\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol": {
+ "IGeneralPool": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "dueProtocolFeeAmounts",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "dueProtocolFeeAmounts",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum IVault.SwapKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "tokenIn",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "tokenOut",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "internalType": "struct IPoolSwapStructs.SwapRequest",
+ "name": "swapRequest",
+ "type": "tuple"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "indexIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "indexOut",
+ "type": "uint256"
+ }
+ ],
+ "name": "onSwap",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getPoolId()": "38fff2d0",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "onSwap((uint8,address,address,uint256,bytes32,uint256,address,address,bytes),uint256[],uint256,uint256)": "01ec954a",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"dueProtocolFeeAmounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"dueProtocolFeeAmounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum IVault.SwapKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"contract IERC20\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"contract IERC20\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"struct IPoolSwapStructs.SwapRequest\",\"name\":\"swapRequest\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"indexIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"indexOut\",\"type\":\"uint256\"}],\"name\":\"onSwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"IPools with the General specialization setting should implement this interface. This is called by the Vault when a user calls `IVault.swap` or `IVault.batchSwap` to swap with this Pool. Returns the number of tokens the Pool will grant to the user in a 'given in' swap, or that the user will grant to the pool in a 'given out' swap. This can often be implemented by a `view` function, since many pricing algorithms don't need to track state changes in swaps. However, contracts implementing this in non-view functions should check that the caller is indeed the Vault.\",\"kind\":\"dev\",\"methods\":{\"getPoolId()\":{\"details\":\"Returns this Pool's ID, used when interacting with the Vault (to e.g. join the Pool or swap with it).\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"Returns the current swap fee percentage as a 18 decimal fixed point number, so e.g. 1e17 corresponds to a 10% swap fee.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Called by the Vault when a user calls `IVault.exitPool` to remove liquidity from this Pool. Returns how many tokens the Vault should deduct from the Pool's balances, as well as the amount of protocol fees the Pool owes to the Vault. The Vault will then take tokens from the Pool's balances and send them to `recipient`, as well as collect the reported amount in protocol fees, which the Pool should calculate based on `protocolSwapFeePercentage`. Protocol fees are charged on exit events to guarantee that users exiting the Pool have paid their share. `sender` is the account performing the exit (typically the pool shareholder), and `recipient` is the account to which the Vault will send the proceeds. `balances` contains the total token balances for each token the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return. `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total balance. `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of exit (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.) Contracts implementing this function should check that the caller is indeed the Vault before performing any state-changing operations, such as burning pool shares.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Called by the Vault when a user calls `IVault.joinPool` to add liquidity to this Pool. Returns how many of each registered token the user should provide, as well as the amount of protocol fees the Pool owes to the Vault. The Vault will then take tokens from `sender` and add them to the Pool's balances, as well as collect the reported amount in protocol fees, which the pool should calculate based on `protocolSwapFeePercentage`. Protocol fees are reported and charged on join events so that the Pool is free of debt whenever new users join. `sender` is the account performing the join (from which tokens will be withdrawn), and `recipient` is the account designated to receive any benefits (typically pool shares). `balances` contains the total balances for each token the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return. `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total balance. `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of join (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.) Contracts implementing this function should check that the caller is indeed the Vault before performing any state-changing operations, such as minting pool shares.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol\":\"IGeneralPool\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol\":{\"keccak256\":\"0x7f11733a5cd8f81c123c02f79d94ead7b65217021ebddafda10e796a25e1ef41\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://7333060b9ff67e1fe734903d45b0c69ff8308b744f7c2fb8fbf630ae9d589bd6\",\"dweb:/ipfs/Qmf4rZHqsjfKDk5cSp38fv24SS8bAYJxYYQzn63TV6aPCo\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol": {
+ "IPoolSwapStructs": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":\"IPoolSwapStructs\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol": {
+ "IProtocolFeesCollector": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "newFlashLoanFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "FlashLoanFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "newSwapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "SwapFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "getCollectedFeeAmounts",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "feeAmounts",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getFlashLoanFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "newFlashLoanFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setFlashLoanFeePercentage",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "newSwapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "vault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amounts",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ }
+ ],
+ "name": "withdrawCollectedFees",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getAuthorizer()": "aaabadc5",
+ "getCollectedFeeAmounts(address[])": "e42abf35",
+ "getFlashLoanFeePercentage()": "d877845c",
+ "getSwapFeePercentage()": "55c67628",
+ "setFlashLoanFeePercentage(uint256)": "6b6b9f69",
+ "setSwapFeePercentage(uint256)": "38e9922e",
+ "vault()": "fbfa77cf",
+ "withdrawCollectedFees(address[],uint256[],address)": "6daefab6"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFlashLoanFeePercentage\",\"type\":\"uint256\"}],\"name\":\"FlashLoanFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newSwapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"SwapFeePercentageChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"getCollectedFeeAmounts\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"feeAmounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFlashLoanFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFlashLoanFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setFlashLoanFeePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newSwapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"withdrawCollectedFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":\"IProtocolFeesCollector\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol": {
+ "IVault": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "contract IAuthorizer",
+ "name": "newAuthorizer",
+ "type": "address"
+ }
+ ],
+ "name": "AuthorizerChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "ExternalBalanceTransfer",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "contract IFlashLoanRecipient",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "feeAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "FlashLoan",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "user",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "int256",
+ "name": "delta",
+ "type": "int256"
+ }
+ ],
+ "name": "InternalBalanceChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "liquidityProvider",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "indexed": false,
+ "internalType": "int256[]",
+ "name": "deltas",
+ "type": "int256[]"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256[]",
+ "name": "protocolFeeAmounts",
+ "type": "uint256[]"
+ }
+ ],
+ "name": "PoolBalanceChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "assetManager",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "int256",
+ "name": "cashDelta",
+ "type": "int256"
+ },
+ {
+ "indexed": false,
+ "internalType": "int256",
+ "name": "managedDelta",
+ "type": "int256"
+ }
+ ],
+ "name": "PoolBalanceManaged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "poolAddress",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "enum IVault.PoolSpecialization",
+ "name": "specialization",
+ "type": "uint8"
+ }
+ ],
+ "name": "PoolRegistered",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "relayer",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "RelayerApprovalChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IERC20",
+ "name": "tokenIn",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IERC20",
+ "name": "tokenOut",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "amountIn",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "amountOut",
+ "type": "uint256"
+ }
+ ],
+ "name": "Swap",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "TokensDeregistered",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "indexed": false,
+ "internalType": "address[]",
+ "name": "assetManagers",
+ "type": "address[]"
+ }
+ ],
+ "name": "TokensRegistered",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "WETH",
+ "outputs": [
+ {
+ "internalType": "contract IWETH",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum IVault.SwapKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "components": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "uint256",
+ "name": "assetInIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "assetOutIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "internalType": "struct IVault.BatchSwapStep[]",
+ "name": "swaps",
+ "type": "tuple[]"
+ },
+ {
+ "internalType": "contract IAsset[]",
+ "name": "assets",
+ "type": "address[]"
+ },
+ {
+ "components": [
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "fromInternalBalance",
+ "type": "bool"
+ },
+ {
+ "internalType": "address payable",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "toInternalBalance",
+ "type": "bool"
+ }
+ ],
+ "internalType": "struct IVault.FundManagement",
+ "name": "funds",
+ "type": "tuple"
+ },
+ {
+ "internalType": "int256[]",
+ "name": "limits",
+ "type": "int256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "deadline",
+ "type": "uint256"
+ }
+ ],
+ "name": "batchSwap",
+ "outputs": [
+ {
+ "internalType": "int256[]",
+ "name": "",
+ "type": "int256[]"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "deregisterTokens",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address payable",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "components": [
+ {
+ "internalType": "contract IAsset[]",
+ "name": "assets",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "minAmountsOut",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bool",
+ "name": "toInternalBalance",
+ "type": "bool"
+ }
+ ],
+ "internalType": "struct IVault.ExitPoolRequest",
+ "name": "request",
+ "type": "tuple"
+ }
+ ],
+ "name": "exitPool",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IFlashLoanRecipient",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amounts",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "flashLoan",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "user",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "getInternalBalance",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "user",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "getPool",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ },
+ {
+ "internalType": "enum IVault.PoolSpecialization",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "getPoolTokenInfo",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "managed",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "assetManager",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ }
+ ],
+ "name": "getPoolTokens",
+ "outputs": [
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeesCollector",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeesCollector",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "user",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "relayer",
+ "type": "address"
+ }
+ ],
+ "name": "hasApprovedRelayer",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "components": [
+ {
+ "internalType": "contract IAsset[]",
+ "name": "assets",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "maxAmountsIn",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ },
+ {
+ "internalType": "bool",
+ "name": "fromInternalBalance",
+ "type": "bool"
+ }
+ ],
+ "internalType": "struct IVault.JoinPoolRequest",
+ "name": "request",
+ "type": "tuple"
+ }
+ ],
+ "name": "joinPool",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum IVault.PoolBalanceOpKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct IVault.PoolBalanceOp[]",
+ "name": "ops",
+ "type": "tuple[]"
+ }
+ ],
+ "name": "managePoolBalance",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum IVault.UserBalanceOpKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "internalType": "contract IAsset",
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address payable",
+ "name": "recipient",
+ "type": "address"
+ }
+ ],
+ "internalType": "struct IVault.UserBalanceOp[]",
+ "name": "ops",
+ "type": "tuple[]"
+ }
+ ],
+ "name": "manageUserBalance",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum IVault.SwapKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "components": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "uint256",
+ "name": "assetInIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "assetOutIndex",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "internalType": "struct IVault.BatchSwapStep[]",
+ "name": "swaps",
+ "type": "tuple[]"
+ },
+ {
+ "internalType": "contract IAsset[]",
+ "name": "assets",
+ "type": "address[]"
+ },
+ {
+ "components": [
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "fromInternalBalance",
+ "type": "bool"
+ },
+ {
+ "internalType": "address payable",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "toInternalBalance",
+ "type": "bool"
+ }
+ ],
+ "internalType": "struct IVault.FundManagement",
+ "name": "funds",
+ "type": "tuple"
+ }
+ ],
+ "name": "queryBatchSwap",
+ "outputs": [
+ {
+ "internalType": "int256[]",
+ "name": "assetDeltas",
+ "type": "int256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "enum IVault.PoolSpecialization",
+ "name": "specialization",
+ "type": "uint8"
+ }
+ ],
+ "name": "registerPool",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "address[]",
+ "name": "assetManagers",
+ "type": "address[]"
+ }
+ ],
+ "name": "registerTokens",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "newAuthorizer",
+ "type": "address"
+ }
+ ],
+ "name": "setAuthorizer",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "setPaused",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "relayer",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "approved",
+ "type": "bool"
+ }
+ ],
+ "name": "setRelayerApproval",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "enum IVault.SwapKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "internalType": "contract IAsset",
+ "name": "assetIn",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IAsset",
+ "name": "assetOut",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "internalType": "struct IVault.SingleSwap",
+ "name": "singleSwap",
+ "type": "tuple"
+ },
+ {
+ "components": [
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "fromInternalBalance",
+ "type": "bool"
+ },
+ {
+ "internalType": "address payable",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "bool",
+ "name": "toInternalBalance",
+ "type": "bool"
+ }
+ ],
+ "internalType": "struct IVault.FundManagement",
+ "name": "funds",
+ "type": "tuple"
+ },
+ {
+ "internalType": "uint256",
+ "name": "limit",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "deadline",
+ "type": "uint256"
+ }
+ ],
+ "name": "swap",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "WETH()": "ad5c4648",
+ "batchSwap(uint8,(bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256)": "945bcec9",
+ "deregisterTokens(bytes32,address[])": "7d3aeb96",
+ "exitPool(bytes32,address,address,(address[],uint256[],bytes,bool))": "8bdb3913",
+ "flashLoan(address,address[],uint256[],bytes)": "5c38449e",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getDomainSeparator()": "ed24911d",
+ "getInternalBalance(address,address[])": "0f5a6efa",
+ "getNextNonce(address)": "90193b7c",
+ "getPausedState()": "1c0de051",
+ "getPool(bytes32)": "f6c00927",
+ "getPoolTokenInfo(bytes32,address)": "b05f8e48",
+ "getPoolTokens(bytes32)": "f94d4668",
+ "getProtocolFeesCollector()": "d2946c2b",
+ "hasApprovedRelayer(address,address)": "fec90d72",
+ "joinPool(bytes32,address,address,(address[],uint256[],bytes,bool))": "b95cac28",
+ "managePoolBalance((uint8,bytes32,address,uint256)[])": "e6c46092",
+ "manageUserBalance((uint8,address,uint256,address,address)[])": "0e8e3e84",
+ "queryBatchSwap(uint8,(bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool))": "f84d066e",
+ "registerPool(uint8)": "09b2760f",
+ "registerTokens(bytes32,address[],address[])": "66a9c7d2",
+ "setAuthorizer(address)": "058a628f",
+ "setPaused(bool)": "16c38b3c",
+ "setRelayerApproval(address,address,bool)": "fa6e671d",
+ "swap((bytes32,uint8,address,address,uint256,bytes),(address,bool,address,bool),uint256,uint256)": "52bbbe29"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract IAuthorizer\",\"name\":\"newAuthorizer\",\"type\":\"address\"}],\"name\":\"AuthorizerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ExternalBalanceTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract IFlashLoanRecipient\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"FlashLoan\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"delta\",\"type\":\"int256\"}],\"name\":\"InternalBalanceChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"liquidityProvider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"int256[]\",\"name\":\"deltas\",\"type\":\"int256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"protocolFeeAmounts\",\"type\":\"uint256[]\"}],\"name\":\"PoolBalanceChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"assetManager\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"cashDelta\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"managedDelta\",\"type\":\"int256\"}],\"name\":\"PoolBalanceManaged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"poolAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enum IVault.PoolSpecialization\",\"name\":\"specialization\",\"type\":\"uint8\"}],\"name\":\"PoolRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"RelayerApprovalChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"contract IERC20\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IERC20\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"TokensDeregistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"assetManagers\",\"type\":\"address[]\"}],\"name\":\"TokensRegistered\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"contract IWETH\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum IVault.SwapKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"assetInIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assetOutIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"struct IVault.BatchSwapStep[]\",\"name\":\"swaps\",\"type\":\"tuple[]\"},{\"internalType\":\"contract IAsset[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"fromInternalBalance\",\"type\":\"bool\"},{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"toInternalBalance\",\"type\":\"bool\"}],\"internalType\":\"struct IVault.FundManagement\",\"name\":\"funds\",\"type\":\"tuple\"},{\"internalType\":\"int256[]\",\"name\":\"limits\",\"type\":\"int256[]\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"batchSwap\",\"outputs\":[{\"internalType\":\"int256[]\",\"name\":\"\",\"type\":\"int256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"deregisterTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"contract IAsset[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"minAmountsOut\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"toInternalBalance\",\"type\":\"bool\"}],\"internalType\":\"struct IVault.ExitPoolRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"exitPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IFlashLoanRecipient\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"getInternalBalance\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"enum IVault.PoolSpecialization\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getPoolTokenInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"cash\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"managed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"assetManager\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"}],\"name\":\"getPoolTokens\",\"outputs\":[{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeesCollector\",\"outputs\":[{\"internalType\":\"contract IProtocolFeesCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"}],\"name\":\"hasApprovedRelayer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"contract IAsset[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"maxAmountsIn\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"fromInternalBalance\",\"type\":\"bool\"}],\"internalType\":\"struct IVault.JoinPoolRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"name\":\"joinPool\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum IVault.PoolBalanceOpKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct IVault.PoolBalanceOp[]\",\"name\":\"ops\",\"type\":\"tuple[]\"}],\"name\":\"managePoolBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum IVault.UserBalanceOpKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"contract IAsset\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct IVault.UserBalanceOp[]\",\"name\":\"ops\",\"type\":\"tuple[]\"}],\"name\":\"manageUserBalance\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum IVault.SwapKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"assetInIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assetOutIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"struct IVault.BatchSwapStep[]\",\"name\":\"swaps\",\"type\":\"tuple[]\"},{\"internalType\":\"contract IAsset[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"fromInternalBalance\",\"type\":\"bool\"},{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"toInternalBalance\",\"type\":\"bool\"}],\"internalType\":\"struct IVault.FundManagement\",\"name\":\"funds\",\"type\":\"tuple\"}],\"name\":\"queryBatchSwap\",\"outputs\":[{\"internalType\":\"int256[]\",\"name\":\"assetDeltas\",\"type\":\"int256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum IVault.PoolSpecialization\",\"name\":\"specialization\",\"type\":\"uint8\"}],\"name\":\"registerPool\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"assetManagers\",\"type\":\"address[]\"}],\"name\":\"registerTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"newAuthorizer\",\"type\":\"address\"}],\"name\":\"setAuthorizer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"setPaused\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setRelayerApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"enum IVault.SwapKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"contract IAsset\",\"name\":\"assetIn\",\"type\":\"address\"},{\"internalType\":\"contract IAsset\",\"name\":\"assetOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"struct IVault.SingleSwap\",\"name\":\"singleSwap\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"fromInternalBalance\",\"type\":\"bool\"},{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"toInternalBalance\",\"type\":\"bool\"}],\"internalType\":\"struct IVault.FundManagement\",\"name\":\"funds\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Full external interface for the Vault core contract - no external or public methods exist in the contract that don't override one of these declarations.\",\"events\":{\"AuthorizerChanged(address)\":{\"details\":\"Emitted when a new authorizer is set by `setAuthorizer`.\"},\"ExternalBalanceTransfer(address,address,address,uint256)\":{\"details\":\"Emitted when a user's Vault ERC20 allowance is used by the Vault to transfer tokens to an external account.\"},\"FlashLoan(address,address,uint256,uint256)\":{\"details\":\"Emitted for each individual flash loan performed by `flashLoan`.\"},\"InternalBalanceChanged(address,address,int256)\":{\"details\":\"Emitted when a user's Internal Balance changes, either from calls to `manageUserBalance`, or through interacting with Pools using Internal Balance. Because Internal Balance works exclusively with ERC20 tokens, ETH deposits and withdrawals will use the WETH address.\"},\"PoolBalanceChanged(bytes32,address,address[],int256[],uint256[])\":{\"details\":\"Emitted when a user joins or exits a Pool by calling `joinPool` or `exitPool`, respectively.\"},\"PoolBalanceManaged(bytes32,address,address,int256,int256)\":{\"details\":\"Emitted when a Pool's token Asset Manager alters its balance via `managePoolBalance`.\"},\"PoolRegistered(bytes32,address,uint8)\":{\"details\":\"Emitted when a Pool is registered by calling `registerPool`.\"},\"RelayerApprovalChanged(address,address,bool)\":{\"details\":\"Emitted every time a relayer is approved or disapproved by `setRelayerApproval`.\"},\"Swap(bytes32,address,address,uint256,uint256)\":{\"details\":\"Emitted for each individual swap performed by `swap` or `batchSwap`.\"},\"TokensDeregistered(bytes32,address[])\":{\"details\":\"Emitted when a Pool deregisters tokens by calling `deregisterTokens`.\"},\"TokensRegistered(bytes32,address[],address[])\":{\"details\":\"Emitted when a Pool registers tokens by calling `registerTokens`.\"}},\"kind\":\"dev\",\"methods\":{\"WETH()\":{\"details\":\"Returns the Vault's WETH instance.\"},\"batchSwap(uint8,(bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256)\":{\"details\":\"Performs a series of swaps with one or multiple Pools. In each individual swap, the caller determines either the amount of tokens sent to or received from the Pool, depending on the `kind` value. Returns an array with the net Vault asset balance deltas. Positive amounts represent tokens (or ETH) sent to the Vault, and negative amounts represent tokens (or ETH) sent by the Vault. Each delta corresponds to the asset at the same index in the `assets` array. Swaps are executed sequentially, in the order specified by the `swaps` array. Each array element describes a Pool, the token to be sent to this Pool, the token to receive from it, and an amount that is either `amountIn` or `amountOut` depending on the swap kind. Multihop swaps can be executed by passing an `amount` value of zero for a swap. This will cause the amount in/out of the previous swap to be used as the amount in for the current one. In a 'given in' swap, 'tokenIn' must equal the previous swap's `tokenOut`. For a 'given out' swap, `tokenOut` must equal the previous swap's `tokenIn`. The `assets` array contains the addresses of all assets involved in the swaps. These are either token addresses, or the IAsset sentinel value for ETH (the zero address). Each entry in the `swaps` array specifies tokens in and out by referencing an index in `assets`. Note that Pools never interact with ETH directly: it will be wrapped to or unwrapped from WETH by the Vault. Internal Balance usage, sender, and recipient are determined by the `funds` struct. The `limits` array specifies the minimum or maximum amount of each token the vault is allowed to transfer. `batchSwap` can be used to make a single swap, like `swap` does, but doing so requires more gas than the equivalent `swap` call. Emits `Swap` events.\"},\"deregisterTokens(bytes32,address[])\":{\"details\":\"Deregisters `tokens` for the `poolId` Pool. Must be called by the Pool's contract. Only registered tokens (via `registerTokens`) can be deregistered. Additionally, they must have zero total balance. For Pools with the Two Token specialization, `tokens` must have a length of two, that is, both tokens must be deregistered in the same `deregisterTokens` call. A deregistered token can be re-registered later on, possibly with a different Asset Manager. Emits a `TokensDeregistered` event.\"},\"exitPool(bytes32,address,address,(address[],uint256[],bytes,bool))\":{\"details\":\"Called by users to exit a Pool, which transfers tokens from the Pool's balance to `recipient`. This will trigger custom Pool behavior, which will typically ask for something in return from `sender` - often tokenized Pool shares. The amount of tokens that can be withdrawn is limited by the Pool's `cash` balance (see `getPoolTokenInfo`). If the caller is not `sender`, it must be an authorized relayer for them. The `tokens` and `minAmountsOut` arrays must have the same length, and each entry in these indicates the minimum token amount to receive for each token contract. The amounts to send are decided by the Pool and not the Vault: it just enforces these minimums. If exiting a Pool that holds WETH, it is possible to receive ETH directly: the Vault will do the unwrapping. To enable this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead of the WETH address. Note that it is not possible to combine ETH and WETH in the same exit. `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when interacting with Pools that register and deregister tokens frequently. If receiving ETH however, the array must be sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the final `assets` array might not be sorted. Pools with no registered tokens cannot be exited. If `toInternalBalance` is true, the tokens will be deposited to `recipient`'s Internal Balance. Otherwise, an ERC20 transfer will be performed. Note that ETH cannot be deposited to Internal Balance: attempting to do so will trigger a revert. `minAmountsOut` is the minimum amount of tokens the user expects to get out of the Pool, for each token in the `tokens` array. This array must match the Pool's registered tokens. This causes the Vault to call the `IBasePool.onExitPool` hook on the Pool's contract, where Pools implement their own custom logic. This typically requires additional information from the user (such as the expected number of Pool shares to return). This can be encoded in the `userData` argument, which is ignored by the Vault and passed directly to the Pool's contract. Emits a `PoolBalanceChanged` event.\"},\"flashLoan(address,address[],uint256[],bytes)\":{\"details\":\"Performs a 'flash loan', sending tokens to `recipient`, executing the `receiveFlashLoan` hook on it, and then reverting unless the tokens plus a proportional protocol fee have been returned. The `tokens` and `amounts` arrays must have the same length, and each entry in these indicates the loan amount for each token contract. `tokens` must be sorted in ascending order. The 'userData' field is ignored by the Vault, and forwarded as-is to `recipient` as part of the `receiveFlashLoan` call. Emits `FlashLoan` events.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getAuthorizer()\":{\"details\":\"Returns the Vault's Authorizer.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getInternalBalance(address,address[])\":{\"details\":\"Returns `user`'s Internal Balance for a set of tokens.\"},\"getNextNonce(address)\":{\"details\":\"Returns the next nonce used by an address to sign messages.\"},\"getPausedState()\":{\"details\":\"Returns the current paused state.\"},\"getPool(bytes32)\":{\"details\":\"Returns a Pool's contract address and specialization setting.\"},\"getPoolTokenInfo(bytes32,address)\":{\"details\":\"Returns detailed information for a Pool's registered token. `cash` is the number of tokens the Vault currently holds for the Pool. `managed` is the number of tokens withdrawn and held outside the Vault by the Pool's token Asset Manager. The Pool's total balance for `token` equals the sum of `cash` and `managed`. Internally, `cash` and `managed` are stored using 112 bits. No action can ever cause a Pool's token `cash`, `managed` or `total` balance to be greater than 2^112 - 1. `lastChangeBlock` is the number of the block in which `token`'s total balance was last modified (via either a join, exit, swap, or Asset Manager update). This value is useful to avoid so-called 'sandwich attacks', for example when developing price oracles. A change of zero (e.g. caused by a swap with amount zero) is considered a change for this purpose, and will update `lastChangeBlock`. `assetManager` is the Pool's token Asset Manager.\"},\"getPoolTokens(bytes32)\":{\"details\":\"Returns a Pool's registered tokens, the total balance for each, and the latest block when *any* of the tokens' `balances` changed. The order of the `tokens` array is the same order that will be used in `joinPool`, `exitPool`, as well as in all Pool hooks (where applicable). Calls to `registerTokens` and `deregisterTokens` may change this order. If a Pool only registers tokens once, and these are sorted in ascending order, they will be stored in the same order as passed to `registerTokens`. Total balances include both tokens held by the Vault and those withdrawn by the Pool's Asset Managers. These are the amounts used by joins, exits and swaps. For a detailed breakdown of token balances, use `getPoolTokenInfo` instead.\"},\"getProtocolFeesCollector()\":{\"details\":\"Returns the current protocol fee module.\"},\"hasApprovedRelayer(address,address)\":{\"details\":\"Returns true if `user` has approved `relayer` to act as a relayer for them.\"},\"joinPool(bytes32,address,address,(address[],uint256[],bytes,bool))\":{\"details\":\"Called by users to join a Pool, which transfers tokens from `sender` into the Pool's balance. This will trigger custom Pool behavior, which will typically grant something in return to `recipient` - often tokenized Pool shares. If the caller is not `sender`, it must be an authorized relayer for them. The `assets` and `maxAmountsIn` arrays must have the same length, and each entry indicates the maximum amount to send for each asset. The amounts to send are decided by the Pool and not the Vault: it just enforces these maximums. If joining a Pool that holds WETH, it is possible to send ETH directly: the Vault will do the wrapping. To enable this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead of the WETH address. Note that it is not possible to combine ETH and WETH in the same join. Any excess ETH will be sent back to the caller (not the sender, which is important for relayers). `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when interacting with Pools that register and deregister tokens frequently. If sending ETH however, the array must be sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the final `assets` array might not be sorted. Pools with no registered tokens cannot be joined. If `fromInternalBalance` is true, the caller's Internal Balance will be preferred: ERC20 transfers will only be made for the difference between the requested amount and Internal Balance (if any). Note that ETH cannot be withdrawn from Internal Balance: attempting to do so will trigger a revert. This causes the Vault to call the `IBasePool.onJoinPool` hook on the Pool's contract, where Pools implement their own custom logic. This typically requires additional information from the user (such as the expected number of Pool shares). This can be encoded in the `userData` argument, which is ignored by the Vault and passed directly to the Pool's contract, as is `recipient`. Emits a `PoolBalanceChanged` event.\"},\"managePoolBalance((uint8,bytes32,address,uint256)[])\":{\"details\":\"Performs a set of Pool balance operations, which may be either withdrawals, deposits or updates. Pool Balance management features batching, which means a single contract call can be used to perform multiple operations of different kinds, with different Pools and tokens, at once. For each operation, the caller must be registered as the Asset Manager for `token` in `poolId`.\"},\"manageUserBalance((uint8,address,uint256,address,address)[])\":{\"details\":\"Performs a set of user balance operations, which involve Internal Balance (deposit, withdraw or transfer) and plain ERC20 transfers using the Vault's allowance. This last feature is particularly useful for relayers, as it lets integrators reuse a user's Vault allowance. For each operation, if the caller is not `sender`, it must be an authorized relayer for them.\"},\"queryBatchSwap(uint8,(bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool))\":{\"details\":\"Simulates a call to `batchSwap`, returning an array of Vault asset deltas. Calls to `swap` cannot be simulated directly, but an equivalent `batchSwap` call can and will yield the exact same result. Each element in the array corresponds to the asset at the same index, and indicates the number of tokens (or ETH) the Vault would take from the sender (if positive) or send to the recipient (if negative). The arguments it receives are the same that an equivalent `batchSwap` call would receive. Unlike `batchSwap`, this function performs no checks on the sender or recipient field in the `funds` struct. This makes it suitable to be called by off-chain applications via eth_call without needing to hold tokens, approve them for the Vault, or even know a user's address. Note that this function is not 'view' (due to implementation details): the client code must explicitly execute eth_call instead of eth_sendTransaction.\"},\"registerPool(uint8)\":{\"details\":\"Registers the caller account as a Pool with a given specialization setting. Returns the Pool's ID, which is used in all Pool-related functions. Pools cannot be deregistered, nor can the Pool's specialization be changed. The caller is expected to be a smart contract that implements either `IGeneralPool` or `IMinimalSwapInfoPool`, depending on the chosen specialization setting. This contract is known as the Pool's contract. Note that the same contract may register itself as multiple Pools with unique Pool IDs, or in other words, multiple Pools may share the same contract. Emits a `PoolRegistered` event.\"},\"registerTokens(bytes32,address[],address[])\":{\"details\":\"Registers `tokens` for the `poolId` Pool. Must be called by the Pool's contract. Pools can only interact with tokens they have registered. Users join a Pool by transferring registered tokens, exit by receiving registered tokens, and can only swap registered tokens. Each token can only be registered once. For Pools with the Two Token specialization, `tokens` must have a length of two, that is, both tokens must be registered in the same `registerTokens` call, and they must be sorted in ascending order. The `tokens` and `assetManagers` arrays must have the same length, and each entry in these indicates the Asset Manager for the corresponding token. Asset Managers can manage a Pool's tokens via `managePoolBalance`, depositing and withdrawing them directly, and can even set their balance to arbitrary amounts. They are therefore expected to be highly secured smart contracts with sound design principles, and the decision to register an Asset Manager should not be made lightly. Pools can choose not to assign an Asset Manager to a given token by passing in the zero address. Once an Asset Manager is set, it cannot be changed except by deregistering the associated token and registering again with a different Asset Manager. Emits a `TokensRegistered` event.\"},\"setAuthorizer(address)\":{\"details\":\"Sets a new Authorizer for the Vault. The caller must be allowed by the current Authorizer to do this. Emits an `AuthorizerChanged` event.\"},\"setPaused(bool)\":{\"details\":\"Safety mechanism to pause most Vault operations in the event of an emergency - typically detection of an error in some part of the system. The Vault can only be paused during an initial time period, after which pausing is forever disabled. While the contract is paused, the following features are disabled: - depositing and transferring internal balance - transferring external balance (using the Vault's allowance) - swaps - joining Pools - Asset Manager interactions Internal Balance can still be withdrawn, and Pools exited.\"},\"setRelayerApproval(address,address,bool)\":{\"details\":\"Allows `relayer` to act as a relayer for `sender` if `approved` is true, and disallows it otherwise. Emits a `RelayerApprovalChanged` event.\"},\"swap((bytes32,uint8,address,address,uint256,bytes),(address,bool,address,bool),uint256,uint256)\":{\"details\":\"Performs a swap with a single Pool. If the swap is 'given in' (the number of tokens to send to the Pool is known), it returns the amount of tokens taken from the Pool, which must be greater than or equal to `limit`. If the swap is 'given out' (the number of tokens to take from the Pool is known), it returns the amount of tokens sent to the Pool, which must be less than or equal to `limit`. Internal Balance usage and the recipient are determined by the `funds` struct. Emits a `Swap` event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":\"IVault\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol": {
+ "BalancerPoolToken": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "tokenName",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "tokenSymbol",
+ "type": "string"
+ },
+ {
+ "internalType": "contract IVault",
+ "name": "vault",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "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": "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": [
+ {
+ "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": "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"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "6101006040523480156200001257600080fd5b5060405162000f8638038062000f86833981810160405260608110156200003857600080fd5b81019080805160405193929190846401000000008211156200005957600080fd5b9083019060208201858111156200006f57600080fd5b82516401000000008111828201881017156200008a57600080fd5b82525081516020918201929091019080838360005b83811015620000b95781810151838201526020016200009f565b50505050905090810190601f168015620000e75780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010b57600080fd5b9083019060208201858111156200012157600080fd5b82516401000000008111828201881017156200013c57600080fd5b82525081516020918201929091019080838360005b838110156200016b57818101518382015260200162000151565b50505050905090810190601f168015620001995780820380516001836020036101000a031916815260200191505b50604081815260209283015182820190915260018252603160f81b838301528651909450869350839283918791620001d79160039185019062000250565b508051620001ed90600490602084019062000250565b505060058054601260ff19909116179055508151602092830120608052805191012060a052507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60c05260601b6001600160601b03191660e05250620002ec9050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200029357805160ff1916838001178555620002c3565b82800160010185558215620002c3579182015b82811115620002c3578251825591602001919060010190620002a6565b50620002d1929150620002d5565b5090565b5b80821115620002d15760008155600101620002d6565b60805160a05160c05160e05160601c610c6162000325600039806105a05250806109c5525080610a075250806109e65250610c616000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c80637ecebe00116100b2578063a457c2d711610081578063d505accf11610066578063d505accf14610375578063dd62ed3e146103c8578063ed24911d146103f65761011b565b8063a457c2d71461031d578063a9059cbb146103495761011b565b80637ecebe00146102a55780638d928af8146102cb57806390193b7c146102ef57806395d89b41146103155761011b565b8063313ce567116100ee578063313ce5671461022d5780633644e5151461024b578063395093511461025357806370a082311461027f5761011b565b806306fdde0314610120578063095ea7b31461019d57806318160ddd146101dd57806323b872dd146101f7575b600080fd5b6101286103fe565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561016257818101518382015260200161014a565b50505050905090810190601f16801561018f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c9600480360360408110156101b357600080fd5b506001600160a01b038135169060200135610494565b604080519115158252519081900360200190f35b6101e56104ab565b60408051918252519081900360200190f35b6101c96004803603606081101561020d57600080fd5b506001600160a01b038135811691602081013590911690604001356104b1565b610235610525565b6040805160ff9092168252519081900360200190f35b6101e561052e565b6101c96004803603604081101561026957600080fd5b506001600160a01b03813516906020013561053d565b6101e56004803603602081101561029557600080fd5b50356001600160a01b0316610578565b6101e5600480360360208110156102bb57600080fd5b50356001600160a01b0316610593565b6102d361059e565b604080516001600160a01b039092168252519081900360200190f35b6101e56004803603602081101561030557600080fd5b50356001600160a01b03166105c2565b6101286105dd565b6101c96004803603604081101561033357600080fd5b506001600160a01b03813516906020013561063e565b6101c96004803603604081101561035f57600080fd5b506001600160a01b03813516906020013561067c565b6103c6600480360360e081101561038b57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610689565b005b6101e5600480360360408110156103de57600080fd5b506001600160a01b0381358116916020013516610744565b6101e5610781565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561048a5780601f1061045f5761010080835404028352916020019161048a565b820191906000526020600020905b81548152906001019060200180831161046d57829003601f168201915b5050505050905090565b60006104a133848461078b565b5060015b92915050565b60025490565b6000806104be8533610744565b90506104e2336001600160a01b03871614806104da5750838210155b61019e6107ed565b6104ed8585856107ff565b336001600160a01b0386161480159061050857506000198114155b1561051a5761051a853385840361078b565b506001949350505050565b60055460ff1690565b6000610538610781565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104a191859061057390866108e7565b61078b565b6001600160a01b031660009081526020819052604090205490565b60006104a5826105c2565b7f000000000000000000000000000000000000000000000000000000000000000090565b6001600160a01b031660009081526006602052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561048a5780601f1061045f5761010080835404028352916020019161048a565b60008061064b3385610744565b9050808310610665576106603385600061078b565b610672565b610672338585840361078b565b5060019392505050565b60006104a13384846107ff565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886106b88c6105c2565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b03168152602001848152602001838152602001828152602001965050505050505060405160208183030381529060405280519060200120905061072f8882610726878787610900565b886101f861093f565b61073a88888861078b565b5050505050505050565b600061074e61059e565b6001600160a01b0316826001600160a01b0316141561077057506000196104a5565b61077a8383610996565b90506104a5565b60006105386109c1565b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b816107fb576107fb81610a7f565b5050565b6108166001600160a01b03841615156101986107ed565b61082d6001600160a01b03831615156101996107ed565b610838838383610a92565b6001600160a01b03831660009081526020819052604090205461085e90826101a0610a97565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461088d90826108e7565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008282016108f984821015836107ed565b9392505050565b60408051604180825260808201909252606091829190602082018180368337019050509050836020820152826040820152846060820153949350505050565b600061094a85610aad565b905061096061095a878387610af9565b836107ed565b61096f428410156101b86107ed565b5050506001600160a01b039092166000908152600660205260409020805460010190555050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610a2e610bc6565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b031681526020019550505050505060405160208183030381529060405280519060200120905090565b610a8f816210905360ea1b610bca565b50565b505050565b6000610aa684841115836107ed565b5050900390565b6000610ab76109c1565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b6000610b0b82516041146101b96107ed565b60008060006020850151925060408501519150606085015160001a9050600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015610b84573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610bba5750876001600160a01b0316816001600160a01b0316145b98975050505050505050565b4690565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fdfea2646970667358221220767f273473db5aa04a56b0558148bd0346aa9d81de9a59f1b7e5111a21a47ee364736f6c63430007010033",
+ "opcodes": "PUSH2 0x100 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0xF86 CODESIZE SUB DUP1 PUSH3 0xF86 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE PUSH1 0x60 DUP2 LT ISZERO PUSH3 0x38 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD PUSH1 0x40 MLOAD SWAP4 SWAP3 SWAP2 SWAP1 DUP5 PUSH5 0x100000000 DUP3 GT ISZERO PUSH3 0x59 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP1 DUP4 ADD SWAP1 PUSH1 0x20 DUP3 ADD DUP6 DUP2 GT ISZERO PUSH3 0x6F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP9 LT OR ISZERO PUSH3 0x8A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MSTORE POP DUP2 MLOAD PUSH1 0x20 SWAP2 DUP3 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH3 0xB9 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH3 0x9F JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH3 0xE7 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP PUSH1 0x40 MSTORE PUSH1 0x20 ADD DUP1 MLOAD PUSH1 0x40 MLOAD SWAP4 SWAP3 SWAP2 SWAP1 DUP5 PUSH5 0x100000000 DUP3 GT ISZERO PUSH3 0x10B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP1 DUP4 ADD SWAP1 PUSH1 0x20 DUP3 ADD DUP6 DUP2 GT ISZERO PUSH3 0x121 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP9 LT OR ISZERO PUSH3 0x13C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MSTORE POP DUP2 MLOAD PUSH1 0x20 SWAP2 DUP3 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH3 0x16B JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH3 0x151 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH3 0x199 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP PUSH1 0x40 DUP2 DUP2 MSTORE PUSH1 0x20 SWAP3 DUP4 ADD MLOAD DUP3 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x1 DUP3 MSTORE PUSH1 0x31 PUSH1 0xF8 SHL DUP4 DUP4 ADD MSTORE DUP7 MLOAD SWAP1 SWAP5 POP DUP7 SWAP4 POP DUP4 SWAP3 DUP4 SWAP2 DUP8 SWAP2 PUSH3 0x1D7 SWAP2 PUSH1 0x3 SWAP2 DUP6 ADD SWAP1 PUSH3 0x250 JUMP JUMPDEST POP DUP1 MLOAD PUSH3 0x1ED SWAP1 PUSH1 0x4 SWAP1 PUSH1 0x20 DUP5 ADD SWAP1 PUSH3 0x250 JUMP JUMPDEST POP POP PUSH1 0x5 DUP1 SLOAD PUSH1 0x12 PUSH1 0xFF NOT SWAP1 SWAP2 AND OR SWAP1 SSTORE POP DUP2 MLOAD PUSH1 0x20 SWAP3 DUP4 ADD KECCAK256 PUSH1 0x80 MSTORE DUP1 MLOAD SWAP2 ADD KECCAK256 PUSH1 0xA0 MSTORE POP PUSH32 0x8B73C3C69BB8FE3D512ECC4CF759CC79239F7B179B0FFACAA9A75D522B39400F PUSH1 0xC0 MSTORE PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH1 0xE0 MSTORE POP PUSH3 0x2EC SWAP1 POP JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH3 0x293 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x2C3 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x2C3 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x2C3 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x2A6 JUMP JUMPDEST POP PUSH3 0x2D1 SWAP3 SWAP2 POP PUSH3 0x2D5 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x2D1 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x2D6 JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH1 0xA0 MLOAD PUSH1 0xC0 MLOAD PUSH1 0xE0 MLOAD PUSH1 0x60 SHR PUSH2 0xC61 PUSH3 0x325 PUSH1 0x0 CODECOPY DUP1 PUSH2 0x5A0 MSTORE POP DUP1 PUSH2 0x9C5 MSTORE POP DUP1 PUSH2 0xA07 MSTORE POP DUP1 PUSH2 0x9E6 MSTORE POP PUSH2 0xC61 PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x11B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x7ECEBE00 GT PUSH2 0xB2 JUMPI DUP1 PUSH4 0xA457C2D7 GT PUSH2 0x81 JUMPI DUP1 PUSH4 0xD505ACCF GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xD505ACCF EQ PUSH2 0x375 JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x3C8 JUMPI DUP1 PUSH4 0xED24911D EQ PUSH2 0x3F6 JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x31D JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x349 JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0x7ECEBE00 EQ PUSH2 0x2A5 JUMPI DUP1 PUSH4 0x8D928AF8 EQ PUSH2 0x2CB JUMPI DUP1 PUSH4 0x90193B7C EQ PUSH2 0x2EF JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x315 JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0x313CE567 GT PUSH2 0xEE JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x22D JUMPI DUP1 PUSH4 0x3644E515 EQ PUSH2 0x24B JUMPI DUP1 PUSH4 0x39509351 EQ PUSH2 0x253 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x27F JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x120 JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x19D JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x1DD JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x1F7 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x128 PUSH2 0x3FE JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x162 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x14A JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x18F JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x1B3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x494 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 ISZERO ISZERO DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1E5 PUSH2 0x4AB JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x60 DUP2 LT ISZERO PUSH2 0x20D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP1 PUSH1 0x40 ADD CALLDATALOAD PUSH2 0x4B1 JUMP JUMPDEST PUSH2 0x235 PUSH2 0x525 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1E5 PUSH2 0x52E JUMP JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x269 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x53D JUMP JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x295 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x578 JUMP JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x2BB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x593 JUMP JUMPDEST PUSH2 0x2D3 PUSH2 0x59E JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x305 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x5C2 JUMP JUMPDEST PUSH2 0x128 PUSH2 0x5DD JUMP JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x333 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x63E JUMP JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x35F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x67C JUMP JUMPDEST PUSH2 0x3C6 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xE0 DUP2 LT ISZERO PUSH2 0x38B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP1 PUSH1 0x40 DUP2 ADD CALLDATALOAD SWAP1 PUSH1 0x60 DUP2 ADD CALLDATALOAD SWAP1 PUSH1 0xFF PUSH1 0x80 DUP3 ADD CALLDATALOAD AND SWAP1 PUSH1 0xA0 DUP2 ADD CALLDATALOAD SWAP1 PUSH1 0xC0 ADD CALLDATALOAD PUSH2 0x689 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x3DE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 ADD CALLDATALOAD AND PUSH2 0x744 JUMP JUMPDEST PUSH2 0x1E5 PUSH2 0x781 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x48A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x45F JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x48A JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x46D JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A1 CALLER DUP5 DUP5 PUSH2 0x78B JUMP JUMPDEST POP PUSH1 0x1 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4BE DUP6 CALLER PUSH2 0x744 JUMP JUMPDEST SWAP1 POP PUSH2 0x4E2 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND EQ DUP1 PUSH2 0x4DA JUMPI POP DUP4 DUP3 LT ISZERO JUMPDEST PUSH2 0x19E PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x4ED DUP6 DUP6 DUP6 PUSH2 0x7FF JUMP JUMPDEST CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND EQ DUP1 ISZERO SWAP1 PUSH2 0x508 JUMPI POP PUSH1 0x0 NOT DUP2 EQ ISZERO JUMPDEST ISZERO PUSH2 0x51A JUMPI PUSH2 0x51A DUP6 CALLER DUP6 DUP5 SUB PUSH2 0x78B JUMP JUMPDEST POP PUSH1 0x1 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x538 PUSH2 0x781 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x4A1 SWAP2 DUP6 SWAP1 PUSH2 0x573 SWAP1 DUP7 PUSH2 0x8E7 JUMP JUMPDEST PUSH2 0x78B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A5 DUP3 PUSH2 0x5C2 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x4 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x48A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x45F JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x48A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x64B CALLER DUP6 PUSH2 0x744 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 LT PUSH2 0x665 JUMPI PUSH2 0x660 CALLER DUP6 PUSH1 0x0 PUSH2 0x78B JUMP JUMPDEST PUSH2 0x672 JUMP JUMPDEST PUSH2 0x672 CALLER DUP6 DUP6 DUP5 SUB PUSH2 0x78B JUMP JUMPDEST POP PUSH1 0x1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A1 CALLER DUP5 DUP5 PUSH2 0x7FF JUMP JUMPDEST PUSH1 0x0 PUSH32 0x6E71EDAE12B1B97F4D1F60370FEF10105FA2FAAE0126114A169C64845D6126C9 DUP9 DUP9 DUP9 PUSH2 0x6B8 DUP13 PUSH2 0x5C2 JUMP JUMPDEST DUP10 PUSH1 0x40 MLOAD PUSH1 0x20 ADD DUP1 DUP8 DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP7 POP POP POP POP POP POP POP PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP PUSH2 0x72F DUP9 DUP3 PUSH2 0x726 DUP8 DUP8 DUP8 PUSH2 0x900 JUMP JUMPDEST DUP9 PUSH2 0x1F8 PUSH2 0x93F JUMP JUMPDEST PUSH2 0x73A DUP9 DUP9 DUP9 PUSH2 0x78B JUMP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x74E PUSH2 0x59E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x770 JUMPI POP PUSH1 0x0 NOT PUSH2 0x4A5 JUMP JUMPDEST PUSH2 0x77A DUP4 DUP4 PUSH2 0x996 JUMP JUMPDEST SWAP1 POP PUSH2 0x4A5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x538 PUSH2 0x9C1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 DUP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP6 SWAP1 SSTORE DUP2 MLOAD DUP6 DUP2 MSTORE SWAP2 MLOAD PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP3 DUP2 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST DUP2 PUSH2 0x7FB JUMPI PUSH2 0x7FB DUP2 PUSH2 0xA7F JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x816 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND ISZERO ISZERO PUSH2 0x198 PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x82D PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x199 PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x838 DUP4 DUP4 DUP4 PUSH2 0xA92 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x85E SWAP1 DUP3 PUSH2 0x1A0 PUSH2 0xA97 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP1 DUP5 AND DUP2 MSTORE KECCAK256 SLOAD PUSH2 0x88D SWAP1 DUP3 PUSH2 0x8E7 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SWAP5 SWAP1 SWAP5 SSTORE DUP1 MLOAD DUP6 DUP2 MSTORE SWAP1 MLOAD SWAP2 SWAP4 SWAP3 DUP8 AND SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP3 SWAP2 DUP3 SWAP1 SUB ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 ADD PUSH2 0x8F9 DUP5 DUP3 LT ISZERO DUP4 PUSH2 0x7ED JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x41 DUP1 DUP3 MSTORE PUSH1 0x80 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP3 SWAP2 SWAP1 PUSH1 0x20 DUP3 ADD DUP2 DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP POP SWAP1 POP DUP4 PUSH1 0x20 DUP3 ADD MSTORE DUP3 PUSH1 0x40 DUP3 ADD MSTORE DUP5 PUSH1 0x60 DUP3 ADD MSTORE8 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x94A DUP6 PUSH2 0xAAD JUMP JUMPDEST SWAP1 POP PUSH2 0x960 PUSH2 0x95A DUP8 DUP4 DUP8 PUSH2 0xAF9 JUMP JUMPDEST DUP4 PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x96F TIMESTAMP DUP5 LT ISZERO PUSH2 0x1B8 PUSH2 0x7ED JUMP JUMPDEST POP POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH32 0x0 PUSH32 0x0 PUSH2 0xA2E PUSH2 0xBC6 JUMP JUMPDEST ADDRESS PUSH1 0x40 MLOAD PUSH1 0x20 ADD DUP1 DUP7 DUP2 MSTORE PUSH1 0x20 ADD DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD SWAP6 POP POP POP POP POP POP PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0xA8F DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH2 0xBCA JUMP JUMPDEST POP JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xAA6 DUP5 DUP5 GT ISZERO DUP4 PUSH2 0x7ED JUMP JUMPDEST POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xAB7 PUSH2 0x9C1 JUMP JUMPDEST DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD DUP1 DUP1 PUSH2 0x1901 PUSH1 0xF0 SHL DUP2 MSTORE POP PUSH1 0x2 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP POP POP PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB0B DUP3 MLOAD PUSH1 0x41 EQ PUSH2 0x1B9 PUSH2 0x7ED JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x20 DUP6 ADD MLOAD SWAP3 POP PUSH1 0x40 DUP6 ADD MLOAD SWAP2 POP PUSH1 0x60 DUP6 ADD MLOAD PUSH1 0x0 BYTE SWAP1 POP PUSH1 0x0 PUSH1 0x1 DUP8 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH1 0x0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD DUP1 DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 PUSH1 0xFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP5 POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 SUB SWAP1 DUP1 DUP5 SUB SWAP1 DUP6 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xB84 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP PUSH1 0x40 MLOAD PUSH1 0x1F NOT ADD MLOAD SWAP2 POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND ISZERO DUP1 ISZERO SWAP1 PUSH2 0xBBA JUMPI POP DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ JUMPDEST SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST CHAINID SWAP1 JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH23 0x7F273473DB5AA04A56B0558148BD0346AA9D81DE9A59F1 0xB7 0xE5 GT BYTE 0x21 LOG4 PUSH31 0xE364736F6C6343000701003300000000000000000000000000000000000000 ",
+ "sourceMap": "1513:2527:26:-:0;;;1599:192;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1599:192:26;;;;;;;;;;-1:-1:-1;1599:192:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1599:192:26;;;;;;;;;;-1:-1:-1;1599:192:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1599:192:26;;;;;;;;;2020:280:49;;;;;;;;;-1:-1:-1;;;2020:280:49;;;;2118:13:50;;1599:192:26;;-1:-1:-1;1749:9:26;;-1:-1:-1;1749:9:26;;;;1724:11;;2118:13:50;;:5;;:13;;;;:::i;:::-;-1:-1:-1;2141:17:50;;;;:7;;:17;;;;;:::i;:::-;-1:-1:-1;;2168:9:50;:14;;2180:2;-1:-1:-1;;2168:14:50;;;;;;-1:-1:-1;2100:22:49;;;;;;;2085:37;;2150:25;;;;;2132:43;;-1:-1:-1;2198:95:49;2185:108;;1770:14:26::2;::::0;-1:-1:-1;;;;;;1770:14:26;::::2;::::0;-1:-1:-1;1513:2527:26;;-1:-1:-1;1513:2527:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1513:2527:26;;;-1:-1:-1;1513:2527:26;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {
+ "2030": [
+ {
+ "length": 32,
+ "start": 1440
+ }
+ ],
+ "8773": [
+ {
+ "length": 32,
+ "start": 2534
+ }
+ ],
+ "8775": [
+ {
+ "length": 32,
+ "start": 2567
+ }
+ ],
+ "8777": [
+ {
+ "length": 32,
+ "start": 2501
+ }
+ ]
+ },
+ "linkReferences": {},
+ "object": "608060405234801561001057600080fd5b506004361061011b5760003560e01c80637ecebe00116100b2578063a457c2d711610081578063d505accf11610066578063d505accf14610375578063dd62ed3e146103c8578063ed24911d146103f65761011b565b8063a457c2d71461031d578063a9059cbb146103495761011b565b80637ecebe00146102a55780638d928af8146102cb57806390193b7c146102ef57806395d89b41146103155761011b565b8063313ce567116100ee578063313ce5671461022d5780633644e5151461024b578063395093511461025357806370a082311461027f5761011b565b806306fdde0314610120578063095ea7b31461019d57806318160ddd146101dd57806323b872dd146101f7575b600080fd5b6101286103fe565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561016257818101518382015260200161014a565b50505050905090810190601f16801561018f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c9600480360360408110156101b357600080fd5b506001600160a01b038135169060200135610494565b604080519115158252519081900360200190f35b6101e56104ab565b60408051918252519081900360200190f35b6101c96004803603606081101561020d57600080fd5b506001600160a01b038135811691602081013590911690604001356104b1565b610235610525565b6040805160ff9092168252519081900360200190f35b6101e561052e565b6101c96004803603604081101561026957600080fd5b506001600160a01b03813516906020013561053d565b6101e56004803603602081101561029557600080fd5b50356001600160a01b0316610578565b6101e5600480360360208110156102bb57600080fd5b50356001600160a01b0316610593565b6102d361059e565b604080516001600160a01b039092168252519081900360200190f35b6101e56004803603602081101561030557600080fd5b50356001600160a01b03166105c2565b6101286105dd565b6101c96004803603604081101561033357600080fd5b506001600160a01b03813516906020013561063e565b6101c96004803603604081101561035f57600080fd5b506001600160a01b03813516906020013561067c565b6103c6600480360360e081101561038b57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610689565b005b6101e5600480360360408110156103de57600080fd5b506001600160a01b0381358116916020013516610744565b6101e5610781565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561048a5780601f1061045f5761010080835404028352916020019161048a565b820191906000526020600020905b81548152906001019060200180831161046d57829003601f168201915b5050505050905090565b60006104a133848461078b565b5060015b92915050565b60025490565b6000806104be8533610744565b90506104e2336001600160a01b03871614806104da5750838210155b61019e6107ed565b6104ed8585856107ff565b336001600160a01b0386161480159061050857506000198114155b1561051a5761051a853385840361078b565b506001949350505050565b60055460ff1690565b6000610538610781565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104a191859061057390866108e7565b61078b565b6001600160a01b031660009081526020819052604090205490565b60006104a5826105c2565b7f000000000000000000000000000000000000000000000000000000000000000090565b6001600160a01b031660009081526006602052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561048a5780601f1061045f5761010080835404028352916020019161048a565b60008061064b3385610744565b9050808310610665576106603385600061078b565b610672565b610672338585840361078b565b5060019392505050565b60006104a13384846107ff565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886106b88c6105c2565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b03168152602001848152602001838152602001828152602001965050505050505060405160208183030381529060405280519060200120905061072f8882610726878787610900565b886101f861093f565b61073a88888861078b565b5050505050505050565b600061074e61059e565b6001600160a01b0316826001600160a01b0316141561077057506000196104a5565b61077a8383610996565b90506104a5565b60006105386109c1565b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b816107fb576107fb81610a7f565b5050565b6108166001600160a01b03841615156101986107ed565b61082d6001600160a01b03831615156101996107ed565b610838838383610a92565b6001600160a01b03831660009081526020819052604090205461085e90826101a0610a97565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461088d90826108e7565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008282016108f984821015836107ed565b9392505050565b60408051604180825260808201909252606091829190602082018180368337019050509050836020820152826040820152846060820153949350505050565b600061094a85610aad565b905061096061095a878387610af9565b836107ed565b61096f428410156101b86107ed565b5050506001600160a01b039092166000908152600660205260409020805460010190555050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610a2e610bc6565b3060405160200180868152602001858152602001848152602001838152602001826001600160a01b031681526020019550505050505060405160208183030381529060405280519060200120905090565b610a8f816210905360ea1b610bca565b50565b505050565b6000610aa684841115836107ed565b5050900390565b6000610ab76109c1565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b6000610b0b82516041146101b96107ed565b60008060006020850151925060408501519150606085015160001a9050600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015610b84573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610bba5750876001600160a01b0316816001600160a01b0316145b98975050505050505050565b4690565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fdfea2646970667358221220767f273473db5aa04a56b0558148bd0346aa9d81de9a59f1b7e5111a21a47ee364736f6c63430007010033",
+ "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x11B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x7ECEBE00 GT PUSH2 0xB2 JUMPI DUP1 PUSH4 0xA457C2D7 GT PUSH2 0x81 JUMPI DUP1 PUSH4 0xD505ACCF GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xD505ACCF EQ PUSH2 0x375 JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x3C8 JUMPI DUP1 PUSH4 0xED24911D EQ PUSH2 0x3F6 JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x31D JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x349 JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0x7ECEBE00 EQ PUSH2 0x2A5 JUMPI DUP1 PUSH4 0x8D928AF8 EQ PUSH2 0x2CB JUMPI DUP1 PUSH4 0x90193B7C EQ PUSH2 0x2EF JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x315 JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0x313CE567 GT PUSH2 0xEE JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x22D JUMPI DUP1 PUSH4 0x3644E515 EQ PUSH2 0x24B JUMPI DUP1 PUSH4 0x39509351 EQ PUSH2 0x253 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x27F JUMPI PUSH2 0x11B JUMP JUMPDEST DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x120 JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x19D JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x1DD JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x1F7 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x128 PUSH2 0x3FE JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x162 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x14A JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x18F JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x1B3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x494 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 ISZERO ISZERO DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1E5 PUSH2 0x4AB JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x60 DUP2 LT ISZERO PUSH2 0x20D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP1 PUSH1 0x40 ADD CALLDATALOAD PUSH2 0x4B1 JUMP JUMPDEST PUSH2 0x235 PUSH2 0x525 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1E5 PUSH2 0x52E JUMP JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x269 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x53D JUMP JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x295 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x578 JUMP JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x2BB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x593 JUMP JUMPDEST PUSH2 0x2D3 PUSH2 0x59E JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x305 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x5C2 JUMP JUMPDEST PUSH2 0x128 PUSH2 0x5DD JUMP JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x333 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x63E JUMP JUMPDEST PUSH2 0x1C9 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x35F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x67C JUMP JUMPDEST PUSH2 0x3C6 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0xE0 DUP2 LT ISZERO PUSH2 0x38B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP1 PUSH1 0x40 DUP2 ADD CALLDATALOAD SWAP1 PUSH1 0x60 DUP2 ADD CALLDATALOAD SWAP1 PUSH1 0xFF PUSH1 0x80 DUP3 ADD CALLDATALOAD AND SWAP1 PUSH1 0xA0 DUP2 ADD CALLDATALOAD SWAP1 PUSH1 0xC0 ADD CALLDATALOAD PUSH2 0x689 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x1E5 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x3DE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 ADD CALLDATALOAD AND PUSH2 0x744 JUMP JUMPDEST PUSH2 0x1E5 PUSH2 0x781 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x48A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x45F JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x48A JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x46D JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A1 CALLER DUP5 DUP5 PUSH2 0x78B JUMP JUMPDEST POP PUSH1 0x1 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4BE DUP6 CALLER PUSH2 0x744 JUMP JUMPDEST SWAP1 POP PUSH2 0x4E2 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND EQ DUP1 PUSH2 0x4DA JUMPI POP DUP4 DUP3 LT ISZERO JUMPDEST PUSH2 0x19E PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x4ED DUP6 DUP6 DUP6 PUSH2 0x7FF JUMP JUMPDEST CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND EQ DUP1 ISZERO SWAP1 PUSH2 0x508 JUMPI POP PUSH1 0x0 NOT DUP2 EQ ISZERO JUMPDEST ISZERO PUSH2 0x51A JUMPI PUSH2 0x51A DUP6 CALLER DUP6 DUP5 SUB PUSH2 0x78B JUMP JUMPDEST POP PUSH1 0x1 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x538 PUSH2 0x781 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x4A1 SWAP2 DUP6 SWAP1 PUSH2 0x573 SWAP1 DUP7 PUSH2 0x8E7 JUMP JUMPDEST PUSH2 0x78B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A5 DUP3 PUSH2 0x5C2 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x4 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x48A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x45F JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x48A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x64B CALLER DUP6 PUSH2 0x744 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 LT PUSH2 0x665 JUMPI PUSH2 0x660 CALLER DUP6 PUSH1 0x0 PUSH2 0x78B JUMP JUMPDEST PUSH2 0x672 JUMP JUMPDEST PUSH2 0x672 CALLER DUP6 DUP6 DUP5 SUB PUSH2 0x78B JUMP JUMPDEST POP PUSH1 0x1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A1 CALLER DUP5 DUP5 PUSH2 0x7FF JUMP JUMPDEST PUSH1 0x0 PUSH32 0x6E71EDAE12B1B97F4D1F60370FEF10105FA2FAAE0126114A169C64845D6126C9 DUP9 DUP9 DUP9 PUSH2 0x6B8 DUP13 PUSH2 0x5C2 JUMP JUMPDEST DUP10 PUSH1 0x40 MLOAD PUSH1 0x20 ADD DUP1 DUP8 DUP2 MSTORE PUSH1 0x20 ADD DUP7 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP7 POP POP POP POP POP POP POP PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP PUSH2 0x72F DUP9 DUP3 PUSH2 0x726 DUP8 DUP8 DUP8 PUSH2 0x900 JUMP JUMPDEST DUP9 PUSH2 0x1F8 PUSH2 0x93F JUMP JUMPDEST PUSH2 0x73A DUP9 DUP9 DUP9 PUSH2 0x78B JUMP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x74E PUSH2 0x59E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x770 JUMPI POP PUSH1 0x0 NOT PUSH2 0x4A5 JUMP JUMPDEST PUSH2 0x77A DUP4 DUP4 PUSH2 0x996 JUMP JUMPDEST SWAP1 POP PUSH2 0x4A5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x538 PUSH2 0x9C1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 DUP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP6 SWAP1 SSTORE DUP2 MLOAD DUP6 DUP2 MSTORE SWAP2 MLOAD PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP3 DUP2 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST DUP2 PUSH2 0x7FB JUMPI PUSH2 0x7FB DUP2 PUSH2 0xA7F JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x816 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND ISZERO ISZERO PUSH2 0x198 PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x82D PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x199 PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x838 DUP4 DUP4 DUP4 PUSH2 0xA92 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x85E SWAP1 DUP3 PUSH2 0x1A0 PUSH2 0xA97 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP1 DUP5 AND DUP2 MSTORE KECCAK256 SLOAD PUSH2 0x88D SWAP1 DUP3 PUSH2 0x8E7 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SWAP5 SWAP1 SWAP5 SSTORE DUP1 MLOAD DUP6 DUP2 MSTORE SWAP1 MLOAD SWAP2 SWAP4 SWAP3 DUP8 AND SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP3 SWAP2 DUP3 SWAP1 SUB ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 ADD PUSH2 0x8F9 DUP5 DUP3 LT ISZERO DUP4 PUSH2 0x7ED JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x41 DUP1 DUP3 MSTORE PUSH1 0x80 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP3 SWAP2 SWAP1 PUSH1 0x20 DUP3 ADD DUP2 DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP POP SWAP1 POP DUP4 PUSH1 0x20 DUP3 ADD MSTORE DUP3 PUSH1 0x40 DUP3 ADD MSTORE DUP5 PUSH1 0x60 DUP3 ADD MSTORE8 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x94A DUP6 PUSH2 0xAAD JUMP JUMPDEST SWAP1 POP PUSH2 0x960 PUSH2 0x95A DUP8 DUP4 DUP8 PUSH2 0xAF9 JUMP JUMPDEST DUP4 PUSH2 0x7ED JUMP JUMPDEST PUSH2 0x96F TIMESTAMP DUP5 LT ISZERO PUSH2 0x1B8 PUSH2 0x7ED JUMP JUMPDEST POP POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH32 0x0 PUSH32 0x0 PUSH2 0xA2E PUSH2 0xBC6 JUMP JUMPDEST ADDRESS PUSH1 0x40 MLOAD PUSH1 0x20 ADD DUP1 DUP7 DUP2 MSTORE PUSH1 0x20 ADD DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD SWAP6 POP POP POP POP POP POP PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0xA8F DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH2 0xBCA JUMP JUMPDEST POP JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xAA6 DUP5 DUP5 GT ISZERO DUP4 PUSH2 0x7ED JUMP JUMPDEST POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xAB7 PUSH2 0x9C1 JUMP JUMPDEST DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD DUP1 DUP1 PUSH2 0x1901 PUSH1 0xF0 SHL DUP2 MSTORE POP PUSH1 0x2 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 POP POP POP PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB0B DUP3 MLOAD PUSH1 0x41 EQ PUSH2 0x1B9 PUSH2 0x7ED JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x20 DUP6 ADD MLOAD SWAP3 POP PUSH1 0x40 DUP6 ADD MLOAD SWAP2 POP PUSH1 0x60 DUP6 ADD MLOAD PUSH1 0x0 BYTE SWAP1 POP PUSH1 0x0 PUSH1 0x1 DUP8 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH1 0x0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD DUP1 DUP6 DUP2 MSTORE PUSH1 0x20 ADD DUP5 PUSH1 0xFF AND DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP5 POP POP POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 SUB SWAP1 DUP1 DUP5 SUB SWAP1 DUP6 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xB84 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP PUSH1 0x40 MLOAD PUSH1 0x1F NOT ADD MLOAD SWAP2 POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND ISZERO DUP1 ISZERO SWAP1 PUSH2 0xBBA JUMPI POP DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ JUMPDEST SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST CHAINID SWAP1 JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH23 0x7F273473DB5AA04A56B0558148BD0346AA9D81DE9A59F1 0xB7 0xE5 GT BYTE 0x21 LOG4 PUSH31 0xE364736F6C6343000701003300000000000000000000000000000000000000 ",
+ "sourceMap": "1513:2527:26:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2254:81:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4857:164;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4857:164:50;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3500:106;;;:::i;:::-;;;;;;;;;;;;;;;;2575:655:26;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2575:655:26;;;;;;;;;;;;;;;;;:::i;3156:81:50:-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2243:113:51;;;:::i;6269:211:50:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6269:211:50;;;;;;;;:::i;4022:117::-;;;;;;;;;;;;;;;;-1:-1:-1;4022:117:50;-1:-1:-1;;;;;4022:117:50;;:::i;2006:113:51:-;;;;;;;;;;;;;;;;-1:-1:-1;2006:113:51;-1:-1:-1;;;;;2006:113:51;;:::i;1797:79:26:-;;;:::i;:::-;;;;-1:-1:-1;;;;;1797:79:26;;;;;;;;;;;;;;1303:121:40;;;;;;;;;;;;;;;;-1:-1:-1;1303:121:40;-1:-1:-1;;;;;1303:121:40;;:::i;2448:85:50:-;;;:::i;3356:429:26:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3356:429:26;;;;;;;;:::i;4342:170:50:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4342:170:50;;;;;;;;:::i;1437:508:51:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1437:508:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2178:254:26;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2178:254:26;;;;;;;;;;:::i;1184:113:40:-;;;:::i;2254:81:50:-;2323:5;2316:12;;;;;;;;-1:-1:-1;;2316:12:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2291:13;;2316:12;;2323:5;;2316:12;;2323:5;2316:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2254:81;:::o;4857:164::-;4940:4;4956:37;4965:10;4977:7;4986:6;4956:8;:37::i;:::-;-1:-1:-1;5010:4:50;4857:164;;;;;:::o;3500:106::-;3587:12;;3500:106;:::o;2575:655:26:-;2703:4;2719:24;2746:29;2756:6;2764:10;2746:9;:29::i;:::-;2719:56;-1:-1:-1;2785:101:26;2794:10;-1:-1:-1;;;;;2794:20:26;;;;:50;;;2838:6;2818:16;:26;;2794:50;10712:3:10;2785:8:26;:101::i;:::-;2897:36;2907:6;2915:9;2926:6;2897:9;:36::i;:::-;2948:10;-1:-1:-1;;;;;2948:20:26;;;;;;:55;;;-1:-1:-1;;2972:16:26;:31;;2948:55;2944:258;;;3136:55;3145:6;3153:10;3184:6;3165:16;:25;3136:8;:55::i;:::-;-1:-1:-1;3219:4:26;;2575:655;-1:-1:-1;;;;2575:655:26:o;3156:81:50:-;3221:9;;;;3156:81;:::o;2243:113:51:-;2303:7;2329:20;:18;:20::i;:::-;2322:27;;2243:113;:::o;6269:211:50:-;6382:10;6357:4;6403:23;;;:11;:23;;;;;;;;-1:-1:-1;;;;;6403:32:50;;;;;;;;;;6357:4;;6373:79;;6394:7;;6403:48;;6440:10;6403:36;:48::i;:::-;6373:8;:79::i;4022:117::-;-1:-1:-1;;;;;4114:18:50;4088:7;4114:18;;;;;;;;;;;;4022:117::o;2006:113:51:-;2067:7;2093:19;2106:5;2093:12;:19::i;1797:79:26:-;1863:6;1797:79;:::o;1303:121:40:-;-1:-1:-1;;;;;1398:19:40;1372:7;1398:19;;;:10;:19;;;;;;;1303:121::o;2448:85:50:-;2519:7;2512:14;;;;;;;;-1:-1:-1;;2512:14:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2487:13;;2512:14;;2519:7;;2512:14;;2519:7;2512:14;;;;;;;;;;;;;;;;;;;;;;;;3356:429:26;3441:4;3457:24;3484:30;3494:10;3506:7;3484:9;:30::i;:::-;3457:57;;3539:16;3529:6;:26;3525:232;;3571:32;3580:10;3592:7;3601:1;3571:8;:32::i;:::-;3525:232;;;3690:56;3699:10;3711:7;3739:6;3720:16;:25;3690:8;:56::i;:::-;-1:-1:-1;3774:4:26;;3356:429;-1:-1:-1;;;3356:429:26:o;4342:170:50:-;4428:4;4444:40;4454:10;4466:9;4477:6;4444:9;:40::i;1437:508:51:-;1645:18;921:109;1718:5;1725:7;1734:5;1741:19;1754:5;1741:12;:19::i;:::-;1762:8;1689:82;;;;;;;;;;;-1:-1:-1;;;;;1689:82:51;;;;;;-1:-1:-1;;;;;1689:82:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1666:115;;;;;;1645:136;;1792:104;1814:5;1821:10;1833:26;1851:1;1854;1857;1833:17;:26::i;:::-;1861:8;12759:3:10;1792:21:51;:104::i;:::-;1907:31;1916:5;1923:7;1932:5;1907:8;:31::i;:::-;1437:508;;;;;;;;:::o;2178:254:26:-;2259:7;2301:10;:8;:10::i;:::-;-1:-1:-1;;;;;2282:30:26;:7;-1:-1:-1;;;;;2282:30:26;;2278:148;;;-1:-1:-1;;;2328:18:26;;2278:148;2384:31;2400:5;2407:7;2384:15;:31::i;:::-;2377:38;;;;1184:113:40;1244:7;1270:20;:18;:20::i;10034:213:50:-;-1:-1:-1;;;;;10157:18:50;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10208:32;;;;;;;;;;;;;;;;;10034:213;;;:::o;918:101:10:-;987:9;982:34;;998:18;1006:9;998:7;:18::i;:::-;918:101;;:::o;7753:559:50:-;7880:71;-1:-1:-1;;;;;7889:20:50;;;;10308:3:10;7880:8:50;:71::i;:::-;7961:72;-1:-1:-1;;;;;7970:23:50;;;;10376:3:10;7961:8:50;:72::i;:::-;8044:47;8065:6;8073:9;8084:6;8044:20;:47::i;:::-;-1:-1:-1;;;;;8122:17:50;;:9;:17;;;;;;;;;;;:68;;8144:6;10854:3:10;8122:21:50;:68::i;:::-;-1:-1:-1;;;;;8102:17:50;;;:9;:17;;;;;;;;;;;:88;;;;8223:20;;;;;;;:32;;8248:6;8223:24;:32::i;:::-;-1:-1:-1;;;;;8200:20:50;;;:9;:20;;;;;;;;;;;;:55;;;;8270:35;;;;;;;8200:20;;8270:35;;;;;;;;;;;;;7753:559;;;:::o;966:167:53:-;1024:7;1055:5;;;1070:37;1079:6;;;;1024:7;1070:8;:37::i;:::-;1125:1;966:167;-1:-1:-1;;;966:167:53:o;3803:419:40:-;3963:13;;;3973:2;3963:13;;;;;;;;;3914:12;;;;3963:13;;;;;;;;;;;-1:-1:-1;3963:13:40;3938:38;;4092:1;4087:2;4076:9;4072:18;4065:29;4134:1;4129:2;4118:9;4114:18;4107:29;4177:1;4172:2;4161:9;4157:18;4149:30;4206:9;3803:419;-1:-1:-1;;;;3803:419:40:o;1701:1214::-;1895:14;1912:28;1929:10;1912:16;:28::i;:::-;1895:45;;1950:66;1959:45;1977:7;1986:6;1994:9;1959:17;:45::i;:::-;2006:9;1950:8;:66::i;:::-;2487:63;2508:15;2496:8;:27;;12277:3:10;2487:8:40;:63::i;:::-;-1:-1:-1;;;;;;;;2884:19:40;;;;;;;:10;:19;;;;;:24;;2907:1;2884:24;;;-1:-1:-1;;1701:1214:40:o;4570:149:50:-;-1:-1:-1;;;;;4685:18:50;;;4659:7;4685:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;4570:149::o;2386:188:49:-;2447:7;2494:10;2506:12;2520:15;2537:13;:11;:13::i;:::-;2560:4;2483:83;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2483:83:49;;;;;;;;;;;;;;;;;;;;;;;;2473:94;;;;;;2466:101;;2386:188;:::o;1437:126:10:-;1484:28;1492:9;-1:-1:-1;;;1484:7:10;:28::i;:::-;1437:126;:::o;11245:183:50:-;;;;:::o;1816:206:53:-;1923:7;1942:27;1956:1;1951;:6;;1959:9;1942:8;:27::i;:::-;-1:-1:-1;;1991:5:53;;;1816:206::o;3199:183:49:-;3276:7;3341:20;:18;:20::i;:::-;3363:10;3312:62;;;;;;-1:-1:-1;;;3312:62:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3302:73;;;;;;3295:80;;3199:183;;;:::o;2921:876:40:-;3066:4;3082:60;3091:9;:16;3111:2;3091:22;12334:3:10;3082:8:40;:60::i;:::-;3153:9;3172;3191:7;3427:4;3416:9;3412:20;3406:27;3401:32;;3472:4;3461:9;3457:20;3451:27;3446:32;;3525:4;3514:9;3510:20;3504:27;3501:1;3496:36;3491:41;;3552:24;3579:26;3589:6;3597:1;3600;3603;3579:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3579:26:40;;-1:-1:-1;;3579:26:40;;;-1:-1:-1;;;;;;;3728:30:40;;;;;;:61;;;3782:7;-1:-1:-1;;;;;3762:27:40;:16;-1:-1:-1;;;;;3762:27:40;;3728:61;3720:70;2921:876;-1:-1:-1;;;;;;;;2921:876:40:o;3388:427:49:-;3790:9;;3765:44::o;1670:3378:10:-;-1:-1:-1;;;1732:18:10;4383:79;;;4601:66;4595:4;4588:80;4743:1;4737:4;4730:15;2871:2;2904:18;;;2949;;;2876:4;2945:29;;;3747:1;3838:14;2856:18;;;;3827:26;;;;2997:18;;;;3044;;;3040:29;;3859:2;3855:17;3823:50;3737:4;3743:18;;;;;;3733:29;3729:2;3725:38;3802:72;;;;3797:3;3793:82;4810:4;4803:26;1761:14;;;;;5036:3;;5026:14"
+ },
+ "methodIdentifiers": {
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c",
+ "getVault()": "8d928af8",
+ "increaseAllowance(address,uint256)": "39509351",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"tokenSymbol\",\"type\":\"string\"},{\"internalType\":\"contract IVault\",\"name\":\"vault\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"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\":\"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\":[{\"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\":\"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\"}],\"devdoc\":{\"author\":\"Balancer Labs\",\"details\":\"- Includes functions to increase and decrease allowance as a workaround for the well-known issue with `approve`: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 - Allows for 'infinite allowance', where an allowance of 0xff..ff is not decreased by calls to transferFrom - Lets a token holder use `transferFrom` to send their own tokens, without first setting allowance - Emits 'Approval' events whenever allowance is changed by `transferFrom` - Assigns infinite allowance for all token holders to the Vault\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval. This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this contract inherits.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Override to allow decreasing allowance by more than the current amount (setting it to zero)\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\"}},\"title\":\"Highly opinionated token implementation\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":\"BalancerPoolToken\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol": {
+ "BaseGeneralPool": {
+ "abi": [
+ {
+ "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": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "SwapFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeesCollector",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeesCollector",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "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": "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum IVault.SwapKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "tokenIn",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "tokenOut",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "internalType": "struct IPoolSwapStructs.SwapRequest",
+ "name": "swapRequest",
+ "type": "tuple"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "indexIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "indexOut",
+ "type": "uint256"
+ }
+ ],
+ "name": "onSwap",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "poolConfig",
+ "type": "bytes"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "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": [],
+ "name": "unpause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c",
+ "getOwner()": "893d20e8",
+ "getPausedState()": "1c0de051",
+ "getPoolId()": "38fff2d0",
+ "getProtocolFeesCollector()": "d2946c2b",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "getVault()": "8d928af8",
+ "inRecoveryMode()": "b35056b8",
+ "increaseAllowance(address,uint256)": "39509351",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "onSwap((uint8,address,address,uint256,bytes32,uint256,address,address,bytes),uint256[],uint256,uint256)": "01ec954a",
+ "pause()": "8456cb59",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817",
+ "setAssetManagerPoolConfig(address,bytes)": "50dd6ed9",
+ "setSwapFeePercentage(uint256)": "38e9922e",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd",
+ "unpause()": "3f4ba83a"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"SwapFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeesCollector\",\"outputs\":[{\"internalType\":\"contract IProtocolFeesCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"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\":\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum IVault.SwapKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"contract IERC20\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"contract IERC20\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"struct IPoolSwapStructs.SwapRequest\",\"name\":\"swapRequest\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"indexIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"indexOut\",\"type\":\"uint256\"}],\"name\":\"onSwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"name\":\"setAssetManagerPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"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\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Extension of `BasePool`, adding a handler for `IGeneralPool.onSwap`. Derived contracts must call `BasePool`'s constructor, and implement `_onSwapGivenIn` and `_onSwapGivenOut` along with `BasePool`'s virtual functions. Inheriting from this contract lets derived contracts choose the General specialization setting.\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval. This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this contract inherits.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Override to allow decreasing allowance by more than the current amount (setting it to zero)\"},\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getPausedState()\":{\"details\":\"Returns the current contract pause status, as well as the end times of the Pause Window and Buffer Period.\"},\"getProtocolFeesCollector()\":{\"details\":\"This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"This is stored in `_miscData`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `exitPool`.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `joinPool`.\"},\"pause()\":{\"details\":\"This is a permissioned function that will only work during the Pause Window set during pool factory deployment (see `TemporarilyPausable`).\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the Vault with the same arguments, along with the number of tokens `sender` would have to supply. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"details\":\"This is a permissioned function, unavailable when the pool is paused. The details of the configuration data are set by each Asset Manager. (For an example, see `RewardsAssetManager`.)\"},\"setSwapFeePercentage(uint256)\":{\"details\":\"This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\"},\"unpause()\":{\"details\":\"This is a permissioned function that will only work on a paused pool within the Buffer Period set during pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause after the Buffer Period expires.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"getPoolId()\":{\"notice\":\"Return the pool id.\"},\"getProtocolFeesCollector()\":{\"notice\":\"Return the ProtocolFeesCollector contract.\"},\"getSwapFeePercentage()\":{\"notice\":\"Return the current value of the swap fee percentage.\"},\"inRecoveryMode()\":{\"notice\":\"Returns whether the pool is in Recovery Mode.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for removing liquidity from a pool.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for adding liquidity to a pool (including the first time, \\\"initializing\\\" the pool).\"},\"pause()\":{\"notice\":\"Pause the pool: an emergency action which disables all pool functions.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onExitPool`.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onJoinPool`.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"notice\":\"Set the asset manager parameters for the given token.\"},\"setSwapFeePercentage(uint256)\":{\"notice\":\"Set the swap fee percentage.\"},\"unpause()\":{\"notice\":\"Reverse a `pause` operation, and restore a pool to normal functionality.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol\":\"BaseGeneralPool\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol\":{\"keccak256\":\"0x7f11733a5cd8f81c123c02f79d94ead7b65217021ebddafda10e796a25e1ef41\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://7333060b9ff67e1fe734903d45b0c69ff8308b744f7c2fb8fbf630ae9d589bd6\",\"dweb:/ipfs/Qmf4rZHqsjfKDk5cSp38fv24SS8bAYJxYYQzn63TV6aPCo\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol\":{\"keccak256\":\"0xcd8cfa91f7e0c2bdbe1dceb37caddf211ce411e51de567594434da9ad2edc5e2\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://58db2ea702a5eb370172402784e7e260337b61d1f8d5338142a1bde1b6718c4d\",\"dweb:/ipfs/QmZBogEchmaq3CEadrFidyWczyyuLT987wjZRHwAb6nPWg\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":{\"keccak256\":\"0xefc640c1439bb12d652be70b20778ce123f13a42793e75a51819ed0aa3d7b8f0\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70dcf796a2295082edc1d499b26375e2001d4b87d151eb9fd7cb7b532fa8a9a8\",\"dweb:/ipfs/QmZrdWVr9qrohsFPLHX1jS37Qdnd8wCceYojRWR5xuP7RX\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BasePool.sol": {
+ "BasePool": {
+ "abi": [
+ {
+ "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": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "SwapFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeesCollector",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeesCollector",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "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": "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "poolConfig",
+ "type": "bytes"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "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": [],
+ "name": "unpause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c",
+ "getOwner()": "893d20e8",
+ "getPausedState()": "1c0de051",
+ "getPoolId()": "38fff2d0",
+ "getProtocolFeesCollector()": "d2946c2b",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "getVault()": "8d928af8",
+ "inRecoveryMode()": "b35056b8",
+ "increaseAllowance(address,uint256)": "39509351",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "pause()": "8456cb59",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817",
+ "setAssetManagerPoolConfig(address,bytes)": "50dd6ed9",
+ "setSwapFeePercentage(uint256)": "38e9922e",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd",
+ "unpause()": "3f4ba83a"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"SwapFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeesCollector\",\"outputs\":[{\"internalType\":\"contract IProtocolFeesCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"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\":\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"name\":\"setAssetManagerPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"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\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Reference implementation for the base layer of a Pool contract that manages a single Pool with optional Asset Managers, an admin-controlled swap fee percentage, and an emergency pause mechanism. This Pool pays protocol fees by minting BPT directly to the ProtocolFeeCollector instead of using the `dueProtocolFees` return value. This results in the underlying tokens continuing to provide liquidity for traders, while still keeping gas usage to a minimum since only a single token (the BPT) is transferred. Note that neither swap fees nor the pause mechanism are used by this contract. They are passed through so that derived contracts can use them via the `_addSwapFeeAmount` and `_subtractSwapFeeAmount` functions, and the `whenNotPaused` modifier. No admin permissions are checked here: instead, this contract delegates that to the Vault's own Authorizer. Because this contract doesn't implement the swap hooks, derived contracts should generally inherit from BaseGeneralPool or BaseMinimalSwapInfoPool. Otherwise, subclasses must inherit from the corresponding interfaces and implement the swap callbacks themselves.\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval. This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this contract inherits.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Override to allow decreasing allowance by more than the current amount (setting it to zero)\"},\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getPausedState()\":{\"details\":\"Returns the current contract pause status, as well as the end times of the Pause Window and Buffer Period.\"},\"getProtocolFeesCollector()\":{\"details\":\"This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"This is stored in `_miscData`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `exitPool`.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `joinPool`.\"},\"pause()\":{\"details\":\"This is a permissioned function that will only work during the Pause Window set during pool factory deployment (see `TemporarilyPausable`).\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the Vault with the same arguments, along with the number of tokens `sender` would have to supply. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"details\":\"This is a permissioned function, unavailable when the pool is paused. The details of the configuration data are set by each Asset Manager. (For an example, see `RewardsAssetManager`.)\"},\"setSwapFeePercentage(uint256)\":{\"details\":\"This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\"},\"unpause()\":{\"details\":\"This is a permissioned function that will only work on a paused pool within the Buffer Period set during pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause after the Buffer Period expires.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"getPoolId()\":{\"notice\":\"Return the pool id.\"},\"getProtocolFeesCollector()\":{\"notice\":\"Return the ProtocolFeesCollector contract.\"},\"getSwapFeePercentage()\":{\"notice\":\"Return the current value of the swap fee percentage.\"},\"inRecoveryMode()\":{\"notice\":\"Returns whether the pool is in Recovery Mode.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for removing liquidity from a pool.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for adding liquidity to a pool (including the first time, \\\"initializing\\\" the pool).\"},\"pause()\":{\"notice\":\"Pause the pool: an emergency action which disables all pool functions.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onExitPool`.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onJoinPool`.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"notice\":\"Set the asset manager parameters for the given token.\"},\"setSwapFeePercentage(uint256)\":{\"notice\":\"Set the swap fee percentage.\"},\"unpause()\":{\"notice\":\"Reverse a `pause` operation, and restore a pool to normal functionality.\"}},\"notice\":\"Reference implementation for the base layer of a Pool contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":\"BasePool\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":{\"keccak256\":\"0xefc640c1439bb12d652be70b20778ce123f13a42793e75a51819ed0aa3d7b8f0\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70dcf796a2295082edc1d499b26375e2001d4b87d151eb9fd7cb7b532fa8a9a8\",\"dweb:/ipfs/QmZrdWVr9qrohsFPLHX1jS37Qdnd8wCceYojRWR5xuP7RX\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol": {
+ "BasePoolAuthorization": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getOwner()": "893d20e8"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Base authorization layer implementation for Pools. The owner account can call some of the permissioned functions - access control of the rest is delegated to the Authorizer. Note that this owner is immutable: more sophisticated permission schemes, such as multiple ownership, granular roles, etc., could be built on top of this by making the owner a smart contract. Access control of all other permissioned functions is delegated to an Authorizer. It is also possible to delegate control of *all* permissioned functions to the Authorizer by setting the owner address to `_DELEGATE_OWNER`.\",\"kind\":\"dev\",\"methods\":{\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":\"BasePoolAuthorization\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol": {
+ "RecoveryMode": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getOwner()": "893d20e8",
+ "inRecoveryMode()": "b35056b8"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"This is intended to provide a safe way to exit any pool during some kind of emergency, to avoid locking funds in the event the pool enters a non-functional state (i.e., some code that normally runs during exits is causing them to revert). Recovery Mode is *not* the same as pausing the pool. The pause function is only available during a short window after factory deployment. Pausing can only be intentionally reversed during a buffer period, and the contract will permanently unpause itself thereafter. Paused pools are completely disabled, in a kind of suspended animation, until they are voluntarily or involuntarily unpaused. By contrast, a privileged account - typically a governance multisig - can place a pool in Recovery Mode at any time, and it is always reversible. The pool is *not* disabled while in this mode: though of course whatever condition prompted the transition to Recovery Mode has likely effectively disabled some functions. Rather, a special \\\"clean\\\" exit is enabled, which runs the absolute minimum code necessary to exit proportionally. In particular, stable pools do not attempt to compute the invariant (which is a complex, iterative calculation that can fail in extreme circumstances), and no protocol fees are collected. It is critical to ensure that turning on Recovery Mode would do no harm, if activated maliciously or in error.\",\"kind\":\"dev\",\"methods\":{\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"inRecoveryMode()\":{\"notice\":\"Override to check storage and return whether the pool is in Recovery Mode\"}},\"notice\":\"Handle storage and state changes for pools that support \\\"Recovery Mode\\\".\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":\"RecoveryMode\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol": {
+ "BasePoolFactory": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "FactoryDisabled",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "pool",
+ "type": "address"
+ }
+ ],
+ "name": "PoolCreated",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "disable",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getCreationCode",
+ "outputs": [
+ {
+ "internalType": "bytes",
+ "name": "",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getCreationCodeContracts",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "contractA",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "contractB",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeePercentagesProvider",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeePercentagesProvider",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isDisabled",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "pool",
+ "type": "address"
+ }
+ ],
+ "name": "isPoolFromFactory",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "disable()": "2f2770db",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getCreationCode()": "00c194db",
+ "getCreationCodeContracts()": "174481fa",
+ "getProtocolFeePercentagesProvider()": "739238d6",
+ "getVault()": "8d928af8",
+ "isDisabled()": "6c57f5a9",
+ "isPoolFromFactory(address)": "6634b753"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[],\"name\":\"FactoryDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"disable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCreationCode\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCreationCodeContracts\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"contractA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"contractB\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeePercentagesProvider\",\"outputs\":[{\"internalType\":\"contract IProtocolFeePercentagesProvider\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isDisabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"isPoolFromFactory\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"By using the split code mechanism, we can deploy Pools with creation code so large that a regular factory contract would not be able to store it. Since we expect to release new versions of pool types regularly - and the blockchain is forever - versioning will become increasingly important. Governance can deprecate a factory by calling `disable`, which will permanently prevent the creation of any future pools from the factory.\",\"kind\":\"dev\",\"methods\":{\"disable()\":{\"details\":\"Disable the factory, preventing the creation of more pools. Already existing pools are unaffected. Once a factory is disabled, it cannot be re-enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getCreationCode()\":{\"details\":\"Returns the creation code of the contract this factory creates.\"},\"getCreationCodeContracts()\":{\"details\":\"Returns the two addresses where the creation code of the contract crated by this factory is stored.\"},\"isDisabled()\":{\"details\":\"Check whether the derived factory has been disabled.\"},\"isPoolFromFactory(address)\":{\"details\":\"Returns true if `pool` was created by this factory.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getAuthorizer()\":{\"notice\":\"Returns the Authorizer\"},\"getVault()\":{\"notice\":\"Returns the Balancer Vault\"}},\"notice\":\"Base contract for Pool factories. Pools are deployed from factories to allow third parties to reason about them. Unknown Pools may have arbitrary logic: being able to assert that a Pool's behavior follows certain rules (those imposed by the contracts created by the factory) is very powerful.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol\":\"BasePoolFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol\":{\"keccak256\":\"0x1e5bca6b4fb897adc2458f65aa7abed8499dcf146ac5872c62544d91516867cb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://faa81254fe029b7ccd05635d6919da30bcb2114026996d10f6b51fc0e1f5b850\",\"dweb:/ipfs/Qmax3d2kq51xjt6hjYgskuXSrsB3fBZ4LAxBPRDDzbg8XD\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol\":{\"keccak256\":\"0xf5cf4f466955514781a7a7c571b905ed20168ea5b352963bcf5dd2d8fd4fd0e9\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://5e0c9405a058b809ceee4d89187c67926f20e2ec5cf9f5b77d14226780674b27\",\"dweb:/ipfs/QmXCbDCthmF34C7bzHMS15x8jV7kBXgmGe2Xwoop1b9NQ4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":{\"keccak256\":\"0xf6fd47a273c8f275d115dac4d216acffd976573410a5f92e2dd8c1125ce3b134\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://41febf9d4bc242065cb96d9d1258e926bf1b4f4c36131964cbf0b4cdd5ce1f99\",\"dweb:/ipfs/QmbKk893VkGw3w49xWyQS8ehqdXxbL4sqNW6TcWMXRpnGu\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol\":{\"keccak256\":\"0xfa19a22448dab30922839cf2050fd3d4d6d0ab427ac5029dc2b6d3e9cba3c2fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://32f6977e576f94db0515312a6687c71d4c5d8f7d6889991fac293f18930f2f3b\",\"dweb:/ipfs/QmbRTciYsQUNqecRcq7xNnqxLBgdoyBKnr4VDdkgmenk7e\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol\":{\"keccak256\":\"0xd13a9c66440204fdd94c422e4759e323d396c1bd1ee8d3858f33917cc65e60d6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://052a2c0319dc342444101a99bd91527c1c33d38e5bf3037ede11299a6a2a6e41\",\"dweb:/ipfs/QmSYSGZ4UpSAvEJbd4zSjRAzfie1GkBgByvCei46JxY5Zh\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol\":{\"keccak256\":\"0x77e86d8251dfa9c442b94dde2fabbd3aab7af34e64fb9bb2c8236c74da844f1f\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://b1d03e9151b3c4bc46166e6c28a8ee7bac9c9681e651e01688067566af55f184\",\"dweb:/ipfs/QmZacZh87hu4SQpsZvEaaRJRfLjP9fLwP8CK6pC8TxW7pE\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol\":{\"keccak256\":\"0x6c48b193602f6d6407e8fca3389fb32264a91f1de8ec33db209694e3bf9d0d13\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1fa358f1537907cdd9f6b176f5a1effbbe9925429634038e9c533493ed824cab\",\"dweb:/ipfs/QmW1EcMLkMFuDKrPwWJ2qhBkmVzAUTVEMP75kw7D8XTjJf\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol": {
+ "FactoryWidePauseWindow": {
+ "abi": [
+ {
+ "inputs": [],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "inputs": [],
+ "name": "getPauseConfiguration",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowDuration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodDuration",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60a060405234801561001057600080fd5b50426276a7000160805260805160f461003560003980604e52806076525060f46000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80632da47c4014602d575b600080fd5b60336048565b604051603f92919060b0565b60405180910390f35b600080427f000000000000000000000000000000000000000000000000000000000000000081101560a257807f000000000000000000000000000000000000000000000000000000000000000003925062278d00915060ab565b60009250600091505b509091565b91825260208201526040019056fea2646970667358221220309236fe30e9b3732d30ffdb6e543435f334fa388c197eece7f3f01c1e3e4b6b64736f6c63430007010033",
+ "opcodes": "PUSH1 0xA0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP TIMESTAMP PUSH3 0x76A700 ADD PUSH1 0x80 MSTORE PUSH1 0x80 MLOAD PUSH1 0xF4 PUSH2 0x35 PUSH1 0x0 CODECOPY DUP1 PUSH1 0x4E MSTORE DUP1 PUSH1 0x76 MSTORE POP PUSH1 0xF4 PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x28 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2DA47C40 EQ PUSH1 0x2D JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x33 PUSH1 0x48 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x3F SWAP3 SWAP2 SWAP1 PUSH1 0xB0 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 TIMESTAMP PUSH32 0x0 DUP2 LT ISZERO PUSH1 0xA2 JUMPI DUP1 PUSH32 0x0 SUB SWAP3 POP PUSH3 0x278D00 SWAP2 POP PUSH1 0xAB JUMP JUMPDEST PUSH1 0x0 SWAP3 POP PUSH1 0x0 SWAP2 POP JUMPDEST POP SWAP1 SWAP2 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 ADDRESS SWAP3 CALLDATASIZE INVALID ADDRESS 0xE9 0xB3 PUSH20 0x2D30FFDB6E543435F334FA388C197EECE7F3F01C 0x1E RETURNDATACOPY 0x4B PUSH12 0x64736F6C6343000701003300 ",
+ "sourceMap": "1085:1870:32:-:0;;;1601:106;;;;;;;;;-1:-1:-1;1652:15:32;1337:7;1652:48;1625:75;;1085:1870;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {
+ "4291": [
+ {
+ "length": 32,
+ "start": 78
+ },
+ {
+ "length": 32,
+ "start": 118
+ }
+ ]
+ },
+ "linkReferences": {},
+ "object": "6080604052348015600f57600080fd5b506004361060285760003560e01c80632da47c4014602d575b600080fd5b60336048565b604051603f92919060b0565b60405180910390f35b600080427f000000000000000000000000000000000000000000000000000000000000000081101560a257807f000000000000000000000000000000000000000000000000000000000000000003925062278d00915060ab565b60009250600091505b509091565b91825260208201526040019056fea2646970667358221220309236fe30e9b3732d30ffdb6e543435f334fa388c197eece7f3f01c1e3e4b6b64736f6c63430007010033",
+ "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x28 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x2DA47C40 EQ PUSH1 0x2D JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x33 PUSH1 0x48 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x3F SWAP3 SWAP2 SWAP1 PUSH1 0xB0 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 TIMESTAMP PUSH32 0x0 DUP2 LT ISZERO PUSH1 0xA2 JUMPI DUP1 PUSH32 0x0 SUB SWAP3 POP PUSH3 0x278D00 SWAP2 POP PUSH1 0xAB JUMP JUMPDEST PUSH1 0x0 SWAP3 POP PUSH1 0x0 SWAP2 POP JUMPDEST POP SWAP1 SWAP2 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 ADDRESS SWAP3 CALLDATASIZE INVALID ADDRESS 0xE9 0xB3 PUSH20 0x2D30FFDB6E543435F334FA388C197EECE7F3F01C 0x1E RETURNDATACOPY 0x4B PUSH12 0x64736F6C6343000701003300 ",
+ "sourceMap": "1085:1870:32:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2066:887;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;2120:27;;2211:15;2254:24;2240:38;;2236:711;;;2577:11;2550:24;:38;2528:60;;1401:7;2637:46;;2236:711;;;2897:1;2875:23;;2935:1;2912:24;;2236:711;2066:887;;;:::o;125:333:-1:-;76:37;;;444:2;429:18;;76:37;280:2;265:18;;251:207::o"
+ },
+ "methodIdentifiers": {
+ "getPauseConfiguration()": "2da47c40"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getPauseConfiguration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"pauseWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodDuration\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Utility to create Pool factories for Pools that use the `TemporarilyPausable` contract. By calling `TemporarilyPausable`'s constructor with the result of `getPauseConfiguration`, all Pools created by this factory will share the same Pause Window end time, after which both old and new Pools will not be pausable.\",\"kind\":\"dev\",\"methods\":{\"getPauseConfiguration()\":{\"details\":\"Returns the current `TemporarilyPausable` configuration that will be applied to Pools created by this factory. `pauseWindowDuration` will decrease over time until it reaches zero, at which point both it and `bufferPeriodDuration` will be zero forever, meaning deployed Pools will not be pausable.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol\":\"FactoryWidePauseWindow\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol\":{\"keccak256\":\"0x7d764b70fdb9f4d2b07f2914ff5deec66f1bc193741017afef2fa14be57dc4ef\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8184f7aea4afaa63bff9352da02293d8423d71a394620d561c7e861fde12f921\",\"dweb:/ipfs/QmRdokGbResxbERJ72ofPNkK2PTivkBQ6W3mJPxTJ3oqBU\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol": {
+ "InvariantGrowthProtocolSwapFees": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c2326998ff7df64f224fa52ea0dfd442da579fbb1990399ba72ea44fbdce179664736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC2 ORIGIN PUSH10 0x98FF7DF64F224FA52EA0 0xDF 0xD4 TIMESTAMP 0xDA JUMPI SWAP16 0xBB NOT SWAP1 CODECOPY SWAP12 0xA7 0x2E LOG4 0x4F 0xBD 0xCE OR SWAP7 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "883:4463:33:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c2326998ff7df64f224fa52ea0dfd442da579fbb1990399ba72ea44fbdce179664736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC2 ORIGIN PUSH10 0x98FF7DF64F224FA52EA0 0xDF 0xD4 TIMESTAMP 0xDA JUMPI SWAP16 0xBB NOT SWAP1 CODECOPY SWAP12 0xA7 0x2E LOG4 0x4F 0xBD 0xCE OR SWAP7 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "883:4463:33:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol\":\"InvariantGrowthProtocolSwapFees\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol\":{\"keccak256\":\"0x65f93b8bac780e69e0ec41db98645323401686649dc61f9fa24d015d11084dfe\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://46b2c14982f82375159bb984548fd3bf4764972dd5cc0b2d40de82d0f3ccd28f\",\"dweb:/ipfs/QmPYfeoLCDwwDE6TDNRrnSQWniMgwuZSNJQ2Ycm3uRuBPs\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol\":{\"keccak256\":\"0x1130ae270fcca20807ddd46644d2b4dbff73484f3fca9b7bf927043a6c1acf09\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://2c20940f2a3cb1c32ce122a769fb56517b3dd4c8f24c9288e53de83ec640666b\",\"dweb:/ipfs/Qma1AvNk3SjJeUuwyVjWqKqH2KCoVEAovjwfpnt8EsNeTN\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol": {
+ "ProtocolFeeCache": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "protocolFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "ProtocolFeePercentageCacheUpdated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ }
+ ],
+ "name": "getProtocolFeePercentageCache",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolSwapFeeDelegation",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "updateProtocolFeePercentageCache",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL()": "ddf4627b",
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getOwner()": "893d20e8",
+ "getProtocolFeePercentageCache(uint256)": "70464016",
+ "getProtocolSwapFeeDelegation()": "15b0015b",
+ "inRecoveryMode()": "b35056b8",
+ "updateProtocolFeePercentageCache()": "0da0669c"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFeePercentage\",\"type\":\"uint256\"}],\"name\":\"ProtocolFeePercentageCacheUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"}],\"name\":\"getProtocolFeePercentageCache\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolSwapFeeDelegation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateProtocolFeePercentageCache\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The Vault does not provide the protocol swap fee percentage in swap hooks (as swaps don't typically need this value), so for swaps that need this value, we would have to to fetch it ourselves from the ProtocolFeePercentagesProvider. Additionally, other protocol fee types (such as Yield or AUM) can only be obtained by making said call. However, these values change so rarely that it doesn't make sense to perform the required calls to get the current values in every single user interaction. Instead, we keep a local copy that can be permissionlessly updated by anyone with the real value. We also pack these values together, performing a single storage read to get them all. When initialized with a special sentinel value, the swap fee is delegated, meaning the mutable protocol swap fee cache is set to the current value stored in the ProtocolFeePercentagesProvider, and can be updated by anyone with a call to `updateProtocolFeePercentageCache`. Any other value means the protocol swap fee is fixed, so it is instead stored in the immutable `_fixedProtocolSwapFeePercentage`.\",\"kind\":\"dev\",\"methods\":{\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getProtocolFeePercentageCache(uint256)\":{\"details\":\"Returns the cached protocol fee percentage. If `getProtocolSwapFeeDelegation()` is false, this value is immutable for swap fee queries. Alternatively, it will track the global fee percentage set in the ProtocolFeePercentagesProvider.\"},\"getProtocolSwapFeeDelegation()\":{\"details\":\"Returns whether this Pool tracks protocol swap fee changes in the IProtocolFeePercentagesProvider.\"},\"updateProtocolFeePercentageCache()\":{\"details\":\"Can be called by anyone to update the cached fee percentages (swap fee is only updated when delegated). Updates the cache to the latest value set by governance. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_beforeProtocolFeeCacheUpdate` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"inRecoveryMode()\":{\"notice\":\"Override to check storage and return whether the pool is in Recovery Mode\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol\":\"ProtocolFeeCache\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":{\"keccak256\":\"0xf6fd47a273c8f275d115dac4d216acffd976573410a5f92e2dd8c1125ce3b134\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://41febf9d4bc242065cb96d9d1258e926bf1b4f4c36131964cbf0b4cdd5ce1f99\",\"dweb:/ipfs/QmbKk893VkGw3w49xWyQS8ehqdXxbL4sqNW6TcWMXRpnGu\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol\":{\"keccak256\":\"0x9b7f4fa639a65ddbd0ac2a4324d3a2654d087315eebdd24ac6dcec662e862b0b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8bec3ef24980c0de1e3a25b7bd9c4a7287236a00e703d3c307a965627e4729c1\",\"dweb:/ipfs/QmY5dhqoSrhZUymyQSYrzeqDanNA52C3ArFvhZ3gnvpqyZ\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol\":{\"keccak256\":\"0x900f61d39cfbb66db432105fdd524892b4d36fd57021231a7a011ecf2e06d848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9853feb7f6ea54eed91e45cc9f833062a768365295c64867ac7e83926cb3a25\",\"dweb:/ipfs/Qmeo7jrEjenzBXQ8pSDj76CqVwHg9rhRZKiPfDpLuHk42Q\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol": {
+ "ProtocolFees": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202b5f9a76b0c4132997fcbb22e7e3780f3f1fe3b156af9ccaee32d1ff046df04064736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x2B 0x5F SWAP11 PUSH23 0xB0C4132997FCBB22E7E3780F3F1FE3B156AF9CCAEE32D1 SELFDESTRUCT DIV PUSH14 0xF04064736F6C6343000701003300 ",
+ "sourceMap": "854:1237:35:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202b5f9a76b0c4132997fcbb22e7e3780f3f1fe3b156af9ccaee32d1ff046df04064736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x2B 0x5F SWAP11 PUSH23 0xB0C4132997FCBB22E7E3780F3F1FE3B156AF9CCAEE32D1 SELFDESTRUCT DIV PUSH14 0xF04064736F6C6343000701003300 ",
+ "sourceMap": "854:1237:35:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol\":\"ProtocolFees\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol\":{\"keccak256\":\"0x1130ae270fcca20807ddd46644d2b4dbff73484f3fca9b7bf927043a6c1acf09\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://2c20940f2a3cb1c32ce122a769fb56517b3dd4c8f24c9288e53de83ec640666b\",\"dweb:/ipfs/Qma1AvNk3SjJeUuwyVjWqKqH2KCoVEAovjwfpnt8EsNeTN\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol": {
+ "PriceRateCache": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e75d50f86d7f3b27a9c715523ddf462ea87345da08701788c41bc4268f586b1064736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xE7 0x5D POP 0xF8 PUSH14 0x7F3B27A9C715523DDF462EA87345 0xDA ADDMOD PUSH17 0x1788C41BC4268F586B1064736F6C634300 SMOD ADD STOP CALLER ",
+ "sourceMap": "1529:3655:36:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e75d50f86d7f3b27a9c715523ddf462ea87345da08701788c41bc4268f586b1064736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xE7 0x5D POP 0xF8 PUSH14 0x7F3B27A9C715523DDF462EA87345 0xDA ADDMOD PUSH17 0x1788C41BC4268F586B1064736F6C634300 SMOD ADD STOP CALLER ",
+ "sourceMap": "1529:3655:36:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Price rate caches are used to avoid querying the price rate for a token every time we need to work with it. It is useful for slow changing rates, such as those that arise from interest-bearing tokens (e.g. waDAI into DAI). The cache data is packed into a single bytes32 value with the following structure: [ 32 bits | 32 bits | 96 bits | 96 bits ] [ expires | duration | old rate | current rate ] |MSB LSB| 'rate' is an 18 decimal fixed point number, supporting rates of up to ~3e10. 'expires' is a Unix timestamp, and 'duration' is expressed in seconds.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\":\"PriceRateCache\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\":{\"keccak256\":\"0xcc2a86a1628aa32f5c55c1e22bfed26ec2bf6cc41b1ba00ee0787b7204911698\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://907581cddf2f608fffcb47f69b7a16060f31d8eb8abf85bc935e73bf1eb2d515\",\"dweb:/ipfs/QmXYcbjuxfLs4v7qyzrP55gemhBMaoJKaZ1fSx4mYLdmCH\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol": {
+ "Authentication": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getActionId(bytes4)": "851c1bb3"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Building block for performing access control on external functions. This contract is used via the `authenticate` modifier (or the `_authenticateCaller` function), which can be applied to external functions to only make them callable by authorized accounts. Derived contracts must implement the `_canPerform` function, which holds the actual access control logic.\",\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"The main purpose of the `actionIdDisambiguator` is to prevent accidental function selector collisions in multi contract systems. There are two main uses for it: - if the contract is a singleton, any unique identifier can be used to make the associated action identifiers unique. The contract's own address is a good option. - if the contract belongs to a family that shares action identifiers for the same functions, an identifier shared by the entire family (and no other contract) should be used instead.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":\"Authentication\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol": {
+ "BaseSplitCodeFactory": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "getCreationCode",
+ "outputs": [
+ {
+ "internalType": "bytes",
+ "name": "",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getCreationCodeContracts",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "contractA",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "contractB",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getCreationCode()": "00c194db",
+ "getCreationCodeContracts()": "174481fa"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getCreationCode\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCreationCodeContracts\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"contractA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"contractB\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Base factory for contracts whose creation code is so large that the factory cannot hold it. This happens when the contract's creation code grows close to 24kB. Note that this factory cannot help with contracts that have a *runtime* (deployed) bytecode larger than 24kB.\",\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"The creation code of a contract Foo can be obtained inside Solidity with `type(Foo).creationCode`.\"},\"getCreationCode()\":{\"details\":\"Returns the creation code of the contract this factory creates.\"},\"getCreationCodeContracts()\":{\"details\":\"Returns the two addresses where the creation code of the contract crated by this factory is stored.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol\":\"BaseSplitCodeFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol\":{\"keccak256\":\"0xd13a9c66440204fdd94c422e4759e323d396c1bd1ee8d3858f33917cc65e60d6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://052a2c0319dc342444101a99bd91527c1c33d38e5bf3037ede11299a6a2a6e41\",\"dweb:/ipfs/QmSYSGZ4UpSAvEJbd4zSjRAzfie1GkBgByvCei46JxY5Zh\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol\":{\"keccak256\":\"0x77e86d8251dfa9c442b94dde2fabbd3aab7af34e64fb9bb2c8236c74da844f1f\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://b1d03e9151b3c4bc46166e6c28a8ee7bac9c9681e651e01688067566af55f184\",\"dweb:/ipfs/QmZacZh87hu4SQpsZvEaaRJRfLjP9fLwP8CK6pC8TxW7pE\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol": {
+ "CodeDeployer": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203ad8a70d73fce9f42fadbc1cd02cf17e915dab15be5300860855130b5133580264736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 GASPRICE 0xD8 0xA7 0xD PUSH20 0xFCE9F42FADBC1CD02CF17E915DAB15BE53008608 SSTORE SGT SIGNEXTEND MLOAD CALLER PC MUL PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "1005:3100:39:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203ad8a70d73fce9f42fadbc1cd02cf17e915dab15be5300860855130b5133580264736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 GASPRICE 0xD8 0xA7 0xD PUSH20 0xFCE9F42FADBC1CD02CF17E915DAB15BE53008608 SSTORE SGT SIGNEXTEND MLOAD CALLER PC MUL PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "1005:3100:39:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Library used to deploy contracts with specific code. This can be used for long-term storage of immutable data as contract code, which can be retrieved via the `extcodecopy` opcode.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol\":\"CodeDeployer\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol\":{\"keccak256\":\"0x77e86d8251dfa9c442b94dde2fabbd3aab7af34e64fb9bb2c8236c74da844f1f\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://b1d03e9151b3c4bc46166e6c28a8ee7bac9c9681e651e01688067566af55f184\",\"dweb:/ipfs/QmZacZh87hu4SQpsZvEaaRJRfLjP9fLwP8CK6pC8TxW7pE\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol": {
+ "EOASignaturesValidator": {
+ "abi": [
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Utility for signing Solidity function calls.\",\"kind\":\"dev\",\"methods\":{\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":\"EOASignaturesValidator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol": {
+ "InputHelpers": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dfb87ed9904f11ec9a41be81fbd4e5338f894ea15eb198c82f60f9133cf1dbc764736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xDF 0xB8 PUSH31 0xD9904F11EC9A41BE81FBD4E5338F894EA15EB198C82F60F9133CF1DBC76473 PUSH16 0x6C634300070100330000000000000000 ",
+ "sourceMap": "893:1008:42:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dfb87ed9904f11ec9a41be81fbd4e5338f894ea15eb198c82f60f9133cf1dbc764736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xDF 0xB8 PUSH31 0xD9904F11EC9A41BE81FBD4E5338F894EA15EB198C82F60F9133CF1DBC76473 PUSH16 0x6C634300070100330000000000000000 ",
+ "sourceMap": "893:1008:42:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":\"InputHelpers\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol": {
+ "SingletonAuthentication": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getVault()": "8d928af8"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getAuthorizer()\":{\"notice\":\"Returns the Authorizer\"},\"getVault()\":{\"notice\":\"Returns the Balancer Vault\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol\":\"SingletonAuthentication\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol\":{\"keccak256\":\"0x1e5bca6b4fb897adc2458f65aa7abed8499dcf146ac5872c62544d91516867cb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://faa81254fe029b7ccd05635d6919da30bcb2114026996d10f6b51fc0e1f5b850\",\"dweb:/ipfs/Qmax3d2kq51xjt6hjYgskuXSrsB3fBZ4LAxBPRDDzbg8XD\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol\":{\"keccak256\":\"0x6c48b193602f6d6407e8fca3389fb32264a91f1de8ec33db209694e3bf9d0d13\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1fa358f1537907cdd9f6b176f5a1effbbe9925429634038e9c533493ed824cab\",\"dweb:/ipfs/QmW1EcMLkMFuDKrPwWJ2qhBkmVzAUTVEMP75kw7D8XTjJf\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol": {
+ "TemporarilyPausable": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getPausedState()": "1c0de051"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Allows for a contract to be paused during an initial period after deployment, disabling functionality. Can be used as an emergency switch in case a security vulnerability or threat is identified. The contract can only be paused during the Pause Window, a period that starts at deployment. It can also be unpaused and repaused any number of times during this period. This is intended to serve as a safety measure: it lets system managers react quickly to potentially dangerous situations, knowing that this action is reversible if careful analysis later determines there was a false alarm. If the contract is paused when the Pause Window finishes, it will remain in the paused state through an additional Buffer Period, after which it will be automatically unpaused forever. This is to ensure there is always enough time to react to an emergency, even if the threat is discovered shortly before the Pause Window expires. Note that since the contract can only be paused within the Pause Window, unpausing during the Buffer Period is irreversible.\",\"kind\":\"dev\",\"methods\":{\"getPausedState()\":{\"details\":\"Returns the current contract pause status, as well as the end times of the Pause Window and Buffer Period.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":\"TemporarilyPausable\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol": {
+ "WordCodec": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c6964e52d3fba7ce61073dc8df9ca768116912e3c8f34bc05d485b4603b3d9de64736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC6 SWAP7 0x4E MSTORE 0xD3 0xFB 0xA7 0xCE PUSH2 0x73D 0xC8 0xDF SWAP13 0xA7 PUSH9 0x116912E3C8F34BC05D 0x48 JUMPDEST CHAINID SUB 0xB3 0xD9 0xDE PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "2017:6772:45:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c6964e52d3fba7ce61073dc8df9ca768116912e3c8f34bc05d485b4603b3d9de64736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xC6 SWAP7 0x4E MSTORE 0xD3 0xFB 0xA7 0xCE PUSH2 0x73D 0xC8 0xDF SWAP13 0xA7 PUSH9 0x116912E3C8F34BC05D 0x48 JUMPDEST CHAINID SUB 0xB3 0xD9 0xDE PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "2017:6772:45:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Library for encoding and decoding values stored inside a 256 bit word. Typically used to pack multiple values in a single storage slot, saving gas by performing less storage accesses. Each value is defined by its size and the least significant bit in the word, also known as offset. For example, two 128 bit values may be encoded in a word by assigning one an offset of 0, and the other an offset of 128. We could use Solidity structs to pack values together in a single storage slot instead of relying on a custom and error-prone library, but unfortunately Solidity only allows for structs to live in either storage, calldata or memory. Because a memory struct uses not just memory but also a slot in the stack (to store its memory location), using memory for word-sized values (i.e. of 256 bits or less) is strictly less gas performant, and doesn't even prevent stack-too-deep issues. This is compounded by the fact that Balancer contracts typically are memory-intensive, and the cost of accesing memory increases quadratically with the number of allocated words. Manual packing and unpacking is therefore the preferred approach.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":\"WordCodec\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol": {
+ "FixedPoint": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204f50c27ac9ba1dbce5d563e460d31124eddc088b53cb71f67ed6434cb17e441464736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x4F POP 0xC2 PUSH27 0xC9BA1DBCE5D563E460D31124EDDC088B53CB71F67ED6434CB17E44 EQ PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "888:5039:46:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204f50c27ac9ba1dbce5d563e460d31124eddc088b53cb71f67ed6434cb17e441464736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x4F POP 0xC2 PUSH27 0xC9BA1DBCE5D563E460D31124EDDC088B53CB71F67ED6434CB17E44 EQ PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "888:5039:46:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":\"FixedPoint\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol": {
+ "LogExpMath": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122018af6feefd355bf9d484d0af4e3b6617e69f0ab47c5e387165b927f002c1a74264736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 XOR 0xAF PUSH16 0xEEFD355BF9D484D0AF4E3B6617E69F0A 0xB4 PUSH29 0x5E387165B927F002C1A74264736F6C6343000701003300000000000000 ",
+ "sourceMap": "1681:19465:47:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122018af6feefd355bf9d484d0af4e3b6617e69f0ab47c5e387165b927f002c1a74264736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 XOR 0xAF PUSH16 0xEEFD355BF9D484D0AF4E3B6617E69F0A 0xB4 PUSH29 0x5E387165B927F002C1A74264736F6C6343000701003300000000000000 ",
+ "sourceMap": "1681:19465:47:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"Fernando Martinelli - @fernandomartinelliSergio Yuhjtman - @sergioyuhjtmanDaniel Fernandez - @dmf7z\",\"details\":\"Exponentiation and logarithm functions for 18 decimal fixed point numbers (both base and exponent/argument). Exponentiation and logarithm with arbitrary bases (x^y and log_x(y)) are implemented by conversion to natural exponentiation and logarithm (where the base is Euler's number).\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":\"LogExpMath\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol": {
+ "Math": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122085f2f4c27a57574b26dc57d069263fbaae0bf26f8e76380b311b56de2c63505464736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP6 CALLCODE DELEGATECALL 0xC2 PUSH27 0x57574B26DC57D069263FBAAE0BF26F8E76380B311B56DE2C635054 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "290:2500:48:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122085f2f4c27a57574b26dc57d069263fbaae0bf26f8e76380b311b56de2c63505464736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP6 CALLCODE DELEGATECALL 0xC2 PUSH27 0x57574B26DC57D069263FBAAE0BF26F8E76380B311B56DE2C635054 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "290:2500:48:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Wrappers over Solidity's arithmetic operations with added overflow checks. Adapted from OpenZeppelin's SafeMath library.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":\"Math\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol": {
+ "EIP712": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"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._\",\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"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].\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":\"EIP712\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol": {
+ "ERC20": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "name_",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "symbol_",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "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": "name",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "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"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "608060405234801561001057600080fd5b506040516109b23803806109b28339818101604052604081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825164010000000081118282018810171561008257600080fd5b82525081516020918201929091019080838360005b838110156100af578181015183820152602001610097565b50505050905090810190601f1680156100dc5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156100ff57600080fd5b90830190602082018581111561011457600080fd5b825164010000000081118282018810171561012e57600080fd5b82525081516020918201929091019080838360005b8381101561015b578181015183820152602001610143565b50505050905090810190601f1680156101885780820380516001836020036101000a031916815260200191505b50604052505082516101a2915060039060208501906101cb565b5080516101b69060049060208401906101cb565b50506005805460ff191660121790555061025e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020c57805160ff1916838001178555610239565b82800160010185558215610239579182015b8281111561023957825182559160200191906001019061021e565b50610245929150610249565b5090565b5b80821115610245576000815560010161024a565b6107458061026d6000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80633950935111610081578063a457c2d71161005b578063a457c2d714610253578063a9059cbb1461027f578063dd62ed3e146102ab576100c9565b806339509351146101f957806370a082311461022557806395d89b411461024b576100c9565b806318160ddd116100b257806318160ddd1461018b57806323b872dd146101a5578063313ce567146101db576100c9565b806306fdde03146100ce578063095ea7b31461014b575b600080fd5b6100d66102d9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101105781810151838201526020016100f8565b50505050905090810190601f16801561013d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101776004803603604081101561016157600080fd5b506001600160a01b03813516906020013561036f565b604080519115158252519081900360200190f35b610193610385565b60408051918252519081900360200190f35b610177600480360360608110156101bb57600080fd5b506001600160a01b0381358116916020810135909116906040013561038b565b6101e36103df565b6040805160ff9092168252519081900360200190f35b6101776004803603604081101561020f57600080fd5b506001600160a01b0381351690602001356103e8565b6101936004803603602081101561023b57600080fd5b50356001600160a01b031661041e565b6100d6610439565b6101776004803603604081101561026957600080fd5b506001600160a01b03813516906020013561049a565b6101776004803603604081101561029557600080fd5b506001600160a01b0381351690602001356104d3565b610193600480360360408110156102c157600080fd5b506001600160a01b03813581169160200135166104e0565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103655780601f1061033a57610100808354040283529160200191610365565b820191906000526020600020905b81548152906001019060200180831161034857829003601f168201915b5050505050905090565b600061037c33848461050b565b50600192915050565b60025490565b600061039884848461056d565b6001600160a01b0384166000908152600160209081526040808320338085529252909120546103d59186916103d0908661019e610655565b61050b565b5060019392505050565b60055460ff1690565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161037c9185906103d0908661066b565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103655780601f1061033a57610100808354040283529160200191610365565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161037c9185906103d0908661019f610655565b600061037c33848461056d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6105846001600160a01b0384161515610198610684565b61059b6001600160a01b0383161515610199610684565b6105a6838383610696565b6001600160a01b0383166000908152602081905260409020546105cc90826101a0610655565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546105fb908261066b565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60006106648484111583610684565b5050900390565b600082820161067d8482101583610684565b9392505050565b81610692576106928161069b565b5050565b505050565b6106ab816210905360ea1b6106ae565b50565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fdfea264697066735822122004f3d8e318381f3801ff2635e2b87d602e2c64a11df2c6b01e8f50687030478464736f6c63430007010033",
+ "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x9B2 CODESIZE SUB DUP1 PUSH2 0x9B2 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x33 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 DUP1 DUP1 MLOAD PUSH1 0x40 MLOAD SWAP4 SWAP3 SWAP2 SWAP1 DUP5 PUSH5 0x100000000 DUP3 GT ISZERO PUSH2 0x53 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP1 DUP4 ADD SWAP1 PUSH1 0x20 DUP3 ADD DUP6 DUP2 GT ISZERO PUSH2 0x68 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP9 LT OR ISZERO PUSH2 0x82 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MSTORE POP DUP2 MLOAD PUSH1 0x20 SWAP2 DUP3 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xAF JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x97 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0xDC JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP PUSH1 0x40 MSTORE PUSH1 0x20 ADD DUP1 MLOAD PUSH1 0x40 MLOAD SWAP4 SWAP3 SWAP2 SWAP1 DUP5 PUSH5 0x100000000 DUP3 GT ISZERO PUSH2 0xFF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP1 DUP4 ADD SWAP1 PUSH1 0x20 DUP3 ADD DUP6 DUP2 GT ISZERO PUSH2 0x114 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MLOAD PUSH5 0x100000000 DUP2 GT DUP3 DUP3 ADD DUP9 LT OR ISZERO PUSH2 0x12E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MSTORE POP DUP2 MLOAD PUSH1 0x20 SWAP2 DUP3 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x15B JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x143 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x188 JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP PUSH1 0x40 MSTORE POP POP DUP3 MLOAD PUSH2 0x1A2 SWAP2 POP PUSH1 0x3 SWAP1 PUSH1 0x20 DUP6 ADD SWAP1 PUSH2 0x1CB JUMP JUMPDEST POP DUP1 MLOAD PUSH2 0x1B6 SWAP1 PUSH1 0x4 SWAP1 PUSH1 0x20 DUP5 ADD SWAP1 PUSH2 0x1CB JUMP JUMPDEST POP POP PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x12 OR SWAP1 SSTORE POP PUSH2 0x25E JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x20C JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x239 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x239 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x239 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x21E JUMP JUMPDEST POP PUSH2 0x245 SWAP3 SWAP2 POP PUSH2 0x249 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x245 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x24A JUMP JUMPDEST PUSH2 0x745 DUP1 PUSH2 0x26D PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0xC9 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x39509351 GT PUSH2 0x81 JUMPI DUP1 PUSH4 0xA457C2D7 GT PUSH2 0x5B JUMPI DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x253 JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x27F JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x2AB JUMPI PUSH2 0xC9 JUMP JUMPDEST DUP1 PUSH4 0x39509351 EQ PUSH2 0x1F9 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x225 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x24B JUMPI PUSH2 0xC9 JUMP JUMPDEST DUP1 PUSH4 0x18160DDD GT PUSH2 0xB2 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x18B JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x1A5 JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x1DB JUMPI PUSH2 0xC9 JUMP JUMPDEST DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0xCE JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x14B JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xD6 PUSH2 0x2D9 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x110 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xF8 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x13D JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x161 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x36F JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 ISZERO ISZERO DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x193 PUSH2 0x385 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x60 DUP2 LT ISZERO PUSH2 0x1BB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP1 PUSH1 0x40 ADD CALLDATALOAD PUSH2 0x38B JUMP JUMPDEST PUSH2 0x1E3 PUSH2 0x3DF JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x20F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x3E8 JUMP JUMPDEST PUSH2 0x193 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x23B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x41E JUMP JUMPDEST PUSH2 0xD6 PUSH2 0x439 JUMP JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x269 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x49A JUMP JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x295 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x4D3 JUMP JUMPDEST PUSH2 0x193 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x2C1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 ADD CALLDATALOAD AND PUSH2 0x4E0 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x365 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33A JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x365 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x348 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x37C CALLER DUP5 DUP5 PUSH2 0x50B JUMP JUMPDEST POP PUSH1 0x1 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x398 DUP5 DUP5 DUP5 PUSH2 0x56D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP1 DUP6 MSTORE SWAP3 MSTORE SWAP1 SWAP2 KECCAK256 SLOAD PUSH2 0x3D5 SWAP2 DUP7 SWAP2 PUSH2 0x3D0 SWAP1 DUP7 PUSH2 0x19E PUSH2 0x655 JUMP JUMPDEST PUSH2 0x50B JUMP JUMPDEST POP PUSH1 0x1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x37C SWAP2 DUP6 SWAP1 PUSH2 0x3D0 SWAP1 DUP7 PUSH2 0x66B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x4 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x365 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33A JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x365 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x37C SWAP2 DUP6 SWAP1 PUSH2 0x3D0 SWAP1 DUP7 PUSH2 0x19F PUSH2 0x655 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x37C CALLER DUP5 DUP5 PUSH2 0x56D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 DUP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP6 SWAP1 SSTORE DUP2 MLOAD DUP6 DUP2 MSTORE SWAP2 MLOAD PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP3 DUP2 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH2 0x584 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND ISZERO ISZERO PUSH2 0x198 PUSH2 0x684 JUMP JUMPDEST PUSH2 0x59B PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x199 PUSH2 0x684 JUMP JUMPDEST PUSH2 0x5A6 DUP4 DUP4 DUP4 PUSH2 0x696 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x5CC SWAP1 DUP3 PUSH2 0x1A0 PUSH2 0x655 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP1 DUP5 AND DUP2 MSTORE KECCAK256 SLOAD PUSH2 0x5FB SWAP1 DUP3 PUSH2 0x66B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SWAP5 SWAP1 SWAP5 SSTORE DUP1 MLOAD DUP6 DUP2 MSTORE SWAP1 MLOAD SWAP2 SWAP4 SWAP3 DUP8 AND SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP3 SWAP2 DUP3 SWAP1 SUB ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x664 DUP5 DUP5 GT ISZERO DUP4 PUSH2 0x684 JUMP JUMPDEST POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 ADD PUSH2 0x67D DUP5 DUP3 LT ISZERO DUP4 PUSH2 0x684 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST DUP2 PUSH2 0x692 JUMPI PUSH2 0x692 DUP2 PUSH2 0x69B JUMP JUMPDEST POP POP JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH2 0x6AB DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH2 0x6AE JUMP JUMPDEST POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DIV RETURN 0xD8 0xE3 XOR CODESIZE 0x1F CODESIZE ADD SELFDESTRUCT 0x26 CALLDATALOAD 0xE2 0xB8 PUSH30 0x602E2C64A11DF2C6B01E8F50687030478464736F6C634300070100330000 ",
+ "sourceMap": "1427:10003:50:-:0;;;2052:137;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2052:137:50;;;;;;;;;;-1:-1:-1;2052:137:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2052:137:50;;;;;;;;;;-1:-1:-1;2052:137:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2052:137:50;;-1:-1:-1;;2118:13:50;;;;-1:-1:-1;2118:5:50;;:13;;;;;:::i;:::-;-1:-1:-1;2141:17:50;;;;:7;;:17;;;;;:::i;:::-;-1:-1:-1;;2168:9:50;:14;;-1:-1:-1;;2168:14:50;2180:2;2168:14;;;-1:-1:-1;1427:10003:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1427:10003:50;;;-1:-1:-1;1427:10003:50;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "608060405234801561001057600080fd5b50600436106100c95760003560e01c80633950935111610081578063a457c2d71161005b578063a457c2d714610253578063a9059cbb1461027f578063dd62ed3e146102ab576100c9565b806339509351146101f957806370a082311461022557806395d89b411461024b576100c9565b806318160ddd116100b257806318160ddd1461018b57806323b872dd146101a5578063313ce567146101db576100c9565b806306fdde03146100ce578063095ea7b31461014b575b600080fd5b6100d66102d9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101105781810151838201526020016100f8565b50505050905090810190601f16801561013d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101776004803603604081101561016157600080fd5b506001600160a01b03813516906020013561036f565b604080519115158252519081900360200190f35b610193610385565b60408051918252519081900360200190f35b610177600480360360608110156101bb57600080fd5b506001600160a01b0381358116916020810135909116906040013561038b565b6101e36103df565b6040805160ff9092168252519081900360200190f35b6101776004803603604081101561020f57600080fd5b506001600160a01b0381351690602001356103e8565b6101936004803603602081101561023b57600080fd5b50356001600160a01b031661041e565b6100d6610439565b6101776004803603604081101561026957600080fd5b506001600160a01b03813516906020013561049a565b6101776004803603604081101561029557600080fd5b506001600160a01b0381351690602001356104d3565b610193600480360360408110156102c157600080fd5b506001600160a01b03813581169160200135166104e0565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103655780601f1061033a57610100808354040283529160200191610365565b820191906000526020600020905b81548152906001019060200180831161034857829003601f168201915b5050505050905090565b600061037c33848461050b565b50600192915050565b60025490565b600061039884848461056d565b6001600160a01b0384166000908152600160209081526040808320338085529252909120546103d59186916103d0908661019e610655565b61050b565b5060019392505050565b60055460ff1690565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161037c9185906103d0908661066b565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103655780601f1061033a57610100808354040283529160200191610365565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161037c9185906103d0908661019f610655565b600061037c33848461056d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6105846001600160a01b0384161515610198610684565b61059b6001600160a01b0383161515610199610684565b6105a6838383610696565b6001600160a01b0383166000908152602081905260409020546105cc90826101a0610655565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546105fb908261066b565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60006106648484111583610684565b5050900390565b600082820161067d8482101583610684565b9392505050565b81610692576106928161069b565b5050565b505050565b6106ab816210905360ea1b6106ae565b50565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fdfea264697066735822122004f3d8e318381f3801ff2635e2b87d602e2c64a11df2c6b01e8f50687030478464736f6c63430007010033",
+ "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0xC9 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x39509351 GT PUSH2 0x81 JUMPI DUP1 PUSH4 0xA457C2D7 GT PUSH2 0x5B JUMPI DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x253 JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x27F JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x2AB JUMPI PUSH2 0xC9 JUMP JUMPDEST DUP1 PUSH4 0x39509351 EQ PUSH2 0x1F9 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x225 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x24B JUMPI PUSH2 0xC9 JUMP JUMPDEST DUP1 PUSH4 0x18160DDD GT PUSH2 0xB2 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x18B JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x1A5 JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x1DB JUMPI PUSH2 0xC9 JUMP JUMPDEST DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0xCE JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x14B JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xD6 PUSH2 0x2D9 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x110 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xF8 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x13D JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x161 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x36F JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 ISZERO ISZERO DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x193 PUSH2 0x385 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP2 DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x60 DUP2 LT ISZERO PUSH2 0x1BB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP1 PUSH1 0x40 ADD CALLDATALOAD PUSH2 0x38B JUMP JUMPDEST PUSH2 0x1E3 PUSH2 0x3DF JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xFF SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x20F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x3E8 JUMP JUMPDEST PUSH2 0x193 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x23B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x41E JUMP JUMPDEST PUSH2 0xD6 PUSH2 0x439 JUMP JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x269 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x49A JUMP JUMPDEST PUSH2 0x177 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x295 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD AND SWAP1 PUSH1 0x20 ADD CALLDATALOAD PUSH2 0x4D3 JUMP JUMPDEST PUSH2 0x193 PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x2C1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 CALLDATALOAD DUP2 AND SWAP2 PUSH1 0x20 ADD CALLDATALOAD AND PUSH2 0x4E0 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x365 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33A JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x365 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x348 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x37C CALLER DUP5 DUP5 PUSH2 0x50B JUMP JUMPDEST POP PUSH1 0x1 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x398 DUP5 DUP5 DUP5 PUSH2 0x56D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP1 DUP6 MSTORE SWAP3 MSTORE SWAP1 SWAP2 KECCAK256 SLOAD PUSH2 0x3D5 SWAP2 DUP7 SWAP2 PUSH2 0x3D0 SWAP1 DUP7 PUSH2 0x19E PUSH2 0x655 JUMP JUMPDEST PUSH2 0x50B JUMP JUMPDEST POP PUSH1 0x1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x37C SWAP2 DUP6 SWAP1 PUSH2 0x3D0 SWAP1 DUP7 PUSH2 0x66B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x4 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x365 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33A JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x365 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x37C SWAP2 DUP6 SWAP1 PUSH2 0x3D0 SWAP1 DUP7 PUSH2 0x19F PUSH2 0x655 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x37C CALLER DUP5 DUP5 PUSH2 0x56D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 DUP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP6 SWAP1 SSTORE DUP2 MLOAD DUP6 DUP2 MSTORE SWAP2 MLOAD PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP3 DUP2 SWAP1 SUB SWAP1 SWAP2 ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH2 0x584 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND ISZERO ISZERO PUSH2 0x198 PUSH2 0x684 JUMP JUMPDEST PUSH2 0x59B PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x199 PUSH2 0x684 JUMP JUMPDEST PUSH2 0x5A6 DUP4 DUP4 DUP4 PUSH2 0x696 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x5CC SWAP1 DUP3 PUSH2 0x1A0 PUSH2 0x655 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP1 DUP5 AND DUP2 MSTORE KECCAK256 SLOAD PUSH2 0x5FB SWAP1 DUP3 PUSH2 0x66B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SWAP5 SWAP1 SWAP5 SSTORE DUP1 MLOAD DUP6 DUP2 MSTORE SWAP1 MLOAD SWAP2 SWAP4 SWAP3 DUP8 AND SWAP3 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP3 SWAP2 DUP3 SWAP1 SUB ADD SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x664 DUP5 DUP5 GT ISZERO DUP4 PUSH2 0x684 JUMP JUMPDEST POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 ADD PUSH2 0x67D DUP5 DUP3 LT ISZERO DUP4 PUSH2 0x684 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST DUP2 PUSH2 0x692 JUMPI PUSH2 0x692 DUP2 PUSH2 0x69B JUMP JUMPDEST POP POP JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH2 0x6AB DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH2 0x6AE JUMP JUMPDEST POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DIV RETURN 0xD8 0xE3 XOR CODESIZE 0x1F CODESIZE ADD SELFDESTRUCT 0x26 CALLDATALOAD 0xE2 0xB8 PUSH30 0x602E2C64A11DF2C6B01E8F50687030478464736F6C634300070100330000 ",
+ "sourceMap": "1427:10003:50:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2254:81;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4857:164;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4857:164:50;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3500:106;;;:::i;:::-;;;;;;;;;;;;;;;;5488:386;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5488:386:50;;;;;;;;;;;;;;;;;:::i;3156:81::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6269:211;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6269:211:50;;;;;;;;:::i;4022:117::-;;;;;;;;;;;;;;;;-1:-1:-1;4022:117:50;-1:-1:-1;;;;;4022:117:50;;:::i;2448:85::-;;;:::i;6967:312::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6967:312:50;;;;;;;;:::i;4342:170::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4342:170:50;;;;;;;;:::i;4570:149::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4570:149:50;;;;;;;;;;:::i;2254:81::-;2323:5;2316:12;;;;;;;;-1:-1:-1;;2316:12:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2291:13;;2316:12;;2323:5;;2316:12;;2323:5;2316:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2254:81;:::o;4857:164::-;4940:4;4956:37;4965:10;4977:7;4986:6;4956:8;:37::i;:::-;-1:-1:-1;5010:4:50;4857:164;;;;:::o;3500:106::-;3587:12;;3500:106;:::o;5488:386::-;5624:4;5640:36;5650:6;5658:9;5669:6;5640:9;:36::i;:::-;-1:-1:-1;;;;;5752:19:50;;;;;;:11;:19;;;;;;;;5728:10;5752:31;;;;;;;;;5686:160;;5708:6;;5752:84;;5788:6;10712:3:10;5752:35:50;:84::i;:::-;5686:8;:160::i;:::-;-1:-1:-1;5863:4:50;5488:386;;;;;:::o;3156:81::-;3221:9;;;;3156:81;:::o;6269:211::-;6382:10;6357:4;6403:23;;;:11;:23;;;;;;;;-1:-1:-1;;;;;6403:32:50;;;;;;;;;;6357:4;;6373:79;;6394:7;;6403:48;;6440:10;6403:36;:48::i;4022:117::-;-1:-1:-1;;;;;4114:18:50;4088:7;4114:18;;;;;;;;;;;;4022:117::o;2448:85::-;2519:7;2512:14;;;;;;;;-1:-1:-1;;2512:14:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2487:13;;2512:14;;2519:7;;2512:14;;2519:7;2512:14;;;;;;;;;;;;;;;;;;;;;;;;6967:312;7098:10;7060:4;7143:23;;;:11;:23;;;;;;;;-1:-1:-1;;;;;7143:32:50;;;;;;;;;;7060:4;;7076:175;;7122:7;;7143:98;;7180:15;10786:3:10;7143:36:50;:98::i;4342:170::-;4428:4;4444:40;4454:10;4466:9;4477:6;4444:9;:40::i;4570:149::-;-1:-1:-1;;;;;4685:18:50;;;4659:7;4685:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;4570:149::o;10034:213::-;-1:-1:-1;;;;;10157:18:50;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10208:32;;;;;;;;;;;;;;;;;10034:213;;;:::o;7753:559::-;7880:71;-1:-1:-1;;;;;7889:20:50;;;;10308:3:10;7880:8:50;:71::i;:::-;7961:72;-1:-1:-1;;;;;7970:23:50;;;;10376:3:10;7961:8:50;:72::i;:::-;8044:47;8065:6;8073:9;8084:6;8044:20;:47::i;:::-;-1:-1:-1;;;;;8122:17:50;;:9;:17;;;;;;;;;;;:68;;8144:6;10854:3:10;8122:21:50;:68::i;:::-;-1:-1:-1;;;;;8102:17:50;;;:9;:17;;;;;;;;;;;:88;;;;8223:20;;;;;;;:32;;8248:6;8223:24;:32::i;:::-;-1:-1:-1;;;;;8200:20:50;;;:9;:20;;;;;;;;;;;;:55;;;;8270:35;;;;;;;8200:20;;8270:35;;;;;;;;;;;;;7753:559;;;:::o;1816:206:53:-;1923:7;1942:27;1956:1;1951;:6;;1959:9;1942:8;:27::i;:::-;-1:-1:-1;;1991:5:53;;;1816:206::o;966:167::-;1024:7;1055:5;;;1070:37;1079:6;;;;1024:7;1070:8;:37::i;:::-;1125:1;966:167;-1:-1:-1;;;966:167:53:o;918:101:10:-;987:9;982:34;;998:18;1006:9;998:7;:18::i;:::-;918:101;;:::o;11245:183:50:-;;;;:::o;1437:126:10:-;1484:28;1492:9;-1:-1:-1;;;1484:7:10;:28::i;:::-;1437:126;:::o;1670:3378::-;-1:-1:-1;;;1732:18:10;4383:79;;;4601:66;4595:4;4588:80;4743:1;4737:4;4730:15;2871:2;2904:18;;;2949;;;2876:4;2945:29;;;3747:1;3838:14;2856:18;;;;3827:26;;;;2997:18;;;;3044;;;3040:29;;3859:2;3855:17;3823:50;3737:4;3743:18;;;;;;3733:29;3729:2;3725:38;3802:72;;;;3797:3;3793:82;4810:4;4803:26;1761:14;;;;;5036:3;;5026:14"
+ },
+ "methodIdentifiers": {
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "increaseAllowance(address,uint256)": "39509351",
+ "name()": "06fdde03",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"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\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"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\"}],\"devdoc\":{\"details\":\"Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How to implement supply mechanisms]. We have followed general OpenZeppelin guidelines: functions revert instead of returning `false` on failure. This behavior is nonetheless conventional and does not conflict with the expectations of ERC20 applications. Additionally, an {Approval} event is emitted on calls to {transferFrom}. This allows applications to reconstruct the allowance for all accounts just by listening to said events. Other implementations of the EIP may not emit these events, as it isn't required by the specification. Finally, the non-standard {decreaseAllowance} and {increaseAllowance} functions have been added to mitigate the well-known issues around setting allowances. See {IERC20-approve}.\",\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"constructor\":{\"details\":\"Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"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`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":\"ERC20\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol": {
+ "ERC20Permit": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Approval",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "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": [
+ {
+ "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": "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"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c",
+ "increaseAllowance(address,uint256)": "39509351",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"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\":[{\"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\":\"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\"}],\"devdoc\":{\"details\":\"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._\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"constructor\":{\"details\":\"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.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"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`.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"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`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":\"ERC20Permit\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol": {
+ "SafeCast": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220facb1d784efcdb693b3c57cccfa6326bccb3a571d8141b9565dafe56561033e164736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 STATICCALL 0xCB SAR PUSH25 0x4EFCDB693B3C57CCCFA6326BCCB3A571D8141B9565DAFE5656 LT CALLER 0xE1 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "860:738:52:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220facb1d784efcdb693b3c57cccfa6326bccb3a571d8141b9565dafe56561033e164736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 STATICCALL 0xCB SAR PUSH25 0x4EFCDB693B3C57CCCFA6326BCCB3A571D8141B9565DAFE5656 LT CALLER 0xE1 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "860:738:52:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always. Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing all math on `uint256` and `int256` and then downcasting.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol\":\"SafeCast\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol\":{\"keccak256\":\"0x900f61d39cfbb66db432105fdd524892b4d36fd57021231a7a011ecf2e06d848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9853feb7f6ea54eed91e45cc9f833062a768365295c64867ac7e83926cb3a25\",\"dweb:/ipfs/Qmeo7jrEjenzBXQ8pSDj76CqVwHg9rhRZKiPfDpLuHk42Q\"]}},\"version\":1}"
+ }
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol": {
+ "SafeMath": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220053273cd0270ac9d02a2fd6d8bd8350c07b92573d74e10b9bfbec500f63767a664736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SDIV ORIGIN PUSH20 0xCD0270AC9D02A2FD6D8BD8350C07B92573D74E10 0xB9 0xBF 0xBE 0xC5 STOP 0xF6 CALLDATACOPY PUSH8 0xA664736F6C634300 SMOD ADD STOP CALLER ",
+ "sourceMap": "714:1310:53:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220053273cd0270ac9d02a2fd6d8bd8350c07b92573d74e10b9bfbec500f63767a664736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SDIV ORIGIN PUSH20 0xCD0270AC9D02A2FD6D8BD8350C07B92573D74E10 0xB9 0xBF 0xBE 0xC5 STOP 0xF6 CALLDATACOPY PUSH8 0xA664736F6C634300 SMOD ADD STOP CALLER ",
+ "sourceMap": "714:1310:53:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restores this intuition by reverting the transaction when an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":\"SafeMath\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]}},\"version\":1}"
+ }
+ },
+ "contracts/ComposableStablePool.sol": {
+ "ComposableStablePool": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "contract IVault",
+ "name": "vault",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IProtocolFeePercentagesProvider",
+ "name": "protocolFeeProvider",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "symbol",
+ "type": "string"
+ },
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "contract IRateProvider[]",
+ "name": "rateProviders",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "tokenRateCacheDurations",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "bool",
+ "name": "exemptFromYieldProtocolFeeFlag",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amplificationParameter",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowDuration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodDuration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "version",
+ "type": "string"
+ }
+ ],
+ "internalType": "struct ComposableStablePool.NewPoolParams",
+ "name": "params",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "startValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "endValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "startTime",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "endTime",
+ "type": "uint256"
+ }
+ ],
+ "name": "AmpUpdateStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "currentValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "AmpUpdateStopped",
+ "type": "event"
+ },
+ {
+ "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": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "protocolFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "ProtocolFeePercentageCacheUpdated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "SwapFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenIndex",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "rate",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenRateCacheUpdated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenIndex",
+ "type": "uint256"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IRateProvider",
+ "name": "provider",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "cacheDuration",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenRateProviderSet",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getActualSupply",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAmplificationParameter",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bool",
+ "name": "isUpdating",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "precision",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getBptIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getLastJoinExitData",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "lastJoinExitAmplification",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastPostJoinExitInvariant",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getMinimumBpt",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ }
+ ],
+ "name": "getProtocolFeePercentageCache",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeesCollector",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeesCollector",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolSwapFeeDelegation",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getRate",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getRateProviders",
+ "outputs": [
+ {
+ "internalType": "contract IRateProvider[]",
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "getTokenRate",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "getTokenRateCache",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "rate",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "oldRate",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "expires",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "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": "isExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "isTokenExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "enum IVault.SwapKind",
+ "name": "kind",
+ "type": "uint8"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "tokenIn",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IERC20",
+ "name": "tokenOut",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "internalType": "struct IPoolSwapStructs.SwapRequest",
+ "name": "swapRequest",
+ "type": "tuple"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "indexIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "indexOut",
+ "type": "uint256"
+ }
+ ],
+ "name": "onSwap",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "poolConfig",
+ "type": "bytes"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "setTokenRateCacheDuration",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "rawEndValue",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "endTime",
+ "type": "uint256"
+ }
+ ],
+ "name": "startAmplificationParameterUpdate",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "stopAmplificationParameterUpdate",
+ "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": [],
+ "name": "unpause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "updateProtocolFeePercentageCache",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "updateTokenRateCache",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "version",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "6104e06040523480156200001257600080fd5b5060405162007dca38038062007dca833981016040819052620000359162001a26565b6020810151600019620000488362000c9f565b620000538462000cd8565b8461010001518560000151600087604001518860600151620000808a608001513062000d2360201b60201c565b8a60800151516001016001600160401b03811180156200009f57600080fd5b50604051908082528060200260200182016040528015620000ca578160200160208202803683370190505b508b61012001518c61014001518d61016001518e6101800151828289898d85336001600160a01b031660001b8480604051806040016040528060018152602001603160f81b815250878781600390805190602001906200012c9291906200170f565b508051620001429060049060208401906200170f565b50506005805460ff19166012179055508151602092830120608052805191012060a052507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60c05260e0526001600160601b0319606091821b81166101005291901b166101205250620001c090506276a70083111561019462000ebd565b620001d462278d0082111561019562000ebd565b4290910161014081905201610160528551620001f6906002111560c862000ebd565b620002106200020462000ed2565b8751111560c962000ebd565b620002268662000ed760201b620015b01760201c565b620002318462000ee3565b6040516309b2760f60e01b81526000906001600160a01b038c16906309b2760f9062000262908d9060040162001c9a565b602060405180830381600087803b1580156200027d57600080fd5b505af115801562000292573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b89190620019ee565b604051633354e3e960e11b81529091506001600160a01b038c16906366a9c7d290620002ed9084908b908b9060040162001bfe565b600060405180830381600087803b1580156200030857600080fd5b505af11580156200031d573d6000803e3d6000fd5b505050508061018081815250508a6001600160a01b031663d2946c2b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200036457600080fd5b505afa15801562000379573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200039f919062001a07565b60601b6001600160601b0319166101a05250620003d1995050506001891015965061012c955062000ebd945050505050565b620003e461138882111561012d62000ebd565b6000620003ff826103e862000f7760201b620015ba1760201c565b90506200040c8162000fa6565b5050805151620004216002821160c862000ebd565b620004406001820383602001515162000fe560201b620015e51760201c565b6101c0819052815180516000906200045457fe5b60200260200101516001600160a01b0316610200816001600160a01b031660601b8152505081600001516001815181106200048b57fe5b60200260200101516001600160a01b0316610220816001600160a01b031660601b815250508160000151600281518110620004c257fe5b60200260200101516001600160a01b0316610240816001600160a01b031660601b8152505060038111620004f857600062000511565b8151805160039081106200050857fe5b60200260200101515b60601b6001600160601b0319166102605260048111620005335760006200054c565b8151805160049081106200054357fe5b60200260200101515b60601b6001600160601b03191661028052600581116200056e57600062000587565b8151805160059081106200057e57fe5b60200260200101515b60601b6001600160601b0319166102a05281518051620005c09190600090620005ac57fe5b602002602001015162000ff460201b60201c565b6102c05281518051620005da91906001908110620005ac57fe5b6102e05281518051620005f491906002908110620005ac57fe5b6103005260038111620006095760006200061f565b6200061f8260000151600381518110620005ac57fe5b6103205260048111620006345760006200064a565b6200064a8260000151600481518110620005ac57fe5b61034052600581116200065f57600062000675565b620006758260000151600581518110620005ac57fe5b61036052815151600019015b600081118015620006b2575082518051309190839081106200069f57fe5b60200260200101516001600160a01b0316115b15620006c2576000190162000681565b6101e08190528251516060906001600160401b0381118015620006e457600080fd5b506040519080825280602002602001820160405280156200070f578160200160208202803683370190505b5090506000805b8551518110156200084b57838110156200077657856020015181815181106200073b57fe5b60200260200101518382815181106200075057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505062000798565b8381146200079257856020015160018203815181106200073b57fe5b62000842565b620007e160006001600160a01b0316848381518110620007b457fe5b60200260200101516001600160a01b031614158260060184620010c360201b620015f2179092919060201c565b9150856040015180156200081c575060006001600160a01b03168382815181106200080857fe5b60200260200101516001600160a01b031614155b1562000842576200083f60018284620010c360201b620015f2179092919060201c565b91505b60010162000716565b506040850151151560f81b61046052815182906000906200086857fe5b60200260200101516001600160a01b0316610380816001600160a01b031660601b81525050816001815181106200089b57fe5b60200260200101516001600160a01b03166103a0816001600160a01b031660601b8152505081600281518110620008ce57fe5b60200260200101516001600160a01b03166103c0816001600160a01b031660601b815250506003825111620009055760006200091c565b816003815181106200091357fe5b60200260200101515b60601b6001600160601b0319166103e05281516004106200093f57600062000956565b816004815181106200094d57fe5b60200260200101515b60601b6001600160601b0319166104005281516005106200097957600062000990565b816005815181106200098757fe5b60200260200101515b60601b6001600160601b0319166104205261044052505082515160208085015151604086015151620009d195509293509190620010ec811b6200161917901c565b8051606090620009e2903062000d23565b8051909150600019015b60008111801562000a225750306001600160a01b031682828151811062000a0f57fe5b60200260200101516001600160a01b0316115b1562000a325760001901620009ec565b6000805b84515181101562000b4b578281141562000a4f57600191505b60208501518051828401916000918490811062000a6857fe5b60200260200101516001600160a01b03161462000b415762000ac2818760200151848151811062000a9557fe5b60200260200101518860400151858151811062000aae57fe5b60200260200101516200110c60201b60201c565b8560200151828151811062000ad357fe5b60200260200101516001600160a01b0316817fdd6d1c9badb346de6925b358a472c937b41698d2632696759e43fd6527feeec48860400151858151811062000b1757fe5b602002602001015160405162000b2e919062001caf565b60405180910390a362000b418162001207565b5060010162000a36565b5050505050600019811460f881901b6104a0526001600160601b0319606084901b166104805262000b7e83600262001246565b62000b8b83600362001246565b801562000ba55762000b9f83600062001246565b62000c64565b60405163178b2b9360e21b815262000c39906001600160a01b03851690635e2cae4c9062000bd99060009060040162001caf565b60206040518083038186803b15801562000bf257600080fd5b505afa15801562000c07573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c2d9190620019ee565b83111561025862000ebd565b600060008051602062007daa8339815191528360405162000c5b919062001caf565b60405180910390a25b8062000c71578162000c74565b60005b6104c0525050506101a0810151805162000c9791600d916020909101906200170f565b505062001d21565b62000ca962001790565b6040518060600160405280836080015181526020018360a0015181526020018360c0015181525090505b919050565b62000ce2620017b1565b604051806060016040528062000d0384608001513062000d2360201b60201c565b81526020018360a0015181526020018360e0015115158152509050919050565b606082516001016001600160401b038111801562000d4057600080fd5b5060405190808252806020026020018201604052801562000d6b578160200160208202803683370190505b50905082516000141562000dae57818160008151811062000d8857fe5b60200260200101906001600160a01b031690816001600160a01b03168152505062000eb7565b82515b60008111801562000dea5750826001600160a01b031684600183038151811062000dd757fe5b60200260200101516001600160a01b0316115b1562000e375783600182038151811062000e0057fe5b602002602001015182828151811062000e1557fe5b6001600160a01b03909216602092830291909101909101526000190162000db1565b60005b8181101562000e865784818151811062000e5057fe5b602002602001015183828151811062000e6557fe5b6001600160a01b039092166020928302919091019091015260010162000e3a565b508282828151811062000e9557fe5b60200260200101906001600160a01b031690816001600160a01b031681525050505b92915050565b8162000ece5762000ece81620013f1565b5050565b600690565b8062000ece8162001406565b62000efc62000ef16200148d565b82101560cb62000ebd565b62000f1562000f0a62001496565b82111560ca62000ebd565b62000f378160c0603f600854620014a260201b6200163617909392919060201c565b6008556040517fa9ba3ffe0b6c366b81232caab38605a0699ad5398d6cce76f91ee809e322dafc9062000f6c90839062001caf565b60405180910390a150565b600082820262000f9f84158062000f9757508385838162000f9457fe5b04145b600362000ebd565b9392505050565b62000fb481804280620014c7565b7fa0d01593e47e69d07e0ccd87bece09411e07dd1ed40ca8f2e7af2976542a02338160405162000f6c919062001caf565b62000ece828214606762000ebd565b60006001600160a01b038216301415620010185750670de0b6b3a764000062000cd3565b6000826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200105457600080fd5b505afa15801562001069573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200108f919062001bdb565b60ff1690506000620010ae6012836200153a60201b6200165e1760201c565b600a0a670de0b6b3a764000002949350505050565b60006001821b1984168284620010db576000620010de565b60015b60ff16901b17949350505050565b620011078284148015620010ff57508183145b606762000ebd565b505050565b6000826001600160a01b031663679aefce6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200114857600080fd5b505afa1580156200115d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620011839190620019ee565b6000858152600a6020908152604090912054919250620011b2908290849086906200167462001552821b17901c565b6000868152600a602052604090819020919091555185907fb77a83204ca282e08dc3a65b0a1ca32ea4e6875c38ef0bf5bf75e52a67354fac90620011f890859062001caf565b60405180910390a25050505050565b6000818152600a60209081526040909120549062001230908290620016ac620015ae821b17901c565b6000928352600a60205260409092209190915550565b604051631a7c326360e01b81526000906001600160a01b03841690631a7c3263906200127790859060040162001caf565b60206040518083038186803b1580156200129057600080fd5b505afa158015620012a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620012cb9190620019ee565b9050816200130f57620012e981620015d960201b620016c41760201c565b600b80546001600160401b0319166001600160401b0392909216919091179055620013c3565b600282141562001365576200132f81620015d960201b620016c41760201c565b600b80546001600160401b03929092166801000000000000000002600160401b600160801b0319909216919091179055620013c3565b6003821415620013b6576200138581620015d960201b620016c41760201c565b600b80546001600160401b0392909216600160801b02600160801b600160c01b0319909216919091179055620013c3565b620013c36101bb620013f1565b8160008051602062007daa83398151915282604051620013e4919062001caf565b60405180910390a2505050565b62001403816210905360ea1b620015f7565b50565b600281511015620014175762001403565b6000816000815181106200142757fe5b602002602001015190506000600190505b8251811015620011075760008382815181106200145157fe5b6020026020010151905062001482816001600160a01b0316846001600160a01b031610606562000ebd60201b60201c565b915060010162001438565b64e8d4a5100090565b67016345785d8a000090565b6000620014b184848462001658565b506001901b60001901811b1992909216911b1790565b620014e18160c06040620016b360201b620016e11760201c565b620014fb8360806040620016b360201b620016e11760201c565b6200151485604080620016b360201b620016e11760201c565b6200152e8760006040620016b360201b620016e11760201c565b17171760095550505050565b60006200154c83831115600162000ebd565b50900390565b600062001567606084901c1561014962000ebd565b620015a642830160e06020620015908660c083838c8c6000606062001636620014a2871b17861c565b620014a260201b6200163617909392919060201c565b949350505050565b600062000eb7620015bf83620016c8565b60608085620014a260201b6200163617909392919060201c565b6000620015f36001600160401b038311156101ba62000ebd565b5090565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b620016696101008310606462000ebd565b620016a2600182101580156200169a57506200169660ff8461010003620016e860201b620016f41760201c565b8211155b606462000ebd565b6200110783821c156101b462000ebd565b6000620016c284848462001658565b50501b90565b600062000eb760006060846200170060201b6200170a179092919060201c565b6000818310620016f9578162000f9f565b5090919050565b6001901b6000190191901c1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200175257805160ff191683800117855562001782565b8280016001018555821562001782579182015b828111156200178257825182559160200191906001019062001765565b50620015f3929150620017d4565b60405180606001604052806060815260200160608152602001606081525090565b604051806060016040528060608152602001606081526020016000151581525090565b5b80821115620015f35760008155600101620017d5565b805162000eb78162001d0b565b600082601f83011262001809578081fd5b8151620018206200181a8262001cdf565b62001cb8565b8181529150602080830190848101818402860182018710156200184257600080fd5b60005b848110156200186e5781516200185b8162001d0b565b8452928201929082019060010162001845565b505050505092915050565b600082601f8301126200188a578081fd5b81516200189b6200181a8262001cdf565b818152915060208083019084810181840286018201871015620018bd57600080fd5b60005b848110156200186e578151620018d68162001d0b565b84529282019290820190600101620018c0565b600082601f830112620018fa578081fd5b81516200190b6200181a8262001cdf565b8181529150602080830190848101818402860182018710156200192d57600080fd5b60005b848110156200186e5781518452928201929082019060010162001930565b8051801515811462000eb757600080fd5b600082601f83011262001970578081fd5b81516001600160401b0381111562001986578182fd5b60206200199c601f8301601f1916820162001cb8565b92508183528481838601011115620019b357600080fd5b60005b82811015620019d3578481018201518482018301528101620019b6565b82811115620019e55760008284860101525b50505092915050565b60006020828403121562001a00578081fd5b5051919050565b60006020828403121562001a19578081fd5b815162000f9f8162001d0b565b60006020828403121562001a38578081fd5b81516001600160401b038082111562001a4f578283fd5b81840191506101c080838703121562001a66578384fd5b62001a718162001cb8565b905062001a7f8684620017eb565b815262001a908660208501620017eb565b602082015260408301518281111562001aa7578485fd5b62001ab5878286016200195f565b60408301525060608301518281111562001acd578485fd5b62001adb878286016200195f565b60608301525060808301518281111562001af3578485fd5b62001b0187828601620017f8565b60808301525060a08301518281111562001b19578485fd5b62001b278782860162001879565b60a08301525060c08301518281111562001b3f578485fd5b62001b4d87828601620018e9565b60c08301525062001b628660e085016200194e565b60e0820152610100838101519082015261012080840151908201526101408084015190820152610160808401519082015261018062001ba487828601620017eb565b908201526101a0838101518381111562001bbc578586fd5b62001bca888287016200195f565b918301919091525095945050505050565b60006020828403121562001bed578081fd5b815160ff8116811462000f9f578182fd5b60006060820185835260206060818501528186518084526080860191508288019350845b8181101562001c4a5762001c37855162001cff565b8352938301939183019160010162001c22565b505084810360408601528551808252908201925081860190845b8181101562001c8c5762001c79835162001cff565b8552938301939183019160010162001c64565b509298975050505050505050565b602081016003831062001ca957fe5b91905290565b90815260200190565b6040518181016001600160401b038111828210171562001cd757600080fd5b604052919050565b60006001600160401b0382111562001cf5578081fd5b5060209081020190565b6001600160a01b031690565b6001600160a01b03811681146200140357600080fd5b60805160a05160c05160e0516101005160601c6101205160601c6101405161016051610180516101a05160601c6101c0516101e0516102005160601c6102205160601c6102405160601c6102605160601c6102805160601c6102a05160601c6102c0516102e051610300516103205161034051610360516103805160601c6103a05160601c6103c05160601c6103e05160601c6104005160601c6104205160601c610440516104605160f81c6104805160601c6104a05160f81c6104c051615ed862001ed260003980610e4052508061091d52508061089d52806108c852806108f3525080610fef5280611277525080612b23525080611c87525080611c57525080611c27525080611bf7525080611bc7525080611b97525080612fb6525080612f86525080612f56525080612f26525080612ef6525080612ec6525080611f82525080611f40525080611efe525080611ebc525080611e7a525080611e385250806110805250806117395250806112d3525080610bff525080611b6b525080611b4752508061118052508061115c5250806110b8525080612d34525080612d76525080612d555250615ed86000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c806370464016116101de57806395d89b411161010f578063d2946c2b116100ad578063ddf4627b1161007c578063ddf4627b146106f6578063eb0f24d6146106fe578063ed24911d14610706578063f4b7964d1461070e57610383565b8063d2946c2b146106b5578063d505accf146106bd578063d5c096c4146106d0578063dd62ed3e146106e357610383565b8063aaabadc5116100e9578063aaabadc51461068a578063ab7759f114610692578063b35056b8146106a5578063b7b814fc146106ad57610383565b806395d89b411461065c578063a457c2d714610664578063a9059cbb1461067757610383565b80638456cb591161017c57806387ec68171161015657806387ec681714610619578063893d20e81461062c5780638d928af81461064157806390193b7c1461064957610383565b80638456cb59146105f6578063851c1bb3146105fe578063876f303b1461061157610383565b806377151bee116101b857806377151bee146105b05780637ecebe00146105b85780637f1260d1146105cb57806382687a56146105ee57610383565b8063704640161461056957806370a082311461057c57806374f3b0091461058f57610383565b80633644e515116102b857806354a844ba1161025657806355c676281161023057806355c67628146105215780636028bfd414610529578063679aefce1461054a5780636daccffa1461055257610383565b806354a844ba146104fe57806354dea00a1461050657806354fd4d501461051957610383565b8063395093511161029257806339509351146104ba5780633c975d51146104cd5780633f4ba83a146104e357806350dd6ed9146104eb57610383565b80633644e5151461049757806338e9922e1461049f57806338fff2d0146104b257610383565b80631c0de0511161032557806323b872dd116102ff57806323b872dd146104495780632df2c7c01461045c5780632f1a0bc91461046f578063313ce5671461048257610383565b80631c0de051146104085780631dd746ea1461041f578063238a2d591461043457610383565b8063095ea7b311610361578063095ea7b3146103ce5780630da0669c146103ee57806315b0015b146103f857806318160ddd1461040057610383565b806301ec954a1461038857806304842d4c146103b157806306fdde03146103b9575b600080fd5b61039b6103963660046158c7565b610721565b6040516103a89190615ce8565b60405180910390f35b61039b6107c7565b6103c16107d6565b6040516103a89190615dbe565b6103e16103dc366004615504565b61086c565b6040516103a89190615cc5565b6103f6610883565b005b6103e161091b565b61039b61093f565b610410610945565b6040516103a893929190615cd0565b61042761096e565b6040516103a89190615c8d565b61043c610978565b6040516103a89190615ba9565b6103e1610457366004615454565b610a13565b6103f661046a366004615400565b610a87565b6103f661047d366004615a16565b610aeb565b61048a610bce565b6040516103a89190615e29565b61039b610bd7565b6103f66104ad3660046159e6565b610be1565b61039b610bfd565b6103e16104c8366004615504565b610c21565b6104d5610c5c565b6040516103a8929190615e00565b6103f6610c87565b6103f66104f9366004615702565b610c99565b6103f6610cb7565b61039b610514366004615400565b610cc9565b6103c1610ce4565b61039b610d45565b61053c61053736600461561b565b610d58565b6040516103a8929190615dd1565b61039b610d8f565b61055a610dfb565b6040516103a893929190615dea565b61039b6105773660046159e6565b610e16565b61039b61058a366004615400565b610ecf565b6105a261059d36600461561b565b610eea565b6040516103a8929190615ca0565b6103e1610fed565b61039b6105c6366004615400565b611011565b6105de6105d9366004615400565b61101c565b6040516103a89493929190615e0e565b61039b61107e565b6103f66110a2565b61039b61060c3660046156be565b6110b4565b61039b611106565b61053c61062736600461561b565b611134565b61063461115a565b6040516103a89190615b95565b61063461117e565b61039b610657366004615400565b6111a2565b6103c16111bd565b6103e1610672366004615504565b61121e565b6103e1610685366004615504565b61125c565b610634611269565b6103e16106a0366004615400565b611273565b6103e16112ae565b6103f66112bf565b6106346112d1565b6103f66106cb366004615494565b6112f5565b6105a26106de36600461561b565b611380565b61039b6106f136600461541c565b6114a3565b61039b6114e0565b6103f66114e6565b61039b611512565b6103f661071c366004615504565b61151c565b6000846080015161074e61073361117e565b6001600160a01b0316336001600160a01b03161460cd611719565b610763610759610bfd565b82146101f4611719565b61076b611727565b61077d8484610778611737565b61175b565b6060610787611773565b905060008751600181111561079857fe5b146107af576107aa878787878561180c565b6107bc565b6107bc8787878785611865565b979650505050505050565b60006107d16118a0565b905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b5050505050905090565b60006108793384846118a7565b5060015b92915050565b61088b61190f565b61089361091b565b156108c3576108c37f00000000000000000000000000000000000000000000000000000000000000006000611984565b6108ee7f00000000000000000000000000000000000000000000000000000000000000006002611984565b6109197f00000000000000000000000000000000000000000000000000000000000000006003611984565b565b7f000000000000000000000000000000000000000000000000000000000000000090565b60025490565b6000806000610952611b28565b15925061095d611b45565b9150610967611b69565b9050909192565b60606107d1611773565b60606000610984611737565b905060608167ffffffffffffffff8111801561099f57600080fd5b506040519080825280602002602001820160405280156109c9578160200160208202803683370190505b50905060005b82811015610a0c576109e081611b8d565b8282815181106109ec57fe5b6001600160a01b03909216602092830291909101909101526001016109cf565b5091505090565b600080610a2085336114a3565b9050610a44336001600160a01b0387161480610a3c5750838210155b61019e611719565b610a4f858585611cb6565b336001600160a01b03861614801590610a6a57506000198114155b15610a7c57610a7c85338584036118a7565b506001949350505050565b610a8f611d96565b6000610a9a82611e34565b90506000610aa782611b8d565b9050610ac06001600160a01b0382161515610155611719565b6000828152600a6020526040812054610ad890611fc2565b9050610ae5838383611fd1565b50505050565b610af36120b4565b610b03600183101561012c611719565b610b1461138883111561012d611719565b6000610b20824261165e565b9050610b346201518082101561013d611719565b600080610b3f6120e2565b91509150610b50811561013e611719565b6000610b5e866103e86115ba565b90506000838211610b8d57610b88610b7962015180866115ba565b610b8384886115ba565b612156565b610ba7565b610ba7610b9d62015180846115ba565b610b8386886115ba565b9050610bb9600282111561013f611719565b610bc584834289612189565b50505050505050565b60055460ff1690565b60006107d1611512565b610be96120b4565b610bf16121d8565b610bfa816121eb565b50565b7f000000000000000000000000000000000000000000000000000000000000000090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610879918590610c579086612264565b6118a7565b600c546000908190610c718160e9601761170a565b9250610c8081600060e961170a565b9150509091565b610c8f6120b4565b6109196000612276565b610ca16120b4565b610ca96121d8565b610cb382826122e9565b5050565b610cbf6120b4565b61091960016123de565b6000610cdc610cd783611e34565b612435565b90505b919050565b600d8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b6008546000906107d19060c0603f61170a565b60006060610d6e8651610d69611737565b6115e5565b610d83898989898989896124886124aa612513565b97509795505050505050565b60006060600080600080610da161263d565b9398509196509450925090506000610db98585612264565b90506000610dc56120e2565b5090506000848214610de057610ddb828961272d565b610de2565b835b9050610dee818461288f565b9850505050505050505090565b6000806000610e086120e2565b90949093506103e892509050565b6000610e206112ae565b15610e2d57506000610cdf565b81610e7957610e3a61091b565b610e64577f0000000000000000000000000000000000000000000000000000000000000000610e72565b600b5467ffffffffffffffff165b9050610cdf565b6002821415610ea15750600b5468010000000000000000900467ffffffffffffffff16610cdf565b6003821415610ec45750600b54600160801b900467ffffffffffffffff16610cdf565b610cdf6101bb6128e0565b6001600160a01b031660009081526020819052604090205490565b60608088610ef961073361117e565b610f04610759610bfd565b60606000610f11866128f0565b15610f3957610f1e61291f565b610f3089610f2a61093f565b88612932565b92509050610f8b565b610f41611727565b6060610f4b611773565b9050610f578a82612977565b610f7b8d8d8d8d8d610f676112ae565b610f71578d610f74565b60005b878e612488565b93509150610f8983826124aa565b505b610f958b826129e0565b81895167ffffffffffffffff81118015610fae57600080fd5b50604051908082528060200260200182016040528015610fd8578160200160208202803683370190505b509450945050505b5097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610cdc826111a2565b6000806000806000600a600061103188611e34565b81526020810191909152604001600020549050611052811515610155611719565b61105b816129ea565b9450611066816129f8565b935061107181612a06565b9597949650949392505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6110aa6120b4565b6109196001612276565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016110e9929190615b52565b604051602081830303815290604052805190602001209050919050565b600080600061111361263d565b5050925092505061112d818361226490919063ffffffff16565b9250505090565b600060606111458651610d69611737565b610d8389898989898989612a28612a39612513565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6001600160a01b031660009081526006602052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b60008061122b33856114a3565b905080831061124557611240338560006118a7565b611252565b61125233858584036118a7565b5060019392505050565b6000610879338484611cb6565b60006107d1612aa2565b60007f00000000000000000000000000000000000000000000000000000000000000008015610cdc5750610cdc6112a983611e34565b612b1c565b6008546000906107d19060ff612b47565b6112c76120b4565b61091960006123de565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113248c6111a2565b8960405160200161133a96959493929190615d10565b60405160208183030381529060405280519060200120905061136b8882611362878787612b51565b886101f8612b90565b6113768888886118a7565b5050505050505050565b6060808861138f61073361117e565b61139a610759610bfd565b6113a2611727565b60606113ac611773565b90506113b661093f565b61146357600060606113cb8d8d8d868b612be7565b915091506113e46113da6118a0565b83101560cc611719565b6113f660006113f16118a0565b612cc0565b6114098b6114026118a0565b8403612cc0565b6114138184612a39565b808a5167ffffffffffffffff8111801561142c57600080fd5b50604051908082528060200260200182016040528015611456578160200160208202803683370190505b5095509550505050610fe0565b61146d8882612977565b600060606114958d8d8d8d8d6114816112ae565b61148b578d61148e565b60005b898e612a28565b915091506114098b83612cc0565b60006114ad61117e565b6001600160a01b0316826001600160a01b031614156114cf575060001961087d565b6114d98383612cca565b905061087d565b60001981565b6114ee6120b4565b6000806114f96120e2565b9150915061150981610140611719565b610cb382612cf5565b60006107d1612d30565b6115246120b4565b61152c611d96565b600061153783611e34565b9050600061154482611b8d565b905061155d6001600160a01b0382161515610155611719565b611568828285611fd1565b806001600160a01b0316827fdd6d1c9badb346de6925b358a472c937b41698d2632696759e43fd6527feeec4856040516115a29190615ce8565b60405180910390a350505050565b80610cb381612dcd565b60008282026115de8415806115d75750838583816115d457fe5b04145b6003611719565b9392505050565b610cb38183146067611719565b60006001821b198416828461160857600061160b565b60015b60ff16901b17949350505050565b611631828414801561162a57508183145b6067611719565b505050565b6000611643848484612e46565b5082821b6000196001831b01831b198516175b949350505050565b600061166e838311156001611719565b50900390565b6000611687606084901c15610149611719565b61165642830160e060206116a48660c083838c8c60006060611636565b929190611636565b6000610cdc6116ba836129ea565b8390606080611636565b60006116dd67ffffffffffffffff8311156101ba611719565b5090565b60006116ee848484612e46565b50501b90565b600081831061170357816115de565b5090919050565b6001901b6000190191901c1690565b81610cb357610cb3816128e0565b61172f612e8c565b610919612e94565b7f000000000000000000000000000000000000000000000000000000000000000090565b611631818410801561176c57508183105b6064611719565b6060600061177f611737565b905060608167ffffffffffffffff8111801561179a57600080fd5b506040519080825280602002602001820160405280156117c4578160200160208202803683370190505b50905060005b82811015610a0c576117ed6117de82612435565b6117e783612ebc565b90612fda565b8282815181106117f957fe5b60209081029190910101526001016117ca565b60208501516000906001600160a01b0316301480611836575060408601516001600160a01b031630145b61184c576118478686868686613006565b611859565b6118598686868686613070565b90505b95945050505050565b60208501516000906001600160a01b031630148061188f575060408601516001600160a01b031630145b61184c576118478686868686613174565b620f424090565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611902908590615ce8565b60405180910390a3505050565b611917611d96565b61191f6121d8565b6060600080600061192e61263d565b945094509450509350600083111561194957611949836131cb565b60006119536120e2565b509050600083821461196e57611969828761272d565b611970565b825b905061197c82826131dc565b505050505050565b604051631a7c326360e01b81526000906001600160a01b03841690631a7c3263906119b3908590600401615ce8565b60206040518083038186803b1580156119cb57600080fd5b505afa1580156119df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0391906159fe565b905081611a3a57611a13816116c4565b600b805467ffffffffffffffff191667ffffffffffffffff92909216919091179055611aeb565b6002821415611a8857611a4c816116c4565b600b805467ffffffffffffffff9290921668010000000000000000026fffffffffffffffff000000000000000019909216919091179055611aeb565b6003821415611ae057611a9a816116c4565b600b805467ffffffffffffffff92909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff909216919091179055611aeb565b611aeb6101bb6128e0565b817f6bfb689528fa96ec1ad670ad6d6064be1ae96bfd5d2ee35c837fd0fe0c11959a82604051611b1b9190615ce8565b60405180910390a2505050565b6000611b32611b69565b4211806107d157505060075460ff161590565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b600081611bbb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415611beb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415611c1b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415611c4b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415611c7b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b610cdf6101356128e0565b611ccd6001600160a01b0384161515610198611719565b611ce46001600160a01b0383161515610199611719565b611cef838383611631565b6001600160a01b038316600090815260208190526040902054611d1590826101a0613202565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611d449082612264565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611902908590615ce8565b60408051600080825260208201909252606091611dc9565b611db661526c565b815260200190600190039081611dae5790505b509050611dd461117e565b6001600160a01b0316630e8e3e84826040518263ffffffff1660e01b8152600401611dff9190615bf6565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b5050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611e7857506000610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611eba57506001610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611efc57506002610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f3e57506003610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f8057506004610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611cab57506005610cdf565b6000610cdc8260c0602061170a565b6000826001600160a01b031663679aefce6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200c57600080fd5b505afa158015612020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204491906159fe565b6000858152600a6020526040902054909150612061818385611674565b6000868152600a602052604090819020919091555185907fb77a83204ca282e08dc3a65b0a1ca32ea4e6875c38ef0bf5bf75e52a67354fac906120a5908590615ce8565b60405180910390a25050505050565b60006120cb6000356001600160e01b0319166110b4565b9050610bfa6120da8233613218565b610191611719565b6000806000806000806120f3613301565b93509350935093508042101561214657600194508383111561212a57818103824203858503028161212057fe5b0484019550612141565b818103824203848603028161213b57fe5b04840395505b61214e565b600094508295505b505050509091565b60006121658215156004611719565b826121725750600061087d565b81600184038161217e57fe5b04600101905061087d565b61219584848484613360565b7f1835882ee7a34ac194f717a35e09bb1d24c82a3b9d854ab6c9749525b714cdf2848484846040516121ca9493929190615e0e565b60405180910390a150505050565b6109196121e3611b28565b610192611719565b6122006121f661339f565b82101560cb611719565b61221561220b6133a8565b82111560ca611719565b600854612226908260c0603f611636565b6008556040517fa9ba3ffe0b6c366b81232caab38605a0699ad5398d6cce76f91ee809e322dafc90612259908390615ce8565b60405180910390a150565b60008282016115de8482101583611719565b801561229657612291612287611b45565b4210610193611719565b6122ab565b6122ab6122a1611b69565b42106101a9611719565b6007805460ff19168215151790556040517f9e3a5e37224532dea67b89face185703738a228a6e8a23dee546960180d3be6490612259908390615cc5565b60006122f3610bfd565b905060006122ff61117e565b6001600160a01b031663b05f8e4883866040518363ffffffff1660e01b815260040161232c929190615d89565b60806040518083038186803b15801561234457600080fd5b505afa158015612358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237c9190615a37565b604051630639cdb560e21b81529094506001600160a01b03851693506318e736d492506123b0915085908790600401615d70565b600060405180830381600087803b1580156123ca57600080fd5b505af1158015611376573d6000803e3d6000fd5b6008546123ed908260ff6115f2565b6008556040517feff3d4d215b42bf0960be9c6d5e05c22cba4df6627a3a523e2acee733b5854c890612420908390615cc5565b60405180910390a180610bfa57610bfa6133b4565b600061243f61107e565b8214156124555750670de0b6b3a7640000610cdf565b6000828152600a6020526040902054801561247857612473816129ea565b6115de565b670de0b6b3a76400009392505050565b60006060612499600088868661348e565b915091509850989650505050505050565b815181516124b99082906115e5565b60005b81811015610ae5576124f48482815181106124d357fe5b60200260200101518483815181106124e757fe5b602002602001015161288f565b84828151811061250057fe5b60209081029190910101526001016124bc565b3330146125d1576000306001600160a01b0316600036604051612537929190615b6a565b6000604051808303816000865af19150503d8060008114612574576040519150601f19603f3d011682016040523d82523d6000602084013e612579565b606091505b50509050806000811461258857fe5b60046000803e6000516001600160e01b0319166343adbafb60e01b81146125b3573d6000803e3d6000fd5b506020600460003e604060205260243d03602460403e601c3d016000f35b6125d9611727565b60606125e3611773565b90506125ef8782612977565b600060606126078c8c8c8c8c8c898d8d63ffffffff16565b9150915061261981848663ffffffff16565b8051601f1982018390526343adbafb603f1983015260200260231982016044820181fd5b6060600080600080606061264f61117e565b6001600160a01b031663f94d4668612665610bfd565b6040518263ffffffff1660e01b81526004016126819190615ce8565b60006040518083038186803b15801561269957600080fd5b505afa1580156126ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126d5919081019061552f565b509150506126ea816126e5611773565b612977565b6126f38161353c565b965094506000612701610c5c565b90945090506000612713888684613575565b9450905061272187826135f1565b95505050509091929394565b80516000908190815b8181101561276e5761276485828151811061274d57fe5b60200260200101518461226490919063ffffffff16565b9250600101612736565b508161277f5760009250505061087d565b600082868302825b60ff811015612878578260005b868110156127d5576127cb6127a983876115ba565b6127c68c84815181106127b857fe5b60200260200101518a6115ba565b613609565b9150600101612794565b5083945061282e61280d6128076127ec848a6115ba565b6128016127f9888d6115ba565b6103e8613609565b90612264565b866115ba565b6127c661281d89600101856115ba565b6128016127f96103e889038a6115ba565b93508484111561285657600185850311612851578397505050505050505061087d565b61286f565b60018486031161286f578397505050505050505061087d565b50600101612787565b506128846101416128e0565b505050505092915050565b600061289e8215156004611719565b826128ab5750600061087d565b670de0b6b3a7640000838102906128ce908583816128c557fe5b04146005611719565b8281816128d757fe5b0491505061087d565b610bfa816210905360ea1b613629565b6000808251118015610cdc575060ff8016828060200190518101906129159190615a77565b60ff161492915050565b61091961292a6112ae565b6101b6611719565b60006060600060606129438761353c565b915091506000606061295683858961368a565b91509150816129668260006136b6565b95509550505050505b935093915050565b815181516129869082906115e5565b60005b81811015610ae5576129c18482815181106129a057fe5b60200260200101518483815181106129b457fe5b6020026020010151612fda565b8482815181106129cd57fe5b6020908102919091010152600101612989565b610cb38282613773565b6000610cdc8282606061170a565b6000610cdc8260608061170a565b600080612a1283611fc2565b9150612a218360e0602061170a565b9050915091565b60006060612499600188868661348e565b81518151612a489082906115e5565b60005b81811015610ae557612a83848281518110612a6257fe5b6020026020010151848381518110612a7657fe5b602002602001015161383f565b848281518110612a8f57fe5b6020908102919091010152600101612a4b565b6000612aac61117e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b158015612ae457600080fd5b505afa158015612af8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d191906156e6565b6000610cdc7f0000000000000000000000000000000000000000000000000000000000000000600684015b1c60019081161490565b60408051604180825260808201909252606091829190602082018180368337019050509050836020820152826040820152846060820153949350505050565b6000612b9b8561388d565b9050612bb1612bab8783876138a9565b83611719565b612bc0428410156101b8611719565b5050506001600160a01b039092166000908152600660205260409020805460010190555050565b600060606000612bf684613958565b9050612c116000826003811115612c0957fe5b1460ce611719565b6060612c1c8561396e565b9050612c2a815187516115e5565b612c348187612977565b6000612c3e6120e2565b5090506060612c4c83613984565b90506000612c5a838361272d565b9050806000612c776d80000000000000000000000000008361165e565b9050612c838d82612cc0565b8086612c8d61107e565b81518110612c9757fe5b602002602001018181525050612cad85846131dc565b509c939b50929950505050505050505050565b610cb38282613a26565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b612d0181824242613360565b7fa0d01593e47e69d07e0ccd87bece09411e07dd1ed40ca8f2e7af2976542a0233816040516122599190615ce8565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612d9d613ab3565b30604051602001612db2959493929190615d44565b60405160208183030381529060405280519060200120905090565b600281511015612ddc57610bfa565b600081600081518110612deb57fe5b602002602001015190506000600190505b8251811015611631576000838281518110612e1357fe5b60200260200101519050612e3c816001600160a01b0316846001600160a01b0316106065611719565b9150600101612dfc565b612e5561010083106064611719565b612e7d6001821015801561176c5750612e7360ff84610100036116f4565b8211156064611719565b61163183821c156101b4611719565b6109196121d8565b6000612e9e611737565b905060005b81811015610cb357612eb481613ab7565b600101612ea3565b600081612eea57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415612f1a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415612f4a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415612f7a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415612faa57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b6000828202612ff48415806115d75750838583816115d457fe5b670de0b6b3a764000090049392505050565b60006130128583612977565b613033866060015183858151811061302657fe5b6020026020010151613b0b565b6060870152600061304687878787613b17565b90506130658184878151811061305857fe5b6020026020010151613b2b565b90506107bc81613b37565b600080808751600181111561308157fe5b14905061308e8684612977565b6130ae876060015184836130a257866130a4565b875b8151811061302657fe5b876060018181525050600060606000806130c78a613b53565b93509350935093506000806130da61107e565b8a14613100576130fb878e60600151876130f38e613bbc565b888b89613bf1565b61311b565b61311b878e60600151876131138f613bbc565b888b89613c2a565b9150915061312c8486858985613c4e565b8661314657613141828a8d8151811061305857fe5b613163565b613163828a8c8151811061315657fe5b6020026020010151613cce565b9d9c50505050505050505050505050565b60006131838660600151613cda565b60608701526131928583612977565b6131a6866060015183868151811061302657fe5b606087015260006131b987878787613cfb565b90506107bc8184868151811061315657fe5b610bfa6131d66112d1565b82612cc0565b6131e981600060e96116e1565b6131f68360e960176116e1565b17600c55610cb3613d0f565b60006132118484111583611719565b5050900390565b600073ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b61323761115a565b6001600160a01b031614158015613252575061325283613d45565b1561327a5761325f61115a565b6001600160a01b0316336001600160a01b031614905061087d565b613282612aa2565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b81526004016132b193929190615cf1565b60206040518083038186803b1580156132c957600080fd5b505afa1580156132dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d991906155fb565b6000806000806133206000604060095461170a9092919063ffffffff16565b6009549094506133329060408061170a565b600954909350613345906080604061170a565b6009549092506133589060c0604061170a565b905090919293565b61336d8160c060406116e1565b61337a83608060406116e1565b613386856040806116e1565b61339387600060406116e1565b17171760095550505050565b64e8d4a5100090565b67016345785d8a000090565b6133bc611d96565b60606133c661117e565b6001600160a01b031663f94d46686133dc610bfd565b6040518263ffffffff1660e01b81526004016133f89190615ce8565b60006040518083038186803b15801561341057600080fd5b505afa158015613424573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261344c919081019061552f565b5091505061345c816126e5611773565b606061346782613984565b905060006134736120e2565b5090506000613482828461272d565b9050610ae582826131dc565b60006060600060606000806134a289613b53565b935093509350935061529c8a6134ba57613d506134be565b613de55b9050600060606134d6868689878f8f8963ffffffff16565b9150915061529c8d6134ea5761165e6134ee565b6122645b90506134fb878383613e63565b600061350b89858463ffffffff16565b905061351a8789888c85613c4e565b836135268460006136b6565b9a509a5050505050505050505094509492505050565b600060606135638361354c61107e565b8151811061355657fe5b6020026020010151613ed0565b61356c84613984565b91509150915091565b6000806000806000613588888888613ee4565b9250925092508581116135a35760009450925061296f915050565b85830383830360006135c16135b782610e16565b6117e7858761288f565b905060006135dc6135d26002610e16565b6117e7858861288f565b919091019b939a509298505050505050505050565b60006115de61360084846115ba565b6127c684613f55565b60006136188215156004611719565b81838161362157fe5b049392505050565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b60006060600061369984613f7b565b905060606136a8878784613f91565b919791965090945050505050565b6060825160010167ffffffffffffffff811180156136d357600080fd5b506040519080825280602002602001820160405280156136fd578160200160208202803683370190505b50905060005b815181101561376c5761371461107e565b811461374b578361372361107e565b82106137325760018203613734565b815b8151811061373e57fe5b602002602001015161374d565b825b82828151811061375957fe5b6020908102919091010152600101613703565b5092915050565b61378a6001600160a01b038316151561019b611719565b61379682600083611631565b6001600160a01b0382166000908152602081905260409020546137bc90826101b2613202565b6001600160a01b0383166000908152602081905260409020556137ef6137ea826137e461093f565b90614040565b61404e565b60006001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516138339190615ce8565b60405180910390a35050565b600061384e8215156004611719565b8261385b5750600061087d565b670de0b6b3a764000083810290613875908583816128c557fe5b82600182038161388157fe5b0460010191505061087d565b6000613897612d30565b826040516020016110e9929190615b7a565b60006138bb82516041146101b9611719565b60208281015160408085015160608601518251600080825295019283905292939092811a916001906138f4908990859088908890615da0565b6020604051602081039080840390855afa158015613916573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061394c5750876001600160a01b0316816001600160a01b0316145b98975050505050505050565b600081806020019051810190610cdc9190615811565b6060818060200190518101906115de919061582c565b606080600183510367ffffffffffffffff811180156139a257600080fd5b506040519080825280602002602001820160405280156139cc578160200160208202803683370190505b50905060005b815181101561376c57836139e461107e565b82106139f357816001016139f5565b815b815181106139ff57fe5b6020026020010151828281518110613a1357fe5b60209081029190910101526001016139d2565b613a3260008383611631565b613a416137ea8261280161093f565b6001600160a01b038216600090815260208190526040902054613a649082612264565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90613833908590615ce8565b4690565b613abf61107e565b811415613acb57610bfa565b6000818152600a60205260409020548015610cb357600080613aec83612a06565b9150915080421115610ae557610ae584613b0586611b8d565b84611fd1565b60006115de8383612fda565b600061185c60008660600151868686614053565b60006115de838361383f565b6000610cdc613b4c613b47610d45565b613f55565b839061383f565b60006060600080600080613b65610c5c565b91509150600060606000613b7a8a86866140c5565b9250925092506000613b8a6120e2565b5090506000868214613ba557613ba0828561272d565b613ba7565b825b949c939b509099509297509095505050505050565b6000613bd3613bc961107e565b8314156064611719565b613bdb61107e565b82106116dd57613bec82600161165e565b610cdc565b60008088613c0c57613c0788888888888861411d565b613c1a565b613c1a8888888888886141f4565b9150915097509795505050505050565b60008088613c4057613c07888888888888614255565b613c1a8888888888886142bb565b6000613c5a868661272d565b90506000613c68838561288f565b90506000613c768683612fda565b905080831115613cc4578083036000613ca0613c9a83613c9584610e16565b6115ba565b86613609565b90508015613cc1576000613cb487836135f1565b9050613cbf816131cb565b505b50505b61137688846131dc565b60006115de838361288f565b600080613cef613ce8610d45565b849061436a565b90506115de838261165e565b600061185c60018660600151868686614053565b6000613d19611737565b905060005b81811015610cb357613d2f81612b1c565b15613d3d57613d3d816143a6565b600101613d1e565b6000610cdc826143d4565b600060606000613d5f846143df565b90506001816002811115613d6f57fe5b1415613d8d57613d8387878a8c89896143f5565b9250925050613dda565b6002816002811115613d9b57fe5b1415613dac57613d83878a86614454565b6000816002811115613dba57fe5b1415613dcd57613d8387878a8c88614472565b613dd86101506128e0565b505b965096945050505050565b600060606000613df484613958565b90506001816003811115613e0457fe5b1415613e1857613d8387878a8c8989614513565b6003816003811115613e2657fe5b1415613e3757613d83878a86614562565b6002816003811115613e4557fe5b1415613e5857613d8387878a8c88614580565b613dd86101366128e0565b82518251613e729082906115e5565b60005b81811015611e2d57613eb1858281518110613e8c57fe5b6020026020010151858381518110613ea057fe5b60200260200101518563ffffffff16565b858281518110613ebd57fe5b6020908102919091010152600101613e75565b6000610cdc82613ede61093f565b9061165e565b6000806000613ef3858761272d565b9050838111613f0757808192509250613f4c565b613f1985613f14886145fa565b61272d565b9250613f2581846116f4565b9250613f3184846146eb565b9250613f3b610fed565b15613f4857829150613f4c565b8091505b93509350939050565b6000670de0b6b3a76400008210613f6d576000610cdc565b50670de0b6b3a76400000390565b6000818060200190518101906115de9190615a93565b60606000613f9f838561288f565b9050845167ffffffffffffffff81118015613fb957600080fd5b50604051908082528060200260200182016040528015613fe3578160200160208202803683370190505b50915060005b8551811015614037576140188287838151811061400257fe5b6020026020010151612fda90919063ffffffff16565b83828151811061402457fe5b6020908102919091010152600101613fe9565b50509392505050565b60006115de83836001613202565b600255565b6000606061406085613984565b9050600061406d85613bbc565b9050600061407a85613bbc565b905060006140866120e2565b5090506000614095828661272d565b90508a156140b7576140ab828686868e866146fb565b9550505050505061185c565b6140ab828686868e86614786565b6000606060008060606140d78861353c565b915091506000806140e9838a8a613575565b9150915060006140f985846135f1565b9050801561410a5761410a816131cb565b9390930199919850919650945050505050565b6000806060875167ffffffffffffffff8111801561413a57600080fd5b50604051908082528060200260200182016040528015614164578160200160208202803683370190505b5090508881888151811061417457fe5b6020026020010181815250506000614197878a848989614192610d45565b614819565b90506141bf8a8a8a815181106141a957fe5b602002602001015161165e90919063ffffffff16565b8989815181106141cb57fe5b602090810291909101015260006141e2878361165e565b919b919a509098505050505050505050565b600080600061420f8689898c898961420a610d45565b614aa9565b9050614221818989815181106141a957fe5b88888151811061422d57fe5b60209081029190910101526000614244868b61165e565b919a91995090975050505050505050565b60008060006142708689898c898961426b610d45565b614b98565b90506142988189898151811061428257fe5b602002602001015161226490919063ffffffff16565b8888815181106142a457fe5b60209081029190910101526000614244868b612264565b6000806060875167ffffffffffffffff811180156142d857600080fd5b50604051908082528060200260200182016040528015614302578160200160208202803683370190505b5090508881888151811061431257fe5b6020026020010181815250506000614335878a848989614330610d45565b614c65565b90506143478a8a8a8151811061428257fe5b89898151811061435357fe5b602090810291909101015260006141e28783612264565b60008282026143848415806115d75750838583816115d457fe5b8061439357600091505061087d565b670de0b6b3a76400006000198201613881565b6000818152600a60205260409020546143be816116ac565b6000928352600a60205260409092209190915550565b6000610cdc82614ecf565b600081806020019051810190610cdc9190615750565b6000606080600061440585614ef2565b91509150614415825188516115e5565b614422826126e588613984565b60006144348989858e8e614192610d45565b90506144448282111560cf611719565b9a91995090975050505050505050565b60006060600061446384614f15565b905060606136a8868884613f91565b6000606060008061448285614f2b565b91509150614494865182106064611719565b6060865167ffffffffffffffff811180156144ae57600080fd5b506040519080825280602002602001820160405280156144d8578160200160208202803683370190505b5090506144ec888884868e8e61420a610d45565b8183815181106144f857fe5b60209081029190910101529199919850909650505050505050565b6000606080600061452385614f42565b91509150614533875183516115e5565b614540826126e588613984565b60006145528989858e8e614330610d45565b90506144448282101560d0611719565b60006060600061457184614f5a565b905060606136a8868389614f70565b600060606000806145908561500c565b915091506145a2865182106064611719565b6060865167ffffffffffffffff811180156145bc57600080fd5b506040519080825280602002602001820160405280156145e6578160200160208202803683370190505b5090506144ec888884868e8e61426b610d45565b8051606090818167ffffffffffffffff8111801561461757600080fd5b50604051908082528060200260200182016040528015614641578160200160208202803683370190505b50905060005b828110156146e357600061465961107e565b821015614666578161466b565b816001015b905061467681612b1c565b6146935785828151811061468657fe5b60200260200101516146c3565b6146c38683815181106146a257fe5b6020026020010151600a600084815260200190815260200160002054615023565b8383815181106146cf57fe5b602090810291909101015250600101614647565b509392505050565b60008183101561170357816115de565b600061470d8387878151811061428257fe5b86868151811061471957fe5b60200260200101818152505060006147338888858861503e565b90508387878151811061474257fe5b60200260200101510387878151811061475757fe5b6020026020010181815250506147786001613ede838a89815181106141a957fe5b9150505b9695505050505050565b6000614798838786815181106141a957fe5b8685815181106147a457fe5b60200260200101818152505060006147be8888858961503e565b9050838786815181106147cd57fe5b6020026020010151018786815181106147e257fe5b602002602001018181525050614778600161280189898151811061480257fe5b60200260200101518461165e90919063ffffffff16565b600080805b87518110156148575761484d88828151811061483657fe5b60200260200101518361226490919063ffffffff16565b915060010161481e565b506060865167ffffffffffffffff8111801561487257600080fd5b5060405190808252806020026020018201604052801561489c578160200160208202803683370190505b5090506000805b89518110156149695760006148d4858c84815181106148be57fe5b602002602001015161383f90919063ffffffff16565b90506149168b83815181106148e557fe5b60200260200101516149108c85815181106148fc57fe5b60200260200101518e86815181106141a957fe5b9061383f565b84838151811061492257fe5b60200260200101818152505061495e6149578286858151811061494157fe5b602002602001015161436a90919063ffffffff16565b8490612264565b9250506001016148a3565b506060895167ffffffffffffffff8111801561498457600080fd5b506040519080825280602002602001820160405280156149ae578160200160208202803683370190505b50905060005b8a51811015614a795760008482815181106149cb57fe5b6020026020010151841115614a325760006149f46149e886613f55565b8e858151811061400257fe5b90506000614a08828e86815181106141a957fe5b9050614a29614a2282670de0b6b3a76400008d900361383f565b8390612264565b92505050614a49565b8a8281518110614a3e57fe5b602002602001015190505b614a59818d84815181106141a957fe5b838381518110614a6557fe5b6020908102919091010152506001016149b4565b506000614a868c8361272d565b90506000614a94828a61288f565b9050613163614aa282613f55565b8b9061436a565b600080614ac484614abe87614910818b61165e565b9061436a565b90506000614ad48a8a848b61503e565b90506000614ae8828b8b815181106141a957fe5b90506000805b8b51811015614b1057614b068c828151811061483657fe5b9150600101614aee565b506000614b39828d8d81518110614b2357fe5b602002602001015161288f90919063ffffffff16565b90506000614b4682613f55565b90506000614b54858361436a565b90506000614b62868361165e565b9050614b83614b7c83670de0b6b3a76400008d9003612fda565b8290612264565b98505050505050505050979650505050505050565b600080614bad84614abe87614910818b612264565b90506000614bbd8a8a848b61503e565b90506000614be78a8a81518110614bd057fe5b60200260200101518361165e90919063ffffffff16565b90506000805b8b51811015614c0f57614c058c828151811061483657fe5b9150600101614bed565b506000614c22828d8d81518110614b2357fe5b90506000614c2f82613f55565b90506000614c3d858361436a565b90506000614c4b868361165e565b9050614b83614b7c83670de0b6b3a76400008d900361383f565b600080805b8751811015614c8c57614c8288828151811061483657fe5b9150600101614c6a565b506060865167ffffffffffffffff81118015614ca757600080fd5b50604051908082528060200260200182016040528015614cd1578160200160208202803683370190505b5090506000805b8951811015614d6b576000614cf3858c8481518110614b2357fe5b9050614d358b8381518110614d0457fe5b6020026020010151614d2f8c8581518110614d1b57fe5b60200260200101518e868151811061428257fe5b9061288f565b848381518110614d4157fe5b602002602001018181525050614d606149578286858151811061400257fe5b925050600101614cd8565b506060895167ffffffffffffffff81118015614d8657600080fd5b50604051908082528060200260200182016040528015614db0578160200160208202803683370190505b50905060005b8a51811015614e7157600083858381518110614dce57fe5b60200260200101511115614e2a576000614df36149e886670de0b6b3a764000061165e565b90506000614e07828e86815181106141a957fe5b9050614e21614a2282670de0b6b3a76400008d9003612fda565b92505050614e41565b8a8281518110614e3657fe5b602002602001015190505b614e51818d848151811061428257fe5b838381518110614e5d57fe5b602090810291909101015250600101614db6565b506000614e7e8c8361272d565b90506000614e8c828a61288f565b9050670de0b6b3a7640000811115614ec057614eb38a670de0b6b3a763ffff198301612fda565b965050505050505061477c565b6000965050505050505061477c565b6000614ee163f4b7964d60e01b6110b4565b821480610cdc5750610cdc826151fb565b6060600082806020019051810190614f0a919061576b565b909590945092505050565b6000818060200190518101906115de91906157b0565b60008082806020019051810190614f0a91906157dc565b6060600082806020019051810190614f0a919061586f565b6000818060200190518101906115de919061588d565b60606000614f7e848461383f565b90506060855167ffffffffffffffff81118015614f9a57600080fd5b50604051908082528060200260200182016040528015614fc4578160200160208202803683370190505b50905060005b865181101561500257614fe38388838151811061494157fe5b828281518110614fef57fe5b6020908102919091010152600101614fca565b5095945050505050565b60008082806020019051810190614f0a91906158a9565b60006115de61503584613c95856129f8565b6127c6846129ea565b60008084518602905060008560008151811061505657fe5b60200260200101519050600086518760008151811061507157fe5b60200260200101510290506000600190505b87518110156150d7576150bc6150b66150af848b85815181106150a257fe5b60200260200101516115ba565b8a516115ba565b88613609565b91506150cd88828151811061274d57fe5b9250600101615083565b508685815181106150e457fe5b60200260200101518203915060006150fc87886115ba565b9050600061512861511c61511484610b8389886115ba565b6103e86115ba565b8a89815181106150a257fe5b9050600061514361513c6151148b89613609565b8690612264565b905060008061515f6151558686612264565b610b838d86612264565b905060005b60ff8110156151df578192506151946151818661280185866115ba565b610b838e613ede886128018860026115ba565b9150828211156151bd576001838303116151b8575097506116569650505050505050565b6151d7565b6001828403116151d7575097506116569650505050505050565b600101615164565b506151eb6101426128e0565b5050505050505050949350505050565b600061520d632f1a0bc960e01b6110b4565b8214806152285750615225637587926b60e11b6110b4565b82145b80610cdc5750610cdc826000615244631c74c91760e11b6110b4565b82148061525f575061525c6350dd6ed960e01b6110b4565b82145b80610cdc57506000610cdc565b6040805160a081019091528060008152600060208201819052604082018190526060820181905260809091015290565bfe5b803561087d81615e7e565b600082601f8301126152b9578081fd5b81356152cc6152c782615e5e565b615e37565b8181529150602080830190848101818402860182018710156152ed57600080fd5b60005b84811015612884578135845292820192908201906001016152f0565b600082601f83011261531c578081fd5b815161532a6152c782615e5e565b81815291506020808301908481018184028601820187101561534b57600080fd5b60005b848110156128845781518452928201929082019060010161534e565b600082601f83011261537a578081fd5b813567ffffffffffffffff811115615390578182fd5b6153a3601f8201601f1916602001615e37565b91508082528360208285010111156153ba57600080fd5b8060208401602084013760009082016020015292915050565b80516003811061087d57600080fd5b80516004811061087d57600080fd5b80356002811061087d57600080fd5b600060208284031215615411578081fd5b81356115de81615e7e565b6000806040838503121561542e578081fd5b823561543981615e7e565b9150602083013561544981615e7e565b809150509250929050565b600080600060608486031215615468578081fd5b833561547381615e7e565b9250602084013561548381615e7e565b929592945050506040919091013590565b600080600080600080600060e0888a0312156154ae578283fd5b87356154b981615e7e565b965060208801356154c981615e7e565b9550604088013594506060880135935060808801356154e781615e93565b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215615516578182fd5b823561552181615e7e565b946020939093013593505050565b600080600060608486031215615543578081fd5b835167ffffffffffffffff8082111561555a578283fd5b818601915086601f83011261556d578283fd5b815161557b6152c782615e5e565b80828252602080830192508086018b82838702890101111561559b578788fd5b8796505b848710156155c65780516155b281615e7e565b84526001969096019592810192810161559f565b5089015190975093505050808211156155dd578283fd5b506155ea8682870161530c565b925050604084015190509250925092565b60006020828403121561560c578081fd5b815180151581146115de578182fd5b600080600080600080600060e0888a031215615635578081fd5b87359650602088013561564781615e7e565b9550604088013561565781615e7e565b9450606088013567ffffffffffffffff80821115615673578283fd5b61567f8b838c016152a9565b955060808a0135945060a08a0135935060c08a01359150808211156156a2578283fd5b506156af8a828b0161536a565b91505092959891949750929550565b6000602082840312156156cf578081fd5b81356001600160e01b0319811681146115de578182fd5b6000602082840312156156f7578081fd5b81516115de81615e7e565b60008060408385031215615714578182fd5b823561571f81615e7e565b9150602083013567ffffffffffffffff81111561573a578182fd5b6157468582860161536a565b9150509250929050565b600060208284031215615761578081fd5b6115de83836153d3565b60008060006060848603121561577f578081fd5b61578985856153d3565b9250602084015167ffffffffffffffff8111156157a4578182fd5b6155ea8682870161530c565b600080604083850312156157c2578182fd5b6157cc84846153d3565b9150602083015190509250929050565b6000806000606084860312156157f0578081fd5b6157fa85856153d3565b925060208401519150604084015190509250925092565b600060208284031215615822578081fd5b6115de83836153e2565b6000806040838503121561583e578182fd5b61584884846153e2565b9150602083015167ffffffffffffffff811115615863578182fd5b6157468582860161530c565b600080600060608486031215615883578081fd5b61578985856153e2565b6000806040838503121561589f578182fd5b6157cc84846153e2565b6000806000606084860312156158bd578081fd5b6157fa85856153e2565b600080600080608085870312156158dc578182fd5b843567ffffffffffffffff808211156158f3578384fd5b818701915061012080838a031215615909578485fd5b61591281615e37565b905061591e89846153f1565b815261592d896020850161529e565b602082015261593f896040850161529e565b6040820152606083013560608201526080830135608082015260a083013560a082015261596f8960c0850161529e565b60c08201526159818960e0850161529e565b60e08201526101008084013583811115615999578687fd5b6159a58b82870161536a565b8284015250508096505060208701359150808211156159c2578384fd5b506159cf878288016152a9565b949794965050505060408301359260600135919050565b6000602082840312156159f7578081fd5b5035919050565b600060208284031215615a0f578081fd5b5051919050565b60008060408385031215615a28578182fd5b50508035926020909101359150565b60008060008060808587031215615a4c578182fd5b8451935060208501519250604085015191506060850151615a6c81615e7e565b939692955090935050565b600060208284031215615a88578081fd5b81516115de81615e93565b60008060408385031215615aa5578182fd5b8251615ab081615e93565b6020939093015192949293505050565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015615afc57815187529582019590820190600101615ae0565b509495945050505050565b60008151808452815b81811015615b2c57602081850181015186830182015201615b10565b81811115615b3d5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6000828483379101908152919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015615bea5783516001600160a01b031683529284019291840191600101615bc5565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015615c80578151805160048110615c2957fe5b855280870151615c3b88870182615ac0565b508581015186860152606080820151615c5682880182615ac0565b505060809081015190615c6b86820183615ac0565b505060a0939093019290850190600101615c13565b5091979650505050505050565b6000602082526115de6020830184615acd565b600060408252615cb36040830185615acd565b828103602084015261185c8185615acd565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6000838252604060208301526116566040830184615b07565b9182526001600160a01b0316602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526115de6020830184615b07565b6000838252604060208301526116566040830184615acd565b9283529015156020830152604082015260600190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715615e5657600080fd5b604052919050565b600067ffffffffffffffff821115615e74578081fd5b5060209081020190565b6001600160a01b0381168114610bfa57600080fd5b60ff81168114610bfa57600080fdfea2646970667358221220b4e550780037f90ebe851b3b7805b576dad987fb40b27b1310b67210681e408464736f6c634300070100336bfb689528fa96ec1ad670ad6d6064be1ae96bfd5d2ee35c837fd0fe0c11959a",
+ "opcodes": "PUSH2 0x4E0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x7DCA CODESIZE SUB DUP1 PUSH3 0x7DCA DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x35 SWAP2 PUSH3 0x1A26 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD MLOAD PUSH1 0x0 NOT PUSH3 0x48 DUP4 PUSH3 0xC9F JUMP JUMPDEST PUSH3 0x53 DUP5 PUSH3 0xCD8 JUMP JUMPDEST DUP5 PUSH2 0x100 ADD MLOAD DUP6 PUSH1 0x0 ADD MLOAD PUSH1 0x0 DUP8 PUSH1 0x40 ADD MLOAD DUP9 PUSH1 0x60 ADD MLOAD PUSH3 0x80 DUP11 PUSH1 0x80 ADD MLOAD ADDRESS PUSH3 0xD23 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST DUP11 PUSH1 0x80 ADD MLOAD MLOAD PUSH1 0x1 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP1 ISZERO PUSH3 0x9F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH3 0xCA JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP DUP12 PUSH2 0x120 ADD MLOAD DUP13 PUSH2 0x140 ADD MLOAD DUP14 PUSH2 0x160 ADD MLOAD DUP15 PUSH2 0x180 ADD MLOAD DUP3 DUP3 DUP10 DUP10 DUP14 DUP6 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SHL DUP5 DUP1 PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x31 PUSH1 0xF8 SHL DUP2 MSTORE POP DUP8 DUP8 DUP2 PUSH1 0x3 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH3 0x12C SWAP3 SWAP2 SWAP1 PUSH3 0x170F JUMP JUMPDEST POP DUP1 MLOAD PUSH3 0x142 SWAP1 PUSH1 0x4 SWAP1 PUSH1 0x20 DUP5 ADD SWAP1 PUSH3 0x170F JUMP JUMPDEST POP POP PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x12 OR SWAP1 SSTORE POP DUP2 MLOAD PUSH1 0x20 SWAP3 DUP4 ADD KECCAK256 PUSH1 0x80 MSTORE DUP1 MLOAD SWAP2 ADD KECCAK256 PUSH1 0xA0 MSTORE POP PUSH32 0x8B73C3C69BB8FE3D512ECC4CF759CC79239F7B179B0FFACAA9A75D522B39400F PUSH1 0xC0 MSTORE PUSH1 0xE0 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT PUSH1 0x60 SWAP2 DUP3 SHL DUP2 AND PUSH2 0x100 MSTORE SWAP2 SWAP1 SHL AND PUSH2 0x120 MSTORE POP PUSH3 0x1C0 SWAP1 POP PUSH3 0x76A700 DUP4 GT ISZERO PUSH2 0x194 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x1D4 PUSH3 0x278D00 DUP3 GT ISZERO PUSH2 0x195 PUSH3 0xEBD JUMP JUMPDEST TIMESTAMP SWAP1 SWAP2 ADD PUSH2 0x140 DUP2 SWAP1 MSTORE ADD PUSH2 0x160 MSTORE DUP6 MLOAD PUSH3 0x1F6 SWAP1 PUSH1 0x2 GT ISZERO PUSH1 0xC8 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x210 PUSH3 0x204 PUSH3 0xED2 JUMP JUMPDEST DUP8 MLOAD GT ISZERO PUSH1 0xC9 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x226 DUP7 PUSH3 0xED7 PUSH1 0x20 SHL PUSH3 0x15B0 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x231 DUP5 PUSH3 0xEE3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x9B2760F PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP13 AND SWAP1 PUSH4 0x9B2760F SWAP1 PUSH3 0x262 SWAP1 DUP14 SWAP1 PUSH1 0x4 ADD PUSH3 0x1C9A JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x27D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH3 0x292 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x2B8 SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x3354E3E9 PUSH1 0xE1 SHL DUP2 MSTORE SWAP1 SWAP2 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP13 AND SWAP1 PUSH4 0x66A9C7D2 SWAP1 PUSH3 0x2ED SWAP1 DUP5 SWAP1 DUP12 SWAP1 DUP12 SWAP1 PUSH1 0x4 ADD PUSH3 0x1BFE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x308 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH3 0x31D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP DUP1 PUSH2 0x180 DUP2 DUP2 MSTORE POP POP DUP11 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xD2946C2B PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x364 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x379 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x39F SWAP2 SWAP1 PUSH3 0x1A07 JUMP JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x1A0 MSTORE POP PUSH3 0x3D1 SWAP10 POP POP POP PUSH1 0x1 DUP10 LT ISZERO SWAP7 POP PUSH2 0x12C SWAP6 POP PUSH3 0xEBD SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH3 0x3E4 PUSH2 0x1388 DUP3 GT ISZERO PUSH2 0x12D PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH3 0x3FF DUP3 PUSH2 0x3E8 PUSH3 0xF77 PUSH1 0x20 SHL PUSH3 0x15BA OR PUSH1 0x20 SHR JUMP JUMPDEST SWAP1 POP PUSH3 0x40C DUP2 PUSH3 0xFA6 JUMP JUMPDEST POP POP DUP1 MLOAD MLOAD PUSH3 0x421 PUSH1 0x2 DUP3 GT PUSH1 0xC8 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x440 PUSH1 0x1 DUP3 SUB DUP4 PUSH1 0x20 ADD MLOAD MLOAD PUSH3 0xFE5 PUSH1 0x20 SHL PUSH3 0x15E5 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH2 0x1C0 DUP2 SWAP1 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH1 0x0 SWAP1 PUSH3 0x454 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x200 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x0 ADD MLOAD PUSH1 0x1 DUP2 MLOAD DUP2 LT PUSH3 0x48B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x220 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x0 ADD MLOAD PUSH1 0x2 DUP2 MLOAD DUP2 LT PUSH3 0x4C2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x240 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP PUSH1 0x3 DUP2 GT PUSH3 0x4F8 JUMPI PUSH1 0x0 PUSH3 0x511 JUMP JUMPDEST DUP2 MLOAD DUP1 MLOAD PUSH1 0x3 SWAP1 DUP2 LT PUSH3 0x508 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x260 MSTORE PUSH1 0x4 DUP2 GT PUSH3 0x533 JUMPI PUSH1 0x0 PUSH3 0x54C JUMP JUMPDEST DUP2 MLOAD DUP1 MLOAD PUSH1 0x4 SWAP1 DUP2 LT PUSH3 0x543 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x280 MSTORE PUSH1 0x5 DUP2 GT PUSH3 0x56E JUMPI PUSH1 0x0 PUSH3 0x587 JUMP JUMPDEST DUP2 MLOAD DUP1 MLOAD PUSH1 0x5 SWAP1 DUP2 LT PUSH3 0x57E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x2A0 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH3 0x5C0 SWAP2 SWAP1 PUSH1 0x0 SWAP1 PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH3 0xFF4 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST PUSH2 0x2C0 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH3 0x5DA SWAP2 SWAP1 PUSH1 0x1 SWAP1 DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x2E0 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH3 0x5F4 SWAP2 SWAP1 PUSH1 0x2 SWAP1 DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x300 MSTORE PUSH1 0x3 DUP2 GT PUSH3 0x609 JUMPI PUSH1 0x0 PUSH3 0x61F JUMP JUMPDEST PUSH3 0x61F DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x3 DUP2 MLOAD DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x320 MSTORE PUSH1 0x4 DUP2 GT PUSH3 0x634 JUMPI PUSH1 0x0 PUSH3 0x64A JUMP JUMPDEST PUSH3 0x64A DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x4 DUP2 MLOAD DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x340 MSTORE PUSH1 0x5 DUP2 GT PUSH3 0x65F JUMPI PUSH1 0x0 PUSH3 0x675 JUMP JUMPDEST PUSH3 0x675 DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x5 DUP2 MLOAD DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x360 MSTORE DUP2 MLOAD MLOAD PUSH1 0x0 NOT ADD JUMPDEST PUSH1 0x0 DUP2 GT DUP1 ISZERO PUSH3 0x6B2 JUMPI POP DUP3 MLOAD DUP1 MLOAD ADDRESS SWAP2 SWAP1 DUP4 SWAP1 DUP2 LT PUSH3 0x69F JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND GT JUMPDEST ISZERO PUSH3 0x6C2 JUMPI PUSH1 0x0 NOT ADD PUSH3 0x681 JUMP JUMPDEST PUSH2 0x1E0 DUP2 SWAP1 MSTORE DUP3 MLOAD MLOAD PUSH1 0x60 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP1 ISZERO PUSH3 0x6E4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH3 0x70F JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP6 MLOAD MLOAD DUP2 LT ISZERO PUSH3 0x84B JUMPI DUP4 DUP2 LT ISZERO PUSH3 0x776 JUMPI DUP6 PUSH1 0x20 ADD MLOAD DUP2 DUP2 MLOAD DUP2 LT PUSH3 0x73B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0x750 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE POP POP PUSH3 0x798 JUMP JUMPDEST DUP4 DUP2 EQ PUSH3 0x792 JUMPI DUP6 PUSH1 0x20 ADD MLOAD PUSH1 0x1 DUP3 SUB DUP2 MLOAD DUP2 LT PUSH3 0x73B JUMPI INVALID JUMPDEST PUSH3 0x842 JUMP JUMPDEST PUSH3 0x7E1 PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH3 0x7B4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO DUP3 PUSH1 0x6 ADD DUP5 PUSH3 0x10C3 PUSH1 0x20 SHL PUSH3 0x15F2 OR SWAP1 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST SWAP2 POP DUP6 PUSH1 0x40 ADD MLOAD DUP1 ISZERO PUSH3 0x81C JUMPI POP PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0x808 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO JUMPDEST ISZERO PUSH3 0x842 JUMPI PUSH3 0x83F PUSH1 0x1 DUP3 DUP5 PUSH3 0x10C3 PUSH1 0x20 SHL PUSH3 0x15F2 OR SWAP1 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST SWAP2 POP JUMPDEST PUSH1 0x1 ADD PUSH3 0x716 JUMP JUMPDEST POP PUSH1 0x40 DUP6 ADD MLOAD ISZERO ISZERO PUSH1 0xF8 SHL PUSH2 0x460 MSTORE DUP2 MLOAD DUP3 SWAP1 PUSH1 0x0 SWAP1 PUSH3 0x868 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x380 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x1 DUP2 MLOAD DUP2 LT PUSH3 0x89B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x3A0 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x2 DUP2 MLOAD DUP2 LT PUSH3 0x8CE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x3C0 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP PUSH1 0x3 DUP3 MLOAD GT PUSH3 0x905 JUMPI PUSH1 0x0 PUSH3 0x91C JUMP JUMPDEST DUP2 PUSH1 0x3 DUP2 MLOAD DUP2 LT PUSH3 0x913 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x3E0 MSTORE DUP2 MLOAD PUSH1 0x4 LT PUSH3 0x93F JUMPI PUSH1 0x0 PUSH3 0x956 JUMP JUMPDEST DUP2 PUSH1 0x4 DUP2 MLOAD DUP2 LT PUSH3 0x94D JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x400 MSTORE DUP2 MLOAD PUSH1 0x5 LT PUSH3 0x979 JUMPI PUSH1 0x0 PUSH3 0x990 JUMP JUMPDEST DUP2 PUSH1 0x5 DUP2 MLOAD DUP2 LT PUSH3 0x987 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x420 MSTORE PUSH2 0x440 MSTORE POP POP DUP3 MLOAD MLOAD PUSH1 0x20 DUP1 DUP6 ADD MLOAD MLOAD PUSH1 0x40 DUP7 ADD MLOAD MLOAD PUSH3 0x9D1 SWAP6 POP SWAP3 SWAP4 POP SWAP2 SWAP1 PUSH3 0x10EC DUP2 SHL PUSH3 0x1619 OR SWAP1 SHR JUMP JUMPDEST DUP1 MLOAD PUSH1 0x60 SWAP1 PUSH3 0x9E2 SWAP1 ADDRESS PUSH3 0xD23 JUMP JUMPDEST DUP1 MLOAD SWAP1 SWAP2 POP PUSH1 0x0 NOT ADD JUMPDEST PUSH1 0x0 DUP2 GT DUP1 ISZERO PUSH3 0xA22 JUMPI POP ADDRESS PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xA0F JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND GT JUMPDEST ISZERO PUSH3 0xA32 JUMPI PUSH1 0x0 NOT ADD PUSH3 0x9EC JUMP JUMPDEST PUSH1 0x0 DUP1 JUMPDEST DUP5 MLOAD MLOAD DUP2 LT ISZERO PUSH3 0xB4B JUMPI DUP3 DUP2 EQ ISZERO PUSH3 0xA4F JUMPI PUSH1 0x1 SWAP2 POP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD DUP1 MLOAD DUP3 DUP5 ADD SWAP2 PUSH1 0x0 SWAP2 DUP5 SWAP1 DUP2 LT PUSH3 0xA68 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH3 0xB41 JUMPI PUSH3 0xAC2 DUP2 DUP8 PUSH1 0x20 ADD MLOAD DUP5 DUP2 MLOAD DUP2 LT PUSH3 0xA95 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP9 PUSH1 0x40 ADD MLOAD DUP6 DUP2 MLOAD DUP2 LT PUSH3 0xAAE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH3 0x110C PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST DUP6 PUSH1 0x20 ADD MLOAD DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xAD3 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH32 0xDD6D1C9BADB346DE6925B358A472C937B41698D2632696759E43FD6527FEEEC4 DUP9 PUSH1 0x40 ADD MLOAD DUP6 DUP2 MLOAD DUP2 LT PUSH3 0xB17 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x40 MLOAD PUSH3 0xB2E SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 PUSH3 0xB41 DUP2 PUSH3 0x1207 JUMP JUMPDEST POP PUSH1 0x1 ADD PUSH3 0xA36 JUMP JUMPDEST POP POP POP POP POP PUSH1 0x0 NOT DUP2 EQ PUSH1 0xF8 DUP2 SWAP1 SHL PUSH2 0x4A0 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT PUSH1 0x60 DUP5 SWAP1 SHL AND PUSH2 0x480 MSTORE PUSH3 0xB7E DUP4 PUSH1 0x2 PUSH3 0x1246 JUMP JUMPDEST PUSH3 0xB8B DUP4 PUSH1 0x3 PUSH3 0x1246 JUMP JUMPDEST DUP1 ISZERO PUSH3 0xBA5 JUMPI PUSH3 0xB9F DUP4 PUSH1 0x0 PUSH3 0x1246 JUMP JUMPDEST PUSH3 0xC64 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x178B2B93 PUSH1 0xE2 SHL DUP2 MSTORE PUSH3 0xC39 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP6 AND SWAP1 PUSH4 0x5E2CAE4C SWAP1 PUSH3 0xBD9 SWAP1 PUSH1 0x0 SWAP1 PUSH1 0x4 ADD PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0xBF2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0xC07 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0xC2D SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST DUP4 GT ISZERO PUSH2 0x258 PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH1 0x0 DUP1 MLOAD PUSH1 0x20 PUSH3 0x7DAA DUP4 CODECOPY DUP2 MLOAD SWAP2 MSTORE DUP4 PUSH1 0x40 MLOAD PUSH3 0xC5B SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 JUMPDEST DUP1 PUSH3 0xC71 JUMPI DUP2 PUSH3 0xC74 JUMP JUMPDEST PUSH1 0x0 JUMPDEST PUSH2 0x4C0 MSTORE POP POP POP PUSH2 0x1A0 DUP2 ADD MLOAD DUP1 MLOAD PUSH3 0xC97 SWAP2 PUSH1 0xD SWAP2 PUSH1 0x20 SWAP1 SWAP2 ADD SWAP1 PUSH3 0x170F JUMP JUMPDEST POP POP PUSH3 0x1D21 JUMP JUMPDEST PUSH3 0xCA9 PUSH3 0x1790 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 DUP4 PUSH1 0x80 ADD MLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xA0 ADD MLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xC0 ADD MLOAD DUP2 MSTORE POP SWAP1 POP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0xCE2 PUSH3 0x17B1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 PUSH3 0xD03 DUP5 PUSH1 0x80 ADD MLOAD ADDRESS PUSH3 0xD23 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xA0 ADD MLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xE0 ADD MLOAD ISZERO ISZERO DUP2 MSTORE POP SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x60 DUP3 MLOAD PUSH1 0x1 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP1 ISZERO PUSH3 0xD40 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH3 0xD6B JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP3 MLOAD PUSH1 0x0 EQ ISZERO PUSH3 0xDAE JUMPI DUP2 DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH3 0xD88 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE POP POP PUSH3 0xEB7 JUMP JUMPDEST DUP3 MLOAD JUMPDEST PUSH1 0x0 DUP2 GT DUP1 ISZERO PUSH3 0xDEA JUMPI POP DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 DUP4 SUB DUP2 MLOAD DUP2 LT PUSH3 0xDD7 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND GT JUMPDEST ISZERO PUSH3 0xE37 JUMPI DUP4 PUSH1 0x1 DUP3 SUB DUP2 MLOAD DUP2 LT PUSH3 0xE00 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xE15 JUMPI INVALID JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x20 SWAP3 DUP4 MUL SWAP2 SWAP1 SWAP2 ADD SWAP1 SWAP2 ADD MSTORE PUSH1 0x0 NOT ADD PUSH3 0xDB1 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0xE86 JUMPI DUP5 DUP2 DUP2 MLOAD DUP2 LT PUSH3 0xE50 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xE65 JUMPI INVALID JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x20 SWAP3 DUP4 MUL SWAP2 SWAP1 SWAP2 ADD SWAP1 SWAP2 ADD MSTORE PUSH1 0x1 ADD PUSH3 0xE3A JUMP JUMPDEST POP DUP3 DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xE95 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE POP POP POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP2 PUSH3 0xECE JUMPI PUSH3 0xECE DUP2 PUSH3 0x13F1 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x6 SWAP1 JUMP JUMPDEST DUP1 PUSH3 0xECE DUP2 PUSH3 0x1406 JUMP JUMPDEST PUSH3 0xEFC PUSH3 0xEF1 PUSH3 0x148D JUMP JUMPDEST DUP3 LT ISZERO PUSH1 0xCB PUSH3 0xEBD JUMP JUMPDEST PUSH3 0xF15 PUSH3 0xF0A PUSH3 0x1496 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0xCA PUSH3 0xEBD JUMP JUMPDEST PUSH3 0xF37 DUP2 PUSH1 0xC0 PUSH1 0x3F PUSH1 0x8 SLOAD PUSH3 0x14A2 PUSH1 0x20 SHL PUSH3 0x1636 OR SWAP1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xA9BA3FFE0B6C366B81232CAAB38605A0699AD5398D6CCE76F91EE809E322DAFC SWAP1 PUSH3 0xF6C SWAP1 DUP4 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH3 0xF9F DUP5 ISZERO DUP1 PUSH3 0xF97 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH3 0xF94 JUMPI INVALID JUMPDEST DIV EQ JUMPDEST PUSH1 0x3 PUSH3 0xEBD JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH3 0xFB4 DUP2 DUP1 TIMESTAMP DUP1 PUSH3 0x14C7 JUMP JUMPDEST PUSH32 0xA0D01593E47E69D07E0CCD87BECE09411E07DD1ED40CA8F2E7AF2976542A0233 DUP2 PUSH1 0x40 MLOAD PUSH3 0xF6C SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH3 0xECE DUP3 DUP3 EQ PUSH1 0x67 PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ADDRESS EQ ISZERO PUSH3 0x1018 JUMPI POP PUSH8 0xDE0B6B3A7640000 PUSH3 0xCD3 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x313CE567 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x1054 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x1069 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x108F SWAP2 SWAP1 PUSH3 0x1BDB JUMP JUMPDEST PUSH1 0xFF AND SWAP1 POP PUSH1 0x0 PUSH3 0x10AE PUSH1 0x12 DUP4 PUSH3 0x153A PUSH1 0x20 SHL PUSH3 0x165E OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xA EXP PUSH8 0xDE0B6B3A7640000 MUL SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 DUP3 SHL NOT DUP5 AND DUP3 DUP5 PUSH3 0x10DB JUMPI PUSH1 0x0 PUSH3 0x10DE JUMP JUMPDEST PUSH1 0x1 JUMPDEST PUSH1 0xFF AND SWAP1 SHL OR SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH3 0x1107 DUP3 DUP5 EQ DUP1 ISZERO PUSH3 0x10FF JUMPI POP DUP2 DUP4 EQ JUMPDEST PUSH1 0x67 PUSH3 0xEBD JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x679AEFCE PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x1148 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x115D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x1183 SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SLOAD SWAP2 SWAP3 POP PUSH3 0x11B2 SWAP1 DUP3 SWAP1 DUP5 SWAP1 DUP7 SWAP1 PUSH3 0x1674 PUSH3 0x1552 DUP3 SHL OR SWAP1 SHR JUMP JUMPDEST PUSH1 0x0 DUP7 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE MLOAD DUP6 SWAP1 PUSH32 0xB77A83204CA282E08DC3A65B0A1CA32EA4E6875C38EF0BF5BF75E52A67354FAC SWAP1 PUSH3 0x11F8 SWAP1 DUP6 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SLOAD SWAP1 PUSH3 0x1230 SWAP1 DUP3 SWAP1 PUSH3 0x16AC PUSH3 0x15AE DUP3 SHL OR SWAP1 SHR JUMP JUMPDEST PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 SWAP3 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x1A7C3263 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND SWAP1 PUSH4 0x1A7C3263 SWAP1 PUSH3 0x1277 SWAP1 DUP6 SWAP1 PUSH1 0x4 ADD PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x1290 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x12A5 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x12CB SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST SWAP1 POP DUP2 PUSH3 0x130F JUMPI PUSH3 0x12E9 DUP2 PUSH3 0x15D9 PUSH1 0x20 SHL PUSH3 0x16C4 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH3 0x13C3 JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH3 0x1365 JUMPI PUSH3 0x132F DUP2 PUSH3 0x15D9 PUSH1 0x20 SHL PUSH3 0x16C4 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB SWAP3 SWAP1 SWAP3 AND PUSH9 0x10000000000000000 MUL PUSH1 0x1 PUSH1 0x40 SHL PUSH1 0x1 PUSH1 0x80 SHL SUB NOT SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH3 0x13C3 JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH3 0x13B6 JUMPI PUSH3 0x1385 DUP2 PUSH3 0x15D9 PUSH1 0x20 SHL PUSH3 0x16C4 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB SWAP3 SWAP1 SWAP3 AND PUSH1 0x1 PUSH1 0x80 SHL MUL PUSH1 0x1 PUSH1 0x80 SHL PUSH1 0x1 PUSH1 0xC0 SHL SUB NOT SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH3 0x13C3 JUMP JUMPDEST PUSH3 0x13C3 PUSH2 0x1BB PUSH3 0x13F1 JUMP JUMPDEST DUP2 PUSH1 0x0 DUP1 MLOAD PUSH1 0x20 PUSH3 0x7DAA DUP4 CODECOPY DUP2 MLOAD SWAP2 MSTORE DUP3 PUSH1 0x40 MLOAD PUSH3 0x13E4 SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP JUMP JUMPDEST PUSH3 0x1403 DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH3 0x15F7 JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x2 DUP2 MLOAD LT ISZERO PUSH3 0x1417 JUMPI PUSH3 0x1403 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH3 0x1427 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH3 0x1107 JUMPI PUSH1 0x0 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0x1451 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH3 0x1482 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND LT PUSH1 0x65 PUSH3 0xEBD PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH3 0x1438 JUMP JUMPDEST PUSH5 0xE8D4A51000 SWAP1 JUMP JUMPDEST PUSH8 0x16345785D8A0000 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0x14B1 DUP5 DUP5 DUP5 PUSH3 0x1658 JUMP JUMPDEST POP PUSH1 0x1 SWAP1 SHL PUSH1 0x0 NOT ADD DUP2 SHL NOT SWAP3 SWAP1 SWAP3 AND SWAP2 SHL OR SWAP1 JUMP JUMPDEST PUSH3 0x14E1 DUP2 PUSH1 0xC0 PUSH1 0x40 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x14FB DUP4 PUSH1 0x80 PUSH1 0x40 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x1514 DUP6 PUSH1 0x40 DUP1 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x152E DUP8 PUSH1 0x0 PUSH1 0x40 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST OR OR OR PUSH1 0x9 SSTORE POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x154C DUP4 DUP4 GT ISZERO PUSH1 0x1 PUSH3 0xEBD JUMP JUMPDEST POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0x1567 PUSH1 0x60 DUP5 SWAP1 SHR ISZERO PUSH2 0x149 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x15A6 TIMESTAMP DUP4 ADD PUSH1 0xE0 PUSH1 0x20 PUSH3 0x1590 DUP7 PUSH1 0xC0 DUP4 DUP4 DUP13 DUP13 PUSH1 0x0 PUSH1 0x60 PUSH3 0x1636 PUSH3 0x14A2 DUP8 SHL OR DUP7 SHR JUMP JUMPDEST PUSH3 0x14A2 PUSH1 0x20 SHL PUSH3 0x1636 OR SWAP1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0xEB7 PUSH3 0x15BF DUP4 PUSH3 0x16C8 JUMP JUMPDEST PUSH1 0x60 DUP1 DUP6 PUSH3 0x14A2 PUSH1 0x20 SHL PUSH3 0x1636 OR SWAP1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0x0 PUSH3 0x15F3 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP4 GT ISZERO PUSH2 0x1BA PUSH3 0xEBD JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST PUSH3 0x1669 PUSH2 0x100 DUP4 LT PUSH1 0x64 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x16A2 PUSH1 0x1 DUP3 LT ISZERO DUP1 ISZERO PUSH3 0x169A JUMPI POP PUSH3 0x1696 PUSH1 0xFF DUP5 PUSH2 0x100 SUB PUSH3 0x16E8 PUSH1 0x20 SHL PUSH3 0x16F4 OR PUSH1 0x20 SHR JUMP JUMPDEST DUP3 GT ISZERO JUMPDEST PUSH1 0x64 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x1107 DUP4 DUP3 SHR ISZERO PUSH2 0x1B4 PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH3 0x16C2 DUP5 DUP5 DUP5 PUSH3 0x1658 JUMP JUMPDEST POP POP SHL SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0xEB7 PUSH1 0x0 PUSH1 0x60 DUP5 PUSH3 0x1700 PUSH1 0x20 SHL PUSH3 0x170A OR SWAP1 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT PUSH3 0x16F9 JUMPI DUP2 PUSH3 0xF9F JUMP JUMPDEST POP SWAP1 SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x1 SWAP1 SHL PUSH1 0x0 NOT ADD SWAP2 SWAP1 SHR AND SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH3 0x1752 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x1782 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x1782 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x1782 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x1765 JUMP JUMPDEST POP PUSH3 0x15F3 SWAP3 SWAP2 POP PUSH3 0x17D4 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE POP SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 ISZERO ISZERO DUP2 MSTORE POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x15F3 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x17D5 JUMP JUMPDEST DUP1 MLOAD PUSH3 0xEB7 DUP2 PUSH3 0x1D0B JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x1809 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x1820 PUSH3 0x181A DUP3 PUSH3 0x1CDF JUMP JUMPDEST PUSH3 0x1CB8 JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH3 0x1842 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH3 0x186E JUMPI DUP2 MLOAD PUSH3 0x185B DUP2 PUSH3 0x1D0B JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH3 0x1845 JUMP JUMPDEST POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x188A JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x189B PUSH3 0x181A DUP3 PUSH3 0x1CDF JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH3 0x18BD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH3 0x186E JUMPI DUP2 MLOAD PUSH3 0x18D6 DUP2 PUSH3 0x1D0B JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH3 0x18C0 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x18FA JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x190B PUSH3 0x181A DUP3 PUSH3 0x1CDF JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH3 0x192D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH3 0x186E JUMPI DUP2 MLOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH3 0x1930 JUMP JUMPDEST DUP1 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH3 0xEB7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x1970 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH3 0x1986 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x20 PUSH3 0x199C PUSH1 0x1F DUP4 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH3 0x1CB8 JUMP JUMPDEST SWAP3 POP DUP2 DUP4 MSTORE DUP5 DUP2 DUP4 DUP7 ADD ADD GT ISZERO PUSH3 0x19B3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH3 0x19D3 JUMPI DUP5 DUP2 ADD DUP3 ADD MLOAD DUP5 DUP3 ADD DUP4 ADD MSTORE DUP2 ADD PUSH3 0x19B6 JUMP JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x19E5 JUMPI PUSH1 0x0 DUP3 DUP5 DUP7 ADD ADD MSTORE JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1A00 JUMPI DUP1 DUP2 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1A19 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0xF9F DUP2 PUSH3 0x1D0B JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1A38 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP1 DUP3 GT ISZERO PUSH3 0x1A4F JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 DUP5 ADD SWAP2 POP PUSH2 0x1C0 DUP1 DUP4 DUP8 SUB SLT ISZERO PUSH3 0x1A66 JUMPI DUP4 DUP5 REVERT JUMPDEST PUSH3 0x1A71 DUP2 PUSH3 0x1CB8 JUMP JUMPDEST SWAP1 POP PUSH3 0x1A7F DUP7 DUP5 PUSH3 0x17EB JUMP JUMPDEST DUP2 MSTORE PUSH3 0x1A90 DUP7 PUSH1 0x20 DUP6 ADD PUSH3 0x17EB JUMP JUMPDEST PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1AA7 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1AB5 DUP8 DUP3 DUP7 ADD PUSH3 0x195F JUMP JUMPDEST PUSH1 0x40 DUP4 ADD MSTORE POP PUSH1 0x60 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1ACD JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1ADB DUP8 DUP3 DUP7 ADD PUSH3 0x195F JUMP JUMPDEST PUSH1 0x60 DUP4 ADD MSTORE POP PUSH1 0x80 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1AF3 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1B01 DUP8 DUP3 DUP7 ADD PUSH3 0x17F8 JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MSTORE POP PUSH1 0xA0 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1B19 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1B27 DUP8 DUP3 DUP7 ADD PUSH3 0x1879 JUMP JUMPDEST PUSH1 0xA0 DUP4 ADD MSTORE POP PUSH1 0xC0 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1B3F JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1B4D DUP8 DUP3 DUP7 ADD PUSH3 0x18E9 JUMP JUMPDEST PUSH1 0xC0 DUP4 ADD MSTORE POP PUSH3 0x1B62 DUP7 PUSH1 0xE0 DUP6 ADD PUSH3 0x194E JUMP JUMPDEST PUSH1 0xE0 DUP3 ADD MSTORE PUSH2 0x100 DUP4 DUP2 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x120 DUP1 DUP5 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x140 DUP1 DUP5 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x160 DUP1 DUP5 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x180 PUSH3 0x1BA4 DUP8 DUP3 DUP7 ADD PUSH3 0x17EB JUMP JUMPDEST SWAP1 DUP3 ADD MSTORE PUSH2 0x1A0 DUP4 DUP2 ADD MLOAD DUP4 DUP2 GT ISZERO PUSH3 0x1BBC JUMPI DUP6 DUP7 REVERT JUMPDEST PUSH3 0x1BCA DUP9 DUP3 DUP8 ADD PUSH3 0x195F JUMP JUMPDEST SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE POP SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1BED JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH3 0xF9F JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP3 ADD DUP6 DUP4 MSTORE PUSH1 0x20 PUSH1 0x60 DUP2 DUP6 ADD MSTORE DUP2 DUP7 MLOAD DUP1 DUP5 MSTORE PUSH1 0x80 DUP7 ADD SWAP2 POP DUP3 DUP9 ADD SWAP4 POP DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0x1C4A JUMPI PUSH3 0x1C37 DUP6 MLOAD PUSH3 0x1CFF JUMP JUMPDEST DUP4 MSTORE SWAP4 DUP4 ADD SWAP4 SWAP2 DUP4 ADD SWAP2 PUSH1 0x1 ADD PUSH3 0x1C22 JUMP JUMPDEST POP POP DUP5 DUP2 SUB PUSH1 0x40 DUP7 ADD MSTORE DUP6 MLOAD DUP1 DUP3 MSTORE SWAP1 DUP3 ADD SWAP3 POP DUP2 DUP7 ADD SWAP1 DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0x1C8C JUMPI PUSH3 0x1C79 DUP4 MLOAD PUSH3 0x1CFF JUMP JUMPDEST DUP6 MSTORE SWAP4 DUP4 ADD SWAP4 SWAP2 DUP4 ADD SWAP2 PUSH1 0x1 ADD PUSH3 0x1C64 JUMP JUMPDEST POP SWAP3 SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH1 0x3 DUP4 LT PUSH3 0x1CA9 JUMPI INVALID JUMPDEST SWAP2 SWAP1 MSTORE SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH3 0x1CD7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH3 0x1CF5 JUMPI DUP1 DUP2 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH3 0x1403 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x80 MLOAD PUSH1 0xA0 MLOAD PUSH1 0xC0 MLOAD PUSH1 0xE0 MLOAD PUSH2 0x100 MLOAD PUSH1 0x60 SHR PUSH2 0x120 MLOAD PUSH1 0x60 SHR PUSH2 0x140 MLOAD PUSH2 0x160 MLOAD PUSH2 0x180 MLOAD PUSH2 0x1A0 MLOAD PUSH1 0x60 SHR PUSH2 0x1C0 MLOAD PUSH2 0x1E0 MLOAD PUSH2 0x200 MLOAD PUSH1 0x60 SHR PUSH2 0x220 MLOAD PUSH1 0x60 SHR PUSH2 0x240 MLOAD PUSH1 0x60 SHR PUSH2 0x260 MLOAD PUSH1 0x60 SHR PUSH2 0x280 MLOAD PUSH1 0x60 SHR PUSH2 0x2A0 MLOAD PUSH1 0x60 SHR PUSH2 0x2C0 MLOAD PUSH2 0x2E0 MLOAD PUSH2 0x300 MLOAD PUSH2 0x320 MLOAD PUSH2 0x340 MLOAD PUSH2 0x360 MLOAD PUSH2 0x380 MLOAD PUSH1 0x60 SHR PUSH2 0x3A0 MLOAD PUSH1 0x60 SHR PUSH2 0x3C0 MLOAD PUSH1 0x60 SHR PUSH2 0x3E0 MLOAD PUSH1 0x60 SHR PUSH2 0x400 MLOAD PUSH1 0x60 SHR PUSH2 0x420 MLOAD PUSH1 0x60 SHR PUSH2 0x440 MLOAD PUSH2 0x460 MLOAD PUSH1 0xF8 SHR PUSH2 0x480 MLOAD PUSH1 0x60 SHR PUSH2 0x4A0 MLOAD PUSH1 0xF8 SHR PUSH2 0x4C0 MLOAD PUSH2 0x5ED8 PUSH3 0x1ED2 PUSH1 0x0 CODECOPY DUP1 PUSH2 0xE40 MSTORE POP DUP1 PUSH2 0x91D MSTORE POP DUP1 PUSH2 0x89D MSTORE DUP1 PUSH2 0x8C8 MSTORE DUP1 PUSH2 0x8F3 MSTORE POP DUP1 PUSH2 0xFEF MSTORE DUP1 PUSH2 0x1277 MSTORE POP DUP1 PUSH2 0x2B23 MSTORE POP DUP1 PUSH2 0x1C87 MSTORE POP DUP1 PUSH2 0x1C57 MSTORE POP DUP1 PUSH2 0x1C27 MSTORE POP DUP1 PUSH2 0x1BF7 MSTORE POP DUP1 PUSH2 0x1BC7 MSTORE POP DUP1 PUSH2 0x1B97 MSTORE POP DUP1 PUSH2 0x2FB6 MSTORE POP DUP1 PUSH2 0x2F86 MSTORE POP DUP1 PUSH2 0x2F56 MSTORE POP DUP1 PUSH2 0x2F26 MSTORE POP DUP1 PUSH2 0x2EF6 MSTORE POP DUP1 PUSH2 0x2EC6 MSTORE POP DUP1 PUSH2 0x1F82 MSTORE POP DUP1 PUSH2 0x1F40 MSTORE POP DUP1 PUSH2 0x1EFE MSTORE POP DUP1 PUSH2 0x1EBC MSTORE POP DUP1 PUSH2 0x1E7A MSTORE POP DUP1 PUSH2 0x1E38 MSTORE POP DUP1 PUSH2 0x1080 MSTORE POP DUP1 PUSH2 0x1739 MSTORE POP DUP1 PUSH2 0x12D3 MSTORE POP DUP1 PUSH2 0xBFF MSTORE POP DUP1 PUSH2 0x1B6B MSTORE POP DUP1 PUSH2 0x1B47 MSTORE POP DUP1 PUSH2 0x1180 MSTORE POP DUP1 PUSH2 0x115C MSTORE POP DUP1 PUSH2 0x10B8 MSTORE POP DUP1 PUSH2 0x2D34 MSTORE POP DUP1 PUSH2 0x2D76 MSTORE POP DUP1 PUSH2 0x2D55 MSTORE POP PUSH2 0x5ED8 PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x383 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x70464016 GT PUSH2 0x1DE JUMPI DUP1 PUSH4 0x95D89B41 GT PUSH2 0x10F JUMPI DUP1 PUSH4 0xD2946C2B GT PUSH2 0xAD JUMPI DUP1 PUSH4 0xDDF4627B GT PUSH2 0x7C JUMPI DUP1 PUSH4 0xDDF4627B EQ PUSH2 0x6F6 JUMPI DUP1 PUSH4 0xEB0F24D6 EQ PUSH2 0x6FE JUMPI DUP1 PUSH4 0xED24911D EQ PUSH2 0x706 JUMPI DUP1 PUSH4 0xF4B7964D EQ PUSH2 0x70E JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0xD2946C2B EQ PUSH2 0x6B5 JUMPI DUP1 PUSH4 0xD505ACCF EQ PUSH2 0x6BD JUMPI DUP1 PUSH4 0xD5C096C4 EQ PUSH2 0x6D0 JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x6E3 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0xAAABADC5 GT PUSH2 0xE9 JUMPI DUP1 PUSH4 0xAAABADC5 EQ PUSH2 0x68A JUMPI DUP1 PUSH4 0xAB7759F1 EQ PUSH2 0x692 JUMPI DUP1 PUSH4 0xB35056B8 EQ PUSH2 0x6A5 JUMPI DUP1 PUSH4 0xB7B814FC EQ PUSH2 0x6AD JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x65C JUMPI DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x664 JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x677 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x8456CB59 GT PUSH2 0x17C JUMPI DUP1 PUSH4 0x87EC6817 GT PUSH2 0x156 JUMPI DUP1 PUSH4 0x87EC6817 EQ PUSH2 0x619 JUMPI DUP1 PUSH4 0x893D20E8 EQ PUSH2 0x62C JUMPI DUP1 PUSH4 0x8D928AF8 EQ PUSH2 0x641 JUMPI DUP1 PUSH4 0x90193B7C EQ PUSH2 0x649 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x8456CB59 EQ PUSH2 0x5F6 JUMPI DUP1 PUSH4 0x851C1BB3 EQ PUSH2 0x5FE JUMPI DUP1 PUSH4 0x876F303B EQ PUSH2 0x611 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x77151BEE GT PUSH2 0x1B8 JUMPI DUP1 PUSH4 0x77151BEE EQ PUSH2 0x5B0 JUMPI DUP1 PUSH4 0x7ECEBE00 EQ PUSH2 0x5B8 JUMPI DUP1 PUSH4 0x7F1260D1 EQ PUSH2 0x5CB JUMPI DUP1 PUSH4 0x82687A56 EQ PUSH2 0x5EE JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x70464016 EQ PUSH2 0x569 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x57C JUMPI DUP1 PUSH4 0x74F3B009 EQ PUSH2 0x58F JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x3644E515 GT PUSH2 0x2B8 JUMPI DUP1 PUSH4 0x54A844BA GT PUSH2 0x256 JUMPI DUP1 PUSH4 0x55C67628 GT PUSH2 0x230 JUMPI DUP1 PUSH4 0x55C67628 EQ PUSH2 0x521 JUMPI DUP1 PUSH4 0x6028BFD4 EQ PUSH2 0x529 JUMPI DUP1 PUSH4 0x679AEFCE EQ PUSH2 0x54A JUMPI DUP1 PUSH4 0x6DACCFFA EQ PUSH2 0x552 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x54A844BA EQ PUSH2 0x4FE JUMPI DUP1 PUSH4 0x54DEA00A EQ PUSH2 0x506 JUMPI DUP1 PUSH4 0x54FD4D50 EQ PUSH2 0x519 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x39509351 GT PUSH2 0x292 JUMPI DUP1 PUSH4 0x39509351 EQ PUSH2 0x4BA JUMPI DUP1 PUSH4 0x3C975D51 EQ PUSH2 0x4CD JUMPI DUP1 PUSH4 0x3F4BA83A EQ PUSH2 0x4E3 JUMPI DUP1 PUSH4 0x50DD6ED9 EQ PUSH2 0x4EB JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x3644E515 EQ PUSH2 0x497 JUMPI DUP1 PUSH4 0x38E9922E EQ PUSH2 0x49F JUMPI DUP1 PUSH4 0x38FFF2D0 EQ PUSH2 0x4B2 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1C0DE051 GT PUSH2 0x325 JUMPI DUP1 PUSH4 0x23B872DD GT PUSH2 0x2FF JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x449 JUMPI DUP1 PUSH4 0x2DF2C7C0 EQ PUSH2 0x45C JUMPI DUP1 PUSH4 0x2F1A0BC9 EQ PUSH2 0x46F JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x482 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1C0DE051 EQ PUSH2 0x408 JUMPI DUP1 PUSH4 0x1DD746EA EQ PUSH2 0x41F JUMPI DUP1 PUSH4 0x238A2D59 EQ PUSH2 0x434 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x95EA7B3 GT PUSH2 0x361 JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x3CE JUMPI DUP1 PUSH4 0xDA0669C EQ PUSH2 0x3EE JUMPI DUP1 PUSH4 0x15B0015B EQ PUSH2 0x3F8 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x400 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1EC954A EQ PUSH2 0x388 JUMPI DUP1 PUSH4 0x4842D4C EQ PUSH2 0x3B1 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x3B9 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x39B PUSH2 0x396 CALLDATASIZE PUSH1 0x4 PUSH2 0x58C7 JUMP JUMPDEST PUSH2 0x721 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x39B PUSH2 0x7C7 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0x7D6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5DBE JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x3DC CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x86C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x883 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x3E1 PUSH2 0x91B JUMP JUMPDEST PUSH2 0x39B PUSH2 0x93F JUMP JUMPDEST PUSH2 0x410 PUSH2 0x945 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5CD0 JUMP JUMPDEST PUSH2 0x427 PUSH2 0x96E JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5C8D JUMP JUMPDEST PUSH2 0x43C PUSH2 0x978 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5BA9 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x457 CALLDATASIZE PUSH1 0x4 PUSH2 0x5454 JUMP JUMPDEST PUSH2 0xA13 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x46A CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xA87 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x47D CALLDATASIZE PUSH1 0x4 PUSH2 0x5A16 JUMP JUMPDEST PUSH2 0xAEB JUMP JUMPDEST PUSH2 0x48A PUSH2 0xBCE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5E29 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xBD7 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x4AD CALLDATASIZE PUSH1 0x4 PUSH2 0x59E6 JUMP JUMPDEST PUSH2 0xBE1 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xBFD JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x4C8 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0xC21 JUMP JUMPDEST PUSH2 0x4D5 PUSH2 0xC5C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5E00 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0xC87 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x4F9 CALLDATASIZE PUSH1 0x4 PUSH2 0x5702 JUMP JUMPDEST PUSH2 0xC99 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0xCB7 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x514 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xCC9 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0xCE4 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x53C PUSH2 0x537 CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0xD58 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5DD1 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xD8F JUMP JUMPDEST PUSH2 0x55A PUSH2 0xDFB JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5DEA JUMP JUMPDEST PUSH2 0x39B PUSH2 0x577 CALLDATASIZE PUSH1 0x4 PUSH2 0x59E6 JUMP JUMPDEST PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x58A CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xECF JUMP JUMPDEST PUSH2 0x5A2 PUSH2 0x59D CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0xEEA JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5CA0 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0xFED JUMP JUMPDEST PUSH2 0x39B PUSH2 0x5C6 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x1011 JUMP JUMPDEST PUSH2 0x5DE PUSH2 0x5D9 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x101C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5E0E JUMP JUMPDEST PUSH2 0x39B PUSH2 0x107E JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x10A2 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x60C CALLDATASIZE PUSH1 0x4 PUSH2 0x56BE JUMP JUMPDEST PUSH2 0x10B4 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x1106 JUMP JUMPDEST PUSH2 0x53C PUSH2 0x627 CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0x1134 JUMP JUMPDEST PUSH2 0x634 PUSH2 0x115A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5B95 JUMP JUMPDEST PUSH2 0x634 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x39B PUSH2 0x657 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x11A2 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0x11BD JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x672 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x121E JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x685 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x125C JUMP JUMPDEST PUSH2 0x634 PUSH2 0x1269 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x6A0 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x1273 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x12BF JUMP JUMPDEST PUSH2 0x634 PUSH2 0x12D1 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x6CB CALLDATASIZE PUSH1 0x4 PUSH2 0x5494 JUMP JUMPDEST PUSH2 0x12F5 JUMP JUMPDEST PUSH2 0x5A2 PUSH2 0x6DE CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0x1380 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x6F1 CALLDATASIZE PUSH1 0x4 PUSH2 0x541C JUMP JUMPDEST PUSH2 0x14A3 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x14E0 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x14E6 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x1512 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x71C CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x151C JUMP JUMPDEST PUSH1 0x0 DUP5 PUSH1 0x80 ADD MLOAD PUSH2 0x74E PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH1 0xCD PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x763 PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST DUP3 EQ PUSH2 0x1F4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x76B PUSH2 0x1727 JUMP JUMPDEST PUSH2 0x77D DUP5 DUP5 PUSH2 0x778 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0x175B JUMP JUMPDEST PUSH1 0x60 PUSH2 0x787 PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP8 MLOAD PUSH1 0x1 DUP2 GT ISZERO PUSH2 0x798 JUMPI INVALID JUMPDEST EQ PUSH2 0x7AF JUMPI PUSH2 0x7AA DUP8 DUP8 DUP8 DUP8 DUP6 PUSH2 0x180C JUMP JUMPDEST PUSH2 0x7BC JUMP JUMPDEST PUSH2 0x7BC DUP8 DUP8 DUP8 DUP8 DUP6 PUSH2 0x1865 JUMP JUMPDEST SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x18A0 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x845 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x879 CALLER DUP5 DUP5 PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x88B PUSH2 0x190F JUMP JUMPDEST PUSH2 0x893 PUSH2 0x91B JUMP JUMPDEST ISZERO PUSH2 0x8C3 JUMPI PUSH2 0x8C3 PUSH32 0x0 PUSH1 0x0 PUSH2 0x1984 JUMP JUMPDEST PUSH2 0x8EE PUSH32 0x0 PUSH1 0x2 PUSH2 0x1984 JUMP JUMPDEST PUSH2 0x919 PUSH32 0x0 PUSH1 0x3 PUSH2 0x1984 JUMP JUMPDEST JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x952 PUSH2 0x1B28 JUMP JUMPDEST ISZERO SWAP3 POP PUSH2 0x95D PUSH2 0x1B45 JUMP JUMPDEST SWAP2 POP PUSH2 0x967 PUSH2 0x1B69 JUMP JUMPDEST SWAP1 POP SWAP1 SWAP2 SWAP3 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x7D1 PUSH2 0x1773 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x984 PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x99F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x9C9 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0xA0C JUMPI PUSH2 0x9E0 DUP2 PUSH2 0x1B8D JUMP JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x9EC JUMPI INVALID JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x20 SWAP3 DUP4 MUL SWAP2 SWAP1 SWAP2 ADD SWAP1 SWAP2 ADD MSTORE PUSH1 0x1 ADD PUSH2 0x9CF JUMP JUMPDEST POP SWAP2 POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xA20 DUP6 CALLER PUSH2 0x14A3 JUMP JUMPDEST SWAP1 POP PUSH2 0xA44 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND EQ DUP1 PUSH2 0xA3C JUMPI POP DUP4 DUP3 LT ISZERO JUMPDEST PUSH2 0x19E PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xA4F DUP6 DUP6 DUP6 PUSH2 0x1CB6 JUMP JUMPDEST CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND EQ DUP1 ISZERO SWAP1 PUSH2 0xA6A JUMPI POP PUSH1 0x0 NOT DUP2 EQ ISZERO JUMPDEST ISZERO PUSH2 0xA7C JUMPI PUSH2 0xA7C DUP6 CALLER DUP6 DUP5 SUB PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0xA8F PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xA9A DUP3 PUSH2 0x1E34 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0xAA7 DUP3 PUSH2 0x1B8D JUMP JUMPDEST SWAP1 POP PUSH2 0xAC0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD PUSH2 0xAD8 SWAP1 PUSH2 0x1FC2 JUMP JUMPDEST SWAP1 POP PUSH2 0xAE5 DUP4 DUP4 DUP4 PUSH2 0x1FD1 JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0xAF3 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xB03 PUSH1 0x1 DUP4 LT ISZERO PUSH2 0x12C PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xB14 PUSH2 0x1388 DUP4 GT ISZERO PUSH2 0x12D PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB20 DUP3 TIMESTAMP PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0xB34 PUSH3 0x15180 DUP3 LT ISZERO PUSH2 0x13D PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xB3F PUSH2 0x20E2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0xB50 DUP2 ISZERO PUSH2 0x13E PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB5E DUP7 PUSH2 0x3E8 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP4 DUP3 GT PUSH2 0xB8D JUMPI PUSH2 0xB88 PUSH2 0xB79 PUSH3 0x15180 DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP5 DUP9 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2156 JUMP JUMPDEST PUSH2 0xBA7 JUMP JUMPDEST PUSH2 0xBA7 PUSH2 0xB9D PUSH3 0x15180 DUP5 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP7 DUP9 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH2 0xBB9 PUSH1 0x2 DUP3 GT ISZERO PUSH2 0x13F PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xBC5 DUP5 DUP4 TIMESTAMP DUP10 PUSH2 0x2189 JUMP JUMPDEST POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x1512 JUMP JUMPDEST PUSH2 0xBE9 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xBF1 PUSH2 0x21D8 JUMP JUMPDEST PUSH2 0xBFA DUP2 PUSH2 0x21EB JUMP JUMPDEST POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x879 SWAP2 DUP6 SWAP1 PUSH2 0xC57 SWAP1 DUP7 PUSH2 0x2264 JUMP JUMPDEST PUSH2 0x18A7 JUMP JUMPDEST PUSH1 0xC SLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 PUSH2 0xC71 DUP2 PUSH1 0xE9 PUSH1 0x17 PUSH2 0x170A JUMP JUMPDEST SWAP3 POP PUSH2 0xC80 DUP2 PUSH1 0x0 PUSH1 0xE9 PUSH2 0x170A JUMP JUMPDEST SWAP2 POP POP SWAP1 SWAP2 JUMP JUMPDEST PUSH2 0xC8F PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x0 PUSH2 0x2276 JUMP JUMPDEST PUSH2 0xCA1 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xCA9 PUSH2 0x21D8 JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x22E9 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0xCBF PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x1 PUSH2 0x23DE JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0xCD7 DUP4 PUSH2 0x1E34 JUMP JUMPDEST PUSH2 0x2435 JUMP JUMPDEST SWAP1 POP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0xD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH1 0x0 SWAP1 PUSH2 0x7D1 SWAP1 PUSH1 0xC0 PUSH1 0x3F PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0xD6E DUP7 MLOAD PUSH2 0xD69 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0xD83 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 PUSH2 0x2488 PUSH2 0x24AA PUSH2 0x2513 JUMP JUMPDEST SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0xDA1 PUSH2 0x263D JUMP JUMPDEST SWAP4 SWAP9 POP SWAP2 SWAP7 POP SWAP5 POP SWAP3 POP SWAP1 POP PUSH1 0x0 PUSH2 0xDB9 DUP6 DUP6 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0xDC5 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP5 DUP3 EQ PUSH2 0xDE0 JUMPI PUSH2 0xDDB DUP3 DUP10 PUSH2 0x272D JUMP JUMPDEST PUSH2 0xDE2 JUMP JUMPDEST DUP4 JUMPDEST SWAP1 POP PUSH2 0xDEE DUP2 DUP5 PUSH2 0x288F JUMP JUMPDEST SWAP9 POP POP POP POP POP POP POP POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0xE08 PUSH2 0x20E2 JUMP JUMPDEST SWAP1 SWAP5 SWAP1 SWAP4 POP PUSH2 0x3E8 SWAP3 POP SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xE20 PUSH2 0x12AE JUMP JUMPDEST ISZERO PUSH2 0xE2D JUMPI POP PUSH1 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH2 0xE79 JUMPI PUSH2 0xE3A PUSH2 0x91B JUMP JUMPDEST PUSH2 0xE64 JUMPI PUSH32 0x0 PUSH2 0xE72 JUMP JUMPDEST PUSH1 0xB SLOAD PUSH8 0xFFFFFFFFFFFFFFFF AND JUMPDEST SWAP1 POP PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH2 0xEA1 JUMPI POP PUSH1 0xB SLOAD PUSH9 0x10000000000000000 SWAP1 DIV PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH2 0xEC4 JUMPI POP PUSH1 0xB SLOAD PUSH1 0x1 PUSH1 0x80 SHL SWAP1 DIV PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH2 0xCDF JUMP JUMPDEST PUSH2 0xCDF PUSH2 0x1BB PUSH2 0x28E0 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x60 DUP1 DUP9 PUSH2 0xEF9 PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH2 0xF04 PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0xF11 DUP7 PUSH2 0x28F0 JUMP JUMPDEST ISZERO PUSH2 0xF39 JUMPI PUSH2 0xF1E PUSH2 0x291F JUMP JUMPDEST PUSH2 0xF30 DUP10 PUSH2 0xF2A PUSH2 0x93F JUMP JUMPDEST DUP9 PUSH2 0x2932 JUMP JUMPDEST SWAP3 POP SWAP1 POP PUSH2 0xF8B JUMP JUMPDEST PUSH2 0xF41 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0xF4B PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0xF57 DUP11 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0xF7B DUP14 DUP14 DUP14 DUP14 DUP14 PUSH2 0xF67 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0xF71 JUMPI DUP14 PUSH2 0xF74 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP8 DUP15 PUSH2 0x2488 JUMP JUMPDEST SWAP4 POP SWAP2 POP PUSH2 0xF89 DUP4 DUP3 PUSH2 0x24AA JUMP JUMPDEST POP JUMPDEST PUSH2 0xF95 DUP12 DUP3 PUSH2 0x29E0 JUMP JUMPDEST DUP2 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0xFAE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0xFD8 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP5 POP SWAP5 POP POP POP JUMPDEST POP SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x11A2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xA PUSH1 0x0 PUSH2 0x1031 DUP9 PUSH2 0x1E34 JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 ADD PUSH1 0x0 KECCAK256 SLOAD SWAP1 POP PUSH2 0x1052 DUP2 ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x105B DUP2 PUSH2 0x29EA JUMP JUMPDEST SWAP5 POP PUSH2 0x1066 DUP2 PUSH2 0x29F8 JUMP JUMPDEST SWAP4 POP PUSH2 0x1071 DUP2 PUSH2 0x2A06 JUMP JUMPDEST SWAP6 SWAP8 SWAP5 SWAP7 POP SWAP5 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH2 0x10AA PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x1 PUSH2 0x2276 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x10E9 SWAP3 SWAP2 SWAP1 PUSH2 0x5B52 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x1113 PUSH2 0x263D JUMP JUMPDEST POP POP SWAP3 POP SWAP3 POP POP PUSH2 0x112D DUP2 DUP4 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP3 POP POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x1145 DUP7 MLOAD PUSH2 0xD69 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0xD83 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 PUSH2 0x2A28 PUSH2 0x2A39 PUSH2 0x2513 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x4 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x122B CALLER DUP6 PUSH2 0x14A3 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 LT PUSH2 0x1245 JUMPI PUSH2 0x1240 CALLER DUP6 PUSH1 0x0 PUSH2 0x18A7 JUMP JUMPDEST PUSH2 0x1252 JUMP JUMPDEST PUSH2 0x1252 CALLER DUP6 DUP6 DUP5 SUB PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x879 CALLER DUP5 DUP5 PUSH2 0x1CB6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x2AA2 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP1 ISZERO PUSH2 0xCDC JUMPI POP PUSH2 0xCDC PUSH2 0x12A9 DUP4 PUSH2 0x1E34 JUMP JUMPDEST PUSH2 0x2B1C JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH1 0x0 SWAP1 PUSH2 0x7D1 SWAP1 PUSH1 0xFF PUSH2 0x2B47 JUMP JUMPDEST PUSH2 0x12C7 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x0 PUSH2 0x23DE JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x6E71EDAE12B1B97F4D1F60370FEF10105FA2FAAE0126114A169C64845D6126C9 DUP9 DUP9 DUP9 PUSH2 0x1324 DUP13 PUSH2 0x11A2 JUMP JUMPDEST DUP10 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x133A SWAP7 SWAP6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5D10 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP PUSH2 0x136B DUP9 DUP3 PUSH2 0x1362 DUP8 DUP8 DUP8 PUSH2 0x2B51 JUMP JUMPDEST DUP9 PUSH2 0x1F8 PUSH2 0x2B90 JUMP JUMPDEST PUSH2 0x1376 DUP9 DUP9 DUP9 PUSH2 0x18A7 JUMP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP1 DUP9 PUSH2 0x138F PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x139A PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST PUSH2 0x13A2 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x13AC PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0x13B6 PUSH2 0x93F JUMP JUMPDEST PUSH2 0x1463 JUMPI PUSH1 0x0 PUSH1 0x60 PUSH2 0x13CB DUP14 DUP14 DUP14 DUP7 DUP12 PUSH2 0x2BE7 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x13E4 PUSH2 0x13DA PUSH2 0x18A0 JUMP JUMPDEST DUP4 LT ISZERO PUSH1 0xCC PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x13F6 PUSH1 0x0 PUSH2 0x13F1 PUSH2 0x18A0 JUMP JUMPDEST PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x1409 DUP12 PUSH2 0x1402 PUSH2 0x18A0 JUMP JUMPDEST DUP5 SUB PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x1413 DUP2 DUP5 PUSH2 0x2A39 JUMP JUMPDEST DUP1 DUP11 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x142C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1456 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP6 POP SWAP6 POP POP POP POP PUSH2 0xFE0 JUMP JUMPDEST PUSH2 0x146D DUP9 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x1495 DUP14 DUP14 DUP14 DUP14 DUP14 PUSH2 0x1481 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x148B JUMPI DUP14 PUSH2 0x148E JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP10 DUP15 PUSH2 0x2A28 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x1409 DUP12 DUP4 PUSH2 0x2CC0 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x14AD PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x14CF JUMPI POP PUSH1 0x0 NOT PUSH2 0x87D JUMP JUMPDEST PUSH2 0x14D9 DUP4 DUP4 PUSH2 0x2CCA JUMP JUMPDEST SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 NOT DUP2 JUMP JUMPDEST PUSH2 0x14EE PUSH2 0x20B4 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x14F9 PUSH2 0x20E2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x1509 DUP2 PUSH2 0x140 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xCB3 DUP3 PUSH2 0x2CF5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x2D30 JUMP JUMPDEST PUSH2 0x1524 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x152C PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1537 DUP4 PUSH2 0x1E34 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x1544 DUP3 PUSH2 0x1B8D JUMP JUMPDEST SWAP1 POP PUSH2 0x155D PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1568 DUP3 DUP3 DUP6 PUSH2 0x1FD1 JUMP JUMPDEST DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH32 0xDD6D1C9BADB346DE6925B358A472C937B41698D2632696759E43FD6527FEEEC4 DUP6 PUSH1 0x40 MLOAD PUSH2 0x15A2 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP POP JUMP JUMPDEST DUP1 PUSH2 0xCB3 DUP2 PUSH2 0x2DCD JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x15DE DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST DIV EQ JUMPDEST PUSH1 0x3 PUSH2 0x1719 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0xCB3 DUP2 DUP4 EQ PUSH1 0x67 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 DUP3 SHL NOT DUP5 AND DUP3 DUP5 PUSH2 0x1608 JUMPI PUSH1 0x0 PUSH2 0x160B JUMP JUMPDEST PUSH1 0x1 JUMPDEST PUSH1 0xFF AND SWAP1 SHL OR SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0x1631 DUP3 DUP5 EQ DUP1 ISZERO PUSH2 0x162A JUMPI POP DUP2 DUP4 EQ JUMPDEST PUSH1 0x67 PUSH2 0x1719 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1643 DUP5 DUP5 DUP5 PUSH2 0x2E46 JUMP JUMPDEST POP DUP3 DUP3 SHL PUSH1 0x0 NOT PUSH1 0x1 DUP4 SHL ADD DUP4 SHL NOT DUP6 AND OR JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x166E DUP4 DUP4 GT ISZERO PUSH1 0x1 PUSH2 0x1719 JUMP JUMPDEST POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1687 PUSH1 0x60 DUP5 SWAP1 SHR ISZERO PUSH2 0x149 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1656 TIMESTAMP DUP4 ADD PUSH1 0xE0 PUSH1 0x20 PUSH2 0x16A4 DUP7 PUSH1 0xC0 DUP4 DUP4 DUP13 DUP13 PUSH1 0x0 PUSH1 0x60 PUSH2 0x1636 JUMP JUMPDEST SWAP3 SWAP2 SWAP1 PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0x16BA DUP4 PUSH2 0x29EA JUMP JUMPDEST DUP4 SWAP1 PUSH1 0x60 DUP1 PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x16DD PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT ISZERO PUSH2 0x1BA PUSH2 0x1719 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x16EE DUP5 DUP5 DUP5 PUSH2 0x2E46 JUMP JUMPDEST POP POP SHL SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT PUSH2 0x1703 JUMPI DUP2 PUSH2 0x15DE JUMP JUMPDEST POP SWAP1 SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x1 SWAP1 SHL PUSH1 0x0 NOT ADD SWAP2 SWAP1 SHR AND SWAP1 JUMP JUMPDEST DUP2 PUSH2 0xCB3 JUMPI PUSH2 0xCB3 DUP2 PUSH2 0x28E0 JUMP JUMPDEST PUSH2 0x172F PUSH2 0x2E8C JUMP JUMPDEST PUSH2 0x919 PUSH2 0x2E94 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH2 0x1631 DUP2 DUP5 LT DUP1 ISZERO PUSH2 0x176C JUMPI POP DUP2 DUP4 LT JUMPDEST PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x177F PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x179A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x17C4 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0xA0C JUMPI PUSH2 0x17ED PUSH2 0x17DE DUP3 PUSH2 0x2435 JUMP JUMPDEST PUSH2 0x17E7 DUP4 PUSH2 0x2EBC JUMP JUMPDEST SWAP1 PUSH2 0x2FDA JUMP JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x17F9 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x17CA JUMP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ DUP1 PUSH2 0x1836 JUMPI POP PUSH1 0x40 DUP7 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ JUMPDEST PUSH2 0x184C JUMPI PUSH2 0x1847 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3006 JUMP JUMPDEST PUSH2 0x1859 JUMP JUMPDEST PUSH2 0x1859 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3070 JUMP JUMPDEST SWAP1 POP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ DUP1 PUSH2 0x188F JUMPI POP PUSH1 0x40 DUP7 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ JUMPDEST PUSH2 0x184C JUMPI PUSH2 0x1847 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3174 JUMP JUMPDEST PUSH3 0xF4240 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 SWAP1 SWAP2 MSTORE SWAP1 DUP2 SWAP1 KECCAK256 DUP5 SWAP1 SSTORE MLOAD PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP1 PUSH2 0x1902 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH2 0x1917 PUSH2 0x1D96 JUMP JUMPDEST PUSH2 0x191F PUSH2 0x21D8 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x192E PUSH2 0x263D JUMP JUMPDEST SWAP5 POP SWAP5 POP SWAP5 POP POP SWAP4 POP PUSH1 0x0 DUP4 GT ISZERO PUSH2 0x1949 JUMPI PUSH2 0x1949 DUP4 PUSH2 0x31CB JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1953 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP4 DUP3 EQ PUSH2 0x196E JUMPI PUSH2 0x1969 DUP3 DUP8 PUSH2 0x272D JUMP JUMPDEST PUSH2 0x1970 JUMP JUMPDEST DUP3 JUMPDEST SWAP1 POP PUSH2 0x197C DUP3 DUP3 PUSH2 0x31DC JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x1A7C3263 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND SWAP1 PUSH4 0x1A7C3263 SWAP1 PUSH2 0x19B3 SWAP1 DUP6 SWAP1 PUSH1 0x4 ADD PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x19CB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x19DF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x1A03 SWAP2 SWAP1 PUSH2 0x59FE JUMP JUMPDEST SWAP1 POP DUP2 PUSH2 0x1A3A JUMPI PUSH2 0x1A13 DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF NOT AND PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH2 0x1A88 JUMPI PUSH2 0x1A4C DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH9 0x10000000000000000 MUL PUSH16 0xFFFFFFFFFFFFFFFF0000000000000000 NOT SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH2 0x1AE0 JUMPI PUSH2 0x1A9A DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH1 0x1 PUSH1 0x80 SHL MUL PUSH32 0xFFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH2 0x1AEB PUSH2 0x1BB PUSH2 0x28E0 JUMP JUMPDEST DUP2 PUSH32 0x6BFB689528FA96EC1AD670AD6D6064BE1AE96BFD5D2EE35C837FD0FE0C11959A DUP3 PUSH1 0x40 MLOAD PUSH2 0x1B1B SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1B32 PUSH2 0x1B69 JUMP JUMPDEST TIMESTAMP GT DUP1 PUSH2 0x7D1 JUMPI POP POP PUSH1 0x7 SLOAD PUSH1 0xFF AND ISZERO SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH2 0x1BBB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x1 EQ ISZERO PUSH2 0x1BEB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x2 EQ ISZERO PUSH2 0x1C1B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x3 EQ ISZERO PUSH2 0x1C4B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x4 EQ ISZERO PUSH2 0x1C7B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x5 EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH2 0xCDF PUSH2 0x135 PUSH2 0x28E0 JUMP JUMPDEST PUSH2 0x1CCD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND ISZERO ISZERO PUSH2 0x198 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1CE4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x199 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1CEF DUP4 DUP4 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x1D15 SWAP1 DUP3 PUSH2 0x1A0 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP1 DUP5 AND DUP2 MSTORE KECCAK256 SLOAD PUSH2 0x1D44 SWAP1 DUP3 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP2 MLOAD SWAP1 DUP6 AND SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 PUSH2 0x1902 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x0 DUP1 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 PUSH2 0x1DC9 JUMP JUMPDEST PUSH2 0x1DB6 PUSH2 0x526C JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x1DAE JUMPI SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x1DD4 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xE8E3E84 DUP3 PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1DFF SWAP2 SWAP1 PUSH2 0x5BF6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x1E19 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1E2D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1E78 JUMPI POP PUSH1 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1EBA JUMPI POP PUSH1 0x1 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1EFC JUMPI POP PUSH1 0x2 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1F3E JUMPI POP PUSH1 0x3 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1F80 JUMPI POP PUSH1 0x4 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH1 0x5 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH1 0xC0 PUSH1 0x20 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x679AEFCE PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x200C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2020 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x2044 SWAP2 SWAP1 PUSH2 0x59FE JUMP JUMPDEST PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 SWAP2 POP PUSH2 0x2061 DUP2 DUP4 DUP6 PUSH2 0x1674 JUMP JUMPDEST PUSH1 0x0 DUP7 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE MLOAD DUP6 SWAP1 PUSH32 0xB77A83204CA282E08DC3A65B0A1CA32EA4E6875C38EF0BF5BF75E52A67354FAC SWAP1 PUSH2 0x20A5 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x20CB PUSH1 0x0 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH2 0x10B4 JUMP JUMPDEST SWAP1 POP PUSH2 0xBFA PUSH2 0x20DA DUP3 CALLER PUSH2 0x3218 JUMP JUMPDEST PUSH2 0x191 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x20F3 PUSH2 0x3301 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP DUP1 TIMESTAMP LT ISZERO PUSH2 0x2146 JUMPI PUSH1 0x1 SWAP5 POP DUP4 DUP4 GT ISZERO PUSH2 0x212A JUMPI DUP2 DUP2 SUB DUP3 TIMESTAMP SUB DUP6 DUP6 SUB MUL DUP2 PUSH2 0x2120 JUMPI INVALID JUMPDEST DIV DUP5 ADD SWAP6 POP PUSH2 0x2141 JUMP JUMPDEST DUP2 DUP2 SUB DUP3 TIMESTAMP SUB DUP5 DUP7 SUB MUL DUP2 PUSH2 0x213B JUMPI INVALID JUMPDEST DIV DUP5 SUB SWAP6 POP JUMPDEST PUSH2 0x214E JUMP JUMPDEST PUSH1 0x0 SWAP5 POP DUP3 SWAP6 POP JUMPDEST POP POP POP POP SWAP1 SWAP2 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2165 DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x2172 JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST DUP2 PUSH1 0x1 DUP5 SUB DUP2 PUSH2 0x217E JUMPI INVALID JUMPDEST DIV PUSH1 0x1 ADD SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x2195 DUP5 DUP5 DUP5 DUP5 PUSH2 0x3360 JUMP JUMPDEST PUSH32 0x1835882EE7A34AC194F717A35E09BB1D24C82A3B9D854AB6C9749525B714CDF2 DUP5 DUP5 DUP5 DUP5 PUSH1 0x40 MLOAD PUSH2 0x21CA SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5E0E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP POP POP POP JUMP JUMPDEST PUSH2 0x919 PUSH2 0x21E3 PUSH2 0x1B28 JUMP JUMPDEST PUSH2 0x192 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2200 PUSH2 0x21F6 PUSH2 0x339F JUMP JUMPDEST DUP3 LT ISZERO PUSH1 0xCB PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2215 PUSH2 0x220B PUSH2 0x33A8 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0xCA PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH2 0x2226 SWAP1 DUP3 PUSH1 0xC0 PUSH1 0x3F PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xA9BA3FFE0B6C366B81232CAAB38605A0699AD5398D6CCE76F91EE809E322DAFC SWAP1 PUSH2 0x2259 SWAP1 DUP4 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 ADD PUSH2 0x15DE DUP5 DUP3 LT ISZERO DUP4 PUSH2 0x1719 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x2296 JUMPI PUSH2 0x2291 PUSH2 0x2287 PUSH2 0x1B45 JUMP JUMPDEST TIMESTAMP LT PUSH2 0x193 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x22AB JUMP JUMPDEST PUSH2 0x22AB PUSH2 0x22A1 PUSH2 0x1B69 JUMP JUMPDEST TIMESTAMP LT PUSH2 0x1A9 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x7 DUP1 SLOAD PUSH1 0xFF NOT AND DUP3 ISZERO ISZERO OR SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH32 0x9E3A5E37224532DEA67B89FACE185703738A228A6E8A23DEE546960180D3BE64 SWAP1 PUSH2 0x2259 SWAP1 DUP4 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x22F3 PUSH2 0xBFD JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x22FF PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xB05F8E48 DUP4 DUP7 PUSH1 0x40 MLOAD DUP4 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x232C SWAP3 SWAP2 SWAP1 PUSH2 0x5D89 JUMP JUMPDEST PUSH1 0x80 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2344 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2358 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x237C SWAP2 SWAP1 PUSH2 0x5A37 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x639CDB5 PUSH1 0xE2 SHL DUP2 MSTORE SWAP1 SWAP5 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP6 AND SWAP4 POP PUSH4 0x18E736D4 SWAP3 POP PUSH2 0x23B0 SWAP2 POP DUP6 SWAP1 DUP8 SWAP1 PUSH1 0x4 ADD PUSH2 0x5D70 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x23CA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1376 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST PUSH1 0x8 SLOAD PUSH2 0x23ED SWAP1 DUP3 PUSH1 0xFF PUSH2 0x15F2 JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xEFF3D4D215B42BF0960BE9C6D5E05C22CBA4DF6627A3A523E2ACEE733B5854C8 SWAP1 PUSH2 0x2420 SWAP1 DUP4 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 DUP1 PUSH2 0xBFA JUMPI PUSH2 0xBFA PUSH2 0x33B4 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x243F PUSH2 0x107E JUMP JUMPDEST DUP3 EQ ISZERO PUSH2 0x2455 JUMPI POP PUSH8 0xDE0B6B3A7640000 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 ISZERO PUSH2 0x2478 JUMPI PUSH2 0x2473 DUP2 PUSH2 0x29EA JUMP JUMPDEST PUSH2 0x15DE JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2499 PUSH1 0x0 DUP9 DUP7 DUP7 PUSH2 0x348E JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP9 POP SWAP9 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x24B9 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x24F4 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x24D3 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x24E7 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x288F JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2500 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x24BC JUMP JUMPDEST CALLER ADDRESS EQ PUSH2 0x25D1 JUMPI PUSH1 0x0 ADDRESS PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 CALLDATASIZE PUSH1 0x40 MLOAD PUSH2 0x2537 SWAP3 SWAP2 SWAP1 PUSH2 0x5B6A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP7 GAS CALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x2574 JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x2579 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP POP SWAP1 POP DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x2588 JUMPI INVALID JUMPDEST PUSH1 0x4 PUSH1 0x0 DUP1 RETURNDATACOPY PUSH1 0x0 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH4 0x43ADBAFB PUSH1 0xE0 SHL DUP2 EQ PUSH2 0x25B3 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x4 PUSH1 0x0 RETURNDATACOPY PUSH1 0x40 PUSH1 0x20 MSTORE PUSH1 0x24 RETURNDATASIZE SUB PUSH1 0x24 PUSH1 0x40 RETURNDATACOPY PUSH1 0x1C RETURNDATASIZE ADD PUSH1 0x0 RETURN JUMPDEST PUSH2 0x25D9 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x25E3 PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0x25EF DUP8 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2607 DUP13 DUP13 DUP13 DUP13 DUP13 DUP13 DUP10 DUP14 DUP14 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x2619 DUP2 DUP5 DUP7 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1F NOT DUP3 ADD DUP4 SWAP1 MSTORE PUSH4 0x43ADBAFB PUSH1 0x3F NOT DUP4 ADD MSTORE PUSH1 0x20 MUL PUSH1 0x23 NOT DUP3 ADD PUSH1 0x44 DUP3 ADD DUP2 REVERT JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x60 PUSH2 0x264F PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xF94D4668 PUSH2 0x2665 PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x2681 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2699 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x26AD JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY PUSH1 0x1F RETURNDATASIZE SWAP1 DUP2 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x40 MSTORE PUSH2 0x26D5 SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x552F JUMP JUMPDEST POP SWAP2 POP POP PUSH2 0x26EA DUP2 PUSH2 0x26E5 PUSH2 0x1773 JUMP JUMPDEST PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x26F3 DUP2 PUSH2 0x353C JUMP JUMPDEST SWAP7 POP SWAP5 POP PUSH1 0x0 PUSH2 0x2701 PUSH2 0xC5C JUMP JUMPDEST SWAP1 SWAP5 POP SWAP1 POP PUSH1 0x0 PUSH2 0x2713 DUP9 DUP7 DUP5 PUSH2 0x3575 JUMP JUMPDEST SWAP5 POP SWAP1 POP PUSH2 0x2721 DUP8 DUP3 PUSH2 0x35F1 JUMP JUMPDEST SWAP6 POP POP POP POP SWAP1 SWAP2 SWAP3 SWAP4 SWAP5 JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x276E JUMPI PUSH2 0x2764 DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x274D JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP3 POP PUSH1 0x1 ADD PUSH2 0x2736 JUMP JUMPDEST POP DUP2 PUSH2 0x277F JUMPI PUSH1 0x0 SWAP3 POP POP POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 DUP3 DUP7 DUP4 MUL DUP3 JUMPDEST PUSH1 0xFF DUP2 LT ISZERO PUSH2 0x2878 JUMPI DUP3 PUSH1 0x0 JUMPDEST DUP7 DUP2 LT ISZERO PUSH2 0x27D5 JUMPI PUSH2 0x27CB PUSH2 0x27A9 DUP4 DUP8 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x27B8 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP11 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3609 JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x2794 JUMP JUMPDEST POP DUP4 SWAP5 POP PUSH2 0x282E PUSH2 0x280D PUSH2 0x2807 PUSH2 0x27EC DUP5 DUP11 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2801 PUSH2 0x27F9 DUP9 DUP14 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3E8 PUSH2 0x3609 JUMP JUMPDEST SWAP1 PUSH2 0x2264 JUMP JUMPDEST DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 PUSH2 0x281D DUP10 PUSH1 0x1 ADD DUP6 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2801 PUSH2 0x27F9 PUSH2 0x3E8 DUP10 SUB DUP11 PUSH2 0x15BA JUMP JUMPDEST SWAP4 POP DUP5 DUP5 GT ISZERO PUSH2 0x2856 JUMPI PUSH1 0x1 DUP6 DUP6 SUB GT PUSH2 0x2851 JUMPI DUP4 SWAP8 POP POP POP POP POP POP POP POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x286F JUMP JUMPDEST PUSH1 0x1 DUP5 DUP7 SUB GT PUSH2 0x286F JUMPI DUP4 SWAP8 POP POP POP POP POP POP POP POP PUSH2 0x87D JUMP JUMPDEST POP PUSH1 0x1 ADD PUSH2 0x2787 JUMP JUMPDEST POP PUSH2 0x2884 PUSH2 0x141 PUSH2 0x28E0 JUMP JUMPDEST POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x289E DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x28AB JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 DUP4 DUP2 MUL SWAP1 PUSH2 0x28CE SWAP1 DUP6 DUP4 DUP2 PUSH2 0x28C5 JUMPI INVALID JUMPDEST DIV EQ PUSH1 0x5 PUSH2 0x1719 JUMP JUMPDEST DUP3 DUP2 DUP2 PUSH2 0x28D7 JUMPI INVALID JUMPDEST DIV SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0xBFA DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH2 0x3629 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 MLOAD GT DUP1 ISZERO PUSH2 0xCDC JUMPI POP PUSH1 0xFF DUP1 AND DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x2915 SWAP2 SWAP1 PUSH2 0x5A77 JUMP JUMPDEST PUSH1 0xFF AND EQ SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x919 PUSH2 0x292A PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x1B6 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH1 0x60 PUSH2 0x2943 DUP8 PUSH2 0x353C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH1 0x60 PUSH2 0x2956 DUP4 DUP6 DUP10 PUSH2 0x368A JUMP JUMPDEST SWAP2 POP SWAP2 POP DUP2 PUSH2 0x2966 DUP3 PUSH1 0x0 PUSH2 0x36B6 JUMP JUMPDEST SWAP6 POP SWAP6 POP POP POP POP POP JUMPDEST SWAP4 POP SWAP4 SWAP2 POP POP JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x2986 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x29C1 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x29A0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x29B4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2FDA JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x29CD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x2989 JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x3773 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 DUP3 PUSH1 0x60 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH1 0x60 DUP1 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x2A12 DUP4 PUSH2 0x1FC2 JUMP JUMPDEST SWAP2 POP PUSH2 0x2A21 DUP4 PUSH1 0xE0 PUSH1 0x20 PUSH2 0x170A JUMP JUMPDEST SWAP1 POP SWAP2 POP SWAP2 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2499 PUSH1 0x1 DUP9 DUP7 DUP7 PUSH2 0x348E JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x2A48 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x2A83 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2A62 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x2A76 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x383F JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2A8F JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x2A4B JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2AAC PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xAAABADC5 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2AE4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2AF8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x7D1 SWAP2 SWAP1 PUSH2 0x56E6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH32 0x0 PUSH1 0x6 DUP5 ADD JUMPDEST SHR PUSH1 0x1 SWAP1 DUP2 AND EQ SWAP1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x41 DUP1 DUP3 MSTORE PUSH1 0x80 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP3 SWAP2 SWAP1 PUSH1 0x20 DUP3 ADD DUP2 DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP POP SWAP1 POP DUP4 PUSH1 0x20 DUP3 ADD MSTORE DUP3 PUSH1 0x40 DUP3 ADD MSTORE DUP5 PUSH1 0x60 DUP3 ADD MSTORE8 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B9B DUP6 PUSH2 0x388D JUMP JUMPDEST SWAP1 POP PUSH2 0x2BB1 PUSH2 0x2BAB DUP8 DUP4 DUP8 PUSH2 0x38A9 JUMP JUMPDEST DUP4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2BC0 TIMESTAMP DUP5 LT ISZERO PUSH2 0x1B8 PUSH2 0x1719 JUMP JUMPDEST POP POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x2BF6 DUP5 PUSH2 0x3958 JUMP JUMPDEST SWAP1 POP PUSH2 0x2C11 PUSH1 0x0 DUP3 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x2C09 JUMPI INVALID JUMPDEST EQ PUSH1 0xCE PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x2C1C DUP6 PUSH2 0x396E JUMP JUMPDEST SWAP1 POP PUSH2 0x2C2A DUP2 MLOAD DUP8 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x2C34 DUP2 DUP8 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2C3E PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x60 PUSH2 0x2C4C DUP4 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x2C5A DUP4 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP1 PUSH1 0x0 PUSH2 0x2C77 PUSH14 0x8000000000000000000000000000 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x2C83 DUP14 DUP3 PUSH2 0x2CC0 JUMP JUMPDEST DUP1 DUP7 PUSH2 0x2C8D PUSH2 0x107E JUMP JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x2C97 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x2CAD DUP6 DUP5 PUSH2 0x31DC JUMP JUMPDEST POP SWAP13 SWAP4 SWAP12 POP SWAP3 SWAP10 POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x3A26 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x2D01 DUP2 DUP3 TIMESTAMP TIMESTAMP PUSH2 0x3360 JUMP JUMPDEST PUSH32 0xA0D01593E47E69D07E0CCD87BECE09411E07DD1ED40CA8F2E7AF2976542A0233 DUP2 PUSH1 0x40 MLOAD PUSH2 0x2259 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH32 0x0 PUSH32 0x0 PUSH2 0x2D9D PUSH2 0x3AB3 JUMP JUMPDEST ADDRESS PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x2DB2 SWAP6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5D44 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x2 DUP2 MLOAD LT ISZERO PUSH2 0x2DDC JUMPI PUSH2 0xBFA JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x2DEB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH2 0x1631 JUMPI PUSH1 0x0 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2E13 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH2 0x2E3C DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND LT PUSH1 0x65 PUSH2 0x1719 JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x2DFC JUMP JUMPDEST PUSH2 0x2E55 PUSH2 0x100 DUP4 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2E7D PUSH1 0x1 DUP3 LT ISZERO DUP1 ISZERO PUSH2 0x176C JUMPI POP PUSH2 0x2E73 PUSH1 0xFF DUP5 PUSH2 0x100 SUB PUSH2 0x16F4 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1631 DUP4 DUP3 SHR ISZERO PUSH2 0x1B4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x919 PUSH2 0x21D8 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2E9E PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xCB3 JUMPI PUSH2 0x2EB4 DUP2 PUSH2 0x3AB7 JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x2EA3 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH2 0x2EEA JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x1 EQ ISZERO PUSH2 0x2F1A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x2 EQ ISZERO PUSH2 0x2F4A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x3 EQ ISZERO PUSH2 0x2F7A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x4 EQ ISZERO PUSH2 0x2FAA JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x5 EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x2FF4 DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST PUSH8 0xDE0B6B3A7640000 SWAP1 DIV SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3012 DUP6 DUP4 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x3033 DUP7 PUSH1 0x60 ADD MLOAD DUP4 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3B0B JUMP JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH1 0x0 PUSH2 0x3046 DUP8 DUP8 DUP8 DUP8 PUSH2 0x3B17 JUMP JUMPDEST SWAP1 POP PUSH2 0x3065 DUP2 DUP5 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x3058 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3B2B JUMP JUMPDEST SWAP1 POP PUSH2 0x7BC DUP2 PUSH2 0x3B37 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 DUP8 MLOAD PUSH1 0x1 DUP2 GT ISZERO PUSH2 0x3081 JUMPI INVALID JUMPDEST EQ SWAP1 POP PUSH2 0x308E DUP7 DUP5 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x30AE DUP8 PUSH1 0x60 ADD MLOAD DUP5 DUP4 PUSH2 0x30A2 JUMPI DUP7 PUSH2 0x30A4 JUMP JUMPDEST DUP8 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST DUP8 PUSH1 0x60 ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x30C7 DUP11 PUSH2 0x3B53 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP PUSH1 0x0 DUP1 PUSH2 0x30DA PUSH2 0x107E JUMP JUMPDEST DUP11 EQ PUSH2 0x3100 JUMPI PUSH2 0x30FB DUP8 DUP15 PUSH1 0x60 ADD MLOAD DUP8 PUSH2 0x30F3 DUP15 PUSH2 0x3BBC JUMP JUMPDEST DUP9 DUP12 DUP10 PUSH2 0x3BF1 JUMP JUMPDEST PUSH2 0x311B JUMP JUMPDEST PUSH2 0x311B DUP8 DUP15 PUSH1 0x60 ADD MLOAD DUP8 PUSH2 0x3113 DUP16 PUSH2 0x3BBC JUMP JUMPDEST DUP9 DUP12 DUP10 PUSH2 0x3C2A JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x312C DUP5 DUP7 DUP6 DUP10 DUP6 PUSH2 0x3C4E JUMP JUMPDEST DUP7 PUSH2 0x3146 JUMPI PUSH2 0x3141 DUP3 DUP11 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x3058 JUMPI INVALID JUMPDEST PUSH2 0x3163 JUMP JUMPDEST PUSH2 0x3163 DUP3 DUP11 DUP13 DUP2 MLOAD DUP2 LT PUSH2 0x3156 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3CCE JUMP JUMPDEST SWAP14 SWAP13 POP POP POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3183 DUP7 PUSH1 0x60 ADD MLOAD PUSH2 0x3CDA JUMP JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH2 0x3192 DUP6 DUP4 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x31A6 DUP7 PUSH1 0x60 ADD MLOAD DUP4 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH1 0x0 PUSH2 0x31B9 DUP8 DUP8 DUP8 DUP8 PUSH2 0x3CFB JUMP JUMPDEST SWAP1 POP PUSH2 0x7BC DUP2 DUP5 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x3156 JUMPI INVALID JUMPDEST PUSH2 0xBFA PUSH2 0x31D6 PUSH2 0x12D1 JUMP JUMPDEST DUP3 PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x31E9 DUP2 PUSH1 0x0 PUSH1 0xE9 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x31F6 DUP4 PUSH1 0xE9 PUSH1 0x17 PUSH2 0x16E1 JUMP JUMPDEST OR PUSH1 0xC SSTORE PUSH2 0xCB3 PUSH2 0x3D0F JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3211 DUP5 DUP5 GT ISZERO DUP4 PUSH2 0x1719 JUMP JUMPDEST POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH20 0xBA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1B PUSH2 0x3237 PUSH2 0x115A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO DUP1 ISZERO PUSH2 0x3252 JUMPI POP PUSH2 0x3252 DUP4 PUSH2 0x3D45 JUMP JUMPDEST ISZERO PUSH2 0x327A JUMPI PUSH2 0x325F PUSH2 0x115A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x3282 PUSH2 0x2AA2 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x9BE2A884 DUP5 DUP5 ADDRESS PUSH1 0x40 MLOAD DUP5 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x32B1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5CF1 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x32C9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x32DD JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x14D9 SWAP2 SWAP1 PUSH2 0x55FB JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x3320 PUSH1 0x0 PUSH1 0x40 PUSH1 0x9 SLOAD PUSH2 0x170A SWAP1 SWAP3 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP5 POP PUSH2 0x3332 SWAP1 PUSH1 0x40 DUP1 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP4 POP PUSH2 0x3345 SWAP1 PUSH1 0x80 PUSH1 0x40 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP3 POP PUSH2 0x3358 SWAP1 PUSH1 0xC0 PUSH1 0x40 PUSH2 0x170A JUMP JUMPDEST SWAP1 POP SWAP1 SWAP2 SWAP3 SWAP4 JUMP JUMPDEST PUSH2 0x336D DUP2 PUSH1 0xC0 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x337A DUP4 PUSH1 0x80 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x3386 DUP6 PUSH1 0x40 DUP1 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x3393 DUP8 PUSH1 0x0 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST OR OR OR PUSH1 0x9 SSTORE POP POP POP POP JUMP JUMPDEST PUSH5 0xE8D4A51000 SWAP1 JUMP JUMPDEST PUSH8 0x16345785D8A0000 SWAP1 JUMP JUMPDEST PUSH2 0x33BC PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x33C6 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xF94D4668 PUSH2 0x33DC PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x33F8 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x3410 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x3424 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY PUSH1 0x1F RETURNDATASIZE SWAP1 DUP2 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x40 MSTORE PUSH2 0x344C SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x552F JUMP JUMPDEST POP SWAP2 POP POP PUSH2 0x345C DUP2 PUSH2 0x26E5 PUSH2 0x1773 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x3467 DUP3 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3473 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 PUSH2 0x3482 DUP3 DUP5 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH2 0xAE5 DUP3 DUP3 PUSH2 0x31DC JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x34A2 DUP10 PUSH2 0x3B53 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP PUSH2 0x529C DUP11 PUSH2 0x34BA JUMPI PUSH2 0x3D50 PUSH2 0x34BE JUMP JUMPDEST PUSH2 0x3DE5 JUMPDEST SWAP1 POP PUSH1 0x0 PUSH1 0x60 PUSH2 0x34D6 DUP7 DUP7 DUP10 DUP8 DUP16 DUP16 DUP10 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x529C DUP14 PUSH2 0x34EA JUMPI PUSH2 0x165E PUSH2 0x34EE JUMP JUMPDEST PUSH2 0x2264 JUMPDEST SWAP1 POP PUSH2 0x34FB DUP8 DUP4 DUP4 PUSH2 0x3E63 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x350B DUP10 DUP6 DUP5 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH2 0x351A DUP8 DUP10 DUP9 DUP13 DUP6 PUSH2 0x3C4E JUMP JUMPDEST DUP4 PUSH2 0x3526 DUP5 PUSH1 0x0 PUSH2 0x36B6 JUMP JUMPDEST SWAP11 POP SWAP11 POP POP POP POP POP POP POP POP POP POP SWAP5 POP SWAP5 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x3563 DUP4 PUSH2 0x354C PUSH2 0x107E JUMP JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x3556 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3ED0 JUMP JUMPDEST PUSH2 0x356C DUP5 PUSH2 0x3984 JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP2 POP SWAP2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3588 DUP9 DUP9 DUP9 PUSH2 0x3EE4 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP DUP6 DUP2 GT PUSH2 0x35A3 JUMPI PUSH1 0x0 SWAP5 POP SWAP3 POP PUSH2 0x296F SWAP2 POP POP JUMP JUMPDEST DUP6 DUP4 SUB DUP4 DUP4 SUB PUSH1 0x0 PUSH2 0x35C1 PUSH2 0x35B7 DUP3 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x17E7 DUP6 DUP8 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x35DC PUSH2 0x35D2 PUSH1 0x2 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x17E7 DUP6 DUP9 PUSH2 0x288F JUMP JUMPDEST SWAP2 SWAP1 SWAP2 ADD SWAP12 SWAP4 SWAP11 POP SWAP3 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE PUSH2 0x3600 DUP5 DUP5 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 DUP5 PUSH2 0x3F55 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3618 DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP2 DUP4 DUP2 PUSH2 0x3621 JUMPI INVALID JUMPDEST DIV SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3699 DUP5 PUSH2 0x3F7B JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP8 DUP8 DUP5 PUSH2 0x3F91 JUMP JUMPDEST SWAP2 SWAP8 SWAP2 SWAP7 POP SWAP1 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP3 MLOAD PUSH1 0x1 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x36D3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x36FD JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x376C JUMPI PUSH2 0x3714 PUSH2 0x107E JUMP JUMPDEST DUP2 EQ PUSH2 0x374B JUMPI DUP4 PUSH2 0x3723 PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x3732 JUMPI PUSH1 0x1 DUP3 SUB PUSH2 0x3734 JUMP JUMPDEST DUP2 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x373E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x374D JUMP JUMPDEST DUP3 JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3759 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3703 JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x378A PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x19B PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x3796 DUP3 PUSH1 0x0 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x37BC SWAP1 DUP3 PUSH2 0x1B2 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SSTORE PUSH2 0x37EF PUSH2 0x37EA DUP3 PUSH2 0x37E4 PUSH2 0x93F JUMP JUMPDEST SWAP1 PUSH2 0x4040 JUMP JUMPDEST PUSH2 0x404E JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF DUP4 PUSH1 0x40 MLOAD PUSH2 0x3833 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x384E DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x385B JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 DUP4 DUP2 MUL SWAP1 PUSH2 0x3875 SWAP1 DUP6 DUP4 DUP2 PUSH2 0x28C5 JUMPI INVALID JUMPDEST DUP3 PUSH1 0x1 DUP3 SUB DUP2 PUSH2 0x3881 JUMPI INVALID JUMPDEST DIV PUSH1 0x1 ADD SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3897 PUSH2 0x2D30 JUMP JUMPDEST DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x10E9 SWAP3 SWAP2 SWAP1 PUSH2 0x5B7A JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38BB DUP3 MLOAD PUSH1 0x41 EQ PUSH2 0x1B9 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x20 DUP3 DUP2 ADD MLOAD PUSH1 0x40 DUP1 DUP6 ADD MLOAD PUSH1 0x60 DUP7 ADD MLOAD DUP3 MLOAD PUSH1 0x0 DUP1 DUP3 MSTORE SWAP6 ADD SWAP3 DUP4 SWAP1 MSTORE SWAP3 SWAP4 SWAP1 SWAP3 DUP2 BYTE SWAP2 PUSH1 0x1 SWAP1 PUSH2 0x38F4 SWAP1 DUP10 SWAP1 DUP6 SWAP1 DUP9 SWAP1 DUP9 SWAP1 PUSH2 0x5DA0 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 SUB SWAP1 DUP1 DUP5 SUB SWAP1 DUP6 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x3916 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP PUSH1 0x40 MLOAD PUSH1 0x1F NOT ADD MLOAD SWAP2 POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND ISZERO DUP1 ISZERO SWAP1 PUSH2 0x394C JUMPI POP DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ JUMPDEST SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xCDC SWAP2 SWAP1 PUSH2 0x5811 JUMP JUMPDEST PUSH1 0x60 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x582C JUMP JUMPDEST PUSH1 0x60 DUP1 PUSH1 0x1 DUP4 MLOAD SUB PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x39A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x39CC JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x376C JUMPI DUP4 PUSH2 0x39E4 PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x39F3 JUMPI DUP2 PUSH1 0x1 ADD PUSH2 0x39F5 JUMP JUMPDEST DUP2 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x39FF JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3A13 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x39D2 JUMP JUMPDEST PUSH2 0x3A32 PUSH1 0x0 DUP4 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH2 0x3A41 PUSH2 0x37EA DUP3 PUSH2 0x2801 PUSH2 0x93F JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x3A64 SWAP1 DUP3 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP2 MLOAD SWAP1 SWAP2 SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 PUSH2 0x3833 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST CHAINID SWAP1 JUMP JUMPDEST PUSH2 0x3ABF PUSH2 0x107E JUMP JUMPDEST DUP2 EQ ISZERO PUSH2 0x3ACB JUMPI PUSH2 0xBFA JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 ISZERO PUSH2 0xCB3 JUMPI PUSH1 0x0 DUP1 PUSH2 0x3AEC DUP4 PUSH2 0x2A06 JUMP JUMPDEST SWAP2 POP SWAP2 POP DUP1 TIMESTAMP GT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0xAE5 DUP5 PUSH2 0x3B05 DUP7 PUSH2 0x1B8D JUMP JUMPDEST DUP5 PUSH2 0x1FD1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x2FDA JUMP JUMPDEST PUSH1 0x0 PUSH2 0x185C PUSH1 0x0 DUP7 PUSH1 0x60 ADD MLOAD DUP7 DUP7 DUP7 PUSH2 0x4053 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0x3B4C PUSH2 0x3B47 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x3F55 JUMP JUMPDEST DUP4 SWAP1 PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x3B65 PUSH2 0xC5C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3B7A DUP11 DUP7 DUP7 PUSH2 0x40C5 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP PUSH1 0x0 PUSH2 0x3B8A PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP7 DUP3 EQ PUSH2 0x3BA5 JUMPI PUSH2 0x3BA0 DUP3 DUP6 PUSH2 0x272D JUMP JUMPDEST PUSH2 0x3BA7 JUMP JUMPDEST DUP3 JUMPDEST SWAP5 SWAP13 SWAP4 SWAP12 POP SWAP1 SWAP10 POP SWAP3 SWAP8 POP SWAP1 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3BD3 PUSH2 0x3BC9 PUSH2 0x107E JUMP JUMPDEST DUP4 EQ ISZERO PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x3BDB PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x16DD JUMPI PUSH2 0x3BEC DUP3 PUSH1 0x1 PUSH2 0x165E JUMP JUMPDEST PUSH2 0xCDC JUMP JUMPDEST PUSH1 0x0 DUP1 DUP9 PUSH2 0x3C0C JUMPI PUSH2 0x3C07 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x411D JUMP JUMPDEST PUSH2 0x3C1A JUMP JUMPDEST PUSH2 0x3C1A DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x41F4 JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP9 PUSH2 0x3C40 JUMPI PUSH2 0x3C07 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x4255 JUMP JUMPDEST PUSH2 0x3C1A DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x42BB JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3C5A DUP7 DUP7 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3C68 DUP4 DUP6 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3C76 DUP7 DUP4 PUSH2 0x2FDA JUMP JUMPDEST SWAP1 POP DUP1 DUP4 GT ISZERO PUSH2 0x3CC4 JUMPI DUP1 DUP4 SUB PUSH1 0x0 PUSH2 0x3CA0 PUSH2 0x3C9A DUP4 PUSH2 0x3C95 DUP5 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x15BA JUMP JUMPDEST DUP7 PUSH2 0x3609 JUMP JUMPDEST SWAP1 POP DUP1 ISZERO PUSH2 0x3CC1 JUMPI PUSH1 0x0 PUSH2 0x3CB4 DUP8 DUP4 PUSH2 0x35F1 JUMP JUMPDEST SWAP1 POP PUSH2 0x3CBF DUP2 PUSH2 0x31CB JUMP JUMPDEST POP JUMPDEST POP POP JUMPDEST PUSH2 0x1376 DUP9 DUP5 PUSH2 0x31DC JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x288F JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x3CEF PUSH2 0x3CE8 PUSH2 0xD45 JUMP JUMPDEST DUP5 SWAP1 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH2 0x15DE DUP4 DUP3 PUSH2 0x165E JUMP JUMPDEST PUSH1 0x0 PUSH2 0x185C PUSH1 0x1 DUP7 PUSH1 0x60 ADD MLOAD DUP7 DUP7 DUP7 PUSH2 0x4053 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3D19 PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xCB3 JUMPI PUSH2 0x3D2F DUP2 PUSH2 0x2B1C JUMP JUMPDEST ISZERO PUSH2 0x3D3D JUMPI PUSH2 0x3D3D DUP2 PUSH2 0x43A6 JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x3D1E JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x43D4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3D5F DUP5 PUSH2 0x43DF JUMP JUMPDEST SWAP1 POP PUSH1 0x1 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3D6F JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3D8D JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP10 DUP10 PUSH2 0x43F5 JUMP JUMPDEST SWAP3 POP SWAP3 POP POP PUSH2 0x3DDA JUMP JUMPDEST PUSH1 0x2 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3D9B JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3DAC JUMPI PUSH2 0x3D83 DUP8 DUP11 DUP7 PUSH2 0x4454 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3DBA JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3DCD JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP9 PUSH2 0x4472 JUMP JUMPDEST PUSH2 0x3DD8 PUSH2 0x150 PUSH2 0x28E0 JUMP JUMPDEST POP JUMPDEST SWAP7 POP SWAP7 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3DF4 DUP5 PUSH2 0x3958 JUMP JUMPDEST SWAP1 POP PUSH1 0x1 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E04 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E18 JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP10 DUP10 PUSH2 0x4513 JUMP JUMPDEST PUSH1 0x3 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E26 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E37 JUMPI PUSH2 0x3D83 DUP8 DUP11 DUP7 PUSH2 0x4562 JUMP JUMPDEST PUSH1 0x2 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E45 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E58 JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP9 PUSH2 0x4580 JUMP JUMPDEST PUSH2 0x3DD8 PUSH2 0x136 PUSH2 0x28E0 JUMP JUMPDEST DUP3 MLOAD DUP3 MLOAD PUSH2 0x3E72 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x1E2D JUMPI PUSH2 0x3EB1 DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3E8C JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP6 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x3EA0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP6 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3EBD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3E75 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x3EDE PUSH2 0x93F JUMP JUMPDEST SWAP1 PUSH2 0x165E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3EF3 DUP6 DUP8 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP4 DUP2 GT PUSH2 0x3F07 JUMPI DUP1 DUP2 SWAP3 POP SWAP3 POP PUSH2 0x3F4C JUMP JUMPDEST PUSH2 0x3F19 DUP6 PUSH2 0x3F14 DUP9 PUSH2 0x45FA JUMP JUMPDEST PUSH2 0x272D JUMP JUMPDEST SWAP3 POP PUSH2 0x3F25 DUP2 DUP5 PUSH2 0x16F4 JUMP JUMPDEST SWAP3 POP PUSH2 0x3F31 DUP5 DUP5 PUSH2 0x46EB JUMP JUMPDEST SWAP3 POP PUSH2 0x3F3B PUSH2 0xFED JUMP JUMPDEST ISZERO PUSH2 0x3F48 JUMPI DUP3 SWAP2 POP PUSH2 0x3F4C JUMP JUMPDEST DUP1 SWAP2 POP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xDE0B6B3A7640000 DUP3 LT PUSH2 0x3F6D JUMPI PUSH1 0x0 PUSH2 0xCDC JUMP JUMPDEST POP PUSH8 0xDE0B6B3A7640000 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x5A93 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x3F9F DUP4 DUP6 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP DUP5 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x3FB9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x3FE3 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP2 POP PUSH1 0x0 JUMPDEST DUP6 MLOAD DUP2 LT ISZERO PUSH2 0x4037 JUMPI PUSH2 0x4018 DUP3 DUP8 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2FDA SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4024 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3FE9 JUMP JUMPDEST POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH1 0x1 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x2 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x4060 DUP6 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x406D DUP6 PUSH2 0x3BBC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x407A DUP6 PUSH2 0x3BBC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4086 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 PUSH2 0x4095 DUP3 DUP7 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP11 ISZERO PUSH2 0x40B7 JUMPI PUSH2 0x40AB DUP3 DUP7 DUP7 DUP7 DUP15 DUP7 PUSH2 0x46FB JUMP JUMPDEST SWAP6 POP POP POP POP POP POP PUSH2 0x185C JUMP JUMPDEST PUSH2 0x40AB DUP3 DUP7 DUP7 DUP7 DUP15 DUP7 PUSH2 0x4786 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x60 PUSH2 0x40D7 DUP9 PUSH2 0x353C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 DUP1 PUSH2 0x40E9 DUP4 DUP11 DUP11 PUSH2 0x3575 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH2 0x40F9 DUP6 DUP5 PUSH2 0x35F1 JUMP JUMPDEST SWAP1 POP DUP1 ISZERO PUSH2 0x410A JUMPI PUSH2 0x410A DUP2 PUSH2 0x31CB JUMP JUMPDEST SWAP4 SWAP1 SWAP4 ADD SWAP10 SWAP2 SWAP9 POP SWAP2 SWAP7 POP SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x60 DUP8 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x413A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4164 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP9 DUP2 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x4174 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4197 DUP8 DUP11 DUP5 DUP10 DUP10 PUSH2 0x4192 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4819 JUMP JUMPDEST SWAP1 POP PUSH2 0x41BF DUP11 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41CB JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x41E2 DUP8 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP2 SWAP12 SWAP2 SWAP11 POP SWAP1 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x420F DUP7 DUP10 DUP10 DUP13 DUP10 DUP10 PUSH2 0x420A PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4AA9 JUMP JUMPDEST SWAP1 POP PUSH2 0x4221 DUP2 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP9 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x422D JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x4244 DUP7 DUP12 PUSH2 0x165E JUMP JUMPDEST SWAP2 SWAP11 SWAP2 SWAP10 POP SWAP1 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x4270 DUP7 DUP10 DUP10 DUP13 DUP10 DUP10 PUSH2 0x426B PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4B98 JUMP JUMPDEST SWAP1 POP PUSH2 0x4298 DUP2 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP9 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x42A4 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x4244 DUP7 DUP12 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x60 DUP8 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x42D8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4302 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP9 DUP2 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x4312 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4335 DUP8 DUP11 DUP5 DUP10 DUP10 PUSH2 0x4330 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4C65 JUMP JUMPDEST SWAP1 POP PUSH2 0x4347 DUP11 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4353 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x41E2 DUP8 DUP4 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x4384 DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST DUP1 PUSH2 0x4393 JUMPI PUSH1 0x0 SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 PUSH1 0x0 NOT DUP3 ADD PUSH2 0x3881 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x43BE DUP2 PUSH2 0x16AC JUMP JUMPDEST PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 SWAP3 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x4ECF JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xCDC SWAP2 SWAP1 PUSH2 0x5750 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP1 PUSH1 0x0 PUSH2 0x4405 DUP6 PUSH2 0x4EF2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4415 DUP3 MLOAD DUP9 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x4422 DUP3 PUSH2 0x26E5 DUP9 PUSH2 0x3984 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4434 DUP10 DUP10 DUP6 DUP15 DUP15 PUSH2 0x4192 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP PUSH2 0x4444 DUP3 DUP3 GT ISZERO PUSH1 0xCF PUSH2 0x1719 JUMP JUMPDEST SWAP11 SWAP2 SWAP10 POP SWAP1 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x4463 DUP5 PUSH2 0x4F15 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP7 DUP9 DUP5 PUSH2 0x3F91 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x4482 DUP6 PUSH2 0x4F2B JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4494 DUP7 MLOAD DUP3 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x44AE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x44D8 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x44EC DUP9 DUP9 DUP5 DUP7 DUP15 DUP15 PUSH2 0x420A PUSH2 0xD45 JUMP JUMPDEST DUP2 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x44F8 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE SWAP2 SWAP10 SWAP2 SWAP9 POP SWAP1 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP1 PUSH1 0x0 PUSH2 0x4523 DUP6 PUSH2 0x4F42 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4533 DUP8 MLOAD DUP4 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x4540 DUP3 PUSH2 0x26E5 DUP9 PUSH2 0x3984 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4552 DUP10 DUP10 DUP6 DUP15 DUP15 PUSH2 0x4330 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP PUSH2 0x4444 DUP3 DUP3 LT ISZERO PUSH1 0xD0 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x4571 DUP5 PUSH2 0x4F5A JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP7 DUP4 DUP10 PUSH2 0x4F70 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x4590 DUP6 PUSH2 0x500C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x45A2 DUP7 MLOAD DUP3 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x45BC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x45E6 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x44EC DUP9 DUP9 DUP5 DUP7 DUP15 DUP15 PUSH2 0x426B PUSH2 0xD45 JUMP JUMPDEST DUP1 MLOAD PUSH1 0x60 SWAP1 DUP2 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4617 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4641 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x46E3 JUMPI PUSH1 0x0 PUSH2 0x4659 PUSH2 0x107E JUMP JUMPDEST DUP3 LT ISZERO PUSH2 0x4666 JUMPI DUP2 PUSH2 0x466B JUMP JUMPDEST DUP2 PUSH1 0x1 ADD JUMPDEST SWAP1 POP PUSH2 0x4676 DUP2 PUSH2 0x2B1C JUMP JUMPDEST PUSH2 0x4693 JUMPI DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4686 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x46C3 JUMP JUMPDEST PUSH2 0x46C3 DUP7 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x46A2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0xA PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 SLOAD PUSH2 0x5023 JUMP JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x46CF JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x4647 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT ISZERO PUSH2 0x1703 JUMPI DUP2 PUSH2 0x15DE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x470D DUP4 DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP7 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x4719 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4733 DUP9 DUP9 DUP6 DUP9 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP DUP4 DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4742 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SUB DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4757 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4778 PUSH1 0x1 PUSH2 0x3EDE DUP4 DUP11 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP2 POP POP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4798 DUP4 DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x47A4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x47BE DUP9 DUP9 DUP6 DUP10 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP DUP4 DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x47CD JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD ADD DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x47E2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4778 PUSH1 0x1 PUSH2 0x2801 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4802 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x4857 JUMPI PUSH2 0x484D DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x481E JUMP JUMPDEST POP PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4872 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x489C JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP10 MLOAD DUP2 LT ISZERO PUSH2 0x4969 JUMPI PUSH1 0x0 PUSH2 0x48D4 DUP6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x48BE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x383F SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH2 0x4916 DUP12 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x48E5 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x4910 DUP13 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x48FC JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 PUSH2 0x383F JUMP JUMPDEST DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4922 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x495E PUSH2 0x4957 DUP3 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4941 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x436A SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP5 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x48A3 JUMP JUMPDEST POP PUSH1 0x60 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4984 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x49AE JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP11 MLOAD DUP2 LT ISZERO PUSH2 0x4A79 JUMPI PUSH1 0x0 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x49CB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 GT ISZERO PUSH2 0x4A32 JUMPI PUSH1 0x0 PUSH2 0x49F4 PUSH2 0x49E8 DUP7 PUSH2 0x3F55 JUMP JUMPDEST DUP15 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4A08 DUP3 DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4A29 PUSH2 0x4A22 DUP3 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x383F JUMP JUMPDEST DUP4 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x4A49 JUMP JUMPDEST DUP11 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4A3E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x4A59 DUP2 DUP14 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4A65 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x49B4 JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4A86 DUP13 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4A94 DUP3 DUP11 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH2 0x3163 PUSH2 0x4AA2 DUP3 PUSH2 0x3F55 JUMP JUMPDEST DUP12 SWAP1 PUSH2 0x436A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4AC4 DUP5 PUSH2 0x4ABE DUP8 PUSH2 0x4910 DUP2 DUP12 PUSH2 0x165E JUMP JUMPDEST SWAP1 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4AD4 DUP11 DUP11 DUP5 DUP12 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4AE8 DUP3 DUP12 DUP12 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP12 MLOAD DUP2 LT ISZERO PUSH2 0x4B10 JUMPI PUSH2 0x4B06 DUP13 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4AEE JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4B39 DUP3 DUP14 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x288F SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B46 DUP3 PUSH2 0x3F55 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B54 DUP6 DUP4 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B62 DUP7 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x4B83 PUSH2 0x4B7C DUP4 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x2FDA JUMP JUMPDEST DUP3 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP9 POP POP POP POP POP POP POP POP POP SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4BAD DUP5 PUSH2 0x4ABE DUP8 PUSH2 0x4910 DUP2 DUP12 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4BBD DUP11 DUP11 DUP5 DUP12 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4BE7 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x4BD0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP12 MLOAD DUP2 LT ISZERO PUSH2 0x4C0F JUMPI PUSH2 0x4C05 DUP13 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4BED JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4C22 DUP3 DUP14 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C2F DUP3 PUSH2 0x3F55 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C3D DUP6 DUP4 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C4B DUP7 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x4B83 PUSH2 0x4B7C DUP4 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x4C8C JUMPI PUSH2 0x4C82 DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4C6A JUMP JUMPDEST POP PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4CA7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4CD1 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP10 MLOAD DUP2 LT ISZERO PUSH2 0x4D6B JUMPI PUSH1 0x0 PUSH2 0x4CF3 DUP6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4D35 DUP12 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4D04 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x4D2F DUP13 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4D1B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST SWAP1 PUSH2 0x288F JUMP JUMPDEST DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4D41 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4D60 PUSH2 0x4957 DUP3 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x4CD8 JUMP JUMPDEST POP PUSH1 0x60 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4D86 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4DB0 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP11 MLOAD DUP2 LT ISZERO PUSH2 0x4E71 JUMPI PUSH1 0x0 DUP4 DUP6 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4DCE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD GT ISZERO PUSH2 0x4E2A JUMPI PUSH1 0x0 PUSH2 0x4DF3 PUSH2 0x49E8 DUP7 PUSH8 0xDE0B6B3A7640000 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4E07 DUP3 DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4E21 PUSH2 0x4A22 DUP3 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x2FDA JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x4E41 JUMP JUMPDEST DUP11 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4E36 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x4E51 DUP2 DUP14 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4E5D JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x4DB6 JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4E7E DUP13 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4E8C DUP3 DUP11 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH8 0xDE0B6B3A7640000 DUP2 GT ISZERO PUSH2 0x4EC0 JUMPI PUSH2 0x4EB3 DUP11 PUSH8 0xDE0B6B3A763FFFF NOT DUP4 ADD PUSH2 0x2FDA JUMP JUMPDEST SWAP7 POP POP POP POP POP POP POP PUSH2 0x477C JUMP JUMPDEST PUSH1 0x0 SWAP7 POP POP POP POP POP POP POP PUSH2 0x477C JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4EE1 PUSH4 0xF4B7964D PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0xCDC JUMPI POP PUSH2 0xCDC DUP3 PUSH2 0x51FB JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x576B JUMP JUMPDEST SWAP1 SWAP6 SWAP1 SWAP5 POP SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x57B0 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x57DC JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x586F JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x588D JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x4F7E DUP5 DUP5 PUSH2 0x383F JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP6 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4F9A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4FC4 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP7 MLOAD DUP2 LT ISZERO PUSH2 0x5002 JUMPI PUSH2 0x4FE3 DUP4 DUP9 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4941 JUMPI INVALID JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4FEF JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x4FCA JUMP JUMPDEST POP SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x58A9 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE PUSH2 0x5035 DUP5 PUSH2 0x3C95 DUP6 PUSH2 0x29F8 JUMP JUMPDEST PUSH2 0x27C6 DUP5 PUSH2 0x29EA JUMP JUMPDEST PUSH1 0x0 DUP1 DUP5 MLOAD DUP7 MUL SWAP1 POP PUSH1 0x0 DUP6 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x5056 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 DUP7 MLOAD DUP8 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x5071 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD MUL SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x50D7 JUMPI PUSH2 0x50BC PUSH2 0x50B6 PUSH2 0x50AF DUP5 DUP12 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x50A2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x15BA JUMP JUMPDEST DUP11 MLOAD PUSH2 0x15BA JUMP JUMPDEST DUP9 PUSH2 0x3609 JUMP JUMPDEST SWAP2 POP PUSH2 0x50CD DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x274D JUMPI INVALID JUMPDEST SWAP3 POP PUSH1 0x1 ADD PUSH2 0x5083 JUMP JUMPDEST POP DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x50E4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 SUB SWAP2 POP PUSH1 0x0 PUSH2 0x50FC DUP8 DUP9 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x5128 PUSH2 0x511C PUSH2 0x5114 DUP5 PUSH2 0xB83 DUP10 DUP9 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3E8 PUSH2 0x15BA JUMP JUMPDEST DUP11 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x50A2 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x5143 PUSH2 0x513C PUSH2 0x5114 DUP12 DUP10 PUSH2 0x3609 JUMP JUMPDEST DUP7 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 PUSH2 0x515F PUSH2 0x5155 DUP7 DUP7 PUSH2 0x2264 JUMP JUMPDEST PUSH2 0xB83 DUP14 DUP7 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST PUSH1 0xFF DUP2 LT ISZERO PUSH2 0x51DF JUMPI DUP2 SWAP3 POP PUSH2 0x5194 PUSH2 0x5181 DUP7 PUSH2 0x2801 DUP6 DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP15 PUSH2 0x3EDE DUP9 PUSH2 0x2801 DUP9 PUSH1 0x2 PUSH2 0x15BA JUMP JUMPDEST SWAP2 POP DUP3 DUP3 GT ISZERO PUSH2 0x51BD JUMPI PUSH1 0x1 DUP4 DUP4 SUB GT PUSH2 0x51B8 JUMPI POP SWAP8 POP PUSH2 0x1656 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x51D7 JUMP JUMPDEST PUSH1 0x1 DUP3 DUP5 SUB GT PUSH2 0x51D7 JUMPI POP SWAP8 POP PUSH2 0x1656 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x5164 JUMP JUMPDEST POP PUSH2 0x51EB PUSH2 0x142 PUSH2 0x28E0 JUMP JUMPDEST POP POP POP POP POP POP POP POP SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x520D PUSH4 0x2F1A0BC9 PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0x5228 JUMPI POP PUSH2 0x5225 PUSH4 0x7587926B PUSH1 0xE1 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ JUMPDEST DUP1 PUSH2 0xCDC JUMPI POP PUSH2 0xCDC DUP3 PUSH1 0x0 PUSH2 0x5244 PUSH4 0x1C74C917 PUSH1 0xE1 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0x525F JUMPI POP PUSH2 0x525C PUSH4 0x50DD6ED9 PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ JUMPDEST DUP1 PUSH2 0xCDC JUMPI POP PUSH1 0x0 PUSH2 0xCDC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD SWAP1 SWAP2 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE PUSH1 0x0 PUSH1 0x20 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x40 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x60 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x80 SWAP1 SWAP2 ADD MSTORE SWAP1 JUMP JUMPDEST INVALID JUMPDEST DUP1 CALLDATALOAD PUSH2 0x87D DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x52B9 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x52CC PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST PUSH2 0x5E37 JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x52ED JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x2884 JUMPI DUP2 CALLDATALOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x52F0 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x531C JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x532A PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x534B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x2884 JUMPI DUP2 MLOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x534E JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x537A JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5390 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x53A3 PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD PUSH2 0x5E37 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0x53BA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH1 0x20 DUP5 ADD PUSH1 0x20 DUP5 ADD CALLDATACOPY PUSH1 0x0 SWAP1 DUP3 ADD PUSH1 0x20 ADD MSTORE SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x3 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 MLOAD PUSH1 0x4 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH1 0x2 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5411 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x15DE DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x542E JUMPI DUP1 DUP2 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x5439 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x5449 DUP2 PUSH2 0x5E7E JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5468 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x5473 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0x5483 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP3 SWAP6 SWAP3 SWAP5 POP POP POP PUSH1 0x40 SWAP2 SWAP1 SWAP2 ADD CALLDATALOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x54AE JUMPI DUP3 DUP4 REVERT JUMPDEST DUP8 CALLDATALOAD PUSH2 0x54B9 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x54C9 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD SWAP4 POP PUSH1 0x80 DUP9 ADD CALLDATALOAD PUSH2 0x54E7 DUP2 PUSH2 0x5E93 JUMP JUMPDEST SWAP7 SWAP10 SWAP6 SWAP9 POP SWAP4 SWAP7 SWAP3 SWAP6 SWAP5 PUSH1 0xA0 DUP5 ADD CALLDATALOAD SWAP5 POP PUSH1 0xC0 SWAP1 SWAP4 ADD CALLDATALOAD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5516 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x5521 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5543 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP4 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x555A JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 DUP7 ADD SWAP2 POP DUP7 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x556D JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x557B PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST DUP1 DUP3 DUP3 MSTORE PUSH1 0x20 DUP1 DUP4 ADD SWAP3 POP DUP1 DUP7 ADD DUP12 DUP3 DUP4 DUP8 MUL DUP10 ADD ADD GT ISZERO PUSH2 0x559B JUMPI DUP8 DUP9 REVERT JUMPDEST DUP8 SWAP7 POP JUMPDEST DUP5 DUP8 LT ISZERO PUSH2 0x55C6 JUMPI DUP1 MLOAD PUSH2 0x55B2 DUP2 PUSH2 0x5E7E JUMP JUMPDEST DUP5 MSTORE PUSH1 0x1 SWAP7 SWAP1 SWAP7 ADD SWAP6 SWAP3 DUP2 ADD SWAP3 DUP2 ADD PUSH2 0x559F JUMP JUMPDEST POP DUP10 ADD MLOAD SWAP1 SWAP8 POP SWAP4 POP POP POP DUP1 DUP3 GT ISZERO PUSH2 0x55DD JUMPI DUP3 DUP4 REVERT JUMPDEST POP PUSH2 0x55EA DUP7 DUP3 DUP8 ADD PUSH2 0x530C JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x560C JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x15DE JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x5635 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP8 CALLDATALOAD SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x5647 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH2 0x5657 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x5673 JUMPI DUP3 DUP4 REVERT JUMPDEST PUSH2 0x567F DUP12 DUP4 DUP13 ADD PUSH2 0x52A9 JUMP JUMPDEST SWAP6 POP PUSH1 0x80 DUP11 ADD CALLDATALOAD SWAP5 POP PUSH1 0xA0 DUP11 ADD CALLDATALOAD SWAP4 POP PUSH1 0xC0 DUP11 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x56A2 JUMPI DUP3 DUP4 REVERT JUMPDEST POP PUSH2 0x56AF DUP11 DUP3 DUP12 ADD PUSH2 0x536A JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP9 SWAP2 SWAP5 SWAP8 POP SWAP3 SWAP6 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x56CF JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH2 0x15DE JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x56F7 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x15DE DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5714 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x571F DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x573A JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5746 DUP6 DUP3 DUP7 ADD PUSH2 0x536A JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5761 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x15DE DUP4 DUP4 PUSH2 0x53D3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x577F JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x5789 DUP6 DUP6 PUSH2 0x53D3 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x57A4 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x55EA DUP7 DUP3 DUP8 ADD PUSH2 0x530C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x57C2 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x57CC DUP5 DUP5 PUSH2 0x53D3 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x57F0 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x57FA DUP6 DUP6 PUSH2 0x53D3 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD MLOAD SWAP2 POP PUSH1 0x40 DUP5 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5822 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x15DE DUP4 DUP4 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x583E JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5848 DUP5 DUP5 PUSH2 0x53E2 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5863 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5746 DUP6 DUP3 DUP7 ADD PUSH2 0x530C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5883 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x5789 DUP6 DUP6 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x589F JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x57CC DUP5 DUP5 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x58BD JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x57FA DUP6 DUP6 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x58DC JUMPI DUP2 DUP3 REVERT JUMPDEST DUP5 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x58F3 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP2 DUP8 ADD SWAP2 POP PUSH2 0x120 DUP1 DUP4 DUP11 SUB SLT ISZERO PUSH2 0x5909 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH2 0x5912 DUP2 PUSH2 0x5E37 JUMP JUMPDEST SWAP1 POP PUSH2 0x591E DUP10 DUP5 PUSH2 0x53F1 JUMP JUMPDEST DUP2 MSTORE PUSH2 0x592D DUP10 PUSH1 0x20 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0x20 DUP3 ADD MSTORE PUSH2 0x593F DUP10 PUSH1 0x40 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 DUP4 ADD CALLDATALOAD PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 DUP4 ADD CALLDATALOAD PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 DUP4 ADD CALLDATALOAD PUSH1 0xA0 DUP3 ADD MSTORE PUSH2 0x596F DUP10 PUSH1 0xC0 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0xC0 DUP3 ADD MSTORE PUSH2 0x5981 DUP10 PUSH1 0xE0 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0xE0 DUP3 ADD MSTORE PUSH2 0x100 DUP1 DUP5 ADD CALLDATALOAD DUP4 DUP2 GT ISZERO PUSH2 0x5999 JUMPI DUP7 DUP8 REVERT JUMPDEST PUSH2 0x59A5 DUP12 DUP3 DUP8 ADD PUSH2 0x536A JUMP JUMPDEST DUP3 DUP5 ADD MSTORE POP POP DUP1 SWAP7 POP POP PUSH1 0x20 DUP8 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x59C2 JUMPI DUP4 DUP5 REVERT JUMPDEST POP PUSH2 0x59CF DUP8 DUP3 DUP9 ADD PUSH2 0x52A9 JUMP JUMPDEST SWAP5 SWAP8 SWAP5 SWAP7 POP POP POP POP PUSH1 0x40 DUP4 ADD CALLDATALOAD SWAP3 PUSH1 0x60 ADD CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x59F7 JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5A0F JUMPI DUP1 DUP2 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5A28 JUMPI DUP2 DUP3 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x5A4C JUMPI DUP2 DUP3 REVERT JUMPDEST DUP5 MLOAD SWAP4 POP PUSH1 0x20 DUP6 ADD MLOAD SWAP3 POP PUSH1 0x40 DUP6 ADD MLOAD SWAP2 POP PUSH1 0x60 DUP6 ADD MLOAD PUSH2 0x5A6C DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP4 SWAP7 SWAP3 SWAP6 POP SWAP1 SWAP4 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5A88 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x15DE DUP2 PUSH2 0x5E93 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5AA5 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 MLOAD PUSH2 0x5AB0 DUP2 PUSH2 0x5E93 JUMP JUMPDEST PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD MLOAD SWAP3 SWAP5 SWAP3 SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE PUSH1 0x20 DUP1 DUP6 ADD SWAP5 POP DUP1 DUP5 ADD DUP4 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x5AFC JUMPI DUP2 MLOAD DUP8 MSTORE SWAP6 DUP3 ADD SWAP6 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x5AE0 JUMP JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x5B2C JUMPI PUSH1 0x20 DUP2 DUP6 ADD DUP2 ADD MLOAD DUP7 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0x5B10 JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0x5B3D JUMPI DUP3 PUSH1 0x20 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x24 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 DUP4 CALLDATACOPY SWAP2 ADD SWAP1 DUP2 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1901 PUSH1 0xF0 SHL DUP2 MSTORE PUSH1 0x2 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x22 DUP3 ADD MSTORE PUSH1 0x42 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 DUP5 DUP3 ADD SWAP1 PUSH1 0x40 DUP6 ADD SWAP1 DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x5BEA JUMPI DUP4 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 MSTORE SWAP3 DUP5 ADD SWAP3 SWAP2 DUP5 ADD SWAP2 PUSH1 0x1 ADD PUSH2 0x5BC5 JUMP JUMPDEST POP SWAP1 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 PUSH1 0x40 SWAP1 DUP2 DUP6 ADD SWAP1 DUP7 DUP5 ADD DUP6 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x5C80 JUMPI DUP2 MLOAD DUP1 MLOAD PUSH1 0x4 DUP2 LT PUSH2 0x5C29 JUMPI INVALID JUMPDEST DUP6 MSTORE DUP1 DUP8 ADD MLOAD PUSH2 0x5C3B DUP9 DUP8 ADD DUP3 PUSH2 0x5AC0 JUMP JUMPDEST POP DUP6 DUP2 ADD MLOAD DUP7 DUP7 ADD MSTORE PUSH1 0x60 DUP1 DUP3 ADD MLOAD PUSH2 0x5C56 DUP3 DUP9 ADD DUP3 PUSH2 0x5AC0 JUMP JUMPDEST POP POP PUSH1 0x80 SWAP1 DUP2 ADD MLOAD SWAP1 PUSH2 0x5C6B DUP7 DUP3 ADD DUP4 PUSH2 0x5AC0 JUMP JUMPDEST POP POP PUSH1 0xA0 SWAP4 SWAP1 SWAP4 ADD SWAP3 SWAP1 DUP6 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x5C13 JUMP JUMPDEST POP SWAP2 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x15DE PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x5ACD JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 DUP3 MSTORE PUSH2 0x5CB3 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x5ACD JUMP JUMPDEST DUP3 DUP2 SUB PUSH1 0x20 DUP5 ADD MSTORE PUSH2 0x185C DUP2 DUP6 PUSH2 0x5ACD JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 ISZERO ISZERO DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 DUP4 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x20 DUP5 ADD MSTORE AND PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP6 DUP7 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP5 DUP6 AND PUSH1 0x20 DUP8 ADD MSTORE SWAP3 SWAP1 SWAP4 AND PUSH1 0x40 DUP6 ADD MSTORE PUSH1 0x60 DUP5 ADD MSTORE PUSH1 0x80 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0xA0 DUP3 ADD MSTORE PUSH1 0xC0 ADD SWAP1 JUMP JUMPDEST SWAP5 DUP6 MSTORE PUSH1 0x20 DUP6 ADD SWAP4 SWAP1 SWAP4 MSTORE PUSH1 0x40 DUP5 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x60 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP4 DUP3 MSTORE PUSH1 0x40 PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1656 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x5B07 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP4 DUP5 MSTORE PUSH1 0xFF SWAP3 SWAP1 SWAP3 AND PUSH1 0x20 DUP5 ADD MSTORE PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x15DE PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x5B07 JUMP JUMPDEST PUSH1 0x0 DUP4 DUP3 MSTORE PUSH1 0x40 PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1656 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x5ACD JUMP JUMPDEST SWAP3 DUP4 MSTORE SWAP1 ISZERO ISZERO PUSH1 0x20 DUP4 ADD MSTORE PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP4 DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0xFF SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x5E56 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x5E74 JUMPI DUP1 DUP2 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0xBFA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0xBFA JUMPI PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB4 0xE5 POP PUSH25 0x37F90EBE851B3B7805B576DAD987FB40B27B1310B6721068 0x1E BLOCKHASH DUP5 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER PUSH12 0xFB689528FA96EC1AD670AD6D PUSH1 0x64 0xBE BYTE 0xE9 PUSH12 0xFD5D2EE35C837FD0FE0C1195 SWAP11 ",
+ "sourceMap": "2683:50501:54:-:0;;;3884:794;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4549:26;;;;-1:-1:-1;;4495:27:54;4549:26;4495:19;:27::i;:::-;4430:29;4452:6;4430:21;:29::i;:::-;4363:6;:29;;;3955:6;:12;;;3981:33;4028:6;:11;;;4053:6;:13;;;4080:42;4094:6;:13;;;4116:4;4080:13;;;:42;;:::i;:::-;4150:13;;;;:20;4173:1;4150:24;-1:-1:-1;4136:39:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4136:39:54;;4189:6;:24;;;4227:6;:26;;;4267:6;:27;;;4308:6;:12;;;5893:19:28;5914:20;5807:4;5813:6;5821:5;5858;5767:10;-1:-1:-1;;;;;5759:19:28;5751:28;;1749:9:26;1301:4:51;2020:280:49;;;;;;;;;;;;;-1:-1:-1;;;2020:280:49;;;1713:9:26;1724:11;2126:5:50;2118;:13;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2141:17:50;;;;:7;;:17;;;;;:::i;:::-;-1:-1:-1;;2168:9:50;:14;;-1:-1:-1;;2168:14:50;2180:2;2168:14;;;-1:-1:-1;2100:22:49;;;;;;;2085:37;;2150:25;;;;;2132:43;;-1:-1:-1;2198:95:49;2185:108;;2049:46:37;;-1:-1:-1;;;;;;;1724:14:29;;;;;2168::50;1724::29;1770::26;;;;::::2;::::0;-1:-1:-1;2578:93:44;;-1:-1:-1;2284:7:44;2587:49;;;10056:3:10;2578:8:44;:93::i;:::-;2681:96;2352:7;2690:51;;;10120:3:10;2681:8:44;:96::i;:::-;2817:15;:37;;;2865:40;;;;2938:41;2915:64;;5959:13:28;;5950:57:::4;::::0;3201:1:::4;-1:-1:-1::0;5959:28:28::4;5921:3:10;5950:8:28;:57::i;:::-;6017:61;6043:15;:13;:15::i;:::-;6026:13:::0;;:32:::4;;5969:3:10;6017:8:28;:61::i;:::-;6626:40;6659:6;6626:32;;;;;:40;;:::i;:::-;6677;6699:17:::0;6677:21:::4;:40::i;:::-;6745:34;::::0;-1:-1:-1;;;6745:34:28;;6728:14:::4;::::0;-1:-1:-1;;;;;6745:18:28;::::4;::::0;-1:-1:-1;;6745:34:28::4;::::0;6764:14;;6745:34:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6790:51;::::0;-1:-1:-1;;;6790:51:28;;6728;;-1:-1:-1;;;;;;6790:20:28;::::4;::::0;::::4;::::0;:51:::4;::::0;6728;;6819:6;;6827:13;;6790:51:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;-1:-1:-1::0;;;6941:16:28::4;::::0;;;-1:-1:-1;6992:32:28::4;::::0;;-1:-1:-1;;;6992:32:28;;;;-1:-1:-1;;;;;6992:30:28;::::4;::::0;::::4;::::0;:32:::4;::::0;;::::4;::::0;::::4;::::0;;;;;;;;:30;:32;::::4;;::::0;::::4;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6967:57;::::0;-1:-1:-1;;;;;;6967:57:28;::::4;::::0;-1:-1:-1;2735:71:60;;-1:-1:-1;;;;2744:45:60;;;;-1:-1:-1;6565:3:10;;-1:-1:-1;2735:8:60;;-1:-1:-1;;;;;2735:71:60:i;:::-;2816;1319:4:59;2825:45:60;;;6610:3:10;2816:8:60;:71::i;:::-;2898:18;2919:59;2928:22;1372:3:59;2919:8:60;;;;;:59;;:::i;:::-;2898:80;-1:-1:-1;2988:33:60;2898:80;2988:21;:33::i;:::-;-1:-1:-1;;4468:23:58;;:30;4508:62;1565:1;4517:33;;5921:3:10;4508:8:58;:62::i;:::-;4580:86;4630:1;4616:11;:15;4633:6;:25;;;:32;4580:35;;;;;:86;;:::i;:::-;4677:26;;;;4839:23;;:26;;:23;;:26;;;;;;;;;;;;;;4829:36;;-1:-1:-1;;;;;;4829:36:58;;;4885:23;;:26;;-1:-1:-1;;4885:26:58;;;;;;;;;;;;;;;;4875:36;;-1:-1:-1;;;;;;4875:36:58;;;4931:23;;:26;;4955:1;;4931:26;;;;;;;;;;;;;;;;4921:36;;-1:-1:-1;;;;;;4921:36:58;;;4991:1;4977:15;;:56;;5031:1;4977:56;;;4995:23;;:26;;5019:1;;4995:26;;;;;;;;;;;;4977:56;4967:66;;-1:-1:-1;;;;;;4967:66:58;;;5067:1;5053:15;;:56;;5107:1;5053:56;;;5071:23;;:26;;5095:1;;5071:26;;;;;;;;;;;;5053:56;5043:66;;-1:-1:-1;;;;;;5043:66:58;;;5143:1;5129:15;;:56;;5183:1;5129:56;;;5147:23;;:26;;5171:1;;5147:26;;;;;;;;;;;;5129:56;5119:66;;-1:-1:-1;;;;;;5119:66:58;;;5236:23;;:26;;5214:49;;5236:23;;;:26;;;;;;;;;;5214:21;;;:49;;:::i;:::-;5196:67;;5313:23;;:26;;5291:49;;5313:23;5337:1;;5313:26;;;;;5291:49;5273:67;;5390:23;;:26;;5368:49;;5390:23;5414:1;;5390:26;;;;;5368:49;5350:67;;5459:1;5445:15;;:71;;5515:1;5445:71;;;5463:49;5485:6;:23;;;5509:1;5485:26;;;;;;;5463:49;5427:89;;5558:1;5544:15;;:71;;5614:1;5544:71;;;5562:49;5584:6;:23;;;5608:1;5584:26;;;;;;;5562:49;5526:89;;5657:1;5643:15;;:71;;5713:1;5643:71;;;5661:49;5683:6;:23;;;5707:1;5683:26;;;;;;;5661:49;5625:89;;6197:23;;:30;-1:-1:-1;;6197:34:58;6168:248;6256:1;6245:8;:12;:64;;;;-1:-1:-1;6261:23:58;;:33;;6304:4;;6261:23;6285:8;;6261:33;;;;;;;;;;;;-1:-1:-1;;;;;6261:48:58;;6245:64;6168:248;;;-1:-1:-1;;6323:10:58;6168:248;;;6425:20;;;;6982:23;;:30;6923:36;;-1:-1:-1;6962:51:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6962:51:58;-1:-1:-1;6923:90:58;-1:-1:-1;7024:30:58;;7220:914;7244:23;;:30;7240:34;;7220:914;;;7303:8;7299:1;:12;7295:302;;;7350:6;:25;;;7376:1;7350:28;;;;;;;;;;;;;;7331:13;7345:1;7331:16;;;;;;;;-1:-1:-1;;;;;7331:47:58;;;:16;;;;;;;;;;;:47;7295:302;;;7408:8;7403:1;:13;7399:198;;7455:6;:25;;;7485:1;7481;:5;7455:32;;;;;;;7399:198;7574:8;;7399:198;7739:16;;7688:150;;7773:1;;7739:13;;7753:1;;7739:16;;;;;;;;;;;;-1:-1:-1;;;;;7739:36:58;;;7823:1;4076;7793:31;7688:22;:33;;;;;;:150;;;;;:::i;:::-;7663:175;;7945:6;:37;;;:77;;;;-1:-1:-1;7986:16:58;;8020:1;;7986:13;;8000:1;;7986:16;;;;;;;;;;;;-1:-1:-1;;;;;7986:36:58;;;7945:77;7941:183;;;8067:42;8101:4;8107:1;8067:22;:33;;;;;;:42;;;;;:::i;:::-;8042:67;;7941:183;7276:3;;7220:914;;;-1:-1:-1;8276:37:58;;;;8246:67;;;;;;8456:16;;:13;;8470:1;;8456:16;;;;;;;;;;;;;;8439:33;;-1:-1:-1;;;;;;8439:33:58;;;8499:16;;;;-1:-1:-1;;8499:16:58;;;;;;;;;;;;;;;;8482:33;;-1:-1:-1;;;;;;8482:33:58;;;8542:16;;;;8556:1;;8542:16;;;;;;;;;;;;;;;;8525:33;;-1:-1:-1;;;;;;8525:33:58;;;8586:20;;8609:1;-1:-1:-1;8585:64:58;;8647:1;8585:64;;;8614:13;8628:1;8614:16;;;;;;;;;;;;;;8585:64;8568:81;;-1:-1:-1;;;;;;8568:81:58;;;8677:20;;8700:1;-1:-1:-1;8676:64:58;;8738:1;8676:64;;;8705:13;8719:1;8705:16;;;;;;;;;;;;;;8676:64;8659:81;;-1:-1:-1;;;;;;8659:81:58;;;8768:20;;8791:1;-1:-1:-1;8767:64:58;;8829:1;8767:64;;;8796:13;8810:1;8796:16;;;;;;;;;;;;;;8767:64;8750:81;;-1:-1:-1;;;;;;8750:81:58;;;8842:48;;-1:-1:-1;;2581:17:57;;:24;2619;;;;;:31;2664:34;;;;:41;2532:183;;-1:-1:-1;2581:24:57;;-1:-1:-1;2619:31:57;2664:41;2532:35;;;;;:183;;:::i;:::-;2775:17;;2726:32;;2761:46;;2801:4;2761:13;:46::i;:::-;2872:23;;;;-1:-1:-1;;;2872:27:57;2843:234;2924:1;2913:8;:12;:57;;;;-1:-1:-1;2929:26:57;;2965:4;;2929:16;;2946:8;;2929:26;;;;;;;;;;;;-1:-1:-1;;;;;2929:41:57;;2913:57;2843:234;;;-1:-1:-1;;2984:10:57;2843:234;;;3087:15;3121:9;3116:626;3140:17;;:24;3136:28;;3116:626;;;3194:8;3189:1;:13;3185:63;;;3232:1;3222:11;;3185:63;3303:24;;;;:27;;3274:11;;;;3262:9;;3274:1;;3303:27;;;;;;;;;;;;-1:-1:-1;;;;;3303:47:57;;3299:433;;3370:92;3392:1;3395:10;:24;;;3420:1;3395:27;;;;;;;;;;;;;;3424:10;:34;;;3459:1;3424:37;;;;;;;;;;;;;;3370:21;;;:92;;:::i;:::-;3510:10;:24;;;3535:1;3510:27;;;;;;;;;;;;;;-1:-1:-1;;;;;3486:91:57;3507:1;3486:91;3539:10;:34;;;3574:1;3539:37;;;;;;;;;;;;;;3486:91;;;;;;:::i;:::-;;;;;;;;3700:17;3715:1;3700:14;:17::i;:::-;-1:-1:-1;3166:3:57;;3116:626;;;-1:-1:-1;;;;;;;3418:65:34;;3494:54;;;;;;-1:-1:-1;3558:42:34;;;-1:-1:-1;;;;;;3558:42:34;;;3611:67;3558:42;4446:1:17;3611:23:34;:67::i;:::-;3688:65;3712:19;4485:1:17;3688:23:34;:65::i;:::-;3768:25;3764:776;;;3809:66;3833:19;4359:1:17;3809:23:34;:66::i;:::-;3764:776;;;3961:69;;-1:-1:-1;;;3961:69:34;;3906:191;;-1:-1:-1;;;;;3961:47:34;;;;;:69;;4359:1:17;;3961:69:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3932:98;;;14240:3:10;3906:8:34;:191::i;:::-;4359:1:17;-1:-1:-1;;;;;;;;;;;4503:25:34;4447:82;;;;;;:::i;:::-;;;;;;;;3764:776;4705:25;:57;;4737:25;4705:57;;;4733:1;4705:57;4671:91;;-1:-1:-1;;;4657:14:54::5;::::0;::::5;::::0;4646:25;;::::5;::::0;:8:::5;::::0;:25:::5;::::0;;::::5;::::0;::::5;:::i;:::-;;3884:794:::0;2683:50501;;4762:408;4866:44;;:::i;:::-;4945:218;;;;;;;;5009:6;:13;;;4945:218;;;;5055:6;:20;;;4945:218;;;;5118:6;:30;;;4945:218;;;4926:237;;4762:408;;;;:::o;5254:476::-;5360:48;;:::i;:::-;5443:280;;;;;;;;5521:42;5535:6;:13;;;5557:4;5521:13;;;:42;;:::i;:::-;5443:280;;;;5601:6;:20;;;5443:280;;;;5671:6;:37;;;5443:280;;;;;5424:299;;5254:476;;;:::o;1536:425:41:-;1663:13;;1611:22;;1679:1;1663:17;-1:-1:-1;1650:31:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1650:31:41;;1641:40;;1692:6;:13;1709:1;1692:18;1688:81;;;1734:5;1722:6;1729:1;1722:9;;;;;;;;-1:-1:-1;;;;;1722:17:41;;;:9;;;;;;;;;;;:17;1749:13;;1688:81;1799:13;;1790:86;1818:1;1814;:5;:30;;;;-1:-1:-1;1823:13:41;;-1:-1:-1;;;;;1823:21:41;;;:6;;-1:-1:-1;;1830:5:41;;;1823:13;;;;;;;;;;;;-1:-1:-1;;;;;1823:21:41;;1814:30;1790:86;;;1863:6;1874:1;1870;:5;1863:13;;;;;;;;;;;;;;1851:6;1858:1;1851:9;;;;;;;;-1:-1:-1;;;;;1851:25:41;;;;:9;;;;;;;;;;;:25;-1:-1:-1;;1846:3:41;1790:86;;;1887:9;1882:53;1906:1;1902;:5;1882:53;;;1926:6;1933:1;1926:9;;;;;;;;;;;;;;1914:6;1921:1;1914:9;;;;;;;;-1:-1:-1;;;;;1914:21:41;;;;:9;;;;;;;;;;;:21;-1:-1:-1;1909:3:41;1882:53;;;;1953:5;1941:6;1948:1;1941:9;;;;;;;;-1:-1:-1;;;;;1941:17:41;;;:9;;;;;;;;;;;:17;-1:-1:-1;1536:425:41;;;;;:::o;918:101:10:-;987:9;982:34;;998:18;1006:9;998:7;:18::i;:::-;918:101;;:::o;9036:224:58:-;9220:33;9036:224;:::o;1245:274:42:-;1455:5;1479:33;1455:5;1479:19;:33::i;8894:509:28:-;8979:89;9009:26;:24;:26::i;:::-;8988:47;;;6091:3:10;8979:8:28;:89::i;:::-;9078;9108:26;:24;:26::i;:::-;9087:47;;;6030:3:10;9078:8:28;:89::i;:::-;9190:147;9224:17;4326:3;4561:2;9190:9;;:20;;;;;;:147;;;;;;:::i;:::-;9178:9;:159;9353:43;;;;;;9378:17;;9353:43;:::i;:::-;;;;;;;;8894:509;:::o;2038:180:48:-;2096:7;2127:5;;;2142:51;2151:6;;;:20;;;2170:1;2165;2161;:5;;;;;;:10;2151:20;5269:1:10;2142:8:48;:51::i;:::-;2210:1;2038:180;-1:-1:-1;;;2038:180:48:o;7584::60:-;7648:71;7672:5;;7686:15;;7648:23;:71::i;:::-;7734:23;7751:5;7734:23;;;;;;:::i;920:131:42:-;998:46;1007:6;;;5804:3:10;998:8:42;:46::i;27427:510:28:-;27495:7;27544:4;-1:-1:-1;;;;;27518:31:28;;;27514:83;;;-1:-1:-1;945:4:46;27565:21:28;;27514:83;27687:21;27725:5;-1:-1:-1;;;;;27711:30:28;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;27687:56;;;;27818:26;27847:27;27856:2;27860:13;27847:8;;;;;:27;;:::i;:::-;27908:2;:22;945:4:46;27891:39:28;;;-1:-1:-1;;;;27427:510:28:o;6759:280:45:-;6874:7;2246:10;6941:17;;6939:20;6923:36;;6952:6;7007:5;:13;;7019:1;7007:13;;;7015:1;7007:13;6999:22;;:32;;6977:55;;6759:280;-1:-1:-1;;;;6759:280:45:o;1057:182:42:-;1176:56;1190:1;1185;:6;:16;;;;;1200:1;1195;:6;1185:16;5804:3:10;1176:8:42;:56::i;:::-;1057:182;;;:::o;9590:364:57:-;9735:12;9750:8;-1:-1:-1;;;;;9750:16:57;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9778:13;9794:23;;;:16;:23;;;;;;;;;9735:33;;-1:-1:-1;9854:43:57;;9794:23;;9735:33;;9888:8;;9854:27;;;;;:43;;:::i;:::-;9828:23;;;;:16;:23;;;;;;;:69;;;;9913:34;9845:5;;9913:34;;;;9942:4;;9913:34;:::i;:::-;;;;;;;;9590:364;;;;;:::o;5185:161::-;5243:13;5259:23;;;:16;:23;;;;;;;;;;5318:21;;5259:23;;5318:19;;;;;:21;;:::i;:::-;5292:23;;;;:16;:23;;;;;;:47;;;;-1:-1:-1;5185:161:57:o;7444:665:34:-;7588:49;;-1:-1:-1;;;7588:49:34;;7565:20;;-1:-1:-1;;;;;7588:40:34;;;-1:-1:-1;;7588:49:34;;7629:7;;7588:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7565:72;-1:-1:-1;7652:31:34;7648:383;;7716:23;:12;:21;;;;;:23;;:::i;:::-;7699:6;:40;;-1:-1:-1;;7699:40:34;-1:-1:-1;7699:40:34;;;;;;;;;;7648:383;;;4446:1:17;7760:7:34;:32;7756:275;;;7826:23;:12;:21;;;;;:23;;:::i;:::-;7808:6;:41;;-1:-1:-1;;7808:41:34;-1:-1:-1;7808:41:34;;;;-1:-1:-1;7808:41:34;;;;;;;7756:275;;;4485:1:17;7870:7:34;:30;7866:165;;;7932:23;:12;:21;;;;;:23;;:::i;:::-;7916:6;:39;;-1:-1:-1;7916:39:34;;;;-1:-1:-1;7916:39:34;-1:-1:-1;7916:39:34;;;;;;;;;7866:165;;;7986:34;12459:3:10;7986:7:34;:34::i;:::-;8080:7;-1:-1:-1;;;;;;;;;;;8089:12:34;8046:56;;;;;;:::i;:::-;;;;;;;;7444:665;;;:::o;1437:126:10:-;1484:28;1492:9;-1:-1:-1;;;1484:7:10;:28::i;:::-;1437:126;:::o;1525:374:42:-;1621:1;1606:5;:12;:16;1602:53;;;1638:7;;1602:53;1665:16;1684:5;1690:1;1684:8;;;;;;;;;;;;;;1665:27;;1707:9;1719:1;1707:13;;1702:191;1726:5;:12;1722:1;:16;1702:191;;;1759:15;1777:5;1783:1;1777:8;;;;;;;;;;;;;;;;;;;-1:-1:-1;1799:51:42;-1:-1:-1;;;;;1808:18:42;;;;;;;5692:3:10;1799:8:42;:51::i;:::-;1875:7;-1:-1:-1;1740:3:42;;1702:191;;9409:124:28;3365:4;9409:124;:::o;9539:::-;3438:4;9539:124;:::o;2512:395:45:-;2657:7;2676:49;2700:5;2707:6;2715:9;2676:23;:49::i;:::-;-1:-1:-1;2770:1:45;2752:14;;-1:-1:-1;;2751:20:45;2829:14;;2827:17;2811:33;;;;2884:15;;2862:38;;2512:395::o;8082:570:60:-;8567:78;8588:7;2352:3;2472:2;8567:20;;;;;:78;;:::i;:::-;8470:82;8491:9;2295:3;2472:2;8470:20;;;;;:82;;:::i;:::-;8379:76;8400:8;2237:2;2411;8379:20;;;;;:76;;:::i;:::-;8284:80;8305:10;2181:1;2411:2;8284:20;;;;;:80;;:::i;:::-;:171;:268;:361;8245:24;:400;-1:-1:-1;;;;8082:570:60:o;1193:166:48:-;1251:7;1270:37;1279:6;;;;5172:1:10;1270:8:48;:37::i;:::-;-1:-1:-1;1329:5:48;;;1193:166::o;3420:590:36:-;3551:7;3570:67;1895:2;3579:24;;;:29;8253:3:10;3570:8:36;:67::i;:::-;3711:292;3920:15;:26;;1841:3;1951:2;3711:180;3938:8;1772:3;1951:2;3711:180;:5;3745:4;1646:1;1895:2;3711:33;;;;;:85;;:::i;:::-;:113;;;;;;:180;;;;;;:::i;:292::-;3692:311;3420:590;-1:-1:-1;;;;3420:590:36:o;2499:175::-;2560:7;2586:81;2603:21;2618:5;2603:14;:21::i;:::-;1703:2;1895;2586:5;:16;;;;;;:81;;;;;;:::i;1410:186:52:-;1466:6;1484:75;-1:-1:-1;1493:25:52;;;12403:3:10;1484:8:52;:75::i;:::-;-1:-1:-1;1583:5:52;1410:186::o;1670:3378:10:-;-1:-1:-1;;;1732:18:10;4383:79;;;4601:66;4595:4;4588:80;4743:1;4737:4;4730:15;2871:2;2904:18;;;2949;;;2876:4;2945:29;;;3747:1;3838:14;2856:18;;;;3827:26;;;;2997:18;;;;3044;;;3040:29;;3859:2;3855:17;3823:50;3737:4;3743:18;;;;;;3733:29;3729:2;3725:38;3802:72;;;;3797:3;3793:82;4810:4;4803:26;1761:14;;;;;5036:3;;5026:14;7061:607:45;7197:44;7215:3;7206:12;;5640:3:10;7197:8:45;:44::i;:::-;7406:90;7428:1;7415:9;:14;;:58;;;;;7446:27;7455:3;7466:6;7460:3;:12;7446:8;;;;;:27;;:::i;:::-;7433:9;:40;;7415:58;5640:3:10;7406:8:45;:90::i;:::-;7605:56;7614:18;;;:23;12057:3:10;7605:8:45;:56::i;3883:240::-;4006:7;4025:49;4049:5;4056:6;4064:9;4025:23;:49::i;:::-;-1:-1:-1;;4100:15:45;;3883:240::o;2038:157:36:-;2100:7;2126:62;1646:1;1895:2;2126:5;:16;;;;;;:62;;;;;:::i;1928:104:48:-;1986:7;2016:1;2012;:5;:13;;2024:1;2012:13;;;-1:-1:-1;2020:1:48;;2005:20;-1:-1:-1;1928:104:48:o;4847:203:45:-;5041:1;5023:14;;-1:-1:-1;;5022:20:45;5003:14;;;4995:48;;4847:203::o;2683:50501:54:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2683:50501:54;;;-1:-1:-1;2683:50501:54;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;5:134:-1;83:13;;101:33;83:13;101:33;:::i;172:767::-;;315:3;308:4;300:6;296:17;292:27;282:2;;-1:-1;;323:12;282:2;363:6;357:13;385:95;400:79;472:6;400:79;:::i;:::-;385:95;:::i;:::-;508:21;;;376:104;-1:-1;552:4;565:14;;;;540:17;;;654;;;645:27;;;;642:36;-1:-1;639:2;;;691:1;;681:12;639:2;716:1;701:232;726:6;723:1;720:13;701:232;;;2896:6;2890:13;2908:48;2950:5;2908:48;:::i;:::-;794:76;;884:14;;;;912;;;;748:1;741:9;701:232;;;705:14;;;;;275:664;;;;:::o;980:785::-;;1129:3;1122:4;1114:6;1110:17;1106:27;1096:2;;-1:-1;;1137:12;1096:2;1177:6;1171:13;1199:101;1214:85;1292:6;1214:85;:::i;1199:101::-;1328:21;;;1190:110;-1:-1;1372:4;1385:14;;;;1360:17;;;1474;;;1465:27;;;;1462:36;-1:-1;1459:2;;;1511:1;;1501:12;1459:2;1536:1;1521:238;1546:6;1543:1;1540:13;1521:238;;;3497:6;3491:13;3509:54;3557:5;3509:54;:::i;:::-;1614:82;;1710:14;;;;1738;;;;1568:1;1561:9;1521:238;;1791:722;;1919:3;1912:4;1904:6;1900:17;1896:27;1886:2;;-1:-1;;1927:12;1886:2;1967:6;1961:13;1989:80;2004:64;2061:6;2004:64;:::i;1989:80::-;2097:21;;;1980:89;-1:-1;2141:4;2154:14;;;;2129:17;;;2243;;;2234:27;;;;2231:36;-1:-1;2228:2;;;2280:1;;2270:12;2228:2;2305:1;2290:217;2315:6;2312:1;2309:13;2290:217;;;7531:13;;2383:61;;2458:14;;;;2486;;;;2337:1;2330:9;2290:217;;2521:128;2596:13;;15961;;15954:21;18157:32;;18147:2;;18203:1;;18193:12;3747:444;;3860:3;3853:4;3845:6;3841:17;3837:27;3827:2;;-1:-1;;3868:12;3827:2;3902:13;;-1:-1;14535:30;;14532:2;;;-1:-1;;14568:12;14532:2;14709:4;3930:65;-1:-1;;14641:9;14622:17;;14618:33;14699:15;;3930:65;:::i;:::-;3921:74;;4015:6;4008:5;4001:21;4119:3;14709:4;4110:6;4043;4101:16;;4098:25;4095:2;;;4136:1;;4126:12;4095:2;17645:1;17652:101;17666:6;17663:1;17660:13;17652:101;;;17733:11;;;;;17727:18;17714:11;;;;;17707:39;17681:10;;17652:101;;;17768:6;17765:1;17762:13;17759:2;;;17645:1;14709:4;17824:6;4077:5;17815:16;;17808:27;17759:2;;;;3820:371;;;;:::o;7731:263::-;;7846:2;7834:9;7825:7;7821:23;7817:32;7814:2;;;-1:-1;;7852:12;7814:2;-1:-1;2734:13;;7808:186;-1:-1;7808:186::o;8001:325::-;;8147:2;8135:9;8126:7;8122:23;8118:32;8115:2;;;-1:-1;;8153:12;8115:2;3304:6;3298:13;3316:64;3374:5;3316:64;:::i;8333:404::-;;8479:2;8467:9;8458:7;8454:23;8450:32;8447:2;;;-1:-1;;8485:12;8447:2;8530:24;;-1:-1;8563:30;;;8560:2;;;-1:-1;;8596:12;8560:2;8704:6;8693:9;8689:22;;;4378:6;;4366:9;4361:3;4357:19;4353:32;4350:2;;;-1:-1;;4388:12;4350:2;4416:22;4378:6;4416:22;:::i;:::-;4407:31;;4521:75;4592:3;4568:22;4521:75;:::i;:::-;4503:16;4496:101;4706:100;4802:3;8479:2;4782:9;4778:22;4706:100;:::i;:::-;8479:2;4692:5;4688:16;4681:126;4889:2;4878:9;4874:18;4868:25;8574:18;4905:6;4902:30;4899:2;;;-1:-1;;4935:12;4899:2;4980:70;5046:3;5037:6;5026:9;5022:22;4980:70;:::i;:::-;4889:2;4966:5;4962:16;4955:96;;5135:2;5124:9;5120:18;5114:25;8574:18;5151:6;5148:30;5145:2;;;-1:-1;;5181:12;5145:2;5226:70;5292:3;5283:6;5272:9;5268:22;5226:70;:::i;:::-;5135:2;5212:5;5208:16;5201:96;;5381:3;5370:9;5366:19;5360:26;8574:18;5398:6;5395:30;5392:2;;;-1:-1;;5428:12;5392:2;5473:100;5569:3;5560:6;5549:9;5545:22;5473:100;:::i;:::-;5381:3;5459:5;5455:16;5448:126;;5665:3;5654:9;5650:19;5644:26;8574:18;5682:6;5679:30;5676:2;;;-1:-1;;5712:12;5676:2;5757:106;5859:3;5850:6;5839:9;5835:22;5757:106;:::i;:::-;5665:3;5743:5;5739:16;5732:132;;5965:3;5954:9;5950:19;5944:26;8574:18;5982:6;5979:30;5976:2;;;-1:-1;;6012:12;5976:2;6057:85;6138:3;6129:6;6118:9;6114:22;6057:85;:::i;:::-;5965:3;6043:5;6039:16;6032:111;;6264:57;6317:3;6230;6297:9;6293:22;6264:57;:::i;:::-;6230:3;6246:16;;6239:83;6401:3;6469:22;;;7531:13;6417:18;;;6410:88;6572:3;6640:22;;;7531:13;6588:18;;;6581:88;6745:3;6813:22;;;7531:13;6761:18;;;6754:88;6919:3;6987:22;;;7531:13;6935:18;;;6928:88;7078:3;7114:60;7170:3;7146:22;;;7114:60;:::i;:::-;7094:18;;;7087:88;7260:3;7245:19;;;7239:26;7274:30;;;7271:2;;;-1:-1;;7307:12;7271:2;7354:70;7420:3;7411:6;7400:9;7396:22;7354:70;:::i;:::-;7334:18;;;7327:98;;;;-1:-1;7338:5;8441:296;-1:-1;;;;;8441:296::o;9014:259::-;;9127:2;9115:9;9106:7;9102:23;9098:32;9095:2;;;-1:-1;;9133:12;9095:2;7676:6;7670:13;17115:4;19414:5;17104:16;19391:5;19388:33;19378:2;;-1:-1;;19425:12;11893:770;;12191:2;12180:9;12176:18;11426:5;11403:3;11396:37;12309:2;12191;12309;12298:9;12294:18;12287:48;12349:123;10775:5;15165:12;15741:6;15736:3;15729:19;15769:14;12180:9;15769:14;10787:93;;12309:2;10966:5;14846:14;10978:21;;-1:-1;11005:290;11030:6;11027:1;11024:13;11005:290;;;17226:52;11097:6;11091:13;17226:52;:::i;:::-;11521:65;;15454:14;;;;9646;;;;11052:1;11045:9;11005:290;;;-1:-1;;12510:20;;;12505:2;12490:18;;12483:48;15165:12;;15729:19;;;15769:14;;;;-1:-1;14846:14;;;;-1:-1;10223:260;10248:6;10245:1;10242:13;10223:260;;;15859:24;10315:6;10309:13;15859:24;:::i;:::-;9735:37;;9434:14;;;;15454;;;;11052:1;10263:9;10223:260;;;-1:-1;12537:116;;12162:501;-1:-1;;;;;;;;12162:501::o;12670:264::-;12818:2;12803:18;;17948:1;17938:12;;17928:2;;17954:9;17928:2;11690:71;;;12789:145;:::o;12941:222::-;11396:37;;;13068:2;13053:18;;13039:124::o;13170:256::-;13232:2;13226:9;13258:17;;;13354:22;;;-1:-1;13318:34;;13315:62;13312:2;;;13390:1;;13380:12;13312:2;13232;13399:22;13210:216;;-1:-1;13210:216::o;13433:319::-;;-1:-1;13596:30;;13593:2;;;-1:-1;;13629:12;13593:2;-1:-1;13674:4;13662:17;;;13727:15;;13530:222::o;15797:91::-;-1:-1;;;;;16899:54;;15842:46::o;17977:117::-;-1:-1;;;;;16899:54;;18036:35;;18026:2;;18085:1;;18075:12;18020:74;2683:50501:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {
+ "2030": [
+ {
+ "length": 32,
+ "start": 4480
+ }
+ ],
+ "2531": [
+ {
+ "length": 32,
+ "start": 3071
+ }
+ ],
+ "2533": [
+ {
+ "length": 32,
+ "start": 4819
+ }
+ ],
+ "3869": [
+ {
+ "length": 32,
+ "start": 4444
+ }
+ ],
+ "4434": [
+ {
+ "length": 32,
+ "start": 2205
+ },
+ {
+ "length": 32,
+ "start": 2248
+ },
+ {
+ "length": 32,
+ "start": 2291
+ }
+ ],
+ "4458": [
+ {
+ "length": 32,
+ "start": 2333
+ }
+ ],
+ "4460": [
+ {
+ "length": 32,
+ "start": 3648
+ }
+ ],
+ "4973": [
+ {
+ "length": 32,
+ "start": 4280
+ }
+ ],
+ "6030": [
+ {
+ "length": 32,
+ "start": 6983
+ }
+ ],
+ "6032": [
+ {
+ "length": 32,
+ "start": 7019
+ }
+ ],
+ "8773": [
+ {
+ "length": 32,
+ "start": 11605
+ }
+ ],
+ "8775": [
+ {
+ "length": 32,
+ "start": 11638
+ }
+ ],
+ "8777": [
+ {
+ "length": 32,
+ "start": 11572
+ }
+ ],
+ "13132": [
+ {
+ "length": 32,
+ "start": 5945
+ }
+ ],
+ "13134": [
+ {
+ "length": 32,
+ "start": 4224
+ }
+ ],
+ "13136": [
+ {
+ "length": 32,
+ "start": 7736
+ }
+ ],
+ "13138": [
+ {
+ "length": 32,
+ "start": 7802
+ }
+ ],
+ "13140": [
+ {
+ "length": 32,
+ "start": 7868
+ }
+ ],
+ "13142": [
+ {
+ "length": 32,
+ "start": 7934
+ }
+ ],
+ "13144": [
+ {
+ "length": 32,
+ "start": 8000
+ }
+ ],
+ "13146": [
+ {
+ "length": 32,
+ "start": 8066
+ }
+ ],
+ "13148": [
+ {
+ "length": 32,
+ "start": 11974
+ }
+ ],
+ "13150": [
+ {
+ "length": 32,
+ "start": 12022
+ }
+ ],
+ "13152": [
+ {
+ "length": 32,
+ "start": 12070
+ }
+ ],
+ "13154": [
+ {
+ "length": 32,
+ "start": 12118
+ }
+ ],
+ "13156": [
+ {
+ "length": 32,
+ "start": 12166
+ }
+ ],
+ "13158": [
+ {
+ "length": 32,
+ "start": 12214
+ }
+ ],
+ "13160": [
+ {
+ "length": 32,
+ "start": 7063
+ }
+ ],
+ "13162": [
+ {
+ "length": 32,
+ "start": 7111
+ }
+ ],
+ "13164": [
+ {
+ "length": 32,
+ "start": 7159
+ }
+ ],
+ "13166": [
+ {
+ "length": 32,
+ "start": 7207
+ }
+ ],
+ "13168": [
+ {
+ "length": 32,
+ "start": 7255
+ }
+ ],
+ "13170": [
+ {
+ "length": 32,
+ "start": 7303
+ }
+ ],
+ "13172": [
+ {
+ "length": 32,
+ "start": 11043
+ }
+ ],
+ "13174": [
+ {
+ "length": 32,
+ "start": 4079
+ },
+ {
+ "length": 32,
+ "start": 4727
+ }
+ ]
+ },
+ "linkReferences": {},
+ "object": "608060405234801561001057600080fd5b50600436106103835760003560e01c806370464016116101de57806395d89b411161010f578063d2946c2b116100ad578063ddf4627b1161007c578063ddf4627b146106f6578063eb0f24d6146106fe578063ed24911d14610706578063f4b7964d1461070e57610383565b8063d2946c2b146106b5578063d505accf146106bd578063d5c096c4146106d0578063dd62ed3e146106e357610383565b8063aaabadc5116100e9578063aaabadc51461068a578063ab7759f114610692578063b35056b8146106a5578063b7b814fc146106ad57610383565b806395d89b411461065c578063a457c2d714610664578063a9059cbb1461067757610383565b80638456cb591161017c57806387ec68171161015657806387ec681714610619578063893d20e81461062c5780638d928af81461064157806390193b7c1461064957610383565b80638456cb59146105f6578063851c1bb3146105fe578063876f303b1461061157610383565b806377151bee116101b857806377151bee146105b05780637ecebe00146105b85780637f1260d1146105cb57806382687a56146105ee57610383565b8063704640161461056957806370a082311461057c57806374f3b0091461058f57610383565b80633644e515116102b857806354a844ba1161025657806355c676281161023057806355c67628146105215780636028bfd414610529578063679aefce1461054a5780636daccffa1461055257610383565b806354a844ba146104fe57806354dea00a1461050657806354fd4d501461051957610383565b8063395093511161029257806339509351146104ba5780633c975d51146104cd5780633f4ba83a146104e357806350dd6ed9146104eb57610383565b80633644e5151461049757806338e9922e1461049f57806338fff2d0146104b257610383565b80631c0de0511161032557806323b872dd116102ff57806323b872dd146104495780632df2c7c01461045c5780632f1a0bc91461046f578063313ce5671461048257610383565b80631c0de051146104085780631dd746ea1461041f578063238a2d591461043457610383565b8063095ea7b311610361578063095ea7b3146103ce5780630da0669c146103ee57806315b0015b146103f857806318160ddd1461040057610383565b806301ec954a1461038857806304842d4c146103b157806306fdde03146103b9575b600080fd5b61039b6103963660046158c7565b610721565b6040516103a89190615ce8565b60405180910390f35b61039b6107c7565b6103c16107d6565b6040516103a89190615dbe565b6103e16103dc366004615504565b61086c565b6040516103a89190615cc5565b6103f6610883565b005b6103e161091b565b61039b61093f565b610410610945565b6040516103a893929190615cd0565b61042761096e565b6040516103a89190615c8d565b61043c610978565b6040516103a89190615ba9565b6103e1610457366004615454565b610a13565b6103f661046a366004615400565b610a87565b6103f661047d366004615a16565b610aeb565b61048a610bce565b6040516103a89190615e29565b61039b610bd7565b6103f66104ad3660046159e6565b610be1565b61039b610bfd565b6103e16104c8366004615504565b610c21565b6104d5610c5c565b6040516103a8929190615e00565b6103f6610c87565b6103f66104f9366004615702565b610c99565b6103f6610cb7565b61039b610514366004615400565b610cc9565b6103c1610ce4565b61039b610d45565b61053c61053736600461561b565b610d58565b6040516103a8929190615dd1565b61039b610d8f565b61055a610dfb565b6040516103a893929190615dea565b61039b6105773660046159e6565b610e16565b61039b61058a366004615400565b610ecf565b6105a261059d36600461561b565b610eea565b6040516103a8929190615ca0565b6103e1610fed565b61039b6105c6366004615400565b611011565b6105de6105d9366004615400565b61101c565b6040516103a89493929190615e0e565b61039b61107e565b6103f66110a2565b61039b61060c3660046156be565b6110b4565b61039b611106565b61053c61062736600461561b565b611134565b61063461115a565b6040516103a89190615b95565b61063461117e565b61039b610657366004615400565b6111a2565b6103c16111bd565b6103e1610672366004615504565b61121e565b6103e1610685366004615504565b61125c565b610634611269565b6103e16106a0366004615400565b611273565b6103e16112ae565b6103f66112bf565b6106346112d1565b6103f66106cb366004615494565b6112f5565b6105a26106de36600461561b565b611380565b61039b6106f136600461541c565b6114a3565b61039b6114e0565b6103f66114e6565b61039b611512565b6103f661071c366004615504565b61151c565b6000846080015161074e61073361117e565b6001600160a01b0316336001600160a01b03161460cd611719565b610763610759610bfd565b82146101f4611719565b61076b611727565b61077d8484610778611737565b61175b565b6060610787611773565b905060008751600181111561079857fe5b146107af576107aa878787878561180c565b6107bc565b6107bc8787878785611865565b979650505050505050565b60006107d16118a0565b905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b5050505050905090565b60006108793384846118a7565b5060015b92915050565b61088b61190f565b61089361091b565b156108c3576108c37f00000000000000000000000000000000000000000000000000000000000000006000611984565b6108ee7f00000000000000000000000000000000000000000000000000000000000000006002611984565b6109197f00000000000000000000000000000000000000000000000000000000000000006003611984565b565b7f000000000000000000000000000000000000000000000000000000000000000090565b60025490565b6000806000610952611b28565b15925061095d611b45565b9150610967611b69565b9050909192565b60606107d1611773565b60606000610984611737565b905060608167ffffffffffffffff8111801561099f57600080fd5b506040519080825280602002602001820160405280156109c9578160200160208202803683370190505b50905060005b82811015610a0c576109e081611b8d565b8282815181106109ec57fe5b6001600160a01b03909216602092830291909101909101526001016109cf565b5091505090565b600080610a2085336114a3565b9050610a44336001600160a01b0387161480610a3c5750838210155b61019e611719565b610a4f858585611cb6565b336001600160a01b03861614801590610a6a57506000198114155b15610a7c57610a7c85338584036118a7565b506001949350505050565b610a8f611d96565b6000610a9a82611e34565b90506000610aa782611b8d565b9050610ac06001600160a01b0382161515610155611719565b6000828152600a6020526040812054610ad890611fc2565b9050610ae5838383611fd1565b50505050565b610af36120b4565b610b03600183101561012c611719565b610b1461138883111561012d611719565b6000610b20824261165e565b9050610b346201518082101561013d611719565b600080610b3f6120e2565b91509150610b50811561013e611719565b6000610b5e866103e86115ba565b90506000838211610b8d57610b88610b7962015180866115ba565b610b8384886115ba565b612156565b610ba7565b610ba7610b9d62015180846115ba565b610b8386886115ba565b9050610bb9600282111561013f611719565b610bc584834289612189565b50505050505050565b60055460ff1690565b60006107d1611512565b610be96120b4565b610bf16121d8565b610bfa816121eb565b50565b7f000000000000000000000000000000000000000000000000000000000000000090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610879918590610c579086612264565b6118a7565b600c546000908190610c718160e9601761170a565b9250610c8081600060e961170a565b9150509091565b610c8f6120b4565b6109196000612276565b610ca16120b4565b610ca96121d8565b610cb382826122e9565b5050565b610cbf6120b4565b61091960016123de565b6000610cdc610cd783611e34565b612435565b90505b919050565b600d8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b6008546000906107d19060c0603f61170a565b60006060610d6e8651610d69611737565b6115e5565b610d83898989898989896124886124aa612513565b97509795505050505050565b60006060600080600080610da161263d565b9398509196509450925090506000610db98585612264565b90506000610dc56120e2565b5090506000848214610de057610ddb828961272d565b610de2565b835b9050610dee818461288f565b9850505050505050505090565b6000806000610e086120e2565b90949093506103e892509050565b6000610e206112ae565b15610e2d57506000610cdf565b81610e7957610e3a61091b565b610e64577f0000000000000000000000000000000000000000000000000000000000000000610e72565b600b5467ffffffffffffffff165b9050610cdf565b6002821415610ea15750600b5468010000000000000000900467ffffffffffffffff16610cdf565b6003821415610ec45750600b54600160801b900467ffffffffffffffff16610cdf565b610cdf6101bb6128e0565b6001600160a01b031660009081526020819052604090205490565b60608088610ef961073361117e565b610f04610759610bfd565b60606000610f11866128f0565b15610f3957610f1e61291f565b610f3089610f2a61093f565b88612932565b92509050610f8b565b610f41611727565b6060610f4b611773565b9050610f578a82612977565b610f7b8d8d8d8d8d610f676112ae565b610f71578d610f74565b60005b878e612488565b93509150610f8983826124aa565b505b610f958b826129e0565b81895167ffffffffffffffff81118015610fae57600080fd5b50604051908082528060200260200182016040528015610fd8578160200160208202803683370190505b509450945050505b5097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610cdc826111a2565b6000806000806000600a600061103188611e34565b81526020810191909152604001600020549050611052811515610155611719565b61105b816129ea565b9450611066816129f8565b935061107181612a06565b9597949650949392505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6110aa6120b4565b6109196001612276565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016110e9929190615b52565b604051602081830303815290604052805190602001209050919050565b600080600061111361263d565b5050925092505061112d818361226490919063ffffffff16565b9250505090565b600060606111458651610d69611737565b610d8389898989898989612a28612a39612513565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6001600160a01b031660009081526006602052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b60008061122b33856114a3565b905080831061124557611240338560006118a7565b611252565b61125233858584036118a7565b5060019392505050565b6000610879338484611cb6565b60006107d1612aa2565b60007f00000000000000000000000000000000000000000000000000000000000000008015610cdc5750610cdc6112a983611e34565b612b1c565b6008546000906107d19060ff612b47565b6112c76120b4565b61091960006123de565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113248c6111a2565b8960405160200161133a96959493929190615d10565b60405160208183030381529060405280519060200120905061136b8882611362878787612b51565b886101f8612b90565b6113768888886118a7565b5050505050505050565b6060808861138f61073361117e565b61139a610759610bfd565b6113a2611727565b60606113ac611773565b90506113b661093f565b61146357600060606113cb8d8d8d868b612be7565b915091506113e46113da6118a0565b83101560cc611719565b6113f660006113f16118a0565b612cc0565b6114098b6114026118a0565b8403612cc0565b6114138184612a39565b808a5167ffffffffffffffff8111801561142c57600080fd5b50604051908082528060200260200182016040528015611456578160200160208202803683370190505b5095509550505050610fe0565b61146d8882612977565b600060606114958d8d8d8d8d6114816112ae565b61148b578d61148e565b60005b898e612a28565b915091506114098b83612cc0565b60006114ad61117e565b6001600160a01b0316826001600160a01b031614156114cf575060001961087d565b6114d98383612cca565b905061087d565b60001981565b6114ee6120b4565b6000806114f96120e2565b9150915061150981610140611719565b610cb382612cf5565b60006107d1612d30565b6115246120b4565b61152c611d96565b600061153783611e34565b9050600061154482611b8d565b905061155d6001600160a01b0382161515610155611719565b611568828285611fd1565b806001600160a01b0316827fdd6d1c9badb346de6925b358a472c937b41698d2632696759e43fd6527feeec4856040516115a29190615ce8565b60405180910390a350505050565b80610cb381612dcd565b60008282026115de8415806115d75750838583816115d457fe5b04145b6003611719565b9392505050565b610cb38183146067611719565b60006001821b198416828461160857600061160b565b60015b60ff16901b17949350505050565b611631828414801561162a57508183145b6067611719565b505050565b6000611643848484612e46565b5082821b6000196001831b01831b198516175b949350505050565b600061166e838311156001611719565b50900390565b6000611687606084901c15610149611719565b61165642830160e060206116a48660c083838c8c60006060611636565b929190611636565b6000610cdc6116ba836129ea565b8390606080611636565b60006116dd67ffffffffffffffff8311156101ba611719565b5090565b60006116ee848484612e46565b50501b90565b600081831061170357816115de565b5090919050565b6001901b6000190191901c1690565b81610cb357610cb3816128e0565b61172f612e8c565b610919612e94565b7f000000000000000000000000000000000000000000000000000000000000000090565b611631818410801561176c57508183105b6064611719565b6060600061177f611737565b905060608167ffffffffffffffff8111801561179a57600080fd5b506040519080825280602002602001820160405280156117c4578160200160208202803683370190505b50905060005b82811015610a0c576117ed6117de82612435565b6117e783612ebc565b90612fda565b8282815181106117f957fe5b60209081029190910101526001016117ca565b60208501516000906001600160a01b0316301480611836575060408601516001600160a01b031630145b61184c576118478686868686613006565b611859565b6118598686868686613070565b90505b95945050505050565b60208501516000906001600160a01b031630148061188f575060408601516001600160a01b031630145b61184c576118478686868686613174565b620f424090565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611902908590615ce8565b60405180910390a3505050565b611917611d96565b61191f6121d8565b6060600080600061192e61263d565b945094509450509350600083111561194957611949836131cb565b60006119536120e2565b509050600083821461196e57611969828761272d565b611970565b825b905061197c82826131dc565b505050505050565b604051631a7c326360e01b81526000906001600160a01b03841690631a7c3263906119b3908590600401615ce8565b60206040518083038186803b1580156119cb57600080fd5b505afa1580156119df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0391906159fe565b905081611a3a57611a13816116c4565b600b805467ffffffffffffffff191667ffffffffffffffff92909216919091179055611aeb565b6002821415611a8857611a4c816116c4565b600b805467ffffffffffffffff9290921668010000000000000000026fffffffffffffffff000000000000000019909216919091179055611aeb565b6003821415611ae057611a9a816116c4565b600b805467ffffffffffffffff92909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff909216919091179055611aeb565b611aeb6101bb6128e0565b817f6bfb689528fa96ec1ad670ad6d6064be1ae96bfd5d2ee35c837fd0fe0c11959a82604051611b1b9190615ce8565b60405180910390a2505050565b6000611b32611b69565b4211806107d157505060075460ff161590565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b600081611bbb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415611beb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415611c1b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415611c4b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415611c7b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b610cdf6101356128e0565b611ccd6001600160a01b0384161515610198611719565b611ce46001600160a01b0383161515610199611719565b611cef838383611631565b6001600160a01b038316600090815260208190526040902054611d1590826101a0613202565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611d449082612264565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611902908590615ce8565b60408051600080825260208201909252606091611dc9565b611db661526c565b815260200190600190039081611dae5790505b509050611dd461117e565b6001600160a01b0316630e8e3e84826040518263ffffffff1660e01b8152600401611dff9190615bf6565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b5050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611e7857506000610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611eba57506001610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611efc57506002610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f3e57506003610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f8057506004610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611cab57506005610cdf565b6000610cdc8260c0602061170a565b6000826001600160a01b031663679aefce6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200c57600080fd5b505afa158015612020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204491906159fe565b6000858152600a6020526040902054909150612061818385611674565b6000868152600a602052604090819020919091555185907fb77a83204ca282e08dc3a65b0a1ca32ea4e6875c38ef0bf5bf75e52a67354fac906120a5908590615ce8565b60405180910390a25050505050565b60006120cb6000356001600160e01b0319166110b4565b9050610bfa6120da8233613218565b610191611719565b6000806000806000806120f3613301565b93509350935093508042101561214657600194508383111561212a57818103824203858503028161212057fe5b0484019550612141565b818103824203848603028161213b57fe5b04840395505b61214e565b600094508295505b505050509091565b60006121658215156004611719565b826121725750600061087d565b81600184038161217e57fe5b04600101905061087d565b61219584848484613360565b7f1835882ee7a34ac194f717a35e09bb1d24c82a3b9d854ab6c9749525b714cdf2848484846040516121ca9493929190615e0e565b60405180910390a150505050565b6109196121e3611b28565b610192611719565b6122006121f661339f565b82101560cb611719565b61221561220b6133a8565b82111560ca611719565b600854612226908260c0603f611636565b6008556040517fa9ba3ffe0b6c366b81232caab38605a0699ad5398d6cce76f91ee809e322dafc90612259908390615ce8565b60405180910390a150565b60008282016115de8482101583611719565b801561229657612291612287611b45565b4210610193611719565b6122ab565b6122ab6122a1611b69565b42106101a9611719565b6007805460ff19168215151790556040517f9e3a5e37224532dea67b89face185703738a228a6e8a23dee546960180d3be6490612259908390615cc5565b60006122f3610bfd565b905060006122ff61117e565b6001600160a01b031663b05f8e4883866040518363ffffffff1660e01b815260040161232c929190615d89565b60806040518083038186803b15801561234457600080fd5b505afa158015612358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237c9190615a37565b604051630639cdb560e21b81529094506001600160a01b03851693506318e736d492506123b0915085908790600401615d70565b600060405180830381600087803b1580156123ca57600080fd5b505af1158015611376573d6000803e3d6000fd5b6008546123ed908260ff6115f2565b6008556040517feff3d4d215b42bf0960be9c6d5e05c22cba4df6627a3a523e2acee733b5854c890612420908390615cc5565b60405180910390a180610bfa57610bfa6133b4565b600061243f61107e565b8214156124555750670de0b6b3a7640000610cdf565b6000828152600a6020526040902054801561247857612473816129ea565b6115de565b670de0b6b3a76400009392505050565b60006060612499600088868661348e565b915091509850989650505050505050565b815181516124b99082906115e5565b60005b81811015610ae5576124f48482815181106124d357fe5b60200260200101518483815181106124e757fe5b602002602001015161288f565b84828151811061250057fe5b60209081029190910101526001016124bc565b3330146125d1576000306001600160a01b0316600036604051612537929190615b6a565b6000604051808303816000865af19150503d8060008114612574576040519150601f19603f3d011682016040523d82523d6000602084013e612579565b606091505b50509050806000811461258857fe5b60046000803e6000516001600160e01b0319166343adbafb60e01b81146125b3573d6000803e3d6000fd5b506020600460003e604060205260243d03602460403e601c3d016000f35b6125d9611727565b60606125e3611773565b90506125ef8782612977565b600060606126078c8c8c8c8c8c898d8d63ffffffff16565b9150915061261981848663ffffffff16565b8051601f1982018390526343adbafb603f1983015260200260231982016044820181fd5b6060600080600080606061264f61117e565b6001600160a01b031663f94d4668612665610bfd565b6040518263ffffffff1660e01b81526004016126819190615ce8565b60006040518083038186803b15801561269957600080fd5b505afa1580156126ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126d5919081019061552f565b509150506126ea816126e5611773565b612977565b6126f38161353c565b965094506000612701610c5c565b90945090506000612713888684613575565b9450905061272187826135f1565b95505050509091929394565b80516000908190815b8181101561276e5761276485828151811061274d57fe5b60200260200101518461226490919063ffffffff16565b9250600101612736565b508161277f5760009250505061087d565b600082868302825b60ff811015612878578260005b868110156127d5576127cb6127a983876115ba565b6127c68c84815181106127b857fe5b60200260200101518a6115ba565b613609565b9150600101612794565b5083945061282e61280d6128076127ec848a6115ba565b6128016127f9888d6115ba565b6103e8613609565b90612264565b866115ba565b6127c661281d89600101856115ba565b6128016127f96103e889038a6115ba565b93508484111561285657600185850311612851578397505050505050505061087d565b61286f565b60018486031161286f578397505050505050505061087d565b50600101612787565b506128846101416128e0565b505050505092915050565b600061289e8215156004611719565b826128ab5750600061087d565b670de0b6b3a7640000838102906128ce908583816128c557fe5b04146005611719565b8281816128d757fe5b0491505061087d565b610bfa816210905360ea1b613629565b6000808251118015610cdc575060ff8016828060200190518101906129159190615a77565b60ff161492915050565b61091961292a6112ae565b6101b6611719565b60006060600060606129438761353c565b915091506000606061295683858961368a565b91509150816129668260006136b6565b95509550505050505b935093915050565b815181516129869082906115e5565b60005b81811015610ae5576129c18482815181106129a057fe5b60200260200101518483815181106129b457fe5b6020026020010151612fda565b8482815181106129cd57fe5b6020908102919091010152600101612989565b610cb38282613773565b6000610cdc8282606061170a565b6000610cdc8260608061170a565b600080612a1283611fc2565b9150612a218360e0602061170a565b9050915091565b60006060612499600188868661348e565b81518151612a489082906115e5565b60005b81811015610ae557612a83848281518110612a6257fe5b6020026020010151848381518110612a7657fe5b602002602001015161383f565b848281518110612a8f57fe5b6020908102919091010152600101612a4b565b6000612aac61117e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b158015612ae457600080fd5b505afa158015612af8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d191906156e6565b6000610cdc7f0000000000000000000000000000000000000000000000000000000000000000600684015b1c60019081161490565b60408051604180825260808201909252606091829190602082018180368337019050509050836020820152826040820152846060820153949350505050565b6000612b9b8561388d565b9050612bb1612bab8783876138a9565b83611719565b612bc0428410156101b8611719565b5050506001600160a01b039092166000908152600660205260409020805460010190555050565b600060606000612bf684613958565b9050612c116000826003811115612c0957fe5b1460ce611719565b6060612c1c8561396e565b9050612c2a815187516115e5565b612c348187612977565b6000612c3e6120e2565b5090506060612c4c83613984565b90506000612c5a838361272d565b9050806000612c776d80000000000000000000000000008361165e565b9050612c838d82612cc0565b8086612c8d61107e565b81518110612c9757fe5b602002602001018181525050612cad85846131dc565b509c939b50929950505050505050505050565b610cb38282613a26565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b612d0181824242613360565b7fa0d01593e47e69d07e0ccd87bece09411e07dd1ed40ca8f2e7af2976542a0233816040516122599190615ce8565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612d9d613ab3565b30604051602001612db2959493929190615d44565b60405160208183030381529060405280519060200120905090565b600281511015612ddc57610bfa565b600081600081518110612deb57fe5b602002602001015190506000600190505b8251811015611631576000838281518110612e1357fe5b60200260200101519050612e3c816001600160a01b0316846001600160a01b0316106065611719565b9150600101612dfc565b612e5561010083106064611719565b612e7d6001821015801561176c5750612e7360ff84610100036116f4565b8211156064611719565b61163183821c156101b4611719565b6109196121d8565b6000612e9e611737565b905060005b81811015610cb357612eb481613ab7565b600101612ea3565b600081612eea57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415612f1a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415612f4a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415612f7a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415612faa57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b6000828202612ff48415806115d75750838583816115d457fe5b670de0b6b3a764000090049392505050565b60006130128583612977565b613033866060015183858151811061302657fe5b6020026020010151613b0b565b6060870152600061304687878787613b17565b90506130658184878151811061305857fe5b6020026020010151613b2b565b90506107bc81613b37565b600080808751600181111561308157fe5b14905061308e8684612977565b6130ae876060015184836130a257866130a4565b875b8151811061302657fe5b876060018181525050600060606000806130c78a613b53565b93509350935093506000806130da61107e565b8a14613100576130fb878e60600151876130f38e613bbc565b888b89613bf1565b61311b565b61311b878e60600151876131138f613bbc565b888b89613c2a565b9150915061312c8486858985613c4e565b8661314657613141828a8d8151811061305857fe5b613163565b613163828a8c8151811061315657fe5b6020026020010151613cce565b9d9c50505050505050505050505050565b60006131838660600151613cda565b60608701526131928583612977565b6131a6866060015183868151811061302657fe5b606087015260006131b987878787613cfb565b90506107bc8184868151811061315657fe5b610bfa6131d66112d1565b82612cc0565b6131e981600060e96116e1565b6131f68360e960176116e1565b17600c55610cb3613d0f565b60006132118484111583611719565b5050900390565b600073ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b61323761115a565b6001600160a01b031614158015613252575061325283613d45565b1561327a5761325f61115a565b6001600160a01b0316336001600160a01b031614905061087d565b613282612aa2565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b81526004016132b193929190615cf1565b60206040518083038186803b1580156132c957600080fd5b505afa1580156132dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d991906155fb565b6000806000806133206000604060095461170a9092919063ffffffff16565b6009549094506133329060408061170a565b600954909350613345906080604061170a565b6009549092506133589060c0604061170a565b905090919293565b61336d8160c060406116e1565b61337a83608060406116e1565b613386856040806116e1565b61339387600060406116e1565b17171760095550505050565b64e8d4a5100090565b67016345785d8a000090565b6133bc611d96565b60606133c661117e565b6001600160a01b031663f94d46686133dc610bfd565b6040518263ffffffff1660e01b81526004016133f89190615ce8565b60006040518083038186803b15801561341057600080fd5b505afa158015613424573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261344c919081019061552f565b5091505061345c816126e5611773565b606061346782613984565b905060006134736120e2565b5090506000613482828461272d565b9050610ae582826131dc565b60006060600060606000806134a289613b53565b935093509350935061529c8a6134ba57613d506134be565b613de55b9050600060606134d6868689878f8f8963ffffffff16565b9150915061529c8d6134ea5761165e6134ee565b6122645b90506134fb878383613e63565b600061350b89858463ffffffff16565b905061351a8789888c85613c4e565b836135268460006136b6565b9a509a5050505050505050505094509492505050565b600060606135638361354c61107e565b8151811061355657fe5b6020026020010151613ed0565b61356c84613984565b91509150915091565b6000806000806000613588888888613ee4565b9250925092508581116135a35760009450925061296f915050565b85830383830360006135c16135b782610e16565b6117e7858761288f565b905060006135dc6135d26002610e16565b6117e7858861288f565b919091019b939a509298505050505050505050565b60006115de61360084846115ba565b6127c684613f55565b60006136188215156004611719565b81838161362157fe5b049392505050565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b60006060600061369984613f7b565b905060606136a8878784613f91565b919791965090945050505050565b6060825160010167ffffffffffffffff811180156136d357600080fd5b506040519080825280602002602001820160405280156136fd578160200160208202803683370190505b50905060005b815181101561376c5761371461107e565b811461374b578361372361107e565b82106137325760018203613734565b815b8151811061373e57fe5b602002602001015161374d565b825b82828151811061375957fe5b6020908102919091010152600101613703565b5092915050565b61378a6001600160a01b038316151561019b611719565b61379682600083611631565b6001600160a01b0382166000908152602081905260409020546137bc90826101b2613202565b6001600160a01b0383166000908152602081905260409020556137ef6137ea826137e461093f565b90614040565b61404e565b60006001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516138339190615ce8565b60405180910390a35050565b600061384e8215156004611719565b8261385b5750600061087d565b670de0b6b3a764000083810290613875908583816128c557fe5b82600182038161388157fe5b0460010191505061087d565b6000613897612d30565b826040516020016110e9929190615b7a565b60006138bb82516041146101b9611719565b60208281015160408085015160608601518251600080825295019283905292939092811a916001906138f4908990859088908890615da0565b6020604051602081039080840390855afa158015613916573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061394c5750876001600160a01b0316816001600160a01b0316145b98975050505050505050565b600081806020019051810190610cdc9190615811565b6060818060200190518101906115de919061582c565b606080600183510367ffffffffffffffff811180156139a257600080fd5b506040519080825280602002602001820160405280156139cc578160200160208202803683370190505b50905060005b815181101561376c57836139e461107e565b82106139f357816001016139f5565b815b815181106139ff57fe5b6020026020010151828281518110613a1357fe5b60209081029190910101526001016139d2565b613a3260008383611631565b613a416137ea8261280161093f565b6001600160a01b038216600090815260208190526040902054613a649082612264565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90613833908590615ce8565b4690565b613abf61107e565b811415613acb57610bfa565b6000818152600a60205260409020548015610cb357600080613aec83612a06565b9150915080421115610ae557610ae584613b0586611b8d565b84611fd1565b60006115de8383612fda565b600061185c60008660600151868686614053565b60006115de838361383f565b6000610cdc613b4c613b47610d45565b613f55565b839061383f565b60006060600080600080613b65610c5c565b91509150600060606000613b7a8a86866140c5565b9250925092506000613b8a6120e2565b5090506000868214613ba557613ba0828561272d565b613ba7565b825b949c939b509099509297509095505050505050565b6000613bd3613bc961107e565b8314156064611719565b613bdb61107e565b82106116dd57613bec82600161165e565b610cdc565b60008088613c0c57613c0788888888888861411d565b613c1a565b613c1a8888888888886141f4565b9150915097509795505050505050565b60008088613c4057613c07888888888888614255565b613c1a8888888888886142bb565b6000613c5a868661272d565b90506000613c68838561288f565b90506000613c768683612fda565b905080831115613cc4578083036000613ca0613c9a83613c9584610e16565b6115ba565b86613609565b90508015613cc1576000613cb487836135f1565b9050613cbf816131cb565b505b50505b61137688846131dc565b60006115de838361288f565b600080613cef613ce8610d45565b849061436a565b90506115de838261165e565b600061185c60018660600151868686614053565b6000613d19611737565b905060005b81811015610cb357613d2f81612b1c565b15613d3d57613d3d816143a6565b600101613d1e565b6000610cdc826143d4565b600060606000613d5f846143df565b90506001816002811115613d6f57fe5b1415613d8d57613d8387878a8c89896143f5565b9250925050613dda565b6002816002811115613d9b57fe5b1415613dac57613d83878a86614454565b6000816002811115613dba57fe5b1415613dcd57613d8387878a8c88614472565b613dd86101506128e0565b505b965096945050505050565b600060606000613df484613958565b90506001816003811115613e0457fe5b1415613e1857613d8387878a8c8989614513565b6003816003811115613e2657fe5b1415613e3757613d83878a86614562565b6002816003811115613e4557fe5b1415613e5857613d8387878a8c88614580565b613dd86101366128e0565b82518251613e729082906115e5565b60005b81811015611e2d57613eb1858281518110613e8c57fe5b6020026020010151858381518110613ea057fe5b60200260200101518563ffffffff16565b858281518110613ebd57fe5b6020908102919091010152600101613e75565b6000610cdc82613ede61093f565b9061165e565b6000806000613ef3858761272d565b9050838111613f0757808192509250613f4c565b613f1985613f14886145fa565b61272d565b9250613f2581846116f4565b9250613f3184846146eb565b9250613f3b610fed565b15613f4857829150613f4c565b8091505b93509350939050565b6000670de0b6b3a76400008210613f6d576000610cdc565b50670de0b6b3a76400000390565b6000818060200190518101906115de9190615a93565b60606000613f9f838561288f565b9050845167ffffffffffffffff81118015613fb957600080fd5b50604051908082528060200260200182016040528015613fe3578160200160208202803683370190505b50915060005b8551811015614037576140188287838151811061400257fe5b6020026020010151612fda90919063ffffffff16565b83828151811061402457fe5b6020908102919091010152600101613fe9565b50509392505050565b60006115de83836001613202565b600255565b6000606061406085613984565b9050600061406d85613bbc565b9050600061407a85613bbc565b905060006140866120e2565b5090506000614095828661272d565b90508a156140b7576140ab828686868e866146fb565b9550505050505061185c565b6140ab828686868e86614786565b6000606060008060606140d78861353c565b915091506000806140e9838a8a613575565b9150915060006140f985846135f1565b9050801561410a5761410a816131cb565b9390930199919850919650945050505050565b6000806060875167ffffffffffffffff8111801561413a57600080fd5b50604051908082528060200260200182016040528015614164578160200160208202803683370190505b5090508881888151811061417457fe5b6020026020010181815250506000614197878a848989614192610d45565b614819565b90506141bf8a8a8a815181106141a957fe5b602002602001015161165e90919063ffffffff16565b8989815181106141cb57fe5b602090810291909101015260006141e2878361165e565b919b919a509098505050505050505050565b600080600061420f8689898c898961420a610d45565b614aa9565b9050614221818989815181106141a957fe5b88888151811061422d57fe5b60209081029190910101526000614244868b61165e565b919a91995090975050505050505050565b60008060006142708689898c898961426b610d45565b614b98565b90506142988189898151811061428257fe5b602002602001015161226490919063ffffffff16565b8888815181106142a457fe5b60209081029190910101526000614244868b612264565b6000806060875167ffffffffffffffff811180156142d857600080fd5b50604051908082528060200260200182016040528015614302578160200160208202803683370190505b5090508881888151811061431257fe5b6020026020010181815250506000614335878a848989614330610d45565b614c65565b90506143478a8a8a8151811061428257fe5b89898151811061435357fe5b602090810291909101015260006141e28783612264565b60008282026143848415806115d75750838583816115d457fe5b8061439357600091505061087d565b670de0b6b3a76400006000198201613881565b6000818152600a60205260409020546143be816116ac565b6000928352600a60205260409092209190915550565b6000610cdc82614ecf565b600081806020019051810190610cdc9190615750565b6000606080600061440585614ef2565b91509150614415825188516115e5565b614422826126e588613984565b60006144348989858e8e614192610d45565b90506144448282111560cf611719565b9a91995090975050505050505050565b60006060600061446384614f15565b905060606136a8868884613f91565b6000606060008061448285614f2b565b91509150614494865182106064611719565b6060865167ffffffffffffffff811180156144ae57600080fd5b506040519080825280602002602001820160405280156144d8578160200160208202803683370190505b5090506144ec888884868e8e61420a610d45565b8183815181106144f857fe5b60209081029190910101529199919850909650505050505050565b6000606080600061452385614f42565b91509150614533875183516115e5565b614540826126e588613984565b60006145528989858e8e614330610d45565b90506144448282101560d0611719565b60006060600061457184614f5a565b905060606136a8868389614f70565b600060606000806145908561500c565b915091506145a2865182106064611719565b6060865167ffffffffffffffff811180156145bc57600080fd5b506040519080825280602002602001820160405280156145e6578160200160208202803683370190505b5090506144ec888884868e8e61426b610d45565b8051606090818167ffffffffffffffff8111801561461757600080fd5b50604051908082528060200260200182016040528015614641578160200160208202803683370190505b50905060005b828110156146e357600061465961107e565b821015614666578161466b565b816001015b905061467681612b1c565b6146935785828151811061468657fe5b60200260200101516146c3565b6146c38683815181106146a257fe5b6020026020010151600a600084815260200190815260200160002054615023565b8383815181106146cf57fe5b602090810291909101015250600101614647565b509392505050565b60008183101561170357816115de565b600061470d8387878151811061428257fe5b86868151811061471957fe5b60200260200101818152505060006147338888858861503e565b90508387878151811061474257fe5b60200260200101510387878151811061475757fe5b6020026020010181815250506147786001613ede838a89815181106141a957fe5b9150505b9695505050505050565b6000614798838786815181106141a957fe5b8685815181106147a457fe5b60200260200101818152505060006147be8888858961503e565b9050838786815181106147cd57fe5b6020026020010151018786815181106147e257fe5b602002602001018181525050614778600161280189898151811061480257fe5b60200260200101518461165e90919063ffffffff16565b600080805b87518110156148575761484d88828151811061483657fe5b60200260200101518361226490919063ffffffff16565b915060010161481e565b506060865167ffffffffffffffff8111801561487257600080fd5b5060405190808252806020026020018201604052801561489c578160200160208202803683370190505b5090506000805b89518110156149695760006148d4858c84815181106148be57fe5b602002602001015161383f90919063ffffffff16565b90506149168b83815181106148e557fe5b60200260200101516149108c85815181106148fc57fe5b60200260200101518e86815181106141a957fe5b9061383f565b84838151811061492257fe5b60200260200101818152505061495e6149578286858151811061494157fe5b602002602001015161436a90919063ffffffff16565b8490612264565b9250506001016148a3565b506060895167ffffffffffffffff8111801561498457600080fd5b506040519080825280602002602001820160405280156149ae578160200160208202803683370190505b50905060005b8a51811015614a795760008482815181106149cb57fe5b6020026020010151841115614a325760006149f46149e886613f55565b8e858151811061400257fe5b90506000614a08828e86815181106141a957fe5b9050614a29614a2282670de0b6b3a76400008d900361383f565b8390612264565b92505050614a49565b8a8281518110614a3e57fe5b602002602001015190505b614a59818d84815181106141a957fe5b838381518110614a6557fe5b6020908102919091010152506001016149b4565b506000614a868c8361272d565b90506000614a94828a61288f565b9050613163614aa282613f55565b8b9061436a565b600080614ac484614abe87614910818b61165e565b9061436a565b90506000614ad48a8a848b61503e565b90506000614ae8828b8b815181106141a957fe5b90506000805b8b51811015614b1057614b068c828151811061483657fe5b9150600101614aee565b506000614b39828d8d81518110614b2357fe5b602002602001015161288f90919063ffffffff16565b90506000614b4682613f55565b90506000614b54858361436a565b90506000614b62868361165e565b9050614b83614b7c83670de0b6b3a76400008d9003612fda565b8290612264565b98505050505050505050979650505050505050565b600080614bad84614abe87614910818b612264565b90506000614bbd8a8a848b61503e565b90506000614be78a8a81518110614bd057fe5b60200260200101518361165e90919063ffffffff16565b90506000805b8b51811015614c0f57614c058c828151811061483657fe5b9150600101614bed565b506000614c22828d8d81518110614b2357fe5b90506000614c2f82613f55565b90506000614c3d858361436a565b90506000614c4b868361165e565b9050614b83614b7c83670de0b6b3a76400008d900361383f565b600080805b8751811015614c8c57614c8288828151811061483657fe5b9150600101614c6a565b506060865167ffffffffffffffff81118015614ca757600080fd5b50604051908082528060200260200182016040528015614cd1578160200160208202803683370190505b5090506000805b8951811015614d6b576000614cf3858c8481518110614b2357fe5b9050614d358b8381518110614d0457fe5b6020026020010151614d2f8c8581518110614d1b57fe5b60200260200101518e868151811061428257fe5b9061288f565b848381518110614d4157fe5b602002602001018181525050614d606149578286858151811061400257fe5b925050600101614cd8565b506060895167ffffffffffffffff81118015614d8657600080fd5b50604051908082528060200260200182016040528015614db0578160200160208202803683370190505b50905060005b8a51811015614e7157600083858381518110614dce57fe5b60200260200101511115614e2a576000614df36149e886670de0b6b3a764000061165e565b90506000614e07828e86815181106141a957fe5b9050614e21614a2282670de0b6b3a76400008d9003612fda565b92505050614e41565b8a8281518110614e3657fe5b602002602001015190505b614e51818d848151811061428257fe5b838381518110614e5d57fe5b602090810291909101015250600101614db6565b506000614e7e8c8361272d565b90506000614e8c828a61288f565b9050670de0b6b3a7640000811115614ec057614eb38a670de0b6b3a763ffff198301612fda565b965050505050505061477c565b6000965050505050505061477c565b6000614ee163f4b7964d60e01b6110b4565b821480610cdc5750610cdc826151fb565b6060600082806020019051810190614f0a919061576b565b909590945092505050565b6000818060200190518101906115de91906157b0565b60008082806020019051810190614f0a91906157dc565b6060600082806020019051810190614f0a919061586f565b6000818060200190518101906115de919061588d565b60606000614f7e848461383f565b90506060855167ffffffffffffffff81118015614f9a57600080fd5b50604051908082528060200260200182016040528015614fc4578160200160208202803683370190505b50905060005b865181101561500257614fe38388838151811061494157fe5b828281518110614fef57fe5b6020908102919091010152600101614fca565b5095945050505050565b60008082806020019051810190614f0a91906158a9565b60006115de61503584613c95856129f8565b6127c6846129ea565b60008084518602905060008560008151811061505657fe5b60200260200101519050600086518760008151811061507157fe5b60200260200101510290506000600190505b87518110156150d7576150bc6150b66150af848b85815181106150a257fe5b60200260200101516115ba565b8a516115ba565b88613609565b91506150cd88828151811061274d57fe5b9250600101615083565b508685815181106150e457fe5b60200260200101518203915060006150fc87886115ba565b9050600061512861511c61511484610b8389886115ba565b6103e86115ba565b8a89815181106150a257fe5b9050600061514361513c6151148b89613609565b8690612264565b905060008061515f6151558686612264565b610b838d86612264565b905060005b60ff8110156151df578192506151946151818661280185866115ba565b610b838e613ede886128018860026115ba565b9150828211156151bd576001838303116151b8575097506116569650505050505050565b6151d7565b6001828403116151d7575097506116569650505050505050565b600101615164565b506151eb6101426128e0565b5050505050505050949350505050565b600061520d632f1a0bc960e01b6110b4565b8214806152285750615225637587926b60e11b6110b4565b82145b80610cdc5750610cdc826000615244631c74c91760e11b6110b4565b82148061525f575061525c6350dd6ed960e01b6110b4565b82145b80610cdc57506000610cdc565b6040805160a081019091528060008152600060208201819052604082018190526060820181905260809091015290565bfe5b803561087d81615e7e565b600082601f8301126152b9578081fd5b81356152cc6152c782615e5e565b615e37565b8181529150602080830190848101818402860182018710156152ed57600080fd5b60005b84811015612884578135845292820192908201906001016152f0565b600082601f83011261531c578081fd5b815161532a6152c782615e5e565b81815291506020808301908481018184028601820187101561534b57600080fd5b60005b848110156128845781518452928201929082019060010161534e565b600082601f83011261537a578081fd5b813567ffffffffffffffff811115615390578182fd5b6153a3601f8201601f1916602001615e37565b91508082528360208285010111156153ba57600080fd5b8060208401602084013760009082016020015292915050565b80516003811061087d57600080fd5b80516004811061087d57600080fd5b80356002811061087d57600080fd5b600060208284031215615411578081fd5b81356115de81615e7e565b6000806040838503121561542e578081fd5b823561543981615e7e565b9150602083013561544981615e7e565b809150509250929050565b600080600060608486031215615468578081fd5b833561547381615e7e565b9250602084013561548381615e7e565b929592945050506040919091013590565b600080600080600080600060e0888a0312156154ae578283fd5b87356154b981615e7e565b965060208801356154c981615e7e565b9550604088013594506060880135935060808801356154e781615e93565b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215615516578182fd5b823561552181615e7e565b946020939093013593505050565b600080600060608486031215615543578081fd5b835167ffffffffffffffff8082111561555a578283fd5b818601915086601f83011261556d578283fd5b815161557b6152c782615e5e565b80828252602080830192508086018b82838702890101111561559b578788fd5b8796505b848710156155c65780516155b281615e7e565b84526001969096019592810192810161559f565b5089015190975093505050808211156155dd578283fd5b506155ea8682870161530c565b925050604084015190509250925092565b60006020828403121561560c578081fd5b815180151581146115de578182fd5b600080600080600080600060e0888a031215615635578081fd5b87359650602088013561564781615e7e565b9550604088013561565781615e7e565b9450606088013567ffffffffffffffff80821115615673578283fd5b61567f8b838c016152a9565b955060808a0135945060a08a0135935060c08a01359150808211156156a2578283fd5b506156af8a828b0161536a565b91505092959891949750929550565b6000602082840312156156cf578081fd5b81356001600160e01b0319811681146115de578182fd5b6000602082840312156156f7578081fd5b81516115de81615e7e565b60008060408385031215615714578182fd5b823561571f81615e7e565b9150602083013567ffffffffffffffff81111561573a578182fd5b6157468582860161536a565b9150509250929050565b600060208284031215615761578081fd5b6115de83836153d3565b60008060006060848603121561577f578081fd5b61578985856153d3565b9250602084015167ffffffffffffffff8111156157a4578182fd5b6155ea8682870161530c565b600080604083850312156157c2578182fd5b6157cc84846153d3565b9150602083015190509250929050565b6000806000606084860312156157f0578081fd5b6157fa85856153d3565b925060208401519150604084015190509250925092565b600060208284031215615822578081fd5b6115de83836153e2565b6000806040838503121561583e578182fd5b61584884846153e2565b9150602083015167ffffffffffffffff811115615863578182fd5b6157468582860161530c565b600080600060608486031215615883578081fd5b61578985856153e2565b6000806040838503121561589f578182fd5b6157cc84846153e2565b6000806000606084860312156158bd578081fd5b6157fa85856153e2565b600080600080608085870312156158dc578182fd5b843567ffffffffffffffff808211156158f3578384fd5b818701915061012080838a031215615909578485fd5b61591281615e37565b905061591e89846153f1565b815261592d896020850161529e565b602082015261593f896040850161529e565b6040820152606083013560608201526080830135608082015260a083013560a082015261596f8960c0850161529e565b60c08201526159818960e0850161529e565b60e08201526101008084013583811115615999578687fd5b6159a58b82870161536a565b8284015250508096505060208701359150808211156159c2578384fd5b506159cf878288016152a9565b949794965050505060408301359260600135919050565b6000602082840312156159f7578081fd5b5035919050565b600060208284031215615a0f578081fd5b5051919050565b60008060408385031215615a28578182fd5b50508035926020909101359150565b60008060008060808587031215615a4c578182fd5b8451935060208501519250604085015191506060850151615a6c81615e7e565b939692955090935050565b600060208284031215615a88578081fd5b81516115de81615e93565b60008060408385031215615aa5578182fd5b8251615ab081615e93565b6020939093015192949293505050565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015615afc57815187529582019590820190600101615ae0565b509495945050505050565b60008151808452815b81811015615b2c57602081850181015186830182015201615b10565b81811115615b3d5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6000828483379101908152919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015615bea5783516001600160a01b031683529284019291840191600101615bc5565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015615c80578151805160048110615c2957fe5b855280870151615c3b88870182615ac0565b508581015186860152606080820151615c5682880182615ac0565b505060809081015190615c6b86820183615ac0565b505060a0939093019290850190600101615c13565b5091979650505050505050565b6000602082526115de6020830184615acd565b600060408252615cb36040830185615acd565b828103602084015261185c8185615acd565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6000838252604060208301526116566040830184615b07565b9182526001600160a01b0316602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526115de6020830184615b07565b6000838252604060208301526116566040830184615acd565b9283529015156020830152604082015260600190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715615e5657600080fd5b604052919050565b600067ffffffffffffffff821115615e74578081fd5b5060209081020190565b6001600160a01b0381168114610bfa57600080fd5b60ff81168114610bfa57600080fdfea2646970667358221220b4e550780037f90ebe851b3b7805b576dad987fb40b27b1310b67210681e408464736f6c63430007010033",
+ "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x383 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x70464016 GT PUSH2 0x1DE JUMPI DUP1 PUSH4 0x95D89B41 GT PUSH2 0x10F JUMPI DUP1 PUSH4 0xD2946C2B GT PUSH2 0xAD JUMPI DUP1 PUSH4 0xDDF4627B GT PUSH2 0x7C JUMPI DUP1 PUSH4 0xDDF4627B EQ PUSH2 0x6F6 JUMPI DUP1 PUSH4 0xEB0F24D6 EQ PUSH2 0x6FE JUMPI DUP1 PUSH4 0xED24911D EQ PUSH2 0x706 JUMPI DUP1 PUSH4 0xF4B7964D EQ PUSH2 0x70E JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0xD2946C2B EQ PUSH2 0x6B5 JUMPI DUP1 PUSH4 0xD505ACCF EQ PUSH2 0x6BD JUMPI DUP1 PUSH4 0xD5C096C4 EQ PUSH2 0x6D0 JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x6E3 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0xAAABADC5 GT PUSH2 0xE9 JUMPI DUP1 PUSH4 0xAAABADC5 EQ PUSH2 0x68A JUMPI DUP1 PUSH4 0xAB7759F1 EQ PUSH2 0x692 JUMPI DUP1 PUSH4 0xB35056B8 EQ PUSH2 0x6A5 JUMPI DUP1 PUSH4 0xB7B814FC EQ PUSH2 0x6AD JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x65C JUMPI DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x664 JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x677 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x8456CB59 GT PUSH2 0x17C JUMPI DUP1 PUSH4 0x87EC6817 GT PUSH2 0x156 JUMPI DUP1 PUSH4 0x87EC6817 EQ PUSH2 0x619 JUMPI DUP1 PUSH4 0x893D20E8 EQ PUSH2 0x62C JUMPI DUP1 PUSH4 0x8D928AF8 EQ PUSH2 0x641 JUMPI DUP1 PUSH4 0x90193B7C EQ PUSH2 0x649 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x8456CB59 EQ PUSH2 0x5F6 JUMPI DUP1 PUSH4 0x851C1BB3 EQ PUSH2 0x5FE JUMPI DUP1 PUSH4 0x876F303B EQ PUSH2 0x611 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x77151BEE GT PUSH2 0x1B8 JUMPI DUP1 PUSH4 0x77151BEE EQ PUSH2 0x5B0 JUMPI DUP1 PUSH4 0x7ECEBE00 EQ PUSH2 0x5B8 JUMPI DUP1 PUSH4 0x7F1260D1 EQ PUSH2 0x5CB JUMPI DUP1 PUSH4 0x82687A56 EQ PUSH2 0x5EE JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x70464016 EQ PUSH2 0x569 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x57C JUMPI DUP1 PUSH4 0x74F3B009 EQ PUSH2 0x58F JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x3644E515 GT PUSH2 0x2B8 JUMPI DUP1 PUSH4 0x54A844BA GT PUSH2 0x256 JUMPI DUP1 PUSH4 0x55C67628 GT PUSH2 0x230 JUMPI DUP1 PUSH4 0x55C67628 EQ PUSH2 0x521 JUMPI DUP1 PUSH4 0x6028BFD4 EQ PUSH2 0x529 JUMPI DUP1 PUSH4 0x679AEFCE EQ PUSH2 0x54A JUMPI DUP1 PUSH4 0x6DACCFFA EQ PUSH2 0x552 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x54A844BA EQ PUSH2 0x4FE JUMPI DUP1 PUSH4 0x54DEA00A EQ PUSH2 0x506 JUMPI DUP1 PUSH4 0x54FD4D50 EQ PUSH2 0x519 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x39509351 GT PUSH2 0x292 JUMPI DUP1 PUSH4 0x39509351 EQ PUSH2 0x4BA JUMPI DUP1 PUSH4 0x3C975D51 EQ PUSH2 0x4CD JUMPI DUP1 PUSH4 0x3F4BA83A EQ PUSH2 0x4E3 JUMPI DUP1 PUSH4 0x50DD6ED9 EQ PUSH2 0x4EB JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x3644E515 EQ PUSH2 0x497 JUMPI DUP1 PUSH4 0x38E9922E EQ PUSH2 0x49F JUMPI DUP1 PUSH4 0x38FFF2D0 EQ PUSH2 0x4B2 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1C0DE051 GT PUSH2 0x325 JUMPI DUP1 PUSH4 0x23B872DD GT PUSH2 0x2FF JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x449 JUMPI DUP1 PUSH4 0x2DF2C7C0 EQ PUSH2 0x45C JUMPI DUP1 PUSH4 0x2F1A0BC9 EQ PUSH2 0x46F JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x482 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1C0DE051 EQ PUSH2 0x408 JUMPI DUP1 PUSH4 0x1DD746EA EQ PUSH2 0x41F JUMPI DUP1 PUSH4 0x238A2D59 EQ PUSH2 0x434 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x95EA7B3 GT PUSH2 0x361 JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x3CE JUMPI DUP1 PUSH4 0xDA0669C EQ PUSH2 0x3EE JUMPI DUP1 PUSH4 0x15B0015B EQ PUSH2 0x3F8 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x400 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1EC954A EQ PUSH2 0x388 JUMPI DUP1 PUSH4 0x4842D4C EQ PUSH2 0x3B1 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x3B9 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x39B PUSH2 0x396 CALLDATASIZE PUSH1 0x4 PUSH2 0x58C7 JUMP JUMPDEST PUSH2 0x721 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x39B PUSH2 0x7C7 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0x7D6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5DBE JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x3DC CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x86C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x883 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x3E1 PUSH2 0x91B JUMP JUMPDEST PUSH2 0x39B PUSH2 0x93F JUMP JUMPDEST PUSH2 0x410 PUSH2 0x945 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5CD0 JUMP JUMPDEST PUSH2 0x427 PUSH2 0x96E JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5C8D JUMP JUMPDEST PUSH2 0x43C PUSH2 0x978 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5BA9 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x457 CALLDATASIZE PUSH1 0x4 PUSH2 0x5454 JUMP JUMPDEST PUSH2 0xA13 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x46A CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xA87 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x47D CALLDATASIZE PUSH1 0x4 PUSH2 0x5A16 JUMP JUMPDEST PUSH2 0xAEB JUMP JUMPDEST PUSH2 0x48A PUSH2 0xBCE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5E29 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xBD7 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x4AD CALLDATASIZE PUSH1 0x4 PUSH2 0x59E6 JUMP JUMPDEST PUSH2 0xBE1 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xBFD JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x4C8 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0xC21 JUMP JUMPDEST PUSH2 0x4D5 PUSH2 0xC5C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5E00 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0xC87 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x4F9 CALLDATASIZE PUSH1 0x4 PUSH2 0x5702 JUMP JUMPDEST PUSH2 0xC99 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0xCB7 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x514 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xCC9 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0xCE4 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x53C PUSH2 0x537 CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0xD58 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5DD1 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xD8F JUMP JUMPDEST PUSH2 0x55A PUSH2 0xDFB JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5DEA JUMP JUMPDEST PUSH2 0x39B PUSH2 0x577 CALLDATASIZE PUSH1 0x4 PUSH2 0x59E6 JUMP JUMPDEST PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x58A CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xECF JUMP JUMPDEST PUSH2 0x5A2 PUSH2 0x59D CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0xEEA JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5CA0 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0xFED JUMP JUMPDEST PUSH2 0x39B PUSH2 0x5C6 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x1011 JUMP JUMPDEST PUSH2 0x5DE PUSH2 0x5D9 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x101C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5E0E JUMP JUMPDEST PUSH2 0x39B PUSH2 0x107E JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x10A2 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x60C CALLDATASIZE PUSH1 0x4 PUSH2 0x56BE JUMP JUMPDEST PUSH2 0x10B4 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x1106 JUMP JUMPDEST PUSH2 0x53C PUSH2 0x627 CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0x1134 JUMP JUMPDEST PUSH2 0x634 PUSH2 0x115A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5B95 JUMP JUMPDEST PUSH2 0x634 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x39B PUSH2 0x657 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x11A2 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0x11BD JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x672 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x121E JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x685 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x125C JUMP JUMPDEST PUSH2 0x634 PUSH2 0x1269 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x6A0 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x1273 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x12BF JUMP JUMPDEST PUSH2 0x634 PUSH2 0x12D1 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x6CB CALLDATASIZE PUSH1 0x4 PUSH2 0x5494 JUMP JUMPDEST PUSH2 0x12F5 JUMP JUMPDEST PUSH2 0x5A2 PUSH2 0x6DE CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0x1380 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x6F1 CALLDATASIZE PUSH1 0x4 PUSH2 0x541C JUMP JUMPDEST PUSH2 0x14A3 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x14E0 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x14E6 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x1512 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x71C CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x151C JUMP JUMPDEST PUSH1 0x0 DUP5 PUSH1 0x80 ADD MLOAD PUSH2 0x74E PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH1 0xCD PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x763 PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST DUP3 EQ PUSH2 0x1F4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x76B PUSH2 0x1727 JUMP JUMPDEST PUSH2 0x77D DUP5 DUP5 PUSH2 0x778 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0x175B JUMP JUMPDEST PUSH1 0x60 PUSH2 0x787 PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP8 MLOAD PUSH1 0x1 DUP2 GT ISZERO PUSH2 0x798 JUMPI INVALID JUMPDEST EQ PUSH2 0x7AF JUMPI PUSH2 0x7AA DUP8 DUP8 DUP8 DUP8 DUP6 PUSH2 0x180C JUMP JUMPDEST PUSH2 0x7BC JUMP JUMPDEST PUSH2 0x7BC DUP8 DUP8 DUP8 DUP8 DUP6 PUSH2 0x1865 JUMP JUMPDEST SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x18A0 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x845 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x879 CALLER DUP5 DUP5 PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x88B PUSH2 0x190F JUMP JUMPDEST PUSH2 0x893 PUSH2 0x91B JUMP JUMPDEST ISZERO PUSH2 0x8C3 JUMPI PUSH2 0x8C3 PUSH32 0x0 PUSH1 0x0 PUSH2 0x1984 JUMP JUMPDEST PUSH2 0x8EE PUSH32 0x0 PUSH1 0x2 PUSH2 0x1984 JUMP JUMPDEST PUSH2 0x919 PUSH32 0x0 PUSH1 0x3 PUSH2 0x1984 JUMP JUMPDEST JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x952 PUSH2 0x1B28 JUMP JUMPDEST ISZERO SWAP3 POP PUSH2 0x95D PUSH2 0x1B45 JUMP JUMPDEST SWAP2 POP PUSH2 0x967 PUSH2 0x1B69 JUMP JUMPDEST SWAP1 POP SWAP1 SWAP2 SWAP3 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x7D1 PUSH2 0x1773 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x984 PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x99F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x9C9 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0xA0C JUMPI PUSH2 0x9E0 DUP2 PUSH2 0x1B8D JUMP JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x9EC JUMPI INVALID JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x20 SWAP3 DUP4 MUL SWAP2 SWAP1 SWAP2 ADD SWAP1 SWAP2 ADD MSTORE PUSH1 0x1 ADD PUSH2 0x9CF JUMP JUMPDEST POP SWAP2 POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xA20 DUP6 CALLER PUSH2 0x14A3 JUMP JUMPDEST SWAP1 POP PUSH2 0xA44 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND EQ DUP1 PUSH2 0xA3C JUMPI POP DUP4 DUP3 LT ISZERO JUMPDEST PUSH2 0x19E PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xA4F DUP6 DUP6 DUP6 PUSH2 0x1CB6 JUMP JUMPDEST CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND EQ DUP1 ISZERO SWAP1 PUSH2 0xA6A JUMPI POP PUSH1 0x0 NOT DUP2 EQ ISZERO JUMPDEST ISZERO PUSH2 0xA7C JUMPI PUSH2 0xA7C DUP6 CALLER DUP6 DUP5 SUB PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0xA8F PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xA9A DUP3 PUSH2 0x1E34 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0xAA7 DUP3 PUSH2 0x1B8D JUMP JUMPDEST SWAP1 POP PUSH2 0xAC0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD PUSH2 0xAD8 SWAP1 PUSH2 0x1FC2 JUMP JUMPDEST SWAP1 POP PUSH2 0xAE5 DUP4 DUP4 DUP4 PUSH2 0x1FD1 JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0xAF3 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xB03 PUSH1 0x1 DUP4 LT ISZERO PUSH2 0x12C PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xB14 PUSH2 0x1388 DUP4 GT ISZERO PUSH2 0x12D PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB20 DUP3 TIMESTAMP PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0xB34 PUSH3 0x15180 DUP3 LT ISZERO PUSH2 0x13D PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xB3F PUSH2 0x20E2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0xB50 DUP2 ISZERO PUSH2 0x13E PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB5E DUP7 PUSH2 0x3E8 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP4 DUP3 GT PUSH2 0xB8D JUMPI PUSH2 0xB88 PUSH2 0xB79 PUSH3 0x15180 DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP5 DUP9 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2156 JUMP JUMPDEST PUSH2 0xBA7 JUMP JUMPDEST PUSH2 0xBA7 PUSH2 0xB9D PUSH3 0x15180 DUP5 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP7 DUP9 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH2 0xBB9 PUSH1 0x2 DUP3 GT ISZERO PUSH2 0x13F PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xBC5 DUP5 DUP4 TIMESTAMP DUP10 PUSH2 0x2189 JUMP JUMPDEST POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x1512 JUMP JUMPDEST PUSH2 0xBE9 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xBF1 PUSH2 0x21D8 JUMP JUMPDEST PUSH2 0xBFA DUP2 PUSH2 0x21EB JUMP JUMPDEST POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x879 SWAP2 DUP6 SWAP1 PUSH2 0xC57 SWAP1 DUP7 PUSH2 0x2264 JUMP JUMPDEST PUSH2 0x18A7 JUMP JUMPDEST PUSH1 0xC SLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 PUSH2 0xC71 DUP2 PUSH1 0xE9 PUSH1 0x17 PUSH2 0x170A JUMP JUMPDEST SWAP3 POP PUSH2 0xC80 DUP2 PUSH1 0x0 PUSH1 0xE9 PUSH2 0x170A JUMP JUMPDEST SWAP2 POP POP SWAP1 SWAP2 JUMP JUMPDEST PUSH2 0xC8F PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x0 PUSH2 0x2276 JUMP JUMPDEST PUSH2 0xCA1 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xCA9 PUSH2 0x21D8 JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x22E9 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0xCBF PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x1 PUSH2 0x23DE JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0xCD7 DUP4 PUSH2 0x1E34 JUMP JUMPDEST PUSH2 0x2435 JUMP JUMPDEST SWAP1 POP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0xD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH1 0x0 SWAP1 PUSH2 0x7D1 SWAP1 PUSH1 0xC0 PUSH1 0x3F PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0xD6E DUP7 MLOAD PUSH2 0xD69 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0xD83 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 PUSH2 0x2488 PUSH2 0x24AA PUSH2 0x2513 JUMP JUMPDEST SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0xDA1 PUSH2 0x263D JUMP JUMPDEST SWAP4 SWAP9 POP SWAP2 SWAP7 POP SWAP5 POP SWAP3 POP SWAP1 POP PUSH1 0x0 PUSH2 0xDB9 DUP6 DUP6 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0xDC5 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP5 DUP3 EQ PUSH2 0xDE0 JUMPI PUSH2 0xDDB DUP3 DUP10 PUSH2 0x272D JUMP JUMPDEST PUSH2 0xDE2 JUMP JUMPDEST DUP4 JUMPDEST SWAP1 POP PUSH2 0xDEE DUP2 DUP5 PUSH2 0x288F JUMP JUMPDEST SWAP9 POP POP POP POP POP POP POP POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0xE08 PUSH2 0x20E2 JUMP JUMPDEST SWAP1 SWAP5 SWAP1 SWAP4 POP PUSH2 0x3E8 SWAP3 POP SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xE20 PUSH2 0x12AE JUMP JUMPDEST ISZERO PUSH2 0xE2D JUMPI POP PUSH1 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH2 0xE79 JUMPI PUSH2 0xE3A PUSH2 0x91B JUMP JUMPDEST PUSH2 0xE64 JUMPI PUSH32 0x0 PUSH2 0xE72 JUMP JUMPDEST PUSH1 0xB SLOAD PUSH8 0xFFFFFFFFFFFFFFFF AND JUMPDEST SWAP1 POP PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH2 0xEA1 JUMPI POP PUSH1 0xB SLOAD PUSH9 0x10000000000000000 SWAP1 DIV PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH2 0xEC4 JUMPI POP PUSH1 0xB SLOAD PUSH1 0x1 PUSH1 0x80 SHL SWAP1 DIV PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH2 0xCDF JUMP JUMPDEST PUSH2 0xCDF PUSH2 0x1BB PUSH2 0x28E0 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x60 DUP1 DUP9 PUSH2 0xEF9 PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH2 0xF04 PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0xF11 DUP7 PUSH2 0x28F0 JUMP JUMPDEST ISZERO PUSH2 0xF39 JUMPI PUSH2 0xF1E PUSH2 0x291F JUMP JUMPDEST PUSH2 0xF30 DUP10 PUSH2 0xF2A PUSH2 0x93F JUMP JUMPDEST DUP9 PUSH2 0x2932 JUMP JUMPDEST SWAP3 POP SWAP1 POP PUSH2 0xF8B JUMP JUMPDEST PUSH2 0xF41 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0xF4B PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0xF57 DUP11 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0xF7B DUP14 DUP14 DUP14 DUP14 DUP14 PUSH2 0xF67 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0xF71 JUMPI DUP14 PUSH2 0xF74 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP8 DUP15 PUSH2 0x2488 JUMP JUMPDEST SWAP4 POP SWAP2 POP PUSH2 0xF89 DUP4 DUP3 PUSH2 0x24AA JUMP JUMPDEST POP JUMPDEST PUSH2 0xF95 DUP12 DUP3 PUSH2 0x29E0 JUMP JUMPDEST DUP2 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0xFAE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0xFD8 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP5 POP SWAP5 POP POP POP JUMPDEST POP SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x11A2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xA PUSH1 0x0 PUSH2 0x1031 DUP9 PUSH2 0x1E34 JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 ADD PUSH1 0x0 KECCAK256 SLOAD SWAP1 POP PUSH2 0x1052 DUP2 ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x105B DUP2 PUSH2 0x29EA JUMP JUMPDEST SWAP5 POP PUSH2 0x1066 DUP2 PUSH2 0x29F8 JUMP JUMPDEST SWAP4 POP PUSH2 0x1071 DUP2 PUSH2 0x2A06 JUMP JUMPDEST SWAP6 SWAP8 SWAP5 SWAP7 POP SWAP5 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH2 0x10AA PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x1 PUSH2 0x2276 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x10E9 SWAP3 SWAP2 SWAP1 PUSH2 0x5B52 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x1113 PUSH2 0x263D JUMP JUMPDEST POP POP SWAP3 POP SWAP3 POP POP PUSH2 0x112D DUP2 DUP4 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP3 POP POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x1145 DUP7 MLOAD PUSH2 0xD69 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0xD83 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 PUSH2 0x2A28 PUSH2 0x2A39 PUSH2 0x2513 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x4 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x122B CALLER DUP6 PUSH2 0x14A3 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 LT PUSH2 0x1245 JUMPI PUSH2 0x1240 CALLER DUP6 PUSH1 0x0 PUSH2 0x18A7 JUMP JUMPDEST PUSH2 0x1252 JUMP JUMPDEST PUSH2 0x1252 CALLER DUP6 DUP6 DUP5 SUB PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x879 CALLER DUP5 DUP5 PUSH2 0x1CB6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x2AA2 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP1 ISZERO PUSH2 0xCDC JUMPI POP PUSH2 0xCDC PUSH2 0x12A9 DUP4 PUSH2 0x1E34 JUMP JUMPDEST PUSH2 0x2B1C JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH1 0x0 SWAP1 PUSH2 0x7D1 SWAP1 PUSH1 0xFF PUSH2 0x2B47 JUMP JUMPDEST PUSH2 0x12C7 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x0 PUSH2 0x23DE JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x6E71EDAE12B1B97F4D1F60370FEF10105FA2FAAE0126114A169C64845D6126C9 DUP9 DUP9 DUP9 PUSH2 0x1324 DUP13 PUSH2 0x11A2 JUMP JUMPDEST DUP10 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x133A SWAP7 SWAP6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5D10 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP PUSH2 0x136B DUP9 DUP3 PUSH2 0x1362 DUP8 DUP8 DUP8 PUSH2 0x2B51 JUMP JUMPDEST DUP9 PUSH2 0x1F8 PUSH2 0x2B90 JUMP JUMPDEST PUSH2 0x1376 DUP9 DUP9 DUP9 PUSH2 0x18A7 JUMP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP1 DUP9 PUSH2 0x138F PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x139A PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST PUSH2 0x13A2 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x13AC PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0x13B6 PUSH2 0x93F JUMP JUMPDEST PUSH2 0x1463 JUMPI PUSH1 0x0 PUSH1 0x60 PUSH2 0x13CB DUP14 DUP14 DUP14 DUP7 DUP12 PUSH2 0x2BE7 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x13E4 PUSH2 0x13DA PUSH2 0x18A0 JUMP JUMPDEST DUP4 LT ISZERO PUSH1 0xCC PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x13F6 PUSH1 0x0 PUSH2 0x13F1 PUSH2 0x18A0 JUMP JUMPDEST PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x1409 DUP12 PUSH2 0x1402 PUSH2 0x18A0 JUMP JUMPDEST DUP5 SUB PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x1413 DUP2 DUP5 PUSH2 0x2A39 JUMP JUMPDEST DUP1 DUP11 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x142C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1456 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP6 POP SWAP6 POP POP POP POP PUSH2 0xFE0 JUMP JUMPDEST PUSH2 0x146D DUP9 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x1495 DUP14 DUP14 DUP14 DUP14 DUP14 PUSH2 0x1481 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x148B JUMPI DUP14 PUSH2 0x148E JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP10 DUP15 PUSH2 0x2A28 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x1409 DUP12 DUP4 PUSH2 0x2CC0 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x14AD PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x14CF JUMPI POP PUSH1 0x0 NOT PUSH2 0x87D JUMP JUMPDEST PUSH2 0x14D9 DUP4 DUP4 PUSH2 0x2CCA JUMP JUMPDEST SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 NOT DUP2 JUMP JUMPDEST PUSH2 0x14EE PUSH2 0x20B4 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x14F9 PUSH2 0x20E2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x1509 DUP2 PUSH2 0x140 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xCB3 DUP3 PUSH2 0x2CF5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x2D30 JUMP JUMPDEST PUSH2 0x1524 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x152C PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1537 DUP4 PUSH2 0x1E34 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x1544 DUP3 PUSH2 0x1B8D JUMP JUMPDEST SWAP1 POP PUSH2 0x155D PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1568 DUP3 DUP3 DUP6 PUSH2 0x1FD1 JUMP JUMPDEST DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH32 0xDD6D1C9BADB346DE6925B358A472C937B41698D2632696759E43FD6527FEEEC4 DUP6 PUSH1 0x40 MLOAD PUSH2 0x15A2 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP POP JUMP JUMPDEST DUP1 PUSH2 0xCB3 DUP2 PUSH2 0x2DCD JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x15DE DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST DIV EQ JUMPDEST PUSH1 0x3 PUSH2 0x1719 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0xCB3 DUP2 DUP4 EQ PUSH1 0x67 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 DUP3 SHL NOT DUP5 AND DUP3 DUP5 PUSH2 0x1608 JUMPI PUSH1 0x0 PUSH2 0x160B JUMP JUMPDEST PUSH1 0x1 JUMPDEST PUSH1 0xFF AND SWAP1 SHL OR SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0x1631 DUP3 DUP5 EQ DUP1 ISZERO PUSH2 0x162A JUMPI POP DUP2 DUP4 EQ JUMPDEST PUSH1 0x67 PUSH2 0x1719 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1643 DUP5 DUP5 DUP5 PUSH2 0x2E46 JUMP JUMPDEST POP DUP3 DUP3 SHL PUSH1 0x0 NOT PUSH1 0x1 DUP4 SHL ADD DUP4 SHL NOT DUP6 AND OR JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x166E DUP4 DUP4 GT ISZERO PUSH1 0x1 PUSH2 0x1719 JUMP JUMPDEST POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1687 PUSH1 0x60 DUP5 SWAP1 SHR ISZERO PUSH2 0x149 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1656 TIMESTAMP DUP4 ADD PUSH1 0xE0 PUSH1 0x20 PUSH2 0x16A4 DUP7 PUSH1 0xC0 DUP4 DUP4 DUP13 DUP13 PUSH1 0x0 PUSH1 0x60 PUSH2 0x1636 JUMP JUMPDEST SWAP3 SWAP2 SWAP1 PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0x16BA DUP4 PUSH2 0x29EA JUMP JUMPDEST DUP4 SWAP1 PUSH1 0x60 DUP1 PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x16DD PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT ISZERO PUSH2 0x1BA PUSH2 0x1719 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x16EE DUP5 DUP5 DUP5 PUSH2 0x2E46 JUMP JUMPDEST POP POP SHL SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT PUSH2 0x1703 JUMPI DUP2 PUSH2 0x15DE JUMP JUMPDEST POP SWAP1 SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x1 SWAP1 SHL PUSH1 0x0 NOT ADD SWAP2 SWAP1 SHR AND SWAP1 JUMP JUMPDEST DUP2 PUSH2 0xCB3 JUMPI PUSH2 0xCB3 DUP2 PUSH2 0x28E0 JUMP JUMPDEST PUSH2 0x172F PUSH2 0x2E8C JUMP JUMPDEST PUSH2 0x919 PUSH2 0x2E94 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH2 0x1631 DUP2 DUP5 LT DUP1 ISZERO PUSH2 0x176C JUMPI POP DUP2 DUP4 LT JUMPDEST PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x177F PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x179A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x17C4 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0xA0C JUMPI PUSH2 0x17ED PUSH2 0x17DE DUP3 PUSH2 0x2435 JUMP JUMPDEST PUSH2 0x17E7 DUP4 PUSH2 0x2EBC JUMP JUMPDEST SWAP1 PUSH2 0x2FDA JUMP JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x17F9 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x17CA JUMP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ DUP1 PUSH2 0x1836 JUMPI POP PUSH1 0x40 DUP7 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ JUMPDEST PUSH2 0x184C JUMPI PUSH2 0x1847 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3006 JUMP JUMPDEST PUSH2 0x1859 JUMP JUMPDEST PUSH2 0x1859 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3070 JUMP JUMPDEST SWAP1 POP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ DUP1 PUSH2 0x188F JUMPI POP PUSH1 0x40 DUP7 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ JUMPDEST PUSH2 0x184C JUMPI PUSH2 0x1847 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3174 JUMP JUMPDEST PUSH3 0xF4240 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 SWAP1 SWAP2 MSTORE SWAP1 DUP2 SWAP1 KECCAK256 DUP5 SWAP1 SSTORE MLOAD PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP1 PUSH2 0x1902 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH2 0x1917 PUSH2 0x1D96 JUMP JUMPDEST PUSH2 0x191F PUSH2 0x21D8 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x192E PUSH2 0x263D JUMP JUMPDEST SWAP5 POP SWAP5 POP SWAP5 POP POP SWAP4 POP PUSH1 0x0 DUP4 GT ISZERO PUSH2 0x1949 JUMPI PUSH2 0x1949 DUP4 PUSH2 0x31CB JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1953 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP4 DUP3 EQ PUSH2 0x196E JUMPI PUSH2 0x1969 DUP3 DUP8 PUSH2 0x272D JUMP JUMPDEST PUSH2 0x1970 JUMP JUMPDEST DUP3 JUMPDEST SWAP1 POP PUSH2 0x197C DUP3 DUP3 PUSH2 0x31DC JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x1A7C3263 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND SWAP1 PUSH4 0x1A7C3263 SWAP1 PUSH2 0x19B3 SWAP1 DUP6 SWAP1 PUSH1 0x4 ADD PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x19CB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x19DF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x1A03 SWAP2 SWAP1 PUSH2 0x59FE JUMP JUMPDEST SWAP1 POP DUP2 PUSH2 0x1A3A JUMPI PUSH2 0x1A13 DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF NOT AND PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH2 0x1A88 JUMPI PUSH2 0x1A4C DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH9 0x10000000000000000 MUL PUSH16 0xFFFFFFFFFFFFFFFF0000000000000000 NOT SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH2 0x1AE0 JUMPI PUSH2 0x1A9A DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH1 0x1 PUSH1 0x80 SHL MUL PUSH32 0xFFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH2 0x1AEB PUSH2 0x1BB PUSH2 0x28E0 JUMP JUMPDEST DUP2 PUSH32 0x6BFB689528FA96EC1AD670AD6D6064BE1AE96BFD5D2EE35C837FD0FE0C11959A DUP3 PUSH1 0x40 MLOAD PUSH2 0x1B1B SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1B32 PUSH2 0x1B69 JUMP JUMPDEST TIMESTAMP GT DUP1 PUSH2 0x7D1 JUMPI POP POP PUSH1 0x7 SLOAD PUSH1 0xFF AND ISZERO SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH2 0x1BBB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x1 EQ ISZERO PUSH2 0x1BEB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x2 EQ ISZERO PUSH2 0x1C1B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x3 EQ ISZERO PUSH2 0x1C4B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x4 EQ ISZERO PUSH2 0x1C7B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x5 EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH2 0xCDF PUSH2 0x135 PUSH2 0x28E0 JUMP JUMPDEST PUSH2 0x1CCD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND ISZERO ISZERO PUSH2 0x198 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1CE4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x199 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1CEF DUP4 DUP4 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x1D15 SWAP1 DUP3 PUSH2 0x1A0 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP1 DUP5 AND DUP2 MSTORE KECCAK256 SLOAD PUSH2 0x1D44 SWAP1 DUP3 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP2 MLOAD SWAP1 DUP6 AND SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 PUSH2 0x1902 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x0 DUP1 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 PUSH2 0x1DC9 JUMP JUMPDEST PUSH2 0x1DB6 PUSH2 0x526C JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x1DAE JUMPI SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x1DD4 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xE8E3E84 DUP3 PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1DFF SWAP2 SWAP1 PUSH2 0x5BF6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x1E19 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1E2D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1E78 JUMPI POP PUSH1 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1EBA JUMPI POP PUSH1 0x1 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1EFC JUMPI POP PUSH1 0x2 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1F3E JUMPI POP PUSH1 0x3 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1F80 JUMPI POP PUSH1 0x4 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH1 0x5 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH1 0xC0 PUSH1 0x20 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x679AEFCE PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x200C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2020 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x2044 SWAP2 SWAP1 PUSH2 0x59FE JUMP JUMPDEST PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 SWAP2 POP PUSH2 0x2061 DUP2 DUP4 DUP6 PUSH2 0x1674 JUMP JUMPDEST PUSH1 0x0 DUP7 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE MLOAD DUP6 SWAP1 PUSH32 0xB77A83204CA282E08DC3A65B0A1CA32EA4E6875C38EF0BF5BF75E52A67354FAC SWAP1 PUSH2 0x20A5 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x20CB PUSH1 0x0 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH2 0x10B4 JUMP JUMPDEST SWAP1 POP PUSH2 0xBFA PUSH2 0x20DA DUP3 CALLER PUSH2 0x3218 JUMP JUMPDEST PUSH2 0x191 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x20F3 PUSH2 0x3301 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP DUP1 TIMESTAMP LT ISZERO PUSH2 0x2146 JUMPI PUSH1 0x1 SWAP5 POP DUP4 DUP4 GT ISZERO PUSH2 0x212A JUMPI DUP2 DUP2 SUB DUP3 TIMESTAMP SUB DUP6 DUP6 SUB MUL DUP2 PUSH2 0x2120 JUMPI INVALID JUMPDEST DIV DUP5 ADD SWAP6 POP PUSH2 0x2141 JUMP JUMPDEST DUP2 DUP2 SUB DUP3 TIMESTAMP SUB DUP5 DUP7 SUB MUL DUP2 PUSH2 0x213B JUMPI INVALID JUMPDEST DIV DUP5 SUB SWAP6 POP JUMPDEST PUSH2 0x214E JUMP JUMPDEST PUSH1 0x0 SWAP5 POP DUP3 SWAP6 POP JUMPDEST POP POP POP POP SWAP1 SWAP2 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2165 DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x2172 JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST DUP2 PUSH1 0x1 DUP5 SUB DUP2 PUSH2 0x217E JUMPI INVALID JUMPDEST DIV PUSH1 0x1 ADD SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x2195 DUP5 DUP5 DUP5 DUP5 PUSH2 0x3360 JUMP JUMPDEST PUSH32 0x1835882EE7A34AC194F717A35E09BB1D24C82A3B9D854AB6C9749525B714CDF2 DUP5 DUP5 DUP5 DUP5 PUSH1 0x40 MLOAD PUSH2 0x21CA SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5E0E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP POP POP POP JUMP JUMPDEST PUSH2 0x919 PUSH2 0x21E3 PUSH2 0x1B28 JUMP JUMPDEST PUSH2 0x192 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2200 PUSH2 0x21F6 PUSH2 0x339F JUMP JUMPDEST DUP3 LT ISZERO PUSH1 0xCB PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2215 PUSH2 0x220B PUSH2 0x33A8 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0xCA PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH2 0x2226 SWAP1 DUP3 PUSH1 0xC0 PUSH1 0x3F PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xA9BA3FFE0B6C366B81232CAAB38605A0699AD5398D6CCE76F91EE809E322DAFC SWAP1 PUSH2 0x2259 SWAP1 DUP4 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 ADD PUSH2 0x15DE DUP5 DUP3 LT ISZERO DUP4 PUSH2 0x1719 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x2296 JUMPI PUSH2 0x2291 PUSH2 0x2287 PUSH2 0x1B45 JUMP JUMPDEST TIMESTAMP LT PUSH2 0x193 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x22AB JUMP JUMPDEST PUSH2 0x22AB PUSH2 0x22A1 PUSH2 0x1B69 JUMP JUMPDEST TIMESTAMP LT PUSH2 0x1A9 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x7 DUP1 SLOAD PUSH1 0xFF NOT AND DUP3 ISZERO ISZERO OR SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH32 0x9E3A5E37224532DEA67B89FACE185703738A228A6E8A23DEE546960180D3BE64 SWAP1 PUSH2 0x2259 SWAP1 DUP4 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x22F3 PUSH2 0xBFD JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x22FF PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xB05F8E48 DUP4 DUP7 PUSH1 0x40 MLOAD DUP4 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x232C SWAP3 SWAP2 SWAP1 PUSH2 0x5D89 JUMP JUMPDEST PUSH1 0x80 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2344 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2358 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x237C SWAP2 SWAP1 PUSH2 0x5A37 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x639CDB5 PUSH1 0xE2 SHL DUP2 MSTORE SWAP1 SWAP5 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP6 AND SWAP4 POP PUSH4 0x18E736D4 SWAP3 POP PUSH2 0x23B0 SWAP2 POP DUP6 SWAP1 DUP8 SWAP1 PUSH1 0x4 ADD PUSH2 0x5D70 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x23CA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1376 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST PUSH1 0x8 SLOAD PUSH2 0x23ED SWAP1 DUP3 PUSH1 0xFF PUSH2 0x15F2 JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xEFF3D4D215B42BF0960BE9C6D5E05C22CBA4DF6627A3A523E2ACEE733B5854C8 SWAP1 PUSH2 0x2420 SWAP1 DUP4 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 DUP1 PUSH2 0xBFA JUMPI PUSH2 0xBFA PUSH2 0x33B4 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x243F PUSH2 0x107E JUMP JUMPDEST DUP3 EQ ISZERO PUSH2 0x2455 JUMPI POP PUSH8 0xDE0B6B3A7640000 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 ISZERO PUSH2 0x2478 JUMPI PUSH2 0x2473 DUP2 PUSH2 0x29EA JUMP JUMPDEST PUSH2 0x15DE JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2499 PUSH1 0x0 DUP9 DUP7 DUP7 PUSH2 0x348E JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP9 POP SWAP9 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x24B9 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x24F4 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x24D3 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x24E7 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x288F JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2500 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x24BC JUMP JUMPDEST CALLER ADDRESS EQ PUSH2 0x25D1 JUMPI PUSH1 0x0 ADDRESS PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 CALLDATASIZE PUSH1 0x40 MLOAD PUSH2 0x2537 SWAP3 SWAP2 SWAP1 PUSH2 0x5B6A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP7 GAS CALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x2574 JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x2579 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP POP SWAP1 POP DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x2588 JUMPI INVALID JUMPDEST PUSH1 0x4 PUSH1 0x0 DUP1 RETURNDATACOPY PUSH1 0x0 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH4 0x43ADBAFB PUSH1 0xE0 SHL DUP2 EQ PUSH2 0x25B3 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x4 PUSH1 0x0 RETURNDATACOPY PUSH1 0x40 PUSH1 0x20 MSTORE PUSH1 0x24 RETURNDATASIZE SUB PUSH1 0x24 PUSH1 0x40 RETURNDATACOPY PUSH1 0x1C RETURNDATASIZE ADD PUSH1 0x0 RETURN JUMPDEST PUSH2 0x25D9 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x25E3 PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0x25EF DUP8 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2607 DUP13 DUP13 DUP13 DUP13 DUP13 DUP13 DUP10 DUP14 DUP14 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x2619 DUP2 DUP5 DUP7 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1F NOT DUP3 ADD DUP4 SWAP1 MSTORE PUSH4 0x43ADBAFB PUSH1 0x3F NOT DUP4 ADD MSTORE PUSH1 0x20 MUL PUSH1 0x23 NOT DUP3 ADD PUSH1 0x44 DUP3 ADD DUP2 REVERT JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x60 PUSH2 0x264F PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xF94D4668 PUSH2 0x2665 PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x2681 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2699 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x26AD JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY PUSH1 0x1F RETURNDATASIZE SWAP1 DUP2 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x40 MSTORE PUSH2 0x26D5 SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x552F JUMP JUMPDEST POP SWAP2 POP POP PUSH2 0x26EA DUP2 PUSH2 0x26E5 PUSH2 0x1773 JUMP JUMPDEST PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x26F3 DUP2 PUSH2 0x353C JUMP JUMPDEST SWAP7 POP SWAP5 POP PUSH1 0x0 PUSH2 0x2701 PUSH2 0xC5C JUMP JUMPDEST SWAP1 SWAP5 POP SWAP1 POP PUSH1 0x0 PUSH2 0x2713 DUP9 DUP7 DUP5 PUSH2 0x3575 JUMP JUMPDEST SWAP5 POP SWAP1 POP PUSH2 0x2721 DUP8 DUP3 PUSH2 0x35F1 JUMP JUMPDEST SWAP6 POP POP POP POP SWAP1 SWAP2 SWAP3 SWAP4 SWAP5 JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x276E JUMPI PUSH2 0x2764 DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x274D JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP3 POP PUSH1 0x1 ADD PUSH2 0x2736 JUMP JUMPDEST POP DUP2 PUSH2 0x277F JUMPI PUSH1 0x0 SWAP3 POP POP POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 DUP3 DUP7 DUP4 MUL DUP3 JUMPDEST PUSH1 0xFF DUP2 LT ISZERO PUSH2 0x2878 JUMPI DUP3 PUSH1 0x0 JUMPDEST DUP7 DUP2 LT ISZERO PUSH2 0x27D5 JUMPI PUSH2 0x27CB PUSH2 0x27A9 DUP4 DUP8 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x27B8 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP11 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3609 JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x2794 JUMP JUMPDEST POP DUP4 SWAP5 POP PUSH2 0x282E PUSH2 0x280D PUSH2 0x2807 PUSH2 0x27EC DUP5 DUP11 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2801 PUSH2 0x27F9 DUP9 DUP14 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3E8 PUSH2 0x3609 JUMP JUMPDEST SWAP1 PUSH2 0x2264 JUMP JUMPDEST DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 PUSH2 0x281D DUP10 PUSH1 0x1 ADD DUP6 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2801 PUSH2 0x27F9 PUSH2 0x3E8 DUP10 SUB DUP11 PUSH2 0x15BA JUMP JUMPDEST SWAP4 POP DUP5 DUP5 GT ISZERO PUSH2 0x2856 JUMPI PUSH1 0x1 DUP6 DUP6 SUB GT PUSH2 0x2851 JUMPI DUP4 SWAP8 POP POP POP POP POP POP POP POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x286F JUMP JUMPDEST PUSH1 0x1 DUP5 DUP7 SUB GT PUSH2 0x286F JUMPI DUP4 SWAP8 POP POP POP POP POP POP POP POP PUSH2 0x87D JUMP JUMPDEST POP PUSH1 0x1 ADD PUSH2 0x2787 JUMP JUMPDEST POP PUSH2 0x2884 PUSH2 0x141 PUSH2 0x28E0 JUMP JUMPDEST POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x289E DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x28AB JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 DUP4 DUP2 MUL SWAP1 PUSH2 0x28CE SWAP1 DUP6 DUP4 DUP2 PUSH2 0x28C5 JUMPI INVALID JUMPDEST DIV EQ PUSH1 0x5 PUSH2 0x1719 JUMP JUMPDEST DUP3 DUP2 DUP2 PUSH2 0x28D7 JUMPI INVALID JUMPDEST DIV SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0xBFA DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH2 0x3629 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 MLOAD GT DUP1 ISZERO PUSH2 0xCDC JUMPI POP PUSH1 0xFF DUP1 AND DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x2915 SWAP2 SWAP1 PUSH2 0x5A77 JUMP JUMPDEST PUSH1 0xFF AND EQ SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x919 PUSH2 0x292A PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x1B6 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH1 0x60 PUSH2 0x2943 DUP8 PUSH2 0x353C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH1 0x60 PUSH2 0x2956 DUP4 DUP6 DUP10 PUSH2 0x368A JUMP JUMPDEST SWAP2 POP SWAP2 POP DUP2 PUSH2 0x2966 DUP3 PUSH1 0x0 PUSH2 0x36B6 JUMP JUMPDEST SWAP6 POP SWAP6 POP POP POP POP POP JUMPDEST SWAP4 POP SWAP4 SWAP2 POP POP JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x2986 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x29C1 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x29A0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x29B4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2FDA JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x29CD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x2989 JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x3773 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 DUP3 PUSH1 0x60 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH1 0x60 DUP1 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x2A12 DUP4 PUSH2 0x1FC2 JUMP JUMPDEST SWAP2 POP PUSH2 0x2A21 DUP4 PUSH1 0xE0 PUSH1 0x20 PUSH2 0x170A JUMP JUMPDEST SWAP1 POP SWAP2 POP SWAP2 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2499 PUSH1 0x1 DUP9 DUP7 DUP7 PUSH2 0x348E JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x2A48 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x2A83 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2A62 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x2A76 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x383F JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2A8F JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x2A4B JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2AAC PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xAAABADC5 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2AE4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2AF8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x7D1 SWAP2 SWAP1 PUSH2 0x56E6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH32 0x0 PUSH1 0x6 DUP5 ADD JUMPDEST SHR PUSH1 0x1 SWAP1 DUP2 AND EQ SWAP1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x41 DUP1 DUP3 MSTORE PUSH1 0x80 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP3 SWAP2 SWAP1 PUSH1 0x20 DUP3 ADD DUP2 DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP POP SWAP1 POP DUP4 PUSH1 0x20 DUP3 ADD MSTORE DUP3 PUSH1 0x40 DUP3 ADD MSTORE DUP5 PUSH1 0x60 DUP3 ADD MSTORE8 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B9B DUP6 PUSH2 0x388D JUMP JUMPDEST SWAP1 POP PUSH2 0x2BB1 PUSH2 0x2BAB DUP8 DUP4 DUP8 PUSH2 0x38A9 JUMP JUMPDEST DUP4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2BC0 TIMESTAMP DUP5 LT ISZERO PUSH2 0x1B8 PUSH2 0x1719 JUMP JUMPDEST POP POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x2BF6 DUP5 PUSH2 0x3958 JUMP JUMPDEST SWAP1 POP PUSH2 0x2C11 PUSH1 0x0 DUP3 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x2C09 JUMPI INVALID JUMPDEST EQ PUSH1 0xCE PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x2C1C DUP6 PUSH2 0x396E JUMP JUMPDEST SWAP1 POP PUSH2 0x2C2A DUP2 MLOAD DUP8 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x2C34 DUP2 DUP8 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2C3E PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x60 PUSH2 0x2C4C DUP4 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x2C5A DUP4 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP1 PUSH1 0x0 PUSH2 0x2C77 PUSH14 0x8000000000000000000000000000 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x2C83 DUP14 DUP3 PUSH2 0x2CC0 JUMP JUMPDEST DUP1 DUP7 PUSH2 0x2C8D PUSH2 0x107E JUMP JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x2C97 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x2CAD DUP6 DUP5 PUSH2 0x31DC JUMP JUMPDEST POP SWAP13 SWAP4 SWAP12 POP SWAP3 SWAP10 POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x3A26 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x2D01 DUP2 DUP3 TIMESTAMP TIMESTAMP PUSH2 0x3360 JUMP JUMPDEST PUSH32 0xA0D01593E47E69D07E0CCD87BECE09411E07DD1ED40CA8F2E7AF2976542A0233 DUP2 PUSH1 0x40 MLOAD PUSH2 0x2259 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH32 0x0 PUSH32 0x0 PUSH2 0x2D9D PUSH2 0x3AB3 JUMP JUMPDEST ADDRESS PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x2DB2 SWAP6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5D44 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x2 DUP2 MLOAD LT ISZERO PUSH2 0x2DDC JUMPI PUSH2 0xBFA JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x2DEB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH2 0x1631 JUMPI PUSH1 0x0 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2E13 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH2 0x2E3C DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND LT PUSH1 0x65 PUSH2 0x1719 JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x2DFC JUMP JUMPDEST PUSH2 0x2E55 PUSH2 0x100 DUP4 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2E7D PUSH1 0x1 DUP3 LT ISZERO DUP1 ISZERO PUSH2 0x176C JUMPI POP PUSH2 0x2E73 PUSH1 0xFF DUP5 PUSH2 0x100 SUB PUSH2 0x16F4 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1631 DUP4 DUP3 SHR ISZERO PUSH2 0x1B4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x919 PUSH2 0x21D8 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2E9E PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xCB3 JUMPI PUSH2 0x2EB4 DUP2 PUSH2 0x3AB7 JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x2EA3 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH2 0x2EEA JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x1 EQ ISZERO PUSH2 0x2F1A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x2 EQ ISZERO PUSH2 0x2F4A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x3 EQ ISZERO PUSH2 0x2F7A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x4 EQ ISZERO PUSH2 0x2FAA JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x5 EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x2FF4 DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST PUSH8 0xDE0B6B3A7640000 SWAP1 DIV SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3012 DUP6 DUP4 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x3033 DUP7 PUSH1 0x60 ADD MLOAD DUP4 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3B0B JUMP JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH1 0x0 PUSH2 0x3046 DUP8 DUP8 DUP8 DUP8 PUSH2 0x3B17 JUMP JUMPDEST SWAP1 POP PUSH2 0x3065 DUP2 DUP5 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x3058 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3B2B JUMP JUMPDEST SWAP1 POP PUSH2 0x7BC DUP2 PUSH2 0x3B37 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 DUP8 MLOAD PUSH1 0x1 DUP2 GT ISZERO PUSH2 0x3081 JUMPI INVALID JUMPDEST EQ SWAP1 POP PUSH2 0x308E DUP7 DUP5 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x30AE DUP8 PUSH1 0x60 ADD MLOAD DUP5 DUP4 PUSH2 0x30A2 JUMPI DUP7 PUSH2 0x30A4 JUMP JUMPDEST DUP8 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST DUP8 PUSH1 0x60 ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x30C7 DUP11 PUSH2 0x3B53 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP PUSH1 0x0 DUP1 PUSH2 0x30DA PUSH2 0x107E JUMP JUMPDEST DUP11 EQ PUSH2 0x3100 JUMPI PUSH2 0x30FB DUP8 DUP15 PUSH1 0x60 ADD MLOAD DUP8 PUSH2 0x30F3 DUP15 PUSH2 0x3BBC JUMP JUMPDEST DUP9 DUP12 DUP10 PUSH2 0x3BF1 JUMP JUMPDEST PUSH2 0x311B JUMP JUMPDEST PUSH2 0x311B DUP8 DUP15 PUSH1 0x60 ADD MLOAD DUP8 PUSH2 0x3113 DUP16 PUSH2 0x3BBC JUMP JUMPDEST DUP9 DUP12 DUP10 PUSH2 0x3C2A JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x312C DUP5 DUP7 DUP6 DUP10 DUP6 PUSH2 0x3C4E JUMP JUMPDEST DUP7 PUSH2 0x3146 JUMPI PUSH2 0x3141 DUP3 DUP11 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x3058 JUMPI INVALID JUMPDEST PUSH2 0x3163 JUMP JUMPDEST PUSH2 0x3163 DUP3 DUP11 DUP13 DUP2 MLOAD DUP2 LT PUSH2 0x3156 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3CCE JUMP JUMPDEST SWAP14 SWAP13 POP POP POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3183 DUP7 PUSH1 0x60 ADD MLOAD PUSH2 0x3CDA JUMP JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH2 0x3192 DUP6 DUP4 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x31A6 DUP7 PUSH1 0x60 ADD MLOAD DUP4 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH1 0x0 PUSH2 0x31B9 DUP8 DUP8 DUP8 DUP8 PUSH2 0x3CFB JUMP JUMPDEST SWAP1 POP PUSH2 0x7BC DUP2 DUP5 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x3156 JUMPI INVALID JUMPDEST PUSH2 0xBFA PUSH2 0x31D6 PUSH2 0x12D1 JUMP JUMPDEST DUP3 PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x31E9 DUP2 PUSH1 0x0 PUSH1 0xE9 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x31F6 DUP4 PUSH1 0xE9 PUSH1 0x17 PUSH2 0x16E1 JUMP JUMPDEST OR PUSH1 0xC SSTORE PUSH2 0xCB3 PUSH2 0x3D0F JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3211 DUP5 DUP5 GT ISZERO DUP4 PUSH2 0x1719 JUMP JUMPDEST POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH20 0xBA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1B PUSH2 0x3237 PUSH2 0x115A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO DUP1 ISZERO PUSH2 0x3252 JUMPI POP PUSH2 0x3252 DUP4 PUSH2 0x3D45 JUMP JUMPDEST ISZERO PUSH2 0x327A JUMPI PUSH2 0x325F PUSH2 0x115A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x3282 PUSH2 0x2AA2 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x9BE2A884 DUP5 DUP5 ADDRESS PUSH1 0x40 MLOAD DUP5 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x32B1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5CF1 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x32C9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x32DD JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x14D9 SWAP2 SWAP1 PUSH2 0x55FB JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x3320 PUSH1 0x0 PUSH1 0x40 PUSH1 0x9 SLOAD PUSH2 0x170A SWAP1 SWAP3 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP5 POP PUSH2 0x3332 SWAP1 PUSH1 0x40 DUP1 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP4 POP PUSH2 0x3345 SWAP1 PUSH1 0x80 PUSH1 0x40 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP3 POP PUSH2 0x3358 SWAP1 PUSH1 0xC0 PUSH1 0x40 PUSH2 0x170A JUMP JUMPDEST SWAP1 POP SWAP1 SWAP2 SWAP3 SWAP4 JUMP JUMPDEST PUSH2 0x336D DUP2 PUSH1 0xC0 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x337A DUP4 PUSH1 0x80 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x3386 DUP6 PUSH1 0x40 DUP1 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x3393 DUP8 PUSH1 0x0 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST OR OR OR PUSH1 0x9 SSTORE POP POP POP POP JUMP JUMPDEST PUSH5 0xE8D4A51000 SWAP1 JUMP JUMPDEST PUSH8 0x16345785D8A0000 SWAP1 JUMP JUMPDEST PUSH2 0x33BC PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x33C6 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xF94D4668 PUSH2 0x33DC PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x33F8 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x3410 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x3424 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY PUSH1 0x1F RETURNDATASIZE SWAP1 DUP2 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x40 MSTORE PUSH2 0x344C SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x552F JUMP JUMPDEST POP SWAP2 POP POP PUSH2 0x345C DUP2 PUSH2 0x26E5 PUSH2 0x1773 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x3467 DUP3 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3473 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 PUSH2 0x3482 DUP3 DUP5 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH2 0xAE5 DUP3 DUP3 PUSH2 0x31DC JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x34A2 DUP10 PUSH2 0x3B53 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP PUSH2 0x529C DUP11 PUSH2 0x34BA JUMPI PUSH2 0x3D50 PUSH2 0x34BE JUMP JUMPDEST PUSH2 0x3DE5 JUMPDEST SWAP1 POP PUSH1 0x0 PUSH1 0x60 PUSH2 0x34D6 DUP7 DUP7 DUP10 DUP8 DUP16 DUP16 DUP10 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x529C DUP14 PUSH2 0x34EA JUMPI PUSH2 0x165E PUSH2 0x34EE JUMP JUMPDEST PUSH2 0x2264 JUMPDEST SWAP1 POP PUSH2 0x34FB DUP8 DUP4 DUP4 PUSH2 0x3E63 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x350B DUP10 DUP6 DUP5 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH2 0x351A DUP8 DUP10 DUP9 DUP13 DUP6 PUSH2 0x3C4E JUMP JUMPDEST DUP4 PUSH2 0x3526 DUP5 PUSH1 0x0 PUSH2 0x36B6 JUMP JUMPDEST SWAP11 POP SWAP11 POP POP POP POP POP POP POP POP POP POP SWAP5 POP SWAP5 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x3563 DUP4 PUSH2 0x354C PUSH2 0x107E JUMP JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x3556 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3ED0 JUMP JUMPDEST PUSH2 0x356C DUP5 PUSH2 0x3984 JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP2 POP SWAP2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3588 DUP9 DUP9 DUP9 PUSH2 0x3EE4 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP DUP6 DUP2 GT PUSH2 0x35A3 JUMPI PUSH1 0x0 SWAP5 POP SWAP3 POP PUSH2 0x296F SWAP2 POP POP JUMP JUMPDEST DUP6 DUP4 SUB DUP4 DUP4 SUB PUSH1 0x0 PUSH2 0x35C1 PUSH2 0x35B7 DUP3 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x17E7 DUP6 DUP8 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x35DC PUSH2 0x35D2 PUSH1 0x2 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x17E7 DUP6 DUP9 PUSH2 0x288F JUMP JUMPDEST SWAP2 SWAP1 SWAP2 ADD SWAP12 SWAP4 SWAP11 POP SWAP3 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE PUSH2 0x3600 DUP5 DUP5 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 DUP5 PUSH2 0x3F55 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3618 DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP2 DUP4 DUP2 PUSH2 0x3621 JUMPI INVALID JUMPDEST DIV SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3699 DUP5 PUSH2 0x3F7B JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP8 DUP8 DUP5 PUSH2 0x3F91 JUMP JUMPDEST SWAP2 SWAP8 SWAP2 SWAP7 POP SWAP1 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP3 MLOAD PUSH1 0x1 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x36D3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x36FD JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x376C JUMPI PUSH2 0x3714 PUSH2 0x107E JUMP JUMPDEST DUP2 EQ PUSH2 0x374B JUMPI DUP4 PUSH2 0x3723 PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x3732 JUMPI PUSH1 0x1 DUP3 SUB PUSH2 0x3734 JUMP JUMPDEST DUP2 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x373E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x374D JUMP JUMPDEST DUP3 JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3759 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3703 JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x378A PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x19B PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x3796 DUP3 PUSH1 0x0 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x37BC SWAP1 DUP3 PUSH2 0x1B2 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SSTORE PUSH2 0x37EF PUSH2 0x37EA DUP3 PUSH2 0x37E4 PUSH2 0x93F JUMP JUMPDEST SWAP1 PUSH2 0x4040 JUMP JUMPDEST PUSH2 0x404E JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF DUP4 PUSH1 0x40 MLOAD PUSH2 0x3833 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x384E DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x385B JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 DUP4 DUP2 MUL SWAP1 PUSH2 0x3875 SWAP1 DUP6 DUP4 DUP2 PUSH2 0x28C5 JUMPI INVALID JUMPDEST DUP3 PUSH1 0x1 DUP3 SUB DUP2 PUSH2 0x3881 JUMPI INVALID JUMPDEST DIV PUSH1 0x1 ADD SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3897 PUSH2 0x2D30 JUMP JUMPDEST DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x10E9 SWAP3 SWAP2 SWAP1 PUSH2 0x5B7A JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38BB DUP3 MLOAD PUSH1 0x41 EQ PUSH2 0x1B9 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x20 DUP3 DUP2 ADD MLOAD PUSH1 0x40 DUP1 DUP6 ADD MLOAD PUSH1 0x60 DUP7 ADD MLOAD DUP3 MLOAD PUSH1 0x0 DUP1 DUP3 MSTORE SWAP6 ADD SWAP3 DUP4 SWAP1 MSTORE SWAP3 SWAP4 SWAP1 SWAP3 DUP2 BYTE SWAP2 PUSH1 0x1 SWAP1 PUSH2 0x38F4 SWAP1 DUP10 SWAP1 DUP6 SWAP1 DUP9 SWAP1 DUP9 SWAP1 PUSH2 0x5DA0 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 SUB SWAP1 DUP1 DUP5 SUB SWAP1 DUP6 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x3916 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP PUSH1 0x40 MLOAD PUSH1 0x1F NOT ADD MLOAD SWAP2 POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND ISZERO DUP1 ISZERO SWAP1 PUSH2 0x394C JUMPI POP DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ JUMPDEST SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xCDC SWAP2 SWAP1 PUSH2 0x5811 JUMP JUMPDEST PUSH1 0x60 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x582C JUMP JUMPDEST PUSH1 0x60 DUP1 PUSH1 0x1 DUP4 MLOAD SUB PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x39A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x39CC JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x376C JUMPI DUP4 PUSH2 0x39E4 PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x39F3 JUMPI DUP2 PUSH1 0x1 ADD PUSH2 0x39F5 JUMP JUMPDEST DUP2 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x39FF JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3A13 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x39D2 JUMP JUMPDEST PUSH2 0x3A32 PUSH1 0x0 DUP4 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH2 0x3A41 PUSH2 0x37EA DUP3 PUSH2 0x2801 PUSH2 0x93F JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x3A64 SWAP1 DUP3 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP2 MLOAD SWAP1 SWAP2 SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 PUSH2 0x3833 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST CHAINID SWAP1 JUMP JUMPDEST PUSH2 0x3ABF PUSH2 0x107E JUMP JUMPDEST DUP2 EQ ISZERO PUSH2 0x3ACB JUMPI PUSH2 0xBFA JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 ISZERO PUSH2 0xCB3 JUMPI PUSH1 0x0 DUP1 PUSH2 0x3AEC DUP4 PUSH2 0x2A06 JUMP JUMPDEST SWAP2 POP SWAP2 POP DUP1 TIMESTAMP GT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0xAE5 DUP5 PUSH2 0x3B05 DUP7 PUSH2 0x1B8D JUMP JUMPDEST DUP5 PUSH2 0x1FD1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x2FDA JUMP JUMPDEST PUSH1 0x0 PUSH2 0x185C PUSH1 0x0 DUP7 PUSH1 0x60 ADD MLOAD DUP7 DUP7 DUP7 PUSH2 0x4053 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0x3B4C PUSH2 0x3B47 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x3F55 JUMP JUMPDEST DUP4 SWAP1 PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x3B65 PUSH2 0xC5C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3B7A DUP11 DUP7 DUP7 PUSH2 0x40C5 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP PUSH1 0x0 PUSH2 0x3B8A PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP7 DUP3 EQ PUSH2 0x3BA5 JUMPI PUSH2 0x3BA0 DUP3 DUP6 PUSH2 0x272D JUMP JUMPDEST PUSH2 0x3BA7 JUMP JUMPDEST DUP3 JUMPDEST SWAP5 SWAP13 SWAP4 SWAP12 POP SWAP1 SWAP10 POP SWAP3 SWAP8 POP SWAP1 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3BD3 PUSH2 0x3BC9 PUSH2 0x107E JUMP JUMPDEST DUP4 EQ ISZERO PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x3BDB PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x16DD JUMPI PUSH2 0x3BEC DUP3 PUSH1 0x1 PUSH2 0x165E JUMP JUMPDEST PUSH2 0xCDC JUMP JUMPDEST PUSH1 0x0 DUP1 DUP9 PUSH2 0x3C0C JUMPI PUSH2 0x3C07 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x411D JUMP JUMPDEST PUSH2 0x3C1A JUMP JUMPDEST PUSH2 0x3C1A DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x41F4 JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP9 PUSH2 0x3C40 JUMPI PUSH2 0x3C07 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x4255 JUMP JUMPDEST PUSH2 0x3C1A DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x42BB JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3C5A DUP7 DUP7 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3C68 DUP4 DUP6 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3C76 DUP7 DUP4 PUSH2 0x2FDA JUMP JUMPDEST SWAP1 POP DUP1 DUP4 GT ISZERO PUSH2 0x3CC4 JUMPI DUP1 DUP4 SUB PUSH1 0x0 PUSH2 0x3CA0 PUSH2 0x3C9A DUP4 PUSH2 0x3C95 DUP5 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x15BA JUMP JUMPDEST DUP7 PUSH2 0x3609 JUMP JUMPDEST SWAP1 POP DUP1 ISZERO PUSH2 0x3CC1 JUMPI PUSH1 0x0 PUSH2 0x3CB4 DUP8 DUP4 PUSH2 0x35F1 JUMP JUMPDEST SWAP1 POP PUSH2 0x3CBF DUP2 PUSH2 0x31CB JUMP JUMPDEST POP JUMPDEST POP POP JUMPDEST PUSH2 0x1376 DUP9 DUP5 PUSH2 0x31DC JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x288F JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x3CEF PUSH2 0x3CE8 PUSH2 0xD45 JUMP JUMPDEST DUP5 SWAP1 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH2 0x15DE DUP4 DUP3 PUSH2 0x165E JUMP JUMPDEST PUSH1 0x0 PUSH2 0x185C PUSH1 0x1 DUP7 PUSH1 0x60 ADD MLOAD DUP7 DUP7 DUP7 PUSH2 0x4053 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3D19 PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xCB3 JUMPI PUSH2 0x3D2F DUP2 PUSH2 0x2B1C JUMP JUMPDEST ISZERO PUSH2 0x3D3D JUMPI PUSH2 0x3D3D DUP2 PUSH2 0x43A6 JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x3D1E JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x43D4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3D5F DUP5 PUSH2 0x43DF JUMP JUMPDEST SWAP1 POP PUSH1 0x1 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3D6F JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3D8D JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP10 DUP10 PUSH2 0x43F5 JUMP JUMPDEST SWAP3 POP SWAP3 POP POP PUSH2 0x3DDA JUMP JUMPDEST PUSH1 0x2 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3D9B JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3DAC JUMPI PUSH2 0x3D83 DUP8 DUP11 DUP7 PUSH2 0x4454 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3DBA JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3DCD JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP9 PUSH2 0x4472 JUMP JUMPDEST PUSH2 0x3DD8 PUSH2 0x150 PUSH2 0x28E0 JUMP JUMPDEST POP JUMPDEST SWAP7 POP SWAP7 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3DF4 DUP5 PUSH2 0x3958 JUMP JUMPDEST SWAP1 POP PUSH1 0x1 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E04 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E18 JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP10 DUP10 PUSH2 0x4513 JUMP JUMPDEST PUSH1 0x3 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E26 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E37 JUMPI PUSH2 0x3D83 DUP8 DUP11 DUP7 PUSH2 0x4562 JUMP JUMPDEST PUSH1 0x2 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E45 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E58 JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP9 PUSH2 0x4580 JUMP JUMPDEST PUSH2 0x3DD8 PUSH2 0x136 PUSH2 0x28E0 JUMP JUMPDEST DUP3 MLOAD DUP3 MLOAD PUSH2 0x3E72 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x1E2D JUMPI PUSH2 0x3EB1 DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3E8C JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP6 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x3EA0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP6 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3EBD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3E75 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x3EDE PUSH2 0x93F JUMP JUMPDEST SWAP1 PUSH2 0x165E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3EF3 DUP6 DUP8 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP4 DUP2 GT PUSH2 0x3F07 JUMPI DUP1 DUP2 SWAP3 POP SWAP3 POP PUSH2 0x3F4C JUMP JUMPDEST PUSH2 0x3F19 DUP6 PUSH2 0x3F14 DUP9 PUSH2 0x45FA JUMP JUMPDEST PUSH2 0x272D JUMP JUMPDEST SWAP3 POP PUSH2 0x3F25 DUP2 DUP5 PUSH2 0x16F4 JUMP JUMPDEST SWAP3 POP PUSH2 0x3F31 DUP5 DUP5 PUSH2 0x46EB JUMP JUMPDEST SWAP3 POP PUSH2 0x3F3B PUSH2 0xFED JUMP JUMPDEST ISZERO PUSH2 0x3F48 JUMPI DUP3 SWAP2 POP PUSH2 0x3F4C JUMP JUMPDEST DUP1 SWAP2 POP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xDE0B6B3A7640000 DUP3 LT PUSH2 0x3F6D JUMPI PUSH1 0x0 PUSH2 0xCDC JUMP JUMPDEST POP PUSH8 0xDE0B6B3A7640000 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x5A93 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x3F9F DUP4 DUP6 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP DUP5 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x3FB9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x3FE3 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP2 POP PUSH1 0x0 JUMPDEST DUP6 MLOAD DUP2 LT ISZERO PUSH2 0x4037 JUMPI PUSH2 0x4018 DUP3 DUP8 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2FDA SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4024 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3FE9 JUMP JUMPDEST POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH1 0x1 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x2 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x4060 DUP6 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x406D DUP6 PUSH2 0x3BBC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x407A DUP6 PUSH2 0x3BBC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4086 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 PUSH2 0x4095 DUP3 DUP7 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP11 ISZERO PUSH2 0x40B7 JUMPI PUSH2 0x40AB DUP3 DUP7 DUP7 DUP7 DUP15 DUP7 PUSH2 0x46FB JUMP JUMPDEST SWAP6 POP POP POP POP POP POP PUSH2 0x185C JUMP JUMPDEST PUSH2 0x40AB DUP3 DUP7 DUP7 DUP7 DUP15 DUP7 PUSH2 0x4786 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x60 PUSH2 0x40D7 DUP9 PUSH2 0x353C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 DUP1 PUSH2 0x40E9 DUP4 DUP11 DUP11 PUSH2 0x3575 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH2 0x40F9 DUP6 DUP5 PUSH2 0x35F1 JUMP JUMPDEST SWAP1 POP DUP1 ISZERO PUSH2 0x410A JUMPI PUSH2 0x410A DUP2 PUSH2 0x31CB JUMP JUMPDEST SWAP4 SWAP1 SWAP4 ADD SWAP10 SWAP2 SWAP9 POP SWAP2 SWAP7 POP SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x60 DUP8 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x413A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4164 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP9 DUP2 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x4174 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4197 DUP8 DUP11 DUP5 DUP10 DUP10 PUSH2 0x4192 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4819 JUMP JUMPDEST SWAP1 POP PUSH2 0x41BF DUP11 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41CB JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x41E2 DUP8 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP2 SWAP12 SWAP2 SWAP11 POP SWAP1 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x420F DUP7 DUP10 DUP10 DUP13 DUP10 DUP10 PUSH2 0x420A PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4AA9 JUMP JUMPDEST SWAP1 POP PUSH2 0x4221 DUP2 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP9 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x422D JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x4244 DUP7 DUP12 PUSH2 0x165E JUMP JUMPDEST SWAP2 SWAP11 SWAP2 SWAP10 POP SWAP1 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x4270 DUP7 DUP10 DUP10 DUP13 DUP10 DUP10 PUSH2 0x426B PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4B98 JUMP JUMPDEST SWAP1 POP PUSH2 0x4298 DUP2 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP9 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x42A4 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x4244 DUP7 DUP12 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x60 DUP8 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x42D8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4302 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP9 DUP2 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x4312 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4335 DUP8 DUP11 DUP5 DUP10 DUP10 PUSH2 0x4330 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4C65 JUMP JUMPDEST SWAP1 POP PUSH2 0x4347 DUP11 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4353 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x41E2 DUP8 DUP4 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x4384 DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST DUP1 PUSH2 0x4393 JUMPI PUSH1 0x0 SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 PUSH1 0x0 NOT DUP3 ADD PUSH2 0x3881 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x43BE DUP2 PUSH2 0x16AC JUMP JUMPDEST PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 SWAP3 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x4ECF JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xCDC SWAP2 SWAP1 PUSH2 0x5750 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP1 PUSH1 0x0 PUSH2 0x4405 DUP6 PUSH2 0x4EF2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4415 DUP3 MLOAD DUP9 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x4422 DUP3 PUSH2 0x26E5 DUP9 PUSH2 0x3984 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4434 DUP10 DUP10 DUP6 DUP15 DUP15 PUSH2 0x4192 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP PUSH2 0x4444 DUP3 DUP3 GT ISZERO PUSH1 0xCF PUSH2 0x1719 JUMP JUMPDEST SWAP11 SWAP2 SWAP10 POP SWAP1 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x4463 DUP5 PUSH2 0x4F15 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP7 DUP9 DUP5 PUSH2 0x3F91 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x4482 DUP6 PUSH2 0x4F2B JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4494 DUP7 MLOAD DUP3 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x44AE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x44D8 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x44EC DUP9 DUP9 DUP5 DUP7 DUP15 DUP15 PUSH2 0x420A PUSH2 0xD45 JUMP JUMPDEST DUP2 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x44F8 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE SWAP2 SWAP10 SWAP2 SWAP9 POP SWAP1 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP1 PUSH1 0x0 PUSH2 0x4523 DUP6 PUSH2 0x4F42 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4533 DUP8 MLOAD DUP4 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x4540 DUP3 PUSH2 0x26E5 DUP9 PUSH2 0x3984 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4552 DUP10 DUP10 DUP6 DUP15 DUP15 PUSH2 0x4330 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP PUSH2 0x4444 DUP3 DUP3 LT ISZERO PUSH1 0xD0 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x4571 DUP5 PUSH2 0x4F5A JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP7 DUP4 DUP10 PUSH2 0x4F70 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x4590 DUP6 PUSH2 0x500C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x45A2 DUP7 MLOAD DUP3 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x45BC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x45E6 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x44EC DUP9 DUP9 DUP5 DUP7 DUP15 DUP15 PUSH2 0x426B PUSH2 0xD45 JUMP JUMPDEST DUP1 MLOAD PUSH1 0x60 SWAP1 DUP2 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4617 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4641 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x46E3 JUMPI PUSH1 0x0 PUSH2 0x4659 PUSH2 0x107E JUMP JUMPDEST DUP3 LT ISZERO PUSH2 0x4666 JUMPI DUP2 PUSH2 0x466B JUMP JUMPDEST DUP2 PUSH1 0x1 ADD JUMPDEST SWAP1 POP PUSH2 0x4676 DUP2 PUSH2 0x2B1C JUMP JUMPDEST PUSH2 0x4693 JUMPI DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4686 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x46C3 JUMP JUMPDEST PUSH2 0x46C3 DUP7 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x46A2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0xA PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 SLOAD PUSH2 0x5023 JUMP JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x46CF JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x4647 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT ISZERO PUSH2 0x1703 JUMPI DUP2 PUSH2 0x15DE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x470D DUP4 DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP7 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x4719 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4733 DUP9 DUP9 DUP6 DUP9 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP DUP4 DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4742 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SUB DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4757 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4778 PUSH1 0x1 PUSH2 0x3EDE DUP4 DUP11 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP2 POP POP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4798 DUP4 DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x47A4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x47BE DUP9 DUP9 DUP6 DUP10 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP DUP4 DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x47CD JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD ADD DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x47E2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4778 PUSH1 0x1 PUSH2 0x2801 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4802 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x4857 JUMPI PUSH2 0x484D DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x481E JUMP JUMPDEST POP PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4872 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x489C JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP10 MLOAD DUP2 LT ISZERO PUSH2 0x4969 JUMPI PUSH1 0x0 PUSH2 0x48D4 DUP6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x48BE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x383F SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH2 0x4916 DUP12 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x48E5 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x4910 DUP13 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x48FC JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 PUSH2 0x383F JUMP JUMPDEST DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4922 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x495E PUSH2 0x4957 DUP3 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4941 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x436A SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP5 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x48A3 JUMP JUMPDEST POP PUSH1 0x60 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4984 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x49AE JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP11 MLOAD DUP2 LT ISZERO PUSH2 0x4A79 JUMPI PUSH1 0x0 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x49CB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 GT ISZERO PUSH2 0x4A32 JUMPI PUSH1 0x0 PUSH2 0x49F4 PUSH2 0x49E8 DUP7 PUSH2 0x3F55 JUMP JUMPDEST DUP15 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4A08 DUP3 DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4A29 PUSH2 0x4A22 DUP3 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x383F JUMP JUMPDEST DUP4 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x4A49 JUMP JUMPDEST DUP11 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4A3E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x4A59 DUP2 DUP14 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4A65 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x49B4 JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4A86 DUP13 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4A94 DUP3 DUP11 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH2 0x3163 PUSH2 0x4AA2 DUP3 PUSH2 0x3F55 JUMP JUMPDEST DUP12 SWAP1 PUSH2 0x436A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4AC4 DUP5 PUSH2 0x4ABE DUP8 PUSH2 0x4910 DUP2 DUP12 PUSH2 0x165E JUMP JUMPDEST SWAP1 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4AD4 DUP11 DUP11 DUP5 DUP12 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4AE8 DUP3 DUP12 DUP12 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP12 MLOAD DUP2 LT ISZERO PUSH2 0x4B10 JUMPI PUSH2 0x4B06 DUP13 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4AEE JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4B39 DUP3 DUP14 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x288F SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B46 DUP3 PUSH2 0x3F55 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B54 DUP6 DUP4 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B62 DUP7 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x4B83 PUSH2 0x4B7C DUP4 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x2FDA JUMP JUMPDEST DUP3 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP9 POP POP POP POP POP POP POP POP POP SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4BAD DUP5 PUSH2 0x4ABE DUP8 PUSH2 0x4910 DUP2 DUP12 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4BBD DUP11 DUP11 DUP5 DUP12 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4BE7 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x4BD0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP12 MLOAD DUP2 LT ISZERO PUSH2 0x4C0F JUMPI PUSH2 0x4C05 DUP13 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4BED JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4C22 DUP3 DUP14 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C2F DUP3 PUSH2 0x3F55 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C3D DUP6 DUP4 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C4B DUP7 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x4B83 PUSH2 0x4B7C DUP4 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x4C8C JUMPI PUSH2 0x4C82 DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4C6A JUMP JUMPDEST POP PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4CA7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4CD1 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP10 MLOAD DUP2 LT ISZERO PUSH2 0x4D6B JUMPI PUSH1 0x0 PUSH2 0x4CF3 DUP6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4D35 DUP12 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4D04 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x4D2F DUP13 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4D1B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST SWAP1 PUSH2 0x288F JUMP JUMPDEST DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4D41 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4D60 PUSH2 0x4957 DUP3 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x4CD8 JUMP JUMPDEST POP PUSH1 0x60 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4D86 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4DB0 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP11 MLOAD DUP2 LT ISZERO PUSH2 0x4E71 JUMPI PUSH1 0x0 DUP4 DUP6 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4DCE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD GT ISZERO PUSH2 0x4E2A JUMPI PUSH1 0x0 PUSH2 0x4DF3 PUSH2 0x49E8 DUP7 PUSH8 0xDE0B6B3A7640000 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4E07 DUP3 DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4E21 PUSH2 0x4A22 DUP3 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x2FDA JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x4E41 JUMP JUMPDEST DUP11 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4E36 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x4E51 DUP2 DUP14 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4E5D JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x4DB6 JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4E7E DUP13 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4E8C DUP3 DUP11 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH8 0xDE0B6B3A7640000 DUP2 GT ISZERO PUSH2 0x4EC0 JUMPI PUSH2 0x4EB3 DUP11 PUSH8 0xDE0B6B3A763FFFF NOT DUP4 ADD PUSH2 0x2FDA JUMP JUMPDEST SWAP7 POP POP POP POP POP POP POP PUSH2 0x477C JUMP JUMPDEST PUSH1 0x0 SWAP7 POP POP POP POP POP POP POP PUSH2 0x477C JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4EE1 PUSH4 0xF4B7964D PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0xCDC JUMPI POP PUSH2 0xCDC DUP3 PUSH2 0x51FB JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x576B JUMP JUMPDEST SWAP1 SWAP6 SWAP1 SWAP5 POP SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x57B0 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x57DC JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x586F JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x588D JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x4F7E DUP5 DUP5 PUSH2 0x383F JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP6 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4F9A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4FC4 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP7 MLOAD DUP2 LT ISZERO PUSH2 0x5002 JUMPI PUSH2 0x4FE3 DUP4 DUP9 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4941 JUMPI INVALID JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4FEF JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x4FCA JUMP JUMPDEST POP SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x58A9 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE PUSH2 0x5035 DUP5 PUSH2 0x3C95 DUP6 PUSH2 0x29F8 JUMP JUMPDEST PUSH2 0x27C6 DUP5 PUSH2 0x29EA JUMP JUMPDEST PUSH1 0x0 DUP1 DUP5 MLOAD DUP7 MUL SWAP1 POP PUSH1 0x0 DUP6 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x5056 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 DUP7 MLOAD DUP8 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x5071 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD MUL SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x50D7 JUMPI PUSH2 0x50BC PUSH2 0x50B6 PUSH2 0x50AF DUP5 DUP12 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x50A2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x15BA JUMP JUMPDEST DUP11 MLOAD PUSH2 0x15BA JUMP JUMPDEST DUP9 PUSH2 0x3609 JUMP JUMPDEST SWAP2 POP PUSH2 0x50CD DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x274D JUMPI INVALID JUMPDEST SWAP3 POP PUSH1 0x1 ADD PUSH2 0x5083 JUMP JUMPDEST POP DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x50E4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 SUB SWAP2 POP PUSH1 0x0 PUSH2 0x50FC DUP8 DUP9 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x5128 PUSH2 0x511C PUSH2 0x5114 DUP5 PUSH2 0xB83 DUP10 DUP9 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3E8 PUSH2 0x15BA JUMP JUMPDEST DUP11 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x50A2 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x5143 PUSH2 0x513C PUSH2 0x5114 DUP12 DUP10 PUSH2 0x3609 JUMP JUMPDEST DUP7 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 PUSH2 0x515F PUSH2 0x5155 DUP7 DUP7 PUSH2 0x2264 JUMP JUMPDEST PUSH2 0xB83 DUP14 DUP7 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST PUSH1 0xFF DUP2 LT ISZERO PUSH2 0x51DF JUMPI DUP2 SWAP3 POP PUSH2 0x5194 PUSH2 0x5181 DUP7 PUSH2 0x2801 DUP6 DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP15 PUSH2 0x3EDE DUP9 PUSH2 0x2801 DUP9 PUSH1 0x2 PUSH2 0x15BA JUMP JUMPDEST SWAP2 POP DUP3 DUP3 GT ISZERO PUSH2 0x51BD JUMPI PUSH1 0x1 DUP4 DUP4 SUB GT PUSH2 0x51B8 JUMPI POP SWAP8 POP PUSH2 0x1656 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x51D7 JUMP JUMPDEST PUSH1 0x1 DUP3 DUP5 SUB GT PUSH2 0x51D7 JUMPI POP SWAP8 POP PUSH2 0x1656 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x5164 JUMP JUMPDEST POP PUSH2 0x51EB PUSH2 0x142 PUSH2 0x28E0 JUMP JUMPDEST POP POP POP POP POP POP POP POP SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x520D PUSH4 0x2F1A0BC9 PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0x5228 JUMPI POP PUSH2 0x5225 PUSH4 0x7587926B PUSH1 0xE1 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ JUMPDEST DUP1 PUSH2 0xCDC JUMPI POP PUSH2 0xCDC DUP3 PUSH1 0x0 PUSH2 0x5244 PUSH4 0x1C74C917 PUSH1 0xE1 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0x525F JUMPI POP PUSH2 0x525C PUSH4 0x50DD6ED9 PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ JUMPDEST DUP1 PUSH2 0xCDC JUMPI POP PUSH1 0x0 PUSH2 0xCDC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD SWAP1 SWAP2 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE PUSH1 0x0 PUSH1 0x20 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x40 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x60 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x80 SWAP1 SWAP2 ADD MSTORE SWAP1 JUMP JUMPDEST INVALID JUMPDEST DUP1 CALLDATALOAD PUSH2 0x87D DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x52B9 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x52CC PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST PUSH2 0x5E37 JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x52ED JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x2884 JUMPI DUP2 CALLDATALOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x52F0 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x531C JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x532A PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x534B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x2884 JUMPI DUP2 MLOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x534E JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x537A JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5390 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x53A3 PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD PUSH2 0x5E37 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0x53BA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH1 0x20 DUP5 ADD PUSH1 0x20 DUP5 ADD CALLDATACOPY PUSH1 0x0 SWAP1 DUP3 ADD PUSH1 0x20 ADD MSTORE SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x3 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 MLOAD PUSH1 0x4 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH1 0x2 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5411 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x15DE DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x542E JUMPI DUP1 DUP2 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x5439 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x5449 DUP2 PUSH2 0x5E7E JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5468 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x5473 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0x5483 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP3 SWAP6 SWAP3 SWAP5 POP POP POP PUSH1 0x40 SWAP2 SWAP1 SWAP2 ADD CALLDATALOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x54AE JUMPI DUP3 DUP4 REVERT JUMPDEST DUP8 CALLDATALOAD PUSH2 0x54B9 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x54C9 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD SWAP4 POP PUSH1 0x80 DUP9 ADD CALLDATALOAD PUSH2 0x54E7 DUP2 PUSH2 0x5E93 JUMP JUMPDEST SWAP7 SWAP10 SWAP6 SWAP9 POP SWAP4 SWAP7 SWAP3 SWAP6 SWAP5 PUSH1 0xA0 DUP5 ADD CALLDATALOAD SWAP5 POP PUSH1 0xC0 SWAP1 SWAP4 ADD CALLDATALOAD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5516 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x5521 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5543 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP4 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x555A JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 DUP7 ADD SWAP2 POP DUP7 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x556D JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x557B PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST DUP1 DUP3 DUP3 MSTORE PUSH1 0x20 DUP1 DUP4 ADD SWAP3 POP DUP1 DUP7 ADD DUP12 DUP3 DUP4 DUP8 MUL DUP10 ADD ADD GT ISZERO PUSH2 0x559B JUMPI DUP8 DUP9 REVERT JUMPDEST DUP8 SWAP7 POP JUMPDEST DUP5 DUP8 LT ISZERO PUSH2 0x55C6 JUMPI DUP1 MLOAD PUSH2 0x55B2 DUP2 PUSH2 0x5E7E JUMP JUMPDEST DUP5 MSTORE PUSH1 0x1 SWAP7 SWAP1 SWAP7 ADD SWAP6 SWAP3 DUP2 ADD SWAP3 DUP2 ADD PUSH2 0x559F JUMP JUMPDEST POP DUP10 ADD MLOAD SWAP1 SWAP8 POP SWAP4 POP POP POP DUP1 DUP3 GT ISZERO PUSH2 0x55DD JUMPI DUP3 DUP4 REVERT JUMPDEST POP PUSH2 0x55EA DUP7 DUP3 DUP8 ADD PUSH2 0x530C JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x560C JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x15DE JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x5635 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP8 CALLDATALOAD SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x5647 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH2 0x5657 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x5673 JUMPI DUP3 DUP4 REVERT JUMPDEST PUSH2 0x567F DUP12 DUP4 DUP13 ADD PUSH2 0x52A9 JUMP JUMPDEST SWAP6 POP PUSH1 0x80 DUP11 ADD CALLDATALOAD SWAP5 POP PUSH1 0xA0 DUP11 ADD CALLDATALOAD SWAP4 POP PUSH1 0xC0 DUP11 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x56A2 JUMPI DUP3 DUP4 REVERT JUMPDEST POP PUSH2 0x56AF DUP11 DUP3 DUP12 ADD PUSH2 0x536A JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP9 SWAP2 SWAP5 SWAP8 POP SWAP3 SWAP6 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x56CF JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH2 0x15DE JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x56F7 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x15DE DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5714 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x571F DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x573A JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5746 DUP6 DUP3 DUP7 ADD PUSH2 0x536A JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5761 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x15DE DUP4 DUP4 PUSH2 0x53D3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x577F JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x5789 DUP6 DUP6 PUSH2 0x53D3 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x57A4 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x55EA DUP7 DUP3 DUP8 ADD PUSH2 0x530C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x57C2 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x57CC DUP5 DUP5 PUSH2 0x53D3 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x57F0 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x57FA DUP6 DUP6 PUSH2 0x53D3 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD MLOAD SWAP2 POP PUSH1 0x40 DUP5 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5822 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x15DE DUP4 DUP4 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x583E JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5848 DUP5 DUP5 PUSH2 0x53E2 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5863 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5746 DUP6 DUP3 DUP7 ADD PUSH2 0x530C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5883 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x5789 DUP6 DUP6 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x589F JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x57CC DUP5 DUP5 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x58BD JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x57FA DUP6 DUP6 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x58DC JUMPI DUP2 DUP3 REVERT JUMPDEST DUP5 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x58F3 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP2 DUP8 ADD SWAP2 POP PUSH2 0x120 DUP1 DUP4 DUP11 SUB SLT ISZERO PUSH2 0x5909 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH2 0x5912 DUP2 PUSH2 0x5E37 JUMP JUMPDEST SWAP1 POP PUSH2 0x591E DUP10 DUP5 PUSH2 0x53F1 JUMP JUMPDEST DUP2 MSTORE PUSH2 0x592D DUP10 PUSH1 0x20 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0x20 DUP3 ADD MSTORE PUSH2 0x593F DUP10 PUSH1 0x40 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 DUP4 ADD CALLDATALOAD PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 DUP4 ADD CALLDATALOAD PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 DUP4 ADD CALLDATALOAD PUSH1 0xA0 DUP3 ADD MSTORE PUSH2 0x596F DUP10 PUSH1 0xC0 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0xC0 DUP3 ADD MSTORE PUSH2 0x5981 DUP10 PUSH1 0xE0 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0xE0 DUP3 ADD MSTORE PUSH2 0x100 DUP1 DUP5 ADD CALLDATALOAD DUP4 DUP2 GT ISZERO PUSH2 0x5999 JUMPI DUP7 DUP8 REVERT JUMPDEST PUSH2 0x59A5 DUP12 DUP3 DUP8 ADD PUSH2 0x536A JUMP JUMPDEST DUP3 DUP5 ADD MSTORE POP POP DUP1 SWAP7 POP POP PUSH1 0x20 DUP8 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x59C2 JUMPI DUP4 DUP5 REVERT JUMPDEST POP PUSH2 0x59CF DUP8 DUP3 DUP9 ADD PUSH2 0x52A9 JUMP JUMPDEST SWAP5 SWAP8 SWAP5 SWAP7 POP POP POP POP PUSH1 0x40 DUP4 ADD CALLDATALOAD SWAP3 PUSH1 0x60 ADD CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x59F7 JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5A0F JUMPI DUP1 DUP2 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5A28 JUMPI DUP2 DUP3 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x5A4C JUMPI DUP2 DUP3 REVERT JUMPDEST DUP5 MLOAD SWAP4 POP PUSH1 0x20 DUP6 ADD MLOAD SWAP3 POP PUSH1 0x40 DUP6 ADD MLOAD SWAP2 POP PUSH1 0x60 DUP6 ADD MLOAD PUSH2 0x5A6C DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP4 SWAP7 SWAP3 SWAP6 POP SWAP1 SWAP4 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5A88 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x15DE DUP2 PUSH2 0x5E93 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5AA5 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 MLOAD PUSH2 0x5AB0 DUP2 PUSH2 0x5E93 JUMP JUMPDEST PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD MLOAD SWAP3 SWAP5 SWAP3 SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE PUSH1 0x20 DUP1 DUP6 ADD SWAP5 POP DUP1 DUP5 ADD DUP4 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x5AFC JUMPI DUP2 MLOAD DUP8 MSTORE SWAP6 DUP3 ADD SWAP6 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x5AE0 JUMP JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x5B2C JUMPI PUSH1 0x20 DUP2 DUP6 ADD DUP2 ADD MLOAD DUP7 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0x5B10 JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0x5B3D JUMPI DUP3 PUSH1 0x20 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x24 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 DUP4 CALLDATACOPY SWAP2 ADD SWAP1 DUP2 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1901 PUSH1 0xF0 SHL DUP2 MSTORE PUSH1 0x2 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x22 DUP3 ADD MSTORE PUSH1 0x42 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 DUP5 DUP3 ADD SWAP1 PUSH1 0x40 DUP6 ADD SWAP1 DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x5BEA JUMPI DUP4 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 MSTORE SWAP3 DUP5 ADD SWAP3 SWAP2 DUP5 ADD SWAP2 PUSH1 0x1 ADD PUSH2 0x5BC5 JUMP JUMPDEST POP SWAP1 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 PUSH1 0x40 SWAP1 DUP2 DUP6 ADD SWAP1 DUP7 DUP5 ADD DUP6 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x5C80 JUMPI DUP2 MLOAD DUP1 MLOAD PUSH1 0x4 DUP2 LT PUSH2 0x5C29 JUMPI INVALID JUMPDEST DUP6 MSTORE DUP1 DUP8 ADD MLOAD PUSH2 0x5C3B DUP9 DUP8 ADD DUP3 PUSH2 0x5AC0 JUMP JUMPDEST POP DUP6 DUP2 ADD MLOAD DUP7 DUP7 ADD MSTORE PUSH1 0x60 DUP1 DUP3 ADD MLOAD PUSH2 0x5C56 DUP3 DUP9 ADD DUP3 PUSH2 0x5AC0 JUMP JUMPDEST POP POP PUSH1 0x80 SWAP1 DUP2 ADD MLOAD SWAP1 PUSH2 0x5C6B DUP7 DUP3 ADD DUP4 PUSH2 0x5AC0 JUMP JUMPDEST POP POP PUSH1 0xA0 SWAP4 SWAP1 SWAP4 ADD SWAP3 SWAP1 DUP6 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x5C13 JUMP JUMPDEST POP SWAP2 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x15DE PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x5ACD JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 DUP3 MSTORE PUSH2 0x5CB3 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x5ACD JUMP JUMPDEST DUP3 DUP2 SUB PUSH1 0x20 DUP5 ADD MSTORE PUSH2 0x185C DUP2 DUP6 PUSH2 0x5ACD JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 ISZERO ISZERO DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 DUP4 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x20 DUP5 ADD MSTORE AND PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP6 DUP7 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP5 DUP6 AND PUSH1 0x20 DUP8 ADD MSTORE SWAP3 SWAP1 SWAP4 AND PUSH1 0x40 DUP6 ADD MSTORE PUSH1 0x60 DUP5 ADD MSTORE PUSH1 0x80 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0xA0 DUP3 ADD MSTORE PUSH1 0xC0 ADD SWAP1 JUMP JUMPDEST SWAP5 DUP6 MSTORE PUSH1 0x20 DUP6 ADD SWAP4 SWAP1 SWAP4 MSTORE PUSH1 0x40 DUP5 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x60 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP4 DUP3 MSTORE PUSH1 0x40 PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1656 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x5B07 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP4 DUP5 MSTORE PUSH1 0xFF SWAP3 SWAP1 SWAP3 AND PUSH1 0x20 DUP5 ADD MSTORE PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x15DE PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x5B07 JUMP JUMPDEST PUSH1 0x0 DUP4 DUP3 MSTORE PUSH1 0x40 PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1656 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x5ACD JUMP JUMPDEST SWAP3 DUP4 MSTORE SWAP1 ISZERO ISZERO PUSH1 0x20 DUP4 ADD MSTORE PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP4 DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0xFF SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x5E56 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x5E74 JUMPI DUP1 DUP2 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0xBFA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0xBFA JUMPI PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB4 0xE5 POP PUSH25 0x37F90EBE851B3B7805B576DAD987FB40B27B1310B6721068 0x1E BLOCKHASH DUP5 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "2683:50501:54:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:631:27;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;6300:97:54;;;:::i;2254:81:50:-;;;:::i;:::-;;;;;;;:::i;4857:164::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6413:394:34:-;;;:::i;:::-;;7321:117;;;:::i;3500:106:50:-;;;:::i;3274:363:44:-;;;:::i;:::-;;;;;;;;;:::i;29081:120:28:-;;;:::i;:::-;;;;;;;:::i;13713:346:58:-;;;:::i;:::-;;;;;;;:::i;2575:655:26:-;;;;;;:::i;:::-;;:::i;9001:405:57:-;;;;;;:::i;:::-;;:::i;5907:1301:60:-;;;;;;:::i;:::-;;:::i;3156:81:50:-;;;:::i;:::-;;;;;;;:::i;2243:113:51:-;;;:::i;8723:165:28:-;;;;;;:::i;:::-;;:::i;7114:91::-;;;:::i;6269:211:50:-;;;;;;:::i;:::-;;:::i;19180:534:56:-;;;:::i;:::-;;;;;;;;:::i;12270:75:28:-;;;:::i;11034:231::-;;;;;;:::i;:::-;;:::i;3432:100:30:-;;;:::i;5560:128:57:-;;;;;;:::i;:::-;;:::i;5736:98:54:-;;;:::i;7926:185:28:-;;;:::i;20592:913::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;43300:1933:54:-;;;:::i;3034:299:60:-;;;:::i;:::-;;;;;;;;;:::i;5051:560:34:-;;;;;;:::i;:::-;;:::i;4022:117:50:-;;;;;;:::i;:::-;;:::i;16016:2311:28:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;14863:118:58:-;;;:::i;2006:113:51:-;;;;;;:::i;:::-;;:::i;6570:599:57:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;9266:86:58:-;;;:::i;11817:72:28:-;;;:::i;2607:430:37:-;;;;;;:::i;:::-;;:::i;46893:211:54:-;;;:::i;19019:911:28:-;;;;;;:::i;:::-;;:::i;1751:80:29:-;;;:::i;:::-;;;;;;;:::i;1797:79:26:-;;;:::i;1303:121:40:-;;;;;;:::i;:::-;;:::i;2448:85:50:-;;;:::i;3356:429:26:-;;;;;;:::i;:::-;;:::i;4342:170:50:-;;;;;;:::i;:::-;;:::i;1837:101:29:-;;;:::i;15251:180:58:-;;;;;;:::i;:::-;;:::i;9746:133:28:-;;;:::i;4373:102:30:-;;;:::i;8305:127:28:-;;;:::i;1437:508:51:-;;;;;;:::i;:::-;;:::i;13533:2321:28:-;;;;;;:::i;:::-;;:::i;2178:254:26:-;;;;;;:::i;:::-;;:::i;2859:80:34:-;;;:::i;7319:259:60:-;;;:::i;1184:113:40:-;;;:::i;7940:436:57:-;;;;;;:::i;:::-;;:::i;1274:631:27:-;1479:7;1450:11;:18;;;13172:68:28;13203:10;:8;:10::i;:::-;-1:-1:-1;;;;;13181:33:28;:10;:33;6194:3:10;13172:8:28;:68::i;:::-;13250:55;13269:11;:9;:11::i;:::-;13259:6;:21;12526:3:10;13250:8:28;:55::i;:::-;1498:21:27::1;:19;:21::i;:::-;1530:54;1547:7;1556:8;1566:17;:15;:17::i;:::-;1530:16;:54::i;:::-;1594:31;1628:17;:15;:17::i;:::-;1594:51:::0;-1:-1:-1;1695:24:27::1;1675:16:::0;;:44:::1;::::0;::::1;;;;;;;:223;;1827:71;1841:11;1854:8;1864:7;1873:8;1883:14;1827:13;:71::i;:::-;1675:223;;;1738:70;1751:11;1764:8;1774:7;1783:8;1793:14;1738:12;:70::i;:::-;1656:242:::0;1274:631;-1:-1:-1;;;;;;;1274:631:27:o;6300:97:54:-;6348:7;6374:16;:14;:16::i;:::-;6367:23;;6300:97;:::o;2254:81:50:-;2323:5;2316:12;;;;;;;;;;;;;-1:-1:-1;;2316:12:50;;;;;;;;;;;;;;;;;;;;;;;;;;2291:13;;2316:12;;2323:5;;2316:12;;;2323:5;2316:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2254:81;:::o;4857:164::-;4940:4;4956:37;4965:10;4977:7;4986:6;4956:8;:37::i;:::-;-1:-1:-1;5010:4:50;4857:164;;;;;:::o;6413:394:34:-;6476:31;:29;:31::i;:::-;6522:30;:28;:30::i;:::-;6518:128;;;6568:67;6592:20;4359:1:17;6568:23:34;:67::i;:::-;6656:68;6680:20;4446:1:17;6656:23:34;:68::i;:::-;6734:66;6758:20;4485:1:17;6734:23:34;:66::i;:::-;6413:394::o;7321:117::-;7405:26;7321:117;:::o;3500:106:50:-;3587:12;;3500:106;:::o;3274:363:44:-;3377:11;3402:26;3442:27;3504:14;:12;:14::i;:::-;3503:15;3494:24;;3549;:22;:24::i;:::-;3528:45;;3605:25;:23;:25::i;:::-;3583:47;;3274:363;;;:::o;29081:120:28:-;29142:16;29177:17;:15;:17::i;13713:346:58:-;13764:22;13798:19;13820:17;:15;:17::i;:::-;13798:39;;13847:32;13902:11;13882:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13882:32:58;;13847:67;;13930:9;13925:101;13949:11;13945:1;:15;13925:101;;;13996:19;14013:1;13996:16;:19::i;:::-;13981:9;13991:1;13981:12;;;;;;;;-1:-1:-1;;;;;13981:34:58;;;;:12;;;;;;;;;;;:34;-1:-1:-1;13962:3:58;13925:101;;;-1:-1:-1;14043:9:58;-1:-1:-1;;13713:346:58;:::o;2575:655:26:-;2703:4;2719:24;2746:29;2756:6;2764:10;2746:9;:29::i;:::-;2719:56;-1:-1:-1;2785:101:26;-1:-1:-1;;;;;2794:20:26;;:10;:20;;:50;;;2838:6;2818:16;:26;;2794:50;10712:3:10;2785:8:26;:101::i;:::-;2897:36;2907:6;2915:9;2926:6;2897:9;:36::i;:::-;-1:-1:-1;;;;;2948:20:26;;:10;:20;;;;:55;;-1:-1:-1;;;2972:31:26;;;2948:55;2944:258;;;3136:55;3145:6;3153:10;3184:6;3165:16;:25;3136:8;:55::i;:::-;-1:-1:-1;3219:4:26;;2575:655;-1:-1:-1;;;;2575:655:26:o;9001:405:57:-;4734:26;:24;:26::i;:::-;9086:13:::1;9102:21;9117:5;9102:14;:21::i;:::-;9086:37;;9134:22;9159:23;9176:5;9159:16;:23::i;:::-;9134:48:::0;-1:-1:-1;9192:83:57::1;-1:-1:-1::0;;;;;9201:31:57;::::1;::::0;::::1;9022:3:10;9192:8:57;:83::i;:::-;9285:16;9304:23:::0;;;:16:::1;:23;::::0;;;;;:37:::1;::::0;:35:::1;:37::i;:::-;9285:56;;9351:48;9373:5;9380:8;9390;9351:21;:48::i;:::-;4770:1;;;9001:405:::0;:::o;5907:1301:60:-;2276:21:37;:19;:21::i;:::-;6020:60:60::1;1275:1:59;6029:11:60;:34;;6565:3:10;6020:8:60;:60::i;:::-;6090;1319:4:59;6099:11:60;:34;;6610:3:10;6090:8:60;:60::i;:::-;6161:16;6180:34;6189:7;6198:15;6180:8;:34::i;:::-;6161:53;;6224:69;1823:6;6233:8;:28;;7518:3:10;6224:8:60;:69::i;:::-;6305:20;6327:15:::0;6346:28:::1;:26;:28::i;:::-;6304:70;;;;6384:48;6394:10;6393:11;7574:3:10;6384:8:60;:48::i;:::-;6443:16;6462:48;6471:11;1372:3:59;6462:8:60;:48::i;:::-;6443:67;;6817:17;6848:12;6837:8;:23;:197;;6962:72;6973:30;6982:6;6990:12;6973:8;:30::i;:::-;7005:28;7014:8;7024;7005;:28::i;:::-;6962:10;:72::i;:::-;6837:197;;;6875:72;6886:26;6895:6;6903:8;6886;:26::i;:::-;6914:32;6923:12;6937:8;6914;:32::i;6875:72::-;6817:217;;7044:75;1889:1;7053:9;:39;;7629:3:10;7044:8:60;:75::i;:::-;7130:71;7152:12;7166:8;7176:15;7193:7;7130:21;:71::i;:::-;2307:1:37;;;;;5907:1301:60::0;;:::o;3156:81:50:-;3221:9;;;;3156:81;:::o;2243:113:51:-;2303:7;2329:20;:18;:20::i;8723:165:28:-;2276:21:37;:19;:21::i;:::-;3090:18:44::1;:16;:18::i;:::-;8841:40:28::2;8863:17;8841:21;:40::i;:::-;8723:165:::0;:::o;7114:91::-;7191:7;7114:91;:::o;6269:211:50:-;6382:10;6357:4;6403:23;;;:11;:23;;;;;;;;-1:-1:-1;;;;;6403:32:50;;;;;;;;;;6357:4;;6373:79;;6403:32;;:48;;6440:10;6403:36;:48::i;:::-;6373:8;:79::i;19180:534:56:-;19358:17;;19256:33;;;;19414:126;19358:17;2613:3;2838:2;19414:18;:126::i;:::-;19386:154;-1:-1:-1;19579:128:56;:7;2543:1;2613:3;19579:18;:128::i;:::-;19551:156;;19180:534;;;:::o;12270:75:28:-;2276:21:37;:19;:21::i;:::-;12321:17:28::1;12332:5;12321:10;:17::i;11034:231::-:0;2276:21:37;:19;:21::i;:::-;3090:18:44::1;:16;:18::i;:::-;11213:45:28::2;11240:5;11247:10;11213:26;:45::i;:::-;11034:231:::0;;:::o;3432:100:30:-;2276:21:37;:19;:21::i;:::-;3503:22:30::1;3520:4;3503:16;:22::i;5560:128:57:-:0;5619:7;5645:36;5659:21;5674:5;5659:14;:21::i;:::-;5645:13;:36::i;:::-;5638:43;;5560:128;;;;:::o;5736:98:54:-;5819:8;5812:15;;;;;;;;;;;;;-1:-1:-1;;5812:15:54;;;;;;;;;;;;;;;;;;;;;;;;;;5787:13;;5812:15;;5819:8;;5812:15;;;5819:8;5812:15;;;;;;;;;;;;;;;;;;;;;;;;7926:185:28;8022:9;;7996:7;;8022:82;;4326:3;4561:2;8022:20;:82::i;20592:913::-;20861:13;20876:27;20915:71;20951:8;:15;20968:17;:15;:17::i;:::-;20915:35;:71::i;:::-;20997:255;21023:6;21043;21063:9;21086:8;21108:15;21137:25;21176:8;21198:11;21223:19;20997:12;:255::i;:::-;20592:913;;;;;;;;;;:::o;43300:1933:54:-;43359:7;43664:25;43703:21;43738:25;43777:23;43814:43;43870:23;:21;:23::i;:::-;43650:243;;-1:-1:-1;43650:243:54;;-1:-1:-1;43650:243:54;-1:-1:-1;43650:243:54;-1:-1:-1;43650:243:54;-1:-1:-1;44067:25:54;44095:36;43650:243;;44095:17;:36::i;:::-;44067:64;;44310:18;44334:28;:26;:28::i;:::-;44309:53;;;44878:24;44920:15;44906:10;:29;44905:148;;45001:52;45032:10;45044:8;45001:30;:52::i;:::-;44905:148;;;44951:35;44905:148;44878:175;-1:-1:-1;45183:43:54;44878:175;45208:17;45183:24;:43::i;:::-;45176:50;;;;;;;;;;43300:1933;:::o;3034:299:60:-;3131:13;3158:15;3187:17;3251:28;:26;:28::i;:::-;3229:50;;;;-1:-1:-1;1372:3:59;;-1:-1:-1;3034:299:60;-1:-1:-1;3034:299:60:o;5051:560:34:-;5128:7;5151:16;:14;:16::i;:::-;5147:55;;;-1:-1:-1;5190:1:34;5183:8;;5147:55;5216:31;5212:393;;5270:30;:28;:30::i;:::-;:81;;5320:31;5270:81;;;5303:6;:14;;;5270:81;5263:88;;;;5212:393;4446:1:17;5372:7:34;:32;5368:237;;;-1:-1:-1;5427:6:34;:15;;;;;;5420:22;;5368:237;4485:1:17;5463:7:34;:30;5459:146;;;-1:-1:-1;5516:6:34;:13;-1:-1:-1;;;5516:13:34;;;;5509:20;;5459:146;5560:34;12459:3:10;5560:7:34;:34::i;4022:117:50:-;-1:-1:-1;;;;;4114:18:50;4088:7;4114:18;;;;;;;;;;;;4022:117::o;16016:2311:28:-;16304:16;16322;16287:6;13172:68;13203:10;:8;:10::i;13172:68::-;13250:55;13269:11;:9;:11::i;13250:55::-;16350:27:::1;16387:19;16841:33;:8;:31;:33::i;:::-;16837:1175;;;16956:23;:21;:23::i;:::-;17180:54;17200:8;17210:13;:11;:13::i;:::-;17225:8;17180:19;:54::i;:::-;17152:82:::0;-1:-1:-1;17152:82:28;-1:-1:-1;16837:1175:28::1;;;17346:21;:19;:21::i;:::-;17382:31;17416:17;:15;:17::i;:::-;17382:51;;17447:39;17461:8;17471:14;17447:13;:39::i;:::-;17529:336;17558:6;17582;17606:9;17633:8;17659:15;17692:16;:14;:16::i;:::-;:48;;17715:25;17692:48;;;17711:1;17692:48;17811:14;17843:8;17529:11;:336::i;:::-;17501:364:::0;-1:-1:-1;17501:364:28;-1:-1:-1;17954:47:28::1;17501:364:::0;17986:14;17954:19:::1;:47::i;:::-;16837:1175;;18117:36;18133:6;18141:11;18117:15;:36::i;:::-;18277:10;18303:8;:15;18289:30;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;18289:30:28::1;;18269:51;;;;;;13315:1;16016:2311:::0;;;;;;;;;;;:::o;14863:118:58:-;14947:27;14863:118;:::o;2006:113:51:-;2067:7;2093:19;2106:5;2093:12;:19::i;6570:599:57:-;6671:12;6697:15;6726:16;6756:15;6796:13;6812:16;:39;6829:21;6844:5;6829:14;:21::i;:::-;6812:39;;;;;;;;;;;-1:-1:-1;6812:39:57;;;-1:-1:-1;6960:71:57;6969:19;;;9022:3:10;6960:8:57;:71::i;:::-;7049:22;:5;:20;:22::i;:::-;7042:29;;7091:18;:5;:16;:18::i;:::-;7081:28;;7141:21;:5;:19;:21::i;:::-;6570:599;;;;-1:-1:-1;7119:43:57;;6570:599;-1:-1:-1;;;6570:599:57:o;9266:86:58:-;9336:9;9266:86;:::o;11817:72:28:-;2276:21:37;:19;:21::i;:::-;11866:16:28::1;11877:4;11866:10;:16::i;2607:430:37:-:0;2675:7;2996:22;3020:8;2979:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2969:61;;;;;;2962:68;;2607:430;;;:::o;46893:211:54:-;46943:7;46965:21;46988:25;47021:23;:21;:23::i;:::-;46962:82;;;;;;;47061:36;47079:17;47061:13;:17;;:36;;;;:::i;:::-;47054:43;;;;46893:211;:::o;19019:911:28:-;19288:14;19304:26;19342:71;19378:8;:15;19395:17;:15;:17::i;19342:71::-;19424:253;19450:6;19470;19490:9;19513:8;19535:15;19564:25;19603:8;19625:11;19650:17;19424:12;:253::i;1751:80:29:-;1818:6;1751:80;:::o;1797:79:26:-;1863:6;1797:79;:::o;1303:121:40:-;-1:-1:-1;;;;;1398:19:40;1372:7;1398:19;;;:10;:19;;;;;;;1303:121::o;2448:85:50:-;2519:7;2512:14;;;;;;;;;;;;;-1:-1:-1;;2512:14:50;;;;;;;;;;;;;;;;;;;;;;;;;;2487:13;;2512:14;;2519:7;;2512:14;;;2519:7;2512:14;;;;;;;;;;;;;;;;;;;;;;;;3356:429:26;3441:4;3457:24;3484:30;3494:10;3506:7;3484:9;:30::i;:::-;3457:57;;3539:16;3529:6;:26;3525:232;;3571:32;3580:10;3592:7;3601:1;3571:8;:32::i;:::-;3525:232;;;3690:56;3699:10;3711:7;3739:6;3720:16;:25;3690:8;:56::i;:::-;-1:-1:-1;3774:4:26;;3356:429;-1:-1:-1;;;3356:429:26:o;4342:170:50:-;4428:4;4444:40;4454:10;4466:9;4477:6;4444:9;:40::i;1837:101:29:-;1885:11;1915:16;:14;:16::i;15251:180:58:-;15331:4;15354:27;:70;;;;;15385:39;15402:21;15417:5;15402:14;:21::i;:::-;15385:16;:39::i;9746:133:28:-;9825:9;;9802:4;;9825:47;;4388:3;9825:20;:47::i;4373:102:30:-;2276:21:37;:19;:21::i;:::-;4445:23:30::1;4462:5;4445:16;:23::i;8305:127:28:-:0;8403:22;8305:127;:::o;1437:508:51:-;1645:18;921:109;1718:5;1725:7;1734:5;1741:19;1754:5;1741:12;:19::i;:::-;1762:8;1689:82;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1666:115;;;;;;1645:136;;1792:104;1814:5;1821:10;1833:26;1851:1;1854;1857;1833:17;:26::i;:::-;1861:8;12759:3:10;1792:21:51;:104::i;:::-;1907:31;1916:5;1923:7;1932:5;1907:8;:31::i;:::-;1437:508;;;;;;;;:::o;13533:2321:28:-;13821:16;13839;13804:6;13172:68;13203:10;:8;:10::i;13172:68::-;13250:55;13269:11;:9;:11::i;13250:55::-;13867:21:::1;:19;:21::i;:::-;13899:31;13933:17;:15;:17::i;:::-;13899:51;;13965:13;:11;:13::i;:::-;13961:1887;;14000:20;14022:26;14052:164;14087:6;14111;14135:9;14162:14;14194:8;14052:17;:164::i;:::-;13999:217;;;;14515:62;14540:16;:14;:16::i;:::-;14524:12;:32;;6140:3:10;14515:8:28;:62::i;:::-;14591:45;14615:1;14619:16;:14;:16::i;:::-;14591:15;:45::i;:::-;14650:59;14666:9;14692:16;:14;:16::i;:::-;14677:12;:31;14650:15;:59::i;:::-;14796:44;14814:9;14825:14;14796:17;:44::i;:::-;14863:9;14888:8;:15;14874:30;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;14874:30:28::1;;14855:50;;;;;;;;;13961:1887;14936:39;14950:8;14960:14;14936:13;:39::i;:::-;14990:20;15012:26;15042:336;15071:6;15095;15119:9;15146:8;15172:15;15205:16;:14;:16::i;:::-;:48;;15228:25;15205:48;;;15224:1;15205:48;15324:14;15356:8;15042:11;:336::i;:::-;14989:389;;;;15492:40;15508:9;15519:12;15492:15;:40::i;2178:254:26:-:0;2259:7;2301:10;:8;:10::i;:::-;-1:-1:-1;;;;;2282:30:26;;;;;;2278:148;;;-1:-1:-1;;;2328:18:26;;2278:148;2384:31;2400:5;2407:7;2384:15;:31::i;:::-;2377:38;;;;2859:80:34;-1:-1:-1;;2859:80:34;:::o;7319:259:60:-;2276:21:37;:19;:21::i;:::-;7396:20:60::1;7418:15:::0;7437:28:::1;:26;:28::i;:::-;7395:70;;;;7475:50;7484:10;7688:3:10;7475:8:60;:50::i;:::-;7536:35;7558:12;7536:21;:35::i;1184:113:40:-:0;1244:7;1270:20;:18;:20::i;7940:436:57:-;2276:21:37;:19;:21::i;:::-;4734:26:57::1;:24;:26::i;:::-;8061:13:::2;8077:21;8092:5;8077:14;:21::i;:::-;8061:37;;8108:22;8133:23;8150:5;8133:16;:23::i;:::-;8108:48:::0;-1:-1:-1;8166:83:57::2;-1:-1:-1::0;;;;;8175:31:57;::::2;::::0;::::2;9022:3:10;8166:8:57;:83::i;:::-;8259:48;8281:5;8288:8;8298;8259:21;:48::i;:::-;8322:47;::::0;-1:-1:-1;;;;;8322:47:57;::::2;::::0;8343:5;;8322:47:::2;::::0;::::2;::::0;8360:8;;8322:47:::2;:::i;:::-;;;;;;;;4770:1;;7940:436:::0;;:::o;1245:274:42:-;1455:5;1479:33;1455:5;1479:19;:33::i;2038:180:48:-;2096:7;2127:5;;;2142:51;2151:6;;;:20;;;2170:1;2165;2161;:5;;;;;;:10;2151:20;5269:1:10;2142:8:48;:51::i;:::-;2210:1;2038:180;-1:-1:-1;;;2038:180:48:o;920:131:42:-;998:46;1012:1;1007;:6;5804:3:10;998:8:42;:46::i;6759:280:45:-;6874:7;2246:10;6941:17;;6939:20;6923:36;;6952:6;7007:5;:13;;7019:1;7007:13;;;7015:1;7007:13;6999:22;;:32;;6977:55;;6759:280;-1:-1:-1;;;;6759:280:45:o;1057:182:42:-;1176:56;1190:1;1185;:6;:16;;;;;1200:1;1195;:6;1185:16;5804:3:10;1176:8:42;:56::i;:::-;1057:182;;;:::o;2512:395:45:-;2657:7;2676:49;2700:5;2707:6;2715:9;2676:23;:49::i;:::-;-1:-1:-1;2770:1:45;2752:14;;-1:-1:-1;;2751:20:45;2829:14;;2827:17;2811:33;;2884:15;;;2862:38;2512:395;;;;;;;:::o;1193:166:48:-;1251:7;1270:37;1284:1;1279;:6;;5172:1:10;1270:8:48;:37::i;:::-;-1:-1:-1;1329:5:48;;;1193:166::o;3420:590:36:-;3551:7;3570:67;1895:2;3579:24;;;:29;8253:3:10;3570:8:36;:67::i;:::-;3711:292;3920:15;:26;;1841:3;1951:2;3711:180;3938:8;1772:3;1951:2;3711:180;:5;3745:4;1646:1;1895:2;3711:33;:85::i;:::-;:113;:180;;:113;:180::i;2499:175::-;2560:7;2586:81;2603:21;2618:5;2603:14;:21::i;:::-;2586:5;;1703:2;;2586:16;:81::i;1410:186:52:-;1466:6;1484:75;1502:16;1493:25;;;12403:3:10;1484:8:52;:75::i;:::-;-1:-1:-1;1583:5:52;1410:186::o;3883:240:45:-;4006:7;4025:49;4049:5;4056:6;4064:9;4025:23;:49::i;:::-;-1:-1:-1;;4100:15:45;;3883:240::o;1928:104:48:-;1986:7;2016:1;2012;:5;:13;;2024:1;2012:13;;;-1:-1:-1;2020:1:48;;2005:20;-1:-1:-1;1928:104:48:o;4847:203:45:-;5041:1;5023:14;;-1:-1:-1;;5022:20:45;5003:14;;;4995:48;;4847:203::o;918:101:10:-;987:9;982:34;;998:18;1006:9;998:7;:18::i;6573:502:54:-;6632:27;:25;:27::i;:::-;7039:29;:27;:29::i;8918:112:58:-;9011:12;8918:112;:::o;4791:203:27:-;4920:67;4939:5;4929:7;:15;:35;;;;;4959:5;4948:8;:16;4929:35;5640:3:10;4920:8:27;:67::i;12934:483:57:-;13001:16;13126:19;13148:17;:15;:17::i;:::-;13126:39;;13175:31;13223:11;13209:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13209:26:57;;13175:60;;13251:9;13246:133;13270:11;13266:1;:15;13246:133;;;13322:46;13351:16;13365:1;13351:13;:16::i;:::-;13322:20;13340:1;13322:17;:20::i;:::-;:28;;:46::i;:::-;13302:14;13317:1;13302:17;;;;;;;;;;;;;;;;;:66;13283:3;;13246:133;;9418:746:54;9718:19;;;;9679:7;;-1:-1:-1;;;;;9718:35:54;9748:4;9718:35;;:75;;-1:-1:-1;9757:20:54;;;;-1:-1:-1;;;;;9757:36:54;9788:4;9757:36;9718:75;9717:440;;9932:225;9973:11;10006:18;10046:17;10085:18;10125:14;9932:19;:225::i;:::-;9717:440;;;9813:100;9826:11;9839:18;9859:17;9878:18;9898:14;9813:12;:100::i;:::-;9698:459;;9418:746;;;;;;;;:::o;7880:744::-;8179:19;;;;8140:7;;-1:-1:-1;;;;;8179:35:54;8209:4;8179:35;;:75;;-1:-1:-1;8218:20:54;;;;-1:-1:-1;;;;;8218:36:54;8249:4;8218:36;8179:75;8178:439;;8393:224;8433:11;8466:18;8506:17;8545:18;8585:14;8393:18;:224::i;7683:110:28:-;3257:3;7683:110;:::o;10034:213:50:-;-1:-1:-1;;;;;10157:18:50;;;;;;;-1:-1:-1;10157:18:50;;;;;;;;:27;;;;;;;;;;;;;;:36;;;10208:32;;;;;10157:36;;10208:32;:::i;:::-;;;;;;;;10034:213;;;:::o;47731:2389:54:-;4734:26:57;:24;:26::i;:::-;48524:18:54::1;:16;:18::i;:::-;48798:25;48851;48890:23:::0;48927:43:::1;48983:23;:21;:23::i;:::-;48784:222;;;;;;;;;49041:1;49021:17;:21;49017:87;;;49058:35;49075:17;49058:16;:35::i;:::-;49310:18;49334:28;:26;:28::i;:::-;49309:53;;;49878:24;49920:15;49906:10;:29;49905:148;;50001:52;50032:10;50044:8;50001:30;:52::i;:::-;49905:148;;;49951:35;49905:148;49878:175;;50064:49;50084:10;50096:16;50064:19;:49::i;:::-;4770:1:57;;;;;;47731:2389:54:o:0;7444:665:34:-;7588:49;;-1:-1:-1;;;7588:49:34;;7565:20;;-1:-1:-1;;;;;7588:40:34;;;-1:-1:-1;;7588:49:34;;7629:7;;7588:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7565:72;-1:-1:-1;7652:31:34;7648:383;;7716:23;:12;:21;:23::i;:::-;7699:6;:40;;-1:-1:-1;;7699:40:34;;;;;;;;;;;;7648:383;;;4446:1:17;7760:7:34;:32;7756:275;;;7826:23;:12;:21;:23::i;:::-;7808:6;:41;;;;;;;;;-1:-1:-1;;7808:41:34;;;;;;;;;7756:275;;;4485:1:17;7870:7:34;:30;7866:165;;;7932:23;:12;:21;:23::i;:::-;7916:6;:39;;;;;;;-1:-1:-1;;;7916:39:34;;;;;;;;;;;7866:165;;;7986:34;12459:3:10;7986:7:34;:34::i;:::-;8080:7;8046:56;8089:12;8046:56;;;;;;:::i;:::-;;;;;;;;7444:665;;;:::o;4837:237:44:-;4884:4;5030:25;:23;:25::i;:::-;5012:15;:43;:55;;;-1:-1:-1;;5060:7:44;;;;5059:8;;4837:237::o;5187:108::-;5269:19;5187:108;:::o;5301:110::-;5384:20;5301:110;:::o;14065:436:58:-;14129:13;14158:10;14154:37;;-1:-1:-1;14177:14:58;14170:21;;14154:37;14205:5;14214:1;14205:10;14201:37;;;-1:-1:-1;14224:14:58;14217:21;;14201:37;14252:5;14261:1;14252:10;14248:37;;;-1:-1:-1;14271:14:58;14264:21;;14248:37;14299:5;14308:1;14299:10;14295:37;;;-1:-1:-1;14318:14:58;14311:21;;14295:37;14346:5;14355:1;14346:10;14342:37;;;-1:-1:-1;14365:14:58;14358:21;;14342:37;14393:5;14402:1;14393:10;14389:106;;;-1:-1:-1;14412:14:58;14405:21;;14389:106;14455:29;7054:3:10;14455:7:58;:29::i;7753:559:50:-;7880:71;-1:-1:-1;;;;;7889:20:50;;;;10308:3:10;7880:8:50;:71::i;:::-;7961:72;-1:-1:-1;;;;;7970:23:50;;;;10376:3:10;7961:8:50;:72::i;:::-;8044:47;8065:6;8073:9;8084:6;8044:20;:47::i;:::-;-1:-1:-1;;;;;8122:17:50;;:9;:17;;;;;;;;;;;:68;;8144:6;10854:3:10;8122:21:50;:68::i;:::-;-1:-1:-1;;;;;8102:17:50;;;:9;:17;;;;;;;;;;;:88;;;;8223:20;;;;;;;:32;;8248:6;8223:24;:32::i;:::-;-1:-1:-1;;;;;8200:20:50;;;:9;:20;;;;;;;;;;;;:55;;;;8270:35;;;;;;;;;;8298:6;;8270:35;:::i;4891:171:57:-;4982:29;;;5009:1;4982:29;;;;;;;;;4945:34;;4982:29;;;;;:::i;:::-;;;;;;;;;;;;;;;;;4945:66;;5021:10;:8;:10::i;:::-;:34;;-1:-1:-1;;;5021:34:57;;-1:-1:-1;;;;;5021:28:57;;;;;;;:34;;5050:4;;5021:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4891:171;:::o;9358:357:58:-;9419:7;9451;-1:-1:-1;;;;;9442:16:58;;;;;;;9438:30;;;-1:-1:-1;9467:1:58;9460:8;;9438:30;9491:7;-1:-1:-1;;;;;9482:16:58;;;;;;;9478:30;;;-1:-1:-1;9507:1:58;9500:8;;9478:30;9531:7;-1:-1:-1;;;;;9522:16:58;;;;;;;9518:30;;;-1:-1:-1;9547:1:58;9540:8;;9518:30;9571:7;-1:-1:-1;;;;;9562:16:58;;;;;;;9558:30;;;-1:-1:-1;9587:1:58;9580:8;;9558:30;9611:7;-1:-1:-1;;;;;9602:16:58;;;;;;;9598:30;;;-1:-1:-1;9627:1:58;9620:8;;9598:30;9651:7;-1:-1:-1;;;;;9642:16:58;;;;;;;9638:30;;;-1:-1:-1;9667:1:58;9660:8;;2752:165:36;2811:7;2837:73;:5;1772:3;1951:2;2837:16;:73::i;9590:364:57:-;9735:12;9750:8;-1:-1:-1;;;;;9750:16:57;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9778:13;9794:23;;;:16;:23;;;;;;9735:33;;-1:-1:-1;9854:43:57;9794:23;9735:33;9888:8;9854:27;:43::i;:::-;9828:23;;;;:16;:23;;;;;;;:69;;;;9913:34;9845:5;;9913:34;;;;9942:4;;9913:34;:::i;:::-;;;;;;;;9590:364;;;;;:::o;2420:181:37:-;2475:16;2494:20;-1:-1:-1;;;;;;2506:7:37;;;2494:11;:20::i;:::-;2475:39;;2524:70;2533:33;2545:8;2555:10;2533:11;:33::i;:::-;9891:3:10;2524:8:37;:70::i;3515:1248:60:-;3576:13;3591:15;3619:18;3639:16;3657:17;3676:15;3695:23;:21;:23::i;:::-;3618:100;;;;;;;;3868:7;3850:15;:25;3846:911;;;3904:4;3891:17;;4380:10;4369:8;:21;4365:303;;;4502:9;4492:7;:19;4477:9;4459:15;:27;4444:10;4433:8;:21;4432:55;4431:81;;;;;;4418:10;:94;4410:102;;4365:303;;;4643:9;4633:7;:19;4618:9;4600:15;:27;4587:8;4574:10;:21;4573:55;4572:81;;;;;;4559:10;:94;4551:102;;4365:303;3846:911;;;4711:5;4698:18;;4738:8;4730:16;;3846:911;3515:1248;;;;;;:::o;2556:232:48:-;2616:7;2635:38;2644:6;;;5318:1:10;2635:8:48;:38::i;:::-;2688:6;2684:98;;-1:-1:-1;2717:1:48;2710:8;;2684:98;2770:1;2765;2761;:5;2760:11;;;;;;2756:1;:15;2749:22;;;;7770:306:60;7931:65;7955:10;7967:8;7977:9;7988:7;7931:23;:65::i;:::-;8011:58;8028:10;8040:8;8050:9;8061:7;8011:58;;;;;;;;;:::i;:::-;;;;;;;;7770:306;;;;:::o;4340:98:44:-;4392:39;4401:14;:12;:14::i;:::-;9935:3:10;4392:8:44;:39::i;8894:509:28:-;8979:89;9009:26;:24;:26::i;:::-;8988:17;:47;;6091:3:10;8979:8:28;:89::i;:::-;9078;9108:26;:24;:26::i;:::-;9087:17;:47;;6030:3:10;9078:8:28;:89::i;:::-;9190:9;;:147;;9224:17;4326:3;4561:2;9190:20;:147::i;:::-;9178:9;:159;9353:43;;;;;;9378:17;;9353:43;:::i;:::-;;;;;;;;8894:509;:::o;966:167:53:-;1024:7;1055:5;;;1070:37;1079:6;;;;1024:7;1070:8;:37::i;3913:358:44:-;3969:6;3965:232;;;3991:81;4018:24;:22;:24::i;:::-;4000:15;:42;9993:3:10;3991:8:44;:81::i;:::-;3965:232;;;4103:83;4130:25;:23;:25::i;:::-;4112:15;:43;11423:3:10;4103:8:44;:83::i;:::-;4207:7;:16;;-1:-1:-1;;4207:16:44;;;;;;;4238:26;;;;;;4207:16;;4238:26;:::i;11271:279:28:-;11364:14;11381:11;:9;:11::i;:::-;11364:28;;11409:20;11433:10;:8;:10::i;:::-;:42;;-1:-1:-1;;;11433:42:28;;-1:-1:-1;;;;;11433:27:28;;;;;;;:42;;11461:6;;11469:5;;11433:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11486:57;;-1:-1:-1;;;11486:57:28;;11402:73;;-1:-1:-1;;;;;;11486:37:28;;;-1:-1:-1;11486:37:28;;-1:-1:-1;11486:57:28;;-1:-1:-1;11524:6:28;;11532:10;;11486:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9977:488;10065:9;;:56;;10086:7;4388:3;10065:20;:56::i;:::-;10053:9;:68;10137:33;;;;;;10162:7;;10137:33;:::i;:::-;;;;;;;;10425:7;10420:38;;10434:24;:22;:24::i;5694:719:57:-;5763:7;6191:13;:11;:13::i;:::-;6182:5;:22;6178:74;;;-1:-1:-1;945:4:46;6220:21:57;;6178:74;6262:22;6287:23;;;:16;:23;;;;;;6327:28;;:79;;6375:31;:14;:29;:31::i;:::-;6327:79;;;945:4:46;6320:86:57;5694:719;-1:-1:-1;;;5694:719:57:o;25266:375:54:-;25522:7;25531:16;25566:68;25582:5;25589:18;25609:14;25625:8;25566:15;:68::i;:::-;25559:75;;;;25266:375;;;;;;;;;;;:::o;31004:360:28:-;31133:14;;31201:21;;31157:66;;31133:14;;31157:35;:66::i;:::-;31239:9;31234:124;31258:6;31254:1;:10;31234:124;;;31298:49;31317:7;31325:1;31317:10;;;;;;;;;;;;;;31329:14;31344:1;31329:17;;;;;;;;;;;;;;31298:18;:49::i;:::-;31285:7;31293:1;31285:10;;;;;;;;;;;;;;;;;:62;31266:3;;31234:124;;32751:7126;33432:10;33454:4;33432:27;33428:6443;;33746:28;;33728:12;;33754:4;;33746:28;;33728:12;;33765:8;;33746:28;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33727:47;;;33992:7;34025:1;34020:3336;;;;37516:9;34020:3336;34496:4;34493:1;34490;34475:26;34549:1;34543:8;-1:-1:-1;;;;;;34539:81:28;-1:-1:-1;;;34771:77:28;;34765:2;;34904:16;34901:1;34898;34883:38;34960:16;34957:1;34950:27;34765:2;;36371;36365:4;36362:1;36347:27;36568:2;36562:4;36555:16;36992:2;36974:16;36970:25;36964:4;36958;36943:53;37330:2;37312:16;37308:25;37305:1;37298:36;33858:3703;37816:21;:19;:21::i;:::-;37852:31;37886:17;:15;:17::i;:::-;37852:51;;37917:39;37931:8;37941:14;37917:13;:39::i;:::-;37972:17;37991:29;38024:256;38049:6;38073;38097:9;38124:8;38150:15;38183:25;38226:14;38258:8;38024:7;:256;;:::i;:::-;37971:309;;;;38295:45;38311:12;38325:14;38295:15;:45;;:::i;:::-;38821:19;;-1:-1:-1;;39208:23:28;;39248:24;;;39494:66;-1:-1:-1;;39476:16:28;;39469:92;-1:-1:-1;38817:28:28;-1:-1:-1;;39587:16:28;;39843:2;39833:13;;39587:16;39819:28;39804:1766:54;39896:25;39935:21;39970:25;40009:23;40046:43;40294:35;40335:10;:8;:10::i;:::-;-1:-1:-1;;;;;40335:24:54;;40360:11;:9;:11::i;:::-;40335:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;40335:37:54;;;;;;;;;;;;:::i;:::-;40291:81;;;;40382:52;40396:18;40416:17;:15;:17::i;:::-;40382:13;:52::i;:::-;40472:44;40497:18;40472:24;:44::i;:::-;40444:72;-1:-1:-1;40444:72:54;-1:-1:-1;40837:33:54;40927:21;:19;:21::i;:::-;40880:68;;-1:-1:-1;40880:68:54;-1:-1:-1;41151:43:54;41315:89;41351:8;40880:68;;41315:35;:89::i;:::-;41204:200;-1:-1:-1;41204:200:54;-1:-1:-1;41435:128:54;41491:13;41204:200;41435:42;:128::i;:::-;41415:148;;39804:1766;;;;;;;;:::o;3181:2872:59:-;4328:15;;3316:7;;;;;4353:91;4377:9;4373:1;:13;4353:91;;;4413:20;4421:8;4430:1;4421:11;;;;;;;;;;;;;;4413:3;:7;;:20;;;;:::i;:::-;4407:26;-1:-1:-1;4388:3:59;;4353:91;;;-1:-1:-1;4457:8:59;4453:47;;4488:1;4481:8;;;;;;4453:47;4510:21;4591:3;4654:34;;;4510:21;4727:1262;4751:3;4747:1;:7;4727:1262;;;4789:9;4775:11;4813:216;4837:9;4833:1;:13;4813:216;;;4942:72;4955:24;4964:3;4969:9;4955:8;:24::i;:::-;4981:32;4990:8;4999:1;4990:11;;;;;;;;;;;;;;5003:9;4981:8;:32::i;:::-;4942:12;:72::i;:::-;4936:78;-1:-1:-1;4848:3:59;;4813:216;;;;5059:9;5043:25;;5095:622;5125:248;5235:88;5298:24;5307:3;5312:9;5298:8;:24::i;:::-;5235:58;5248:28;5257:13;5272:3;5248:8;:28::i;:::-;1372:3;5235:12;:58::i;:::-;:62;;:88::i;:::-;5346:9;5125:8;:248::i;:::-;5520:165;5633:30;5643:9;5655:1;5643:13;5659:3;5633:8;:30::i;:::-;5520:83;5533:53;1372:3;5543:13;:30;5576:9;5533:8;:53::i;5095:622::-;5083:634;;5748:13;5736:9;:25;5732:247;;;5814:1;5797:13;5785:9;:25;:30;5781:93;;5846:9;5839:16;;;;;;;;;;;5781:93;5732:247;;;5927:1;5914:9;5898:13;:25;:30;5894:85;;5955:9;5948:16;;;;;;;;;;;5894:85;-1:-1:-1;4756:3:59;;4727:1262;;;;5999:47;7757:3:10;5999:7:59;:47::i;:::-;3181:2872;;;;;;;;;:::o;2628:355:46:-;2690:7;2709:38;2718:6;;;5318:1:10;2709:8:46;:38::i;:::-;2762:6;2758:219;;-1:-1:-1;2791:1:46;2784:8;;2758:219;945:4;2843:7;;;;2864:51;;2843:1;:7;:1;2873:13;;;;;:20;5366:1:10;2864:8:46;:51::i;:::-;2965:1;2953:9;:13;;;;;;2946:20;;;;;1437:126:10;1484:28;1492:9;-1:-1:-1;;;1484:7:10;:28::i;1066:243:2:-;1140:4;1245:1;1231:4;:11;:15;:71;;;;;1003:3;1250:52;;1261:4;1250:25;;;;;;;;;;;;:::i;:::-;:52;;;;1066:243;-1:-1:-1;;1066:243:2:o;5124:119:30:-;5181:55;5190:16;:14;:16::i;:::-;12169:3:10;5181:8:30;:55::i;37714:1128:54:-;37877:7;37886:16;38432:21;38455:25;38484:44;38509:18;38484:24;:44::i;:::-;38431:97;;;;38540:19;38561:27;38592:106;38631:8;38653:13;38680:8;38592:25;:106::i;:::-;38539:159;;;;38795:11;38808:26;38820:10;38832:1;38808:11;:26::i;:::-;38787:48;;;;;;;;37714:1128;;;;;;;:::o;30111:354:28:-;30234:14;;30302:21;;30258:66;;30234:14;;30258:35;:66::i;:::-;30340:9;30335:124;30359:6;30355:1;:10;30335:124;;;30399:49;30418:7;30426:1;30418:10;;;;;;;;;;;;;;30430:14;30445:1;30430:17;;;;;;;;;;;;;;30399:18;:49::i;:::-;30386:7;30394:1;30386:10;;;;;;;;;;;;;;;;;:62;30367:3;;30335:124;;3934:104:26;4010:21;4016:6;4024;4010:5;:21::i;2038:157:36:-;2100:7;2126:62;:5;2100:7;1895:2;2126:16;:62::i;2275:149::-;2333:7;2359:58;:5;1703:2;;2359:16;:58::i;3015:234::-;3076:16;3094:15;3132:18;3144:5;3132:11;:18::i;:::-;3121:29;-1:-1:-1;3170:72:36;:5;1841:3;1951:2;3170:16;:72::i;:::-;3160:82;;3015:234;;;:::o;24697:374:54:-;24953:7;24962:16;24997:67;25013:4;25019:18;25039:14;25055:8;24997:15;:67::i;31895:356:28:-;32022:14;;32090:21;;32046:66;;32022:14;;32046:35;:66::i;:::-;32128:9;32123:122;32147:6;32143:1;:10;32123:122;;;32187:47;32204:7;32212:1;32204:10;;;;;;;;;;;;;;32216:14;32231:1;32216:17;;;;;;;;;;;;;;32187:16;:47::i;:::-;32174:7;32182:1;32174:10;;;;;;;;;;;;;;;;;:60;32155:3;;32123:122;;32257:488;32315:11;32712:10;:8;:10::i;:::-;-1:-1:-1;;;;;32712:24:28;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;14597:175:58:-;14666:4;14689:76;:23;4076:1;14724:40;;5949:143:45;6054:14;2246:10;6046:33;;;6045:40;;5949:143::o;3803:419:40:-;3963:13;;;3973:2;3963:13;;;;;;;;;3914:12;;;;3963:13;;;;;;;;;;;-1:-1:-1;3963:13:40;3938:38;;4092:1;4087:2;4076:9;4072:18;4065:29;4134:1;4129:2;4118:9;4114:18;4107:29;4177:1;4172:2;4161:9;4157:18;4149:30;4206:9;3803:419;-1:-1:-1;;;;3803:419:40:o;1701:1214::-;1895:14;1912:28;1929:10;1912:16;:28::i;:::-;1895:45;;1950:66;1959:45;1977:7;1986:6;1994:9;1959:17;:45::i;:::-;2006:9;1950:8;:66::i;:::-;2487:63;2508:15;2496:8;:27;;12277:3:10;2487:8:40;:63::i;:::-;-1:-1:-1;;;;;;;;;2884:19:40;;;;;;;;:10;:19;;;;;:24;;-1:-1:-1;2884:24:40;;;-1:-1:-1;1701:1214:40:o;22579:1988:54:-;22769:7;22778:16;22806:32;22841:19;:8;:17;:19::i;:::-;22806:54;-1:-1:-1;22870:72:54;22887:32;22879:4;:40;;;;;;;;;6245:3:10;22870:8:54;:72::i;:::-;23056:38;23097:27;:8;:25;:27::i;:::-;23056:68;;23134:88;23170:21;:28;23200:14;:21;23134:35;:88::i;:::-;23232:52;23246:21;23269:14;23232:13;:52::i;:::-;23296:11;23313:28;:26;:28::i;:::-;23295:46;;;23351:26;23380:35;23393:21;23380:12;:35::i;:::-;23351:64;;23425:26;23454:46;23485:3;23490:9;23454:30;:46::i;:::-;23425:75;-1:-1:-1;23425:75:54;23572:20;24227:42;3234:8;23425:75;24227:28;:42::i;:::-;24206:63;;24280:35;24296:6;24304:10;24280:15;:35::i;:::-;24364:10;24325:21;24347:13;:11;:13::i;:::-;24325:36;;;;;;;;;;;;;:49;;;;;24461:44;24481:3;24486:18;24461:19;:44::i;:::-;-1:-1:-1;24524:12:54;24538:21;;-1:-1:-1;22579:1988:54;;-1:-1:-1;;;;;;;;;;22579:1988:54:o;3818:110:26:-;3897:24;3903:9;3914:6;3897:5;:24::i;4570:149:50:-;-1:-1:-1;;;;;4685:18:50;;;4659:7;4685:18;;;-1:-1:-1;4685:18:50;;;;;;;;:27;;;;;;;;;;;;;4570:149::o;7584:180:60:-;7648:71;7672:5;7679;7686:15;7703;7648:23;:71::i;:::-;7734:23;7751:5;7734:23;;;;;;:::i;2386:188:49:-;2447:7;2494:10;2506:12;2520:15;2537:13;:11;:13::i;:::-;2560:4;2483:83;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2473:94;;;;;;2466:101;;2386:188;:::o;1525:374:42:-;1621:1;1606:5;:12;:16;1602:53;;;1638:7;;1602:53;1665:16;1684:5;1690:1;1684:8;;;;;;;;;;;;;;1665:27;;1707:9;1719:1;1707:13;;1702:191;1726:5;:12;1722:1;:16;1702:191;;;1759:15;1777:5;1783:1;1777:8;;;;;;;;;;;;;;;;;;;-1:-1:-1;1799:51:42;-1:-1:-1;;;;;1808:18:42;;;;;;;5692:3:10;1799:8:42;:51::i;:::-;1875:7;-1:-1:-1;1740:3:42;;1702:191;;7061:607:45;7197:44;7215:3;7206:6;:12;5640:3:10;7197:8:45;:44::i;:::-;7406:90;7428:1;7415:9;:14;;:58;;;;;7446:27;7455:3;7466:6;7460:3;:12;7446:8;:27::i;:::-;7433:9;:40;;5640:3:10;7406:8:45;:90::i;:::-;7605:56;7614:18;;;:23;12057:3:10;7605:8:45;:56::i;26094:164:28:-;26233:18;:16;:18::i;10032:209:57:-;10090:19;10112:17;:15;:17::i;:::-;10090:39;;10144:9;10139:96;10163:11;10159:1;:15;10139:96;;;10195:29;10222:1;10195:26;:29::i;:::-;10176:3;;10139:96;;13154:437:58;13219:7;13242:10;13238:38;;-1:-1:-1;13261:15:58;13254:22;;13238:38;13290:5;13299:1;13290:10;13286:38;;;-1:-1:-1;13309:15:58;13302:22;;13286:38;13338:5;13347:1;13338:10;13334:38;;;-1:-1:-1;13357:15:58;13350:22;;13334:38;13386:5;13395:1;13386:10;13382:38;;;-1:-1:-1;13405:15:58;13398:22;;13382:38;13434:5;13443:1;13434:10;13430:38;;;-1:-1:-1;13453:15:58;13446:22;;13430:38;13482:5;13491:1;13482:10;13478:107;;;-1:-1:-1;13501:15:58;13494:22;;1790:209:46;1852:7;1889:5;;;1904:57;1913:6;;;:26;;;1938:1;1933;1923:7;:11;;;;1904:57;945:4;1979:13;;;;-1:-1:-1;;;1790:209:46:o;2693:749:27:-;2915:7;2934:39;2948:8;2958:14;2934:13;:39::i;:::-;3004:54;3013:11;:18;;;3033:14;3048:8;3033:24;;;;;;;;;;;;;;3004:8;:54::i;:::-;2983:18;;;:75;3069:16;3088:57;2983:11;3117:8;3127:7;3136:8;3088:15;:57::i;:::-;3069:76;;3233:47;3246:8;3256:14;3271:7;3256:23;;;;;;;;;;;;;;3233:12;:47::i;:::-;3222:58;;3408:27;3426:8;3408:17;:27::i;13383:1964:54:-;13625:7;;;13661:16;;:44;;;;;;;;;13644:61;;13716:49;13730:18;13750:14;13716:13;:49::i;:::-;13796:130;13818:11;:18;;;13850:14;13865:9;:50;;13897:18;13865:50;;;13877:17;13865:50;13850:66;;;;;;;13796:130;13775:11;:18;;:151;;;;;13951:25;13990;14029:18;14061:28;14102:35;14118:18;14102:15;:35::i;:::-;13937:200;;;;;;;;14236:24;14262:26;14314:13;:11;:13::i;:::-;14292:18;:35;:596;;14622:266;14651:9;14678:11;:18;;;14714:8;14740:33;14754:18;14740:13;:33::i;:::-;14791:10;14819:17;14854:20;14622:11;:266::i;:::-;14292:596;;;14342:265;14371:9;14398:11;:18;;;14434:8;14460:32;14474:17;14460:13;:32::i;:::-;14510:10;14538:17;14573:20;14342:11;:265::i;:::-;14235:653;;;;14899:182;14942:10;14966:8;14988:20;15022:17;15053:18;14899:29;:182::i;:::-;15111:9;:206;;15252:65;15265:16;15283:14;15298:17;15283:33;;;;;;;15252:65;15111:206;;;15139:68;15154:16;15172:14;15187:18;15172:34;;;;;;;;;;;;;;15139:14;:68::i;:::-;15092:225;13383:1964;-1:-1:-1;;;;;;;;;;;;;13383:1964:54:o;1911:776:27:-;2132:7;2280:42;2303:11;:18;;;2280:22;:42::i;:::-;2259:18;;;:63;2333:39;2347:8;2357:14;2333:13;:39::i;:::-;2403:53;2412:11;:18;;;2432:14;2447:7;2432:23;;;;;;;2403:53;2382:18;;;:74;2467:17;2487:56;2382:11;2515:8;2525:7;2534:8;2487:14;:56::i;:::-;2467:76;;2629:51;2644:9;2655:14;2670:8;2655:24;;;;;;;26392:134:28;26456:63;26480:26;:24;:26::i;:::-;26509:9;26456:15;:63::i;18572:468:56:-;18824:181;18862:21;2543:1;2613:3;18824:20;:181::i;:::-;18703:106;18724:10;2613:3;2838:2;18703:20;:106::i;:::-;:302;18671:17;:334;19016:17;:15;:17::i;1816:206:53:-;1923:7;1942:27;1956:1;1951;:6;;1959:9;1942:8;:27::i;:::-;-1:-1:-1;;1991:5:53;;;1816:206::o;1944:544:29:-;2032:4;1638:42;2053:10;:8;:10::i;:::-;-1:-1:-1;;;;;2053:29:29;;;;;2052:63;;;2087:28;2106:8;2087:18;:28::i;:::-;2048:434;;;2247:10;:8;:10::i;:::-;-1:-1:-1;;;;;2233:24:29;:10;:24;;-1:-1:-1;2226:31:29;;2048:434;2410:16;:14;:16::i;:::-;:61;;-1:-1:-1;;;2410:61:29;;-1:-1:-1;;;;;2410:27:29;;;;;;;:61;;2438:8;;2448:7;;2465:4;;2410:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;4832:642:60:-;4924:18;4956:16;4986:17;5017:15;5070:83;2181:1;2411:2;5070:24;;:35;;:83;;;;;:::i;:::-;5174:24;;5057:96;;-1:-1:-1;5174:81:60;;2237:2;;5174:35;:81::i;:::-;5277:24;;5163:92;;-1:-1:-1;5277:86:60;;2295:3;2472:2;5277:35;:86::i;:::-;5383:24;;5265:98;;-1:-1:-1;5383:84:60;;2352:3;2472:2;5383:35;:84::i;:::-;5373:94;;4832:642;;;;:::o;8082:570::-;8567:78;8588:7;2352:3;2472:2;8567:20;:78::i;:::-;8470:82;8491:9;2295:3;2472:2;8470:20;:82::i;:::-;8379:76;8400:8;2237:2;2411;8379:20;:76::i;:::-;8284:80;8305:10;2181:1;2411:2;8284:20;:80::i;:::-;:171;:268;:361;8245:24;:400;-1:-1:-1;;;;8082:570:60:o;9409:124:28:-;3365:4;9409:124;:::o;9539:::-;3438:4;9539:124;:::o;50741:1072:54:-;4734:26:57;:24;:26::i;:::-;51383:35:54::1;51424:10;:8;:10::i;:::-;-1:-1:-1::0;;;;;51424:24:54::1;;51449:11;:9;:11::i;:::-;51424:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;51424:37:54::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;51380:81;;;;51471:52;51485:18;51505:17;:15;:17::i;51471:52::-;51533:25;51561:32;51574:18;51561:12;:32::i;:::-;51533:60;;51605:18;51629:28;:26;:28::i;:::-;51604:53;;;51667:24;51694:52;51725:10;51737:8;51694:30;:52::i;:::-;51667:79;;51757:49;51777:10;51789:16;51757:19;:49::i;25820:1971::-:0;26007:7;26016:16;26058:25;26097;26136:18;26168:28;26209:35;26225:18;26209:15;:35::i;:::-;26044:200;;;;;;;;26260:197;26470:6;:26;;26489:7;26470:26;;;26479:7;26470:26;26260:237;;26509:17;26528:29;26561:184;26588:8;26610:10;26634:17;26665:20;26699:14;26727:8;26561:13;:184;;:::i;:::-;26508:237;;;;26906:68;26977:6;:40;;27003:14;26977:40;;;26986:14;26977:40;26906:111;;27027:49;27042:8;27052:12;27066:9;27027:14;:49::i;:::-;27086:26;27115:39;27125:17;27144:9;27115;:39;;:::i;:::-;27086:68;;27329:182;27372:10;27396:8;27418:20;27452:17;27483:18;27329:29;:182::i;:::-;27744:9;27755:28;27767:12;27781:1;27755:11;:28::i;:::-;27736:48;;;;;;;;;;;;;25820:1971;;;;;;;:::o;11344:261:58:-;11462:7;11471:16;11511:52;11529:18;11548:13;:11;:13::i;:::-;11529:33;;;;;;;;;;;;;;11511:17;:52::i;:::-;11565:32;11578:18;11565:12;:32::i;:::-;11503:95;;;;11344:261;;;:::o;4998:7011:56:-;5183:7;5192;6628:30;6672:37;6723:28;6764:74;6785:8;6795:15;6812:25;6764:20;:74::i;:::-;6614:224;;;;;;10420:25;10396:20;:49;10392:112;;10469:1;;-1:-1:-1;10472:20:56;-1:-1:-1;10461:32:56;;-1:-1:-1;;10461:32:56;10392:112;10829:50;;;10934:54;;;10791:35;11370:140;11449:51;10791:35;11449:29;:51::i;:::-;11370:57;:27;11406:20;11370:35;:57::i;:140::-;11334:176;;11521:31;11555:148;11641:52;4446:1:17;11641:29:56;:52::i;:::-;11555:64;:34;11598:20;11555:42;:64::i;:148::-;11928:51;;;;;11981:20;;-1:-1:-1;4998:7011:56;;-1:-1:-1;;;;;;;;;4998:7011:56:o;1470:619:35:-;1610:7;1984:98;1997:46;2006:11;2019:23;1997:8;:46::i;:::-;2045:36;:23;:34;:36::i;2402:148:48:-;2464:7;2483:38;2492:6;;;5318:1:10;2483:8:48;:38::i;:::-;2542:1;2538;:5;;;;;;;2402:148;-1:-1:-1;;;2402:148:48:o;1670:3378:10:-;-1:-1:-1;;;1732:18:10;4383:79;;;4601:66;4595:4;4588:80;4743:1;4737:4;4730:15;2871:2;2904:18;;;2949;;;2876:4;2945:29;;;3747:1;3838:14;2856:18;;;;3827:26;;;;2997:18;;;;3044;;;3040:29;;3859:2;3855:17;3823:50;3737:4;3743:18;;;;;;3733:29;3729:2;3725:38;3802:72;;;;3797:3;3793:82;4810:4;4803:26;1761:14;;;;;5036:3;;5026:14;5861:399:30;6017:7;6026:16;6054:19;6076:27;:8;:25;:27::i;:::-;6054:49;;6114:27;6144:66;6175:8;6185:11;6198;6144:30;:66::i;:::-;6229:11;;;;-1:-1:-1;5861:399:30;;-1:-1:-1;;;;;5861:399:30:o;12699:426:58:-;12812:39;12906:7;:14;12923:1;12906:18;12892:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12892:33:58;;12867:58;;12940:9;12935:184;12959:22;:29;12955:1;:33;12935:184;;;13042:13;:11;:13::i;:::-;13037:1;:18;:71;;13070:7;13082:13;:11;:13::i;:::-;13078:1;:17;:29;;13106:1;13102;:5;13078:29;;;13098:1;13078:29;13070:38;;;;;;;;;;;;;;13037:71;;;13058:9;13037:71;13009:22;13032:1;13009:25;;;;;;;;;;;;;;;;;:99;12990:3;;12935:184;;;;12699:426;;;;:::o;9200:411:50:-;9275:68;-1:-1:-1;;;;;9284:21:50;;;;10506:3:10;9275:8:50;:68::i;:::-;9354:49;9375:7;9392:1;9396:6;9354:20;:49::i;:::-;-1:-1:-1;;;;;9435:18:50;;:9;:18;;;;;;;;;;;:65;;9458:6;11950:3:10;9435:22:50;:65::i;:::-;-1:-1:-1;;;;;9414:18:50;;:9;:18;;;;;;;;;;:86;9510:42;9526:25;9544:6;9526:13;:11;:13::i;:::-;:17;;:25::i;:::-;9510:15;:42::i;:::-;9567:37;;9593:1;;-1:-1:-1;;;;;9567:37:50;;;;;;;9597:6;;9567:37;:::i;:::-;;;;;;;;9200:411;;:::o;2989:682:46:-;3049:7;3068:38;3077:6;;;5318:1:10;3068:8:46;:38::i;:::-;3121:6;3117:548;;-1:-1:-1;3150:1:46;3143:8;;3117:548;945:4;3202:7;;;;3223:51;;3202:1;:7;:1;3232:13;;;3223:51;3648:1;3643;3631:9;:13;3630:19;;;;;;3653:1;3629:25;3622:32;;;;;3199:183:49;3276:7;3341:20;:18;:20::i;:::-;3363:10;3312:62;;;;;;;;;:::i;2921:876:40:-;3066:4;3082:60;3091:9;:16;3111:2;3091:22;12334:3:10;3082:8:40;:60::i;:::-;3427:4;3412:20;;;3406:27;3472:4;3457:20;;;3451:27;3525:4;3510:20;;3504:27;3579:26;;3153:9;3579:26;;;;;;;;;3406:27;;3451;;3496:36;;;3579:26;;;;3589:6;;3496:36;;3406:27;;3451;;3579:26;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3579:26:40;;-1:-1:-1;;3579:26:40;;;-1:-1:-1;;;;;;;3728:30:40;;;;;;:61;;-1:-1:-1;;;;;;3762:27:40;;;;;;;3728:61;3720:70;2921:876;-1:-1:-1;;;;;;;;2921:876:40:o;979:122:1:-;1039:8;1077:4;1066:28;;;;;;;;;;;;:::i;1249:168::-;1317:26;1382:4;1371:39;;;;;;;;;;;;:::i;10799:361:58:-;10870:16;10898:34;10966:1;10949:7;:14;:18;10935:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10935:33:58;;10898:70;;10983:9;10978:141;11002:17;:24;10998:1;:28;10978:141;;;11070:7;11082:13;:11;:13::i;:::-;11078:1;:17;:29;;11102:1;11106;11102:5;11078:29;;;11098:1;11078:29;11070:38;;;;;;;;;;;;;;11047:17;11065:1;11047:20;;;;;;;;;;;;;;;;;:61;11028:3;;10978:141;;8583:297:50;8658:49;8687:1;8691:7;8700:6;8658:20;:49::i;:::-;8718:42;8734:25;8752:6;8734:13;:11;:13::i;8718:42::-;-1:-1:-1;;;;;8791:18:50;;:9;:18;;;;;;;;;;;:30;;8814:6;8791:22;:30::i;:::-;-1:-1:-1;;;;;8770:18:50;;:9;:18;;;;;;;;;;;:51;;;;8836:37;;8770:18;;:9;8836:37;;;;8866:6;;8836:37;:::i;3388:427:49:-;3790:9;;3765:44::o;10366:913:57:-;10877:13;:11;:13::i;:::-;10868:5;:22;10864:35;;;10892:7;;10864:35;10909:13;10925:23;;;:16;:23;;;;;;10962:19;;10958:315;;10998:16;11016:15;11035:21;:5;:19;:21::i;:::-;10997:59;;;;11092:7;11074:15;:25;11070:193;;;11185:63;11207:5;11214:23;11231:5;11214:16;:23::i;:::-;11239:8;11185:21;:63::i;29363:579:28:-;29443:7;29894:41;29913:6;29921:13;29894:18;:41::i;11196:466:54:-;11414:7;11452:203;11484:5;11520:7;:14;;;11552:18;11588:17;11623:18;11452:14;:203::i;31566:156:28:-;31650:7;31676:39;31693:6;31701:13;31676:16;:39::i;26620:240::-;26686:7;26804:49;26817:35;:22;:20;:22::i;:::-;:33;:35::i;:::-;26804:6;;:12;:49::i;27912:1089:54:-;28021:7;28042:16;28072:7;28093;28126:23;28151:33;28188:21;:19;:21::i;:::-;28125:84;;;;28233:25;28272;28311:34;28358:94;28389:18;28409:15;28426:25;28358:30;:94::i;:::-;28219:233;;;;;;28683:18;28707:28;:26;:28::i;:::-;28682:53;;;28745:28;28790:15;28776:10;:29;:137;;28861:52;28892:10;28904:8;28861:30;:52::i;:::-;28776:137;;;28820:26;28776:137;28932:17;;28951:8;;-1:-1:-1;28961:10:54;;-1:-1:-1;28932:17:54;;-1:-1:-1;27912:1089:54;;-1:-1:-1;;;;;;27912:1089:54:o;10308:383:58:-;10369:7;10568:54;10586:13;:11;:13::i;:::-;10577:5;:22;;5640:3:10;10568:8:58;:54::i;:::-;10648:13;:11;:13::i;:::-;10640:5;:21;:44;;10672:12;:5;10682:1;10672:9;:12::i;:::-;10640:44;;18901:844:54;19156:7;19165;19203:9;:535;;19494:244;19546:6;19574:8;19604;19634:10;19666:12;19700:20;19494:30;:244::i;:::-;19203:535;;;19231:244;19283:6;19311:8;19341;19371:10;19403:12;19437:20;19231:30;:244::i;:::-;19184:554;;;;18901:844;;;;;;;;;;:::o;15591:841::-;15845:7;15854;15892:9;:533;;16182:243;16234:6;16262:8;16292:7;16321:10;16353:12;16387:20;16182:30;:243::i;15892:533::-;15920:243;15972:6;16000:8;16030:7;16059:10;16091:12;16125:20;15920:30;:243::i;15812:2484:56:-;16668:29;16700:52;16731:10;16743:8;16700:30;:52::i;:::-;16668:84;-1:-1:-1;16832:25:56;16860:45;:18;16887:17;16860:26;:45::i;:::-;16832:73;-1:-1:-1;16915:24:56;16942:47;:20;16832:73;16942:28;:47::i;:::-;16915:74;;17432:16;17408:21;:40;17404:821;;;17497:40;;;17464:30;17731:168;17761:85;17497:40;17794:51;17464:30;17794:29;:51::i;:::-;17761:8;:85::i;:::-;17864:21;17731:12;:168::i;:::-;17693:206;-1:-1:-1;17918:31:56;;17914:301;;17969:25;17997:149;18061:18;18101:27;17997:42;:149::i;:::-;17969:177;;18165:35;18182:17;18165:16;:35::i;:::-;17914:301;;17404:821;;;18235:54;18255:10;18267:21;18235:19;:54::i;30669:160:28:-;30755:7;30781:41;30800:6;30808:13;30781:18;:41::i;26960:283::-;27031:7;27142:17;27162:36;27175:22;:20;:22::i;:::-;27162:6;;:12;:36::i;:::-;27142:56;-1:-1:-1;27215:21:28;:6;27142:56;27215:10;:21::i;10448:463:54:-;10665:7;10703:201;10735:4;10769:7;:14;;;10801:18;10837:17;10872:18;10703:14;:201::i;11514:210:57:-;11560:19;11582:17;:15;:17::i;:::-;11560:39;;11614:9;11609:109;11633:11;11629:1;:15;11609:109;;;11669:19;11686:1;11669:16;:19::i;:::-;11665:42;;;11690:17;11705:1;11690:14;:17::i;:::-;11646:3;;11609:109;;52609:573:54;53114:4;53141:34;53166:8;53141:24;:34::i;33382:1184::-;33636:7;33645:16;33673:32;33708:19;:8;:17;:19::i;:::-;33673:54;-1:-1:-1;33749:55:54;33741:4;:63;;;;;;;;;33737:823;;;33843:254;33892:17;33931:20;33973:10;34005:8;34035:14;34071:8;33843:27;:254::i;:::-;33820:277;;;;;;;33737:823;34126:59;34118:4;:67;;;;;;;;;34114:446;;;34208:66;34236:17;34255:8;34265;34208:27;:66::i;34114:446::-;34303:58;34295:4;:66;;;;;;;;;34291:269;;;34384:99;34411:17;34430:20;34452:10;34464:8;34474;34384:26;:99::i;34291:269::-;34514:35;8698:3:10;34514:7:54;:35::i;:::-;33382:1184;;;;;;;;;;;:::o;29108:1183::-;29362:7;29371:16;29399:32;29434:19;:8;:17;:19::i;:::-;29399:54;-1:-1:-1;29475:55:54;29467:4;:63;;;;;;;;;29463:822;;;29569:254;29618:17;29657:20;29699:10;29731:8;29761:14;29797:8;29569:27;:254::i;29463:822::-;29852:59;29844:4;:67;;;;;;;;;29840:445;;;29934:69;29965:17;29984:8;29994;29934:30;:69::i;29840:445::-;30032:54;30024:4;:62;;;;;;;;;30020:265;;;30109:99;30136:17;30155:20;30177:10;30189:8;30199;30109:26;:99::i;30020:265::-;30239:35;7111:3:10;30239:7:54;:35::i;51999:423::-;52208:15;;52277:16;;52233:61;;52208:15;;52233:35;:61::i;:::-;52310:9;52305:111;52329:6;52325:1;:10;52305:111;;;52370:35;52379:8;52388:1;52379:11;;;;;;;;;;;;;;52392:9;52402:1;52392:12;;;;;;;;;;;;;;52370:8;:35;;:::i;:::-;52356:8;52365:1;52356:11;;;;;;;;;;;;;;;;;:49;52337:3;;52305:111;;16368:417:58;16438:7;16749:29;16767:10;16749:13;:11;:13::i;:::-;:17;;:29::i;12792:2701:56:-;12999:30;13043:37;13094:28;13274:57;13305:15;13322:8;13274:30;:57::i;:::-;13251:80;;13464:25;13440:20;:49;13436:153;;13513:20;13535;13505:73;;;;;;13436:153;13715:163;13759:15;13788:30;13809:8;13788:20;:30::i;:::-;13715;:163::i;:::-;13690:188;;14076:54;14085:20;14107:22;14076:8;:54::i;:::-;14051:79;;14185:59;14194:25;14221:22;14185:8;:59::i;:::-;14160:84;;14858:30;:28;:30::i;:::-;14854:633;;;15101:22;15069:54;;14854:633;;;15456:20;15424:52;;14854:633;12792:2701;;;;;;;:::o;5813:112:46:-;5867:7;945:4;5894:1;:7;5893:25;;5917:1;5893:25;;;-1:-1:-1;945:4:46;5906:7;;5813:112::o;1364:158:2:-;1432:19;1492:4;1481:34;;;;;;;;;;;;:::i;6266:1420:30:-;6428:27;7449:16;7468:32;:11;7488;7468:19;:32::i;:::-;7449:51;;7538:8;:15;7524:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7524:30:30;;7511:43;;7569:9;7564:116;7588:8;:15;7584:1;:19;7564:116;;;7640:29;7660:8;7640;7649:1;7640:11;;;;;;;;;;;;;;:19;;:29;;;;:::i;:::-;7624:10;7635:1;7624:13;;;;;;;;;;;;;;;;;:45;7605:3;;7564:116;;;;6266:1420;;;;;;:::o;1404:121:53:-;1462:7;1488:30;1492:1;1495;5172::10;1488:3:53;:30::i;3870:94:50:-;3937:12;:20;3870:94::o;11896:905:54:-;12117:7;12189:25;12217:32;12230:18;12217:12;:32::i;:::-;12189:60;;12259:15;12277:32;12291:17;12277:13;:32::i;:::-;12259:50;;12319:16;12338:33;12352:18;12338:13;:33::i;:::-;12319:52;;12383:18;12407:28;:26;:28::i;:::-;12382:53;;;12445:17;12465:52;12496:10;12508:8;12465:30;:52::i;:::-;12445:72;;12532:9;12528:267;;;12564:91;12591:10;12603:8;12613:7;12622:8;12632:11;12645:9;12564:26;:91::i;:::-;12557:98;;;;;;;;;12528:267;12693:91;12720:10;12732:8;12742:7;12751:8;12761:11;12774:9;12693:26;:91::i;3286:1706:56:-;3500:7;3521:16;3551:7;3584:21;3607:25;3636:44;3661:18;3636:24;:44::i;:::-;3583:97;;;;3854:43;3911;3967:89;4003:8;4013:15;4030:25;3967:35;:89::i;:::-;3840:216;;;;4369:25;4397:128;4453:13;4480:35;4397:42;:128::i;:::-;4369:156;-1:-1:-1;4540:21:56;;4536:87;;4577:35;4594:17;4577:16;:35::i;:::-;4904:33;;;;;4939:8;;-1:-1:-1;4904:33:56;;-1:-1:-1;3286:1706:56;-1:-1:-1;;;;;3286:1706:56:o;21029:1002:54:-;21282:7;21291;21495:27;21539:8;:15;21525:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21525:30:54;;21495:60;;21588:9;21565:10;21576:8;21565:20;;;;;;;;;;;;;:32;;;;;21608:17;21628:216;21682:10;21706:8;21728:10;21752:12;21778:20;21812:22;:20;:22::i;:::-;21628:40;:216::i;:::-;21608:236;;21876:33;21899:9;21876:8;21885;21876:18;;;;;;;;;;;;;;:22;;:33;;;;:::i;:::-;21855:8;21864;21855:18;;;;;;;;;;;;;;;;;:54;21919:26;21948:27;:12;21965:9;21948:16;:27::i;:::-;21994:9;;;;-1:-1:-1;21029:1002:54;;-1:-1:-1;;;;;;;;;21029:1002:54:o;20023:724::-;20276:7;20285;20304:17;20324:236;20377:10;20401:8;20423;20445:9;20468:12;20494:20;20528:22;:20;:22::i;:::-;20324:39;:236::i;:::-;20304:256;;20592:33;20615:9;20592:8;20601;20592:18;;;;;;;:33;20571:8;20580;20571:18;;;;;;;;;;;;;;;;;:54;20635:26;20664:27;:12;20681:9;20664:16;:27::i;:::-;20710:9;;;;-1:-1:-1;20023:724:54;;-1:-1:-1;;;;;;;;20023:724:54:o;17951:708::-;18200:7;18209;18228:16;18247:232;18300:10;18324:8;18346:7;18367:6;18387:12;18413:20;18447:22;:20;:22::i;:::-;18247:39;:232::i;:::-;18228:251;;18510:31;18532:8;18510;18519:7;18510:17;;;;;;;;;;;;;;:21;;:31;;;;:::i;:::-;18490:8;18499:7;18490:17;;;;;;;;;;;;;;;;;:51;18551:26;18580:24;:12;18597:6;18580:16;:24::i;16701:983::-;16952:7;16961;17165:26;17208:8;:15;17194:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17194:30:54;;17165:59;;17255:8;17234:9;17244:7;17234:18;;;;;;;;;;;;;:29;;;;;17274:14;17291:215;17345:10;17369:8;17391:9;17414:12;17440:20;17474:22;:20;:22::i;:::-;17291:40;:215::i;:::-;17274:232;;17537:31;17559:8;17537;17546:7;17537:17;;;;;;;:31;17517:8;17526:7;17517:17;;;;;;;;;;;;;;;;;:51;17578:26;17607:24;:12;17624:6;17607:16;:24::i;2005:617:46:-;2065:7;2102:5;;;2117:57;2126:6;;;:26;;;2151:1;2146;2136:7;:11;;;;2117:57;2189:12;2185:431;;2224:1;2217:8;;;;;2185:431;945:4;-1:-1:-1;;2582:11:46;;2581:19;;5185:161:57;5243:13;5259:23;;;:16;:23;;;;;;5318:21;5259:23;5318:19;:21::i;:::-;5292:23;;;;:16;:23;;;;;;:47;;;;-1:-1:-1;5185:161:57:o;19870:525:56:-;20327:4;20354:34;20379:8;20354:24;:34::i;1107:122:1:-;1167:8;1205:4;1194:28;;;;;;;;;;;;:::i;35348:987:54:-;35616:7;35625:16;35654:27;35683:22;35709:33;:8;:31;:33::i;:::-;35653:89;;;;35752:71;35788:10;:17;35807:8;:15;35752:35;:71::i;:::-;35906:55;35920:10;35932:28;35945:14;35932:12;:28::i;35906:55::-;35972:19;35994:216;36048:10;36072:8;36094:10;36118:12;36144:20;36178:22;:20;:22::i;35994:216::-;35972:238;;36220:65;36244:14;36229:11;:29;;6300:3:10;36220:8:54;:65::i;:::-;36304:11;36317:10;;-1:-1:-1;35348:987:54;;-1:-1:-1;;;;;;;;35348:987:54:o;34840:410::-;35001:7;35010:16;35038:19;35060:33;:8;:31;:33::i;:::-;35038:55;;35103:27;35133:67;35164:8;35174:12;35188:11;35133:30;:67::i;36433:1143::-;36659:7;36668:16;36798:19;36819:18;36841:32;:8;:30;:32::i;:::-;36797:76;;;;36984:60;37006:8;:15;36993:10;:28;5640:3:10;36984:8:54;:60::i;:::-;37129:27;37173:8;:15;37159:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37159:30:54;;37129:60;;37286:240;37339:10;37363:8;37385:10;37409:11;37434:12;37460:20;37494:22;:20;:22::i;37286:240::-;37261:10;37272;37261:22;;;;;;;;;;;;;;;;;:265;37545:11;;;;-1:-1:-1;36433:1143:54;;-1:-1:-1;;;;;;;36433:1143:54:o;30901:989::-;31169:7;31178:16;31207:26;31235:23;31262:33;:8;:31;:33::i;:::-;31206:89;;;;31305:70;31341:8;:15;31358:9;:16;31305:35;:70::i;:::-;31458:54;31472:9;31483:28;31496:14;31483:12;:28::i;31458:54::-;31523:20;31546:215;31600:10;31624:8;31646:9;31669:12;31695:20;31729:22;:20;:22::i;31546:215::-;31523:238;;31772:68;31797:15;31781:12;:31;;6356:3:10;31772:8:54;:68::i;30363:427::-;30527:7;30536:16;30564:20;30587:36;:8;:34;:36::i;:::-;30564:59;;30633:26;30662:78;30703:8;30713:12;30727;30662:40;:78::i;31988:1221::-;32214:7;32223:16;32354:20;32376:18;32398:32;:8;:30;:32::i;:::-;32353:77;;;;32616:60;32638:8;:15;32625:10;:28;5640:3:10;32616:8:54;:60::i;:::-;32763:26;32806:8;:15;32792:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32792:30:54;;32763:59;;32918:241;32971:10;32995:8;33017:10;33041:12;33067;33093:20;33127:22;:20;:22::i;11932:594:57:-;12072:15;;12012:16;;;12072:15;12133:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12133:36:57;;12097:72;;12185:9;12180:306;12204:21;12200:1;:25;12180:306;;;12246:20;12274:13;:11;:13::i;:::-;12269:1;:18;;:30;;12298:1;12269:30;;;12290:1;12294;12290:5;12269:30;12246:53;;12335:30;12352:12;12335:16;:30::i;:::-;:140;;12464:8;12473:1;12464:11;;;;;;;;;;;;;;12335:140;;;12384:61;12401:8;12410:1;12401:11;;;;;;;;;;;;;;12414:16;:30;12431:12;12414:30;;;;;;;;;;;;12384:16;:61::i;:::-;12313:16;12330:1;12313:19;;;;;;;;;;;;;;;;;:162;-1:-1:-1;12227:3:57;;12180:306;;;-1:-1:-1;12503:16:57;11932:594;-1:-1:-1;;;11932:594:57:o;1740:105:48:-;1798:7;1829:1;1824;:6;;:14;;1837:1;1824:14;;6228:2287:59;6476:7;7890:41;7917:13;7890:8;7899:12;7890:22;;;;;;;:41;7865:8;7874:12;7865:22;;;;;;;;;;;;;:66;;;;;7942:23;7968:167;8031:22;8067:8;8089:9;8112:13;7968:49;:167::i;:::-;7942:193;;8426:13;8401:8;8410:12;8401:22;;;;;;;;;;;;;;:38;8376:8;8385:12;8376:22;;;;;;;;;;;;;:63;;;;;8457:51;8506:1;8457:44;8485:15;8457:8;8466:13;8457:23;;;;;;;:51;8450:58;;;6228:2287;;;;;;;;;:::o;8733:2295::-;8982:7;10394:43;10422:14;10394:8;10403:13;10394:23;;;;;;;:43;10368:8;10377:13;10368:23;;;;;;;;;;;;;:69;;;;;10448:22;10473:166;10536:22;10572:8;10594:9;10617:12;10473:49;:166::i;:::-;10448:191;;10940:14;10914:8;10923:13;10914:23;;;;;;;;;;;;;;:40;10888:8;10897:13;10888:23;;;;;;;;;;;;;:66;;;;;10972:49;11019:1;10972:42;10991:8;11000:12;10991:22;;;;;;;;;;;;;;10972:14;:18;;:42;;;;:::i;15566:2527::-;15828:7;;;16086:113;16110:8;:15;16106:1;:19;16086:113;;;16160:28;16176:8;16185:1;16176:11;;;;;;;;;;;;;;16160;:15;;:28;;;;:::i;:::-;16146:42;-1:-1:-1;16127:3:59;;16086:113;;;;16282:40;16339:10;:17;16325:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16325:32:59;;16282:75;;16367:33;16419:9;16414:337;16438:8;:15;16434:1;:19;16414:337;;;16474:21;16498:30;16516:11;16498:8;16507:1;16498:11;;;;;;;;;;;;;;:17;;:30;;;;:::i;:::-;16474:54;;16571:49;16608:8;16617:1;16608:11;;;;;;;;;;;;;;16571:30;16587:10;16598:1;16587:13;;;;;;;;;;;;;;16571:8;16580:1;16571:11;;;;;;;:30;:36;;:49::i;:::-;16542:23;16566:1;16542:26;;;;;;;;;;;;;:78;;;;;16662;16692:47;16725:13;16692:23;16716:1;16692:26;;;;;;;;;;;;;;:32;;:47;;;;:::i;:::-;16662:25;;:29;:78::i;:::-;16634:106;-1:-1:-1;;16455:3:59;;16414:337;;;;16864:28;16909:8;:15;16895:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16895:30:59;;16864:61;;16940:9;16935:911;16959:8;:15;16955:1;:19;16935:911;;;17183:24;17253:23;17277:1;17253:26;;;;;;;;;;;;;;17225:25;:54;17221:550;;;17299:24;17326:59;17346:38;:25;:36;:38::i;:::-;17326:8;17335:1;17326:11;;;;;;;:59;17299:86;;17403:21;17427:35;17445:16;17427:10;17438:1;17427:13;;;;;;;:35;17403:59;-1:-1:-1;17608:77:59;17629:55;17403:59;945:4:46;17649:34:59;;;17629:19;:55::i;:::-;17608:16;;:20;:77::i;:::-;17589:96;;17221:550;;;;;17743:10;17754:1;17743:13;;;;;;;;;;;;;;17724:32;;17221:550;17802:33;17818:16;17802:8;17811:1;17802:11;;;;;;;:33;17785:11;17797:1;17785:14;;;;;;;;;;;;;;;;;:50;-1:-1:-1;16976:3:59;;16935:911;;;;17856:20;17879:37;17899:3;17904:11;17879:19;:37::i;:::-;17856:60;-1:-1:-1;17926:22:59;17951:38;17856:60;17972:16;17951:20;:38::i;:::-;17926:63;;18037:49;18058:27;:14;:25;:27::i;:::-;18037:14;;:20;:49::i;18099:1903::-;18380:7;;18471:77;18531:16;18471:53;18509:14;18471:31;18509:14;18490:11;18471:18;:31::i;:53::-;:59;;:77::i;:::-;18448:100;;18603:28;18634:148;18697:3;18714:8;18736:12;18762:10;18634:49;:148::i;:::-;18603:179;;18792:27;18822:46;18847:20;18822:8;18831:10;18822:20;;;;;;;:46;18792:76;;19013:19;19051:9;19046:113;19070:8;:15;19066:1;:19;19046:113;;;19120:28;19136:8;19145:1;19136:11;;;;;;;19120:28;19106:42;-1:-1:-1;19087:3:59;;19046:113;;;;19314:21;19338:41;19367:11;19338:8;19347:10;19338:20;;;;;;;;;;;;;;:28;;:41;;;;:::i;:::-;19314:65;;19389:25;19417:26;:13;:24;:26::i;:::-;19389:54;-1:-1:-1;19654:21:59;19678:44;:19;19389:54;19678:25;:44::i;:::-;19654:68;-1:-1:-1;19732:24:59;19759:38;:19;19654:68;19759:23;:38::i;:::-;19732:65;-1:-1:-1;19916:79:59;19937:57;:13;945:4:46;19959:34:59;;;19937:21;:57::i;:::-;19916:16;;:20;:79::i;:::-;19909:86;;;;;;;;;;18099:1903;;;;;;;;;:::o;13693:1695::-;13975:7;;14063:78;14124:16;14063:54;14102:14;14063:32;14102:14;14082:12;14063:18;:32::i;:78::-;14040:101;;14196:28;14227:148;14290:3;14307:8;14329:12;14355:10;14227:49;:148::i;:::-;14196:179;;14385:26;14414:46;14439:8;14448:10;14439:20;;;;;;;;;;;;;;14414;:24;;:46;;;;:::i;:::-;14385:75;;14605:19;14643:9;14638:113;14662:8;:15;14658:1;:19;14638:113;;;14712:28;14728:8;14737:1;14728:11;;;;;;;14712:28;14698:42;-1:-1:-1;14679:3:59;;14638:113;;;;14905:21;14929:41;14958:11;14929:8;14938:10;14929:20;;;;;;;:41;14905:65;;14980:25;15008:26;:13;:24;:26::i;:::-;14980:54;-1:-1:-1;15044:21:59;15068:43;:18;14980:54;15068:24;:43::i;:::-;15044:67;-1:-1:-1;15121:24:59;15148:37;:18;15044:67;15148:22;:37::i;:::-;15121:64;-1:-1:-1;15304:77:59;15325:55;:13;945:4:46;15345:34:59;;;15325:19;:55::i;11034:2653::-;11295:7;;;11557:113;11581:8;:15;11577:1;:19;11557:113;;;11631:28;11647:8;11656:1;11647:11;;;;;;;11631:28;11617:42;-1:-1:-1;11598:3:59;;11557:113;;;;11753:37;11807:9;:16;11793:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11793:31:59;;11753:71;;11895:30;11944:9;11939:330;11963:8;:15;11959:1;:19;11939:330;;;11999:21;12023:32;12043:11;12023:8;12032:1;12023:11;;;;;;;:32;11999:56;;12095:50;12133:8;12142:1;12133:11;;;;;;;;;;;;;;12095:29;12111:9;12121:1;12111:12;;;;;;;;;;;;;;12095:8;12104:1;12095:11;;;;;;;:29;:37;;:50::i;:::-;12069:20;12090:1;12069:23;;;;;;;;;;;;;:76;;;;;12184:74;12211:46;12243:13;12211:20;12232:1;12211:23;;;;;;;12184:74;12159:99;-1:-1:-1;;11980:3:59;;11939:330;;;;12382:28;12427:8;:15;12413:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12413:30:59;;12382:61;;12458:9;12453:826;12477:8;:15;12473:1;:19;12453:826;;;12513:26;12680:22;12654:20;12675:1;12654:23;;;;;;;;;;;;;;:48;12650:552;;;12722:24;12749:63;12769:42;:22;945:4:46;12769:26:59;:42::i;12749:63::-;12722:90;;12830:21;12854:34;12871:16;12854:9;12864:1;12854:12;;;;;;;:34;12830:58;-1:-1:-1;13036:79:59;13057:57;12830:58;945:4:46;13079:34:59;;;13057:21;:57::i;13036:79::-;13015:100;;12650:552;;;;;13175:9;13185:1;13175:12;;;;;;;;;;;;;;13154:33;;12650:552;13233:35;13249:18;13233:8;13242:1;13233:11;;;;;;;:35;13216:11;13228:1;13216:14;;;;;;;;;;;;;;;;;:52;-1:-1:-1;12494:3:59;;12453:826;;;;13289:20;13312:37;13332:3;13337:11;13312:19;:37::i;:::-;13289:60;-1:-1:-1;13359:22:59;13384:38;13289:60;13405:16;13384:20;:38::i;:::-;13359:63;;945:4:46;13522:14:59;:31;13518:163;;;13576:55;:14;-1:-1:-1;;13599:31:59;;13576:22;:55::i;:::-;13569:62;;;;;;;;;;13518:163;13669:1;13662:8;;;;;;;;;;13535:220:57;13621:4;13657:52;-1:-1:-1;;;13657:11:57;:52::i;:::-;13645:8;:64;13644:104;;;;13714:34;13739:8;13714:24;:34::i;2475:253:1:-;2573:27;2602:22;2684:4;2673:48;;;;;;;;;;;;:::i;:::-;2640:81;;;;-1:-1:-1;2475:253:1;-1:-1:-1;;;2475:253:1:o;2302:167::-;2376:19;2436:4;2425:37;;;;;;;;;;;;:::i;2089:207::-;2162:19;2183:18;2254:4;2243:46;;;;;;;;;;;;:::i;1423:253::-;1521:26;1549:23;1632:4;1621:48;;;;;;;;;;;;:::i;1897:172::-;1974:20;2036:4;2025:37;;;;;;;;;;;;:::i;22225:1259:59:-;22384:16;23211;23230:28;:12;23249:8;23230:18;:28::i;:::-;23211:47;;23269:26;23312:8;:15;23298:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23298:30:59;;23269:59;;23343:9;23338:113;23362:8;:15;23358:1;:19;23338:113;;;23413:27;23431:8;23413;23422:1;23413:11;;;;;;;:27;23398:9;23408:1;23398:12;;;;;;;;;;;;;;;;;:42;23379:3;;23338:113;;;-1:-1:-1;23468:9:59;22225:1259;-1:-1:-1;;;;;22225:1259:59:o;1682:209:1:-;1755:20;1777:18;1849:4;1838:46;;;;;;;;;;;;:::i;12626:188:57:-;12706:7;12732:75;12745:37;12754:7;12763:18;:5;:16;:18::i;12745:37::-;12784:22;:5;:20;:22::i;20136:2083:59:-;20354:7;20410:21;20459:8;:15;20434:22;:40;20410:64;;20484:11;20498:8;20507:1;20498:11;;;;;;;;;;;;;;20484:25;;20519:11;20547:8;:15;20533:8;20542:1;20533:11;;;;;;;;;;;;;;:29;20519:43;;20577:9;20589:1;20577:13;;20572:195;20596:8;:15;20592:1;:19;20572:195;;;20638:78;20651:53;20660:26;20669:3;20674:8;20683:1;20674:11;;;;;;;;;;;;;;20660:8;:26::i;:::-;20688:8;:15;20651:8;:53::i;:::-;20706:9;20638:12;:78::i;:::-;20632:84;;20736:20;20744:8;20753:1;20744:11;;;;;;;20736:20;20730:26;-1:-1:-1;20613:3:59;;20572:195;;;;20906:8;20915:10;20906:20;;;;;;;;;;;;;;20900:3;:26;20894:32;;20937:12;20952:30;20961:9;20972;20952:8;:30::i;:::-;20937:45;;21050:9;21062:138;21084:72;21093:46;21104:4;21110:28;21119:13;21134:3;21110:8;:28::i;21093:46::-;1372:3;21084:8;:72::i;:::-;21170:8;21179:10;21170:20;;;;;;;21062:138;21050:150;;21210:9;21222:73;21230:64;21239:38;21252:9;21263:13;21239:12;:38::i;21230:64::-;21222:3;;:7;:73::i;:::-;21210:85;-1:-1:-1;21348:24:59;;21546:41;21557:11;:4;21566:1;21557:8;:11::i;:::-;21570:16;:9;21584:1;21570:13;:16::i;21546:41::-;21523:64;;21603:9;21598:555;21622:3;21618:1;:7;21598:555;;;21665:12;21646:31;;21707:150;21735:43;21776:1;21735:36;21744:12;21758;21735:8;:36::i;:43::-;21796:47;21833:9;21796:32;21826:1;21796:25;21805:12;21819:1;21796:8;:25::i;21707:150::-;21692:165;;21891:16;21876:12;:31;21872:271;;;21966:1;21946:16;21931:12;:31;:36;21927:102;;-1:-1:-1;21998:12:59;-1:-1:-1;21991:19:59;;-1:-1:-1;;;;;;;21991:19:59;21927:102;21872:271;;;22088:1;22072:12;22053:16;:31;:36;22049:94;;-1:-1:-1;22116:12:59;-1:-1:-1;22109:19:59;;-1:-1:-1;;;;;;;22109:19:59;22049:94;21627:3;;21598:555;;;;22163:49;7828:3:10;22163:7:59;:49::i;:::-;20136:2083;;;;;;;;;;;;;;:::o;8801:341:60:-;8887:4;8935:60;-1:-1:-1;;;8935:11:60;:60::i;:::-;8923:8;:72;8922:163;;;-1:-1:-1;9025:59:60;-1:-1:-1;;;9025:11:60;:59::i;:::-;9013:8;:71;8922:163;:213;;;-1:-1:-1;9101:34:60;9126:8;12437:4:28;12485:47;-1:-1:-1;;;12485:11:28;:47::i;:::-;12473:8;:59;12472:143;;;-1:-1:-1;12562:52:28;-1:-1:-1;;;12562:11:28;:52::i;:::-;12550:8;:64;12472:143;:193;;;-1:-1:-1;2562:4:29;12631:34:28;2494:103:29:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;5:130;72:20;;97:33;72:20;97:33;:::i;1102:707::-;;1219:3;1212:4;1204:6;1200:17;1196:27;1186:2;;-1:-1;;1227:12;1186:2;1274:6;1261:20;1296:80;1311:64;1368:6;1311:64;:::i;:::-;1296:80;:::i;:::-;1404:21;;;1287:89;-1:-1;1448:4;1461:14;;;;1436:17;;;1550;;;1541:27;;;;1538:36;-1:-1;1535:2;;;1587:1;;1577:12;1535:2;1612:1;1597:206;1622:6;1619:1;1616:13;1597:206;;;6197:20;;1690:50;;1754:14;;;;1782;;;;1644:1;1637:9;1597:206;;1835:722;;1963:3;1956:4;1948:6;1944:17;1940:27;1930:2;;-1:-1;;1971:12;1930:2;2011:6;2005:13;2033:80;2048:64;2105:6;2048:64;:::i;2033:80::-;2141:21;;;2024:89;-1:-1;2185:4;2198:14;;;;2173:17;;;2287;;;2278:27;;;;2275:36;-1:-1;2272:2;;;2324:1;;2314:12;2272:2;2349:1;2334:217;2359:6;2356:1;2353:13;2334:217;;;6345:13;;2427:61;;2502:14;;;;2530;;;;2381:1;2374:9;2334:217;;2973:440;;3074:3;3067:4;3059:6;3055:17;3051:27;3041:2;;-1:-1;;3082:12;3041:2;3129:6;3116:20;41287:18;41279:6;41276:30;41273:2;;;-1:-1;;41309:12;41273:2;3151:64;41450:4;-1:-1;;41382:9;41363:17;;41359:33;41440:15;3151:64;:::i;:::-;3142:73;;3235:6;3228:5;3221:21;3339:3;41450:4;3330:6;3263;3321:16;;3318:25;3315:2;;;3356:1;;3346:12;3315:2;47635:6;41450:4;3263:6;3259:17;41450:4;3297:5;3293:16;47612:30;47691:1;47673:16;;;41450:4;47673:16;47666:27;3297:5;3034:379;-1:-1;;3034:379::o;3940:156::-;4029:13;;49256:1;49246:12;;49236:2;;49272:1;;49262:12;4103:156;4192:13;;49368:1;49358:12;;49348:2;;49384:1;;49374:12;4266:156;4346:20;;49482:1;49472:12;;49462:2;;49498:1;;49488:12;6678:241;;6782:2;6770:9;6761:7;6757:23;6753:32;6750:2;;;-1:-1;;6788:12;6750:2;85:6;72:20;97:33;124:5;97:33;:::i;6926:366::-;;;7047:2;7035:9;7026:7;7022:23;7018:32;7015:2;;;-1:-1;;7053:12;7015:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;7105:63;-1:-1;7205:2;7244:22;;72:20;97:33;72:20;97:33;:::i;:::-;7213:63;;;;7009:283;;;;;:::o;7299:491::-;;;;7437:2;7425:9;7416:7;7412:23;7408:32;7405:2;;;-1:-1;;7443:12;7405:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;7495:63;-1:-1;7595:2;7634:22;;72:20;97:33;72:20;97:33;:::i;:::-;7399:391;;7603:63;;-1:-1;;;7703:2;7742:22;;;;6197:20;;7399:391::o;7797:991::-;;;;;;;;8001:3;7989:9;7980:7;7976:23;7972:33;7969:2;;;-1:-1;;8008:12;7969:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;8060:63;-1:-1;8160:2;8199:22;;72:20;97:33;72:20;97:33;:::i;:::-;8168:63;-1:-1;8268:2;8307:22;;6197:20;;-1:-1;8376:2;8415:22;;6197:20;;-1:-1;8484:3;8522:22;;6473:20;6498:31;6473:20;6498:31;:::i;:::-;7963:825;;;;-1:-1;7963:825;;;;8493:61;8591:3;8631:22;;2767:20;;-1:-1;8700:3;8740:22;;;2767:20;;7963:825;-1:-1;;7963:825::o;8795:366::-;;;8916:2;8904:9;8895:7;8891:23;8887:32;8884:2;;;-1:-1;;8922:12;8884:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;8974:63;9074:2;9113:22;;;;6197:20;;-1:-1;;;8878:283::o;9168:823::-;;;;9382:2;9370:9;9361:7;9357:23;9353:32;9350:2;;;-1:-1;;9388:12;9350:2;9439:17;9433:24;9477:18;;9469:6;9466:30;9463:2;;;-1:-1;;9499:12;9463:2;9616:6;9605:9;9601:22;;;452:3;445:4;437:6;433:17;429:27;419:2;;-1:-1;;460:12;419:2;500:6;494:13;522:95;537:79;609:6;537:79;:::i;522:95::-;623:16;659:6;652:5;645:21;689:4;;706:3;702:14;695:21;;689:4;681:6;677:17;811:3;689:4;;795:6;791:17;681:6;782:27;;779:36;776:2;;;-1:-1;;818:12;776:2;-1:-1;844:10;;838:232;863:6;860:1;857:13;838:232;;;3868:6;3862:13;3880:48;3922:5;3880:48;:::i;:::-;931:76;;885:1;878:9;;;;;1021:14;;;;1049;;838:232;;;-1:-1;9676:18;;9670:25;9519:114;;-1:-1;9670:25;-1:-1;;;9704:30;;;9701:2;;;-1:-1;;9737:12;9701:2;;9767:89;9848:7;9839:6;9828:9;9824:22;9767:89;:::i;:::-;9757:99;;;9893:2;9947:9;9943:22;6345:13;9901:74;;9344:647;;;;;:::o;9998:257::-;;10110:2;10098:9;10089:7;10085:23;10081:32;10078:2;;;-1:-1;;10116:12;10078:2;2646:6;2640:13;48575:5;44648:13;44641:21;48553:5;48550:32;48540:2;;-1:-1;;48586:12;10262:1235;;;;;;;;10502:3;10490:9;10481:7;10477:23;10473:33;10470:2;;;-1:-1;;10509:12;10470:2;2780:6;2767:20;10561:63;;10661:2;10704:9;10700:22;72:20;97:33;124:5;97:33;:::i;:::-;10669:63;-1:-1;10769:2;10808:22;;72:20;97:33;72:20;97:33;:::i;:::-;10777:63;-1:-1;10905:2;10890:18;;10877:32;10929:18;10918:30;;;10915:2;;;-1:-1;;10951:12;10915:2;10981:78;11051:7;11042:6;11031:9;11027:22;10981:78;:::i;:::-;10971:88;;11096:3;11140:9;11136:22;6197:20;11105:63;;11205:3;11249:9;11245:22;6197:20;11214:63;;11342:3;11331:9;11327:19;11314:33;11300:47;;10929:18;11359:6;11356:30;11353:2;;;-1:-1;;11389:12;11353:2;;11419:62;11473:7;11464:6;11453:9;11449:22;11419:62;:::i;:::-;11409:72;;;10464:1033;;;;;;;;;;:::o;11504:239::-;;11607:2;11595:9;11586:7;11582:23;11578:32;11575:2;;;-1:-1;;11613:12;11575:2;2903:20;;-1:-1;;;;;;44814:78;;48794:34;;48784:2;;-1:-1;;48832:12;11750:303;;11885:2;11873:9;11864:7;11860:23;11856:32;11853:2;;;-1:-1;;11891:12;11853:2;3525:6;3519:13;3537:53;3584:5;3537:53;:::i;12338:500::-;;;12483:2;12471:9;12462:7;12458:23;12454:32;12451:2;;;-1:-1;;12489:12;12451:2;3697:6;3684:20;3709:48;3751:5;3709:48;:::i;:::-;12541:78;-1:-1;12684:2;12669:18;;12656:32;12708:18;12697:30;;12694:2;;;-1:-1;;12730:12;12694:2;12760:62;12814:7;12805:6;12794:9;12790:22;12760:62;:::i;:::-;12750:72;;;12445:393;;;;;:::o;13248:285::-;;13374:2;13362:9;13353:7;13349:23;13345:32;13342:2;;;-1:-1;;13380:12;13342:2;13442:75;13509:7;13485:22;13442:75;:::i;13540:686::-;;;;13725:2;13713:9;13704:7;13700:23;13696:32;13693:2;;;-1:-1;;13731:12;13693:2;13793:75;13860:7;13836:22;13793:75;:::i;:::-;13783:85;;13926:2;13915:9;13911:18;13905:25;13950:18;13942:6;13939:30;13936:2;;;-1:-1;;13972:12;13936:2;14002:89;14083:7;14074:6;14063:9;14059:22;14002:89;:::i;14233:421::-;;;14376:2;14364:9;14355:7;14351:23;14347:32;14344:2;;;-1:-1;;14382:12;14344:2;14444:75;14511:7;14487:22;14444:75;:::i;:::-;14434:85;;14556:2;14610:9;14606:22;6345:13;14564:74;;14338:316;;;;;:::o;14661:557::-;;;;14821:2;14809:9;14800:7;14796:23;14792:32;14789:2;;;-1:-1;;14827:12;14789:2;14889:75;14956:7;14932:22;14889:75;:::i;:::-;14879:85;;15001:2;15055:9;15051:22;6345:13;15009:74;;15120:2;15174:9;15170:22;6345:13;15128:74;;14783:435;;;;;:::o;15225:285::-;;15351:2;15339:9;15330:7;15326:23;15322:32;15319:2;;;-1:-1;;15357:12;15319:2;15419:75;15486:7;15462:22;15419:75;:::i;15517:550::-;;;15685:2;15673:9;15664:7;15660:23;15656:32;15653:2;;;-1:-1;;15691:12;15653:2;15753:75;15820:7;15796:22;15753:75;:::i;:::-;15743:85;;15886:2;15875:9;15871:18;15865:25;15910:18;15902:6;15899:30;15896:2;;;-1:-1;;15932:12;15896:2;15962:89;16043:7;16034:6;16023:9;16019:22;15962:89;:::i;16074:686::-;;;;16259:2;16247:9;16238:7;16234:23;16230:32;16227:2;;;-1:-1;;16265:12;16227:2;16327:75;16394:7;16370:22;16327:75;:::i;16767:421::-;;;16910:2;16898:9;16889:7;16885:23;16881:32;16878:2;;;-1:-1;;16916:12;16878:2;16978:75;17045:7;17021:22;16978:75;:::i;17195:557::-;;;;17355:2;17343:9;17334:7;17330:23;17326:32;17323:2;;;-1:-1;;17361:12;17323:2;17423:75;17490:7;17466:22;17423:75;:::i;17759:897::-;;;;;17968:3;17956:9;17947:7;17943:23;17939:33;17936:2;;;-1:-1;;17975:12;17936:2;18033:17;18020:31;18071:18;;18063:6;18060:30;18057:2;;;-1:-1;;18093:12;18057:2;18188:6;18177:9;18173:22;;;4589:6;;4577:9;4572:3;4568:19;4564:32;4561:2;;;-1:-1;;4599:12;4561:2;4627:22;4589:6;4627:22;:::i;:::-;4618:31;;4731:62;4789:3;4765:22;4731:62;:::i;:::-;4713:16;4706:88;4891:64;4951:3;4858:2;4931:9;4927:22;4891:64;:::i;:::-;4858:2;4877:5;4873:16;4866:90;5054:64;5114:3;5021:2;5094:9;5090:22;5054:64;:::i;:::-;5021:2;5040:5;5036:16;5029:90;5182:2;5240:9;5236:22;6197:20;5182:2;5201:5;5197:16;5190:75;17968:3;5387:9;5383:22;2767:20;17968:3;5348:5;5344:16;5337:75;5484:3;5543:9;5539:22;6197:20;5484:3;5504:5;5500:16;5493:75;5663:49;5708:3;5629;5688:9;5684:22;5663:49;:::i;:::-;5629:3;5649:5;5645:16;5638:75;5806:49;5851:3;5772;5831:9;5827:22;5806:49;:::i;:::-;5772:3;5792:5;5788:16;5781:75;5949:3;;5938:9;5934:19;5921:33;18071:18;5966:6;5963:30;5960:2;;;-1:-1;;5996:12;5960:2;6043:58;6097:3;6088:6;6077:9;6073:22;6043:58;:::i;:::-;5949:3;6027:5;6023:18;6016:86;;;18113:92;;;;4858:2;18259:9;18255:18;18242:32;18228:46;;18071:18;18286:6;18283:30;18280:2;;;-1:-1;;18316:12;18280:2;;18346:78;18416:7;18407:6;18396:9;18392:22;18346:78;:::i;:::-;17930:726;;18336:88;;-1:-1;;;;5021:2;18500:22;;6197:20;;5182:2;18608:22;6197:20;;17930:726;-1:-1;17930:726::o;18663:241::-;;18767:2;18755:9;18746:7;18742:23;18738:32;18735:2;;;-1:-1;;18773:12;18735:2;-1:-1;6197:20;;18729:175;-1:-1;18729:175::o;18911:263::-;;19026:2;19014:9;19005:7;19001:23;18997:32;18994:2;;;-1:-1;;19032:12;18994:2;-1:-1;6345:13;;18988:186;-1:-1;18988:186::o;19181:366::-;;;19302:2;19290:9;19281:7;19277:23;19273:32;19270:2;;;-1:-1;;19308:12;19270:2;-1:-1;;6197:20;;;19460:2;19499:22;;;6197:20;;-1:-1;19264:283::o;19554:672::-;;;;;19720:3;19708:9;19699:7;19695:23;19691:33;19688:2;;;-1:-1;;19727:12;19688:2;6351:6;6345:13;19779:74;;19890:2;19944:9;19940:22;6345:13;19898:74;;20009:2;20063:9;20059:22;6345:13;20017:74;;20128:2;20182:9;20178:22;220:13;238:33;265:5;238:33;:::i;:::-;19682:544;;;;-1:-1;19682:544;;-1:-1;;19682:544::o;20233:259::-;;20346:2;20334:9;20325:7;20321:23;20317:32;20314:2;;;-1:-1;;20352:12;20314:2;6623:6;6617:13;6635:31;6660:5;6635:31;:::i;20499:395::-;;;20629:2;20617:9;20608:7;20604:23;20600:32;20597:2;;;-1:-1;;20635:12;20597:2;6623:6;6617:13;6635:31;6660:5;6635:31;:::i;:::-;20796:2;20846:22;;;;6345:13;20687:72;;6345:13;;-1:-1;;;20591:303::o;21613:127::-;-1:-1;;;;;45354:54;21690:45;;21684:56::o;23874:690::-;;24067:5;42122:12;43267:6;43262:3;43255:19;43304:4;;43299:3;43295:14;24079:93;;43304:4;24243:5;41608:14;-1:-1;24282:260;24307:6;24304:1;24301:13;24282:260;;;24368:13;;24754:37;;21585:14;;;;42849;;;;24329:1;24322:9;24282:260;;;-1:-1;24548:10;;23998:566;-1:-1;;;;;23998:566::o;25458:343::-;;25600:5;42122:12;43267:6;43262:3;43255:19;-1:-1;47780:101;47794:6;47791:1;47788:13;47780:101;;;43304:4;47861:11;;;;;47855:18;47842:11;;;;;47835:39;47809:10;47780:101;;;47896:6;47893:1;47890:13;47887:2;;;-1:-1;43304:4;47952:6;43299:3;47943:16;;47936:27;47887:2;-1:-1;41382:9;48213:14;-1:-1;;48209:28;25757:39;;;;43304:4;25757:39;;25548:253;-1:-1;;25548:253::o;29161:387::-;24754:37;;;-1:-1;;;;;;44814:78;29412:2;29403:12;;25049:56;29512:11;;;29303:245::o;29555:291::-;;47635:6;47630:3;47625;47612:30;47673:16;;47666:27;;;47673:16;29699:147;-1:-1;29699:147::o;29853:659::-;-1:-1;;;27613:87;;27598:1;27719:11;;24754:37;;;;30364:12;;;24754:37;30475:12;;;30098:414::o;30519:222::-;-1:-1;;;;;45354:54;;;;21690:45;;30646:2;30631:18;;30617:124::o;30748:412::-;30946:2;30960:47;;;42122:12;;30931:18;;;43255:19;;;30748:412;;30946:2;41608:14;;;;43295;;;;30748:412;22494:302;22519:6;22516:1;22513:13;22494:302;;;22580:13;;-1:-1;;;;;45354:54;25884:65;;42849:14;;;;21097;;;;-1:-1;22534:9;22494:302;;;-1:-1;31013:137;;30917:243;-1:-1;;;;;;30917:243::o;31167:494::-;31406:2;31420:47;;;42122:12;;31391:18;;;43255:19;;;31167:494;;31406:2;43295:14;;;;;;41608;;;31167:494;23460:353;23485:6;23482:1;23479:13;23460:353;;;23552:6;23546:13;28026:16;28020:23;48341:1;48334:5;48331:12;48321:2;;48347:9;48321:2;26901:70;;28201:16;;;28195:23;28224:78;28287:14;;;28195:23;28224:78;:::i;:::-;;43295:14;28376:5;28372:16;28366:23;43295:14;28447:3;28443:14;24754:37;28539:4;;28532:5;28528:16;28522:23;28551:63;28539:4;28603:3;28599:14;28585:12;28551:63;:::i;:::-;-1:-1;;28698:4;28687:16;;;28681:23;;28710:79;28774:14;;;28681:23;28710:79;:::i;:::-;-1:-1;;21412:4;21403:14;;;;;42849;;;;23507:1;23500:9;23460:353;;;-1:-1;31473:178;;31377:284;-1:-1;;;;;;;31377:284::o;31668:370::-;;31845:2;31866:17;31859:47;31920:108;31845:2;31834:9;31830:18;32014:6;31920:108;:::i;32045:629::-;;32300:2;32321:17;32314:47;32375:108;32300:2;32289:9;32285:18;32469:6;32375:108;:::i;:::-;32531:9;32525:4;32521:20;32516:2;32505:9;32501:18;32494:48;32556:108;32659:4;32650:6;32556:108;:::i;32681:210::-;44648:13;;44641:21;24637:34;;32802:2;32787:18;;32773:118::o;32898:432::-;44648:13;;44641:21;24637:34;;33233:2;33218:18;;24754:37;;;;33316:2;33301:18;;24754:37;33075:2;33060:18;;33046:284::o;33337:222::-;24754:37;;;33464:2;33449:18;;33435:124::o;33566:444::-;24754:37;;;-1:-1;;;;;45354:54;;;33913:2;33898:18;;21690:45;45354:54;33996:2;33981:18;;21690:45;33749:2;33734:18;;33720:290::o;34017:780::-;24754:37;;;-1:-1;;;;;45354:54;;;34449:2;34434:18;;21690:45;45354:54;;;;34532:2;34517:18;;21690:45;34615:2;34600:18;;24754:37;34698:3;34683:19;;24754:37;;;;-1:-1;34767:19;;24754:37;34284:3;34269:19;;34255:542::o;34804:668::-;24754:37;;;35208:2;35193:18;;24754:37;;;;35291:2;35276:18;;24754:37;;;;35374:2;35359:18;;24754:37;-1:-1;;;;;45354:54;35457:3;35442:19;;21690:45;-1:-1;35028:19;;35014:458::o;35479:417::-;;24784:5;24761:3;24754:37;35652:2;35770;35759:9;35755:18;35748:48;35810:76;35652:2;35641:9;35637:18;35872:6;35810:76;:::i;35903:363::-;24754:37;;;-1:-1;;;;;45354:54;36252:2;36237:18;;25884:65;36073:2;36058:18;;36044:222::o;36273:548::-;24754:37;;;45570:4;45559:16;;;;36641:2;36626:18;;29114:35;36724:2;36709:18;;24754:37;36807:2;36792:18;;24754:37;36480:3;36465:19;;36451:370::o;37647:310::-;;37794:2;37815:17;37808:47;37869:78;37794:2;37783:9;37779:18;37933:6;37869:78;:::i;38193:481::-;;24784:5;24761:3;24754:37;38398:2;38516;38505:9;38501:18;38494:48;38556:108;38398:2;38387:9;38383:18;38650:6;38556:108;:::i;38681:432::-;24754:37;;;44648:13;;44641:21;39016:2;39001:18;;24637:34;39099:2;39084:18;;24754:37;38858:2;38843:18;;38829:284::o;39120:333::-;24754:37;;;39439:2;39424:18;;24754:37;39275:2;39260:18;;39246:207::o;39460:556::-;24754:37;;;39836:2;39821:18;;24754:37;;;;39919:2;39904:18;;24754:37;40002:2;39987:18;;24754:37;39671:3;39656:19;;39642:374::o;40023:214::-;45570:4;45559:16;;;;29114:35;;40146:2;40131:18;;40117:120::o;40244:256::-;40306:2;40300:9;40332:17;;;40407:18;40392:34;;40428:22;;;40389:62;40386:2;;;40464:1;;40454:12;40386:2;40306;40473:22;40284:216;;-1:-1;40284:216::o;40507:319::-;;40681:18;40673:6;40670:30;40667:2;;;-1:-1;;40703:12;40667:2;-1:-1;40748:4;40736:17;;;40801:15;;40604:222::o;48370:117::-;-1:-1;;;;;45354:54;;48429:35;;48419:2;;48478:1;;48468:12;49638:113;45570:4;49721:5;45559:16;49698:5;49695:33;49685:2;;49742:1;;49732:12"
+ },
+ "methodIdentifiers": {
+ "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL()": "ddf4627b",
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getActualSupply()": "876f303b",
+ "getAmplificationParameter()": "6daccffa",
+ "getAuthorizer()": "aaabadc5",
+ "getBptIndex()": "82687a56",
+ "getDomainSeparator()": "ed24911d",
+ "getLastJoinExitData()": "3c975d51",
+ "getMinimumBpt()": "04842d4c",
+ "getNextNonce(address)": "90193b7c",
+ "getOwner()": "893d20e8",
+ "getPausedState()": "1c0de051",
+ "getPoolId()": "38fff2d0",
+ "getProtocolFeePercentageCache(uint256)": "70464016",
+ "getProtocolFeesCollector()": "d2946c2b",
+ "getProtocolSwapFeeDelegation()": "15b0015b",
+ "getRate()": "679aefce",
+ "getRateProviders()": "238a2d59",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "getTokenRate(address)": "54dea00a",
+ "getTokenRateCache(address)": "7f1260d1",
+ "getVault()": "8d928af8",
+ "inRecoveryMode()": "b35056b8",
+ "increaseAllowance(address,uint256)": "39509351",
+ "isExemptFromYieldProtocolFee()": "77151bee",
+ "isTokenExemptFromYieldProtocolFee(address)": "ab7759f1",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "onSwap((uint8,address,address,uint256,bytes32,uint256,address,address,bytes),uint256[],uint256,uint256)": "01ec954a",
+ "pause()": "8456cb59",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817",
+ "setAssetManagerPoolConfig(address,bytes)": "50dd6ed9",
+ "setSwapFeePercentage(uint256)": "38e9922e",
+ "setTokenRateCacheDuration(address,uint256)": "f4b7964d",
+ "startAmplificationParameterUpdate(uint256,uint256)": "2f1a0bc9",
+ "stopAmplificationParameterUpdate()": "eb0f24d6",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd",
+ "unpause()": "3f4ba83a",
+ "updateProtocolFeePercentageCache()": "0da0669c",
+ "updateTokenRateCache(address)": "2df2c7c0",
+ "version()": "54fd4d50"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"contract IVault\",\"name\":\"vault\",\"type\":\"address\"},{\"internalType\":\"contract IProtocolFeePercentagesProvider\",\"name\":\"protocolFeeProvider\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"contract IRateProvider[]\",\"name\":\"rateProviders\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenRateCacheDurations\",\"type\":\"uint256[]\"},{\"internalType\":\"bool\",\"name\":\"exemptFromYieldProtocolFeeFlag\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"amplificationParameter\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"}],\"internalType\":\"struct ComposableStablePool.NewPoolParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"}],\"name\":\"AmpUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"currentValue\",\"type\":\"uint256\"}],\"name\":\"AmpUpdateStopped\",\"type\":\"event\"},{\"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\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFeePercentage\",\"type\":\"uint256\"}],\"name\":\"ProtocolFeePercentageCacheUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"SwapFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"TokenRateCacheUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenIndex\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"contract IRateProvider\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cacheDuration\",\"type\":\"uint256\"}],\"name\":\"TokenRateProviderSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getActualSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAmplificationParameter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isUpdating\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"precision\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBptIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastJoinExitData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lastJoinExitAmplification\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastPostJoinExitInvariant\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMinimumBpt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"}],\"name\":\"getProtocolFeePercentageCache\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeesCollector\",\"outputs\":[{\"internalType\":\"contract IProtocolFeesCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolSwapFeeDelegation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRateProviders\",\"outputs\":[{\"internalType\":\"contract IRateProvider[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenRateCache\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"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\":\"isExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isTokenExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum IVault.SwapKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"contract IERC20\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"contract IERC20\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"struct IPoolSwapStructs.SwapRequest\",\"name\":\"swapRequest\",\"type\":\"tuple\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"indexIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"indexOut\",\"type\":\"uint256\"}],\"name\":\"onSwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"name\":\"setAssetManagerPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"setTokenRateCacheDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"rawEndValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"}],\"name\":\"startAmplificationParameterUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopAmplificationParameterUpdate\",\"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\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateProtocolFeePercentageCache\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"updateTokenRateCache\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"StablePool with preminted BPT and rate providers for each token, allowing for e.g. wrapped tokens with a known price ratio, such as Compound's cTokens. BPT is preminted on Pool initialization and registered as one of the Pool's tokens, allowing for swaps to behave as single-token joins or exits (by swapping a token for BPT). We also support regular joins and exits, which can mint and burn BPT. Preminted BPT is deposited in the Vault as the initial balance of the Pool, and doesn't belong to any entity until transferred out of the Pool. The Pool's arithmetic behaves as if it didn't exist, and the BPT total supply is not a useful value: we rely on the 'virtual supply' (how much BPT is actually owned outside the Vault) instead.\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval. This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this contract inherits.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Override to allow decreasing allowance by more than the current amount (setting it to zero)\"},\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getActualSupply()\":{\"details\":\"Returns the effective BPT supply. In other pools, this would be the same as `totalSupply`, but there are two key differences here: - this pool pre-mints BPT and holds it in the Vault as a token, and as such we need to subtract the Vault's balance to get the total \\\"circulating supply\\\". This is called the 'virtualSupply'. - the Pool owes debt to the Protocol in the form of unminted BPT, which will be minted immediately before the next join or exit. We need to take these into account since, even if they don't yet exist, they will effectively be included in any Pool operation that involves BPT. In the vast majority of cases, this function should be used instead of `totalSupply()`. **IMPORTANT NOTE**: calling this function within a Vault context (i.e. in the middle of a join or an exit) is potentially unsafe, since the returned value is manipulable. It is up to the caller to ensure safety. This is because this function calculates the invariant, which requires the state of the pool to be in sync with the state of the Vault. That condition may not be true in the middle of a join or an exit. To call this function safely, attempt to trigger the reentrancy guard in the Vault by calling a non-reentrant function before calling `getActualSupply`. That will make the transaction revert in an unsafe context. (See `whenNotInVaultContext` in `ComposableStablePoolRates`). See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getMinimumBpt()\":{\"details\":\"This amount is minted and immediately burned on pool initialization, so that the total supply (and therefore post-exit token balances), can never be zero. This keeps the math well-behaved when liquidity is low. (It also provides an easy way to check whether a pool has been initialized, to ensure this is only done once.)\"},\"getPausedState()\":{\"details\":\"Returns the current contract pause status, as well as the end times of the Pause Window and Buffer Period.\"},\"getProtocolFeePercentageCache(uint256)\":{\"details\":\"Returns the cached protocol fee percentage. If `getProtocolSwapFeeDelegation()` is false, this value is immutable for swap fee queries. Alternatively, it will track the global fee percentage set in the ProtocolFeePercentagesProvider.\"},\"getProtocolFeesCollector()\":{\"details\":\"This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)\"},\"getProtocolSwapFeeDelegation()\":{\"details\":\"Returns whether this Pool tracks protocol swap fee changes in the IProtocolFeePercentagesProvider.\"},\"getRate()\":{\"details\":\"This function returns the appreciation of BPT relative to the underlying tokens, as an 18 decimal fixed point number. It is simply the ratio of the invariant to the BPT supply. The total supply is initialized to equal the invariant, so this value starts at one. During Pool operation the invariant always grows and shrinks either proportionally to the total supply (in scenarios with no price impact, e.g. proportional joins), or grows faster and shrinks more slowly than it (whenever swap fees are collected or the token rates increase). Therefore, the rate is a monotonically increasing function. WARNING: since this function reads balances directly from the Vault, it is potentially subject to manipulation via reentrancy if called within a Vault context (i.e. in the middle of a join or an exit). It is up to the caller to ensure that the function is safe to call. This may happen e.g. if one of the tokens in the Pool contains some form of callback behavior in the `transferFrom` function (like ERC777 tokens do). These tokens are strictly incompatible with the Vault and Pool design, and are not safe to be used. There are also other situations where calling this function is unsafe. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference. To call this function safely, attempt to trigger the reentrancy guard in the Vault by calling a non-reentrant function before calling `getRate`. That will make the transaction revert in an unsafe context. (See `whenNotInVaultContext` in `ComposableStablePoolRates`).\"},\"getRateProviders()\":{\"details\":\"Returns the rate providers configured for each token (in the same order as registered).\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"This is stored in `_miscData`.\"},\"getTokenRate(address)\":{\"details\":\"Returns the rate for a given token. All token rates are fixed-point values with 18 decimals. If there is no rate provider for the provided token, it returns FixedPoint.ONE.\"},\"getTokenRateCache(address)\":{\"details\":\"Returns the cached value for token's rate. Reverts if the token doesn't belong to the pool or has no rate provider.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"isTokenExemptFromYieldProtocolFee(address)\":{\"details\":\"Returns whether the token is exempt from protocol fees on the yield. If the BPT token is passed in (which doesn't make much sense, but shouldn't fail, since it is a valid pool token), the corresponding flag will be false.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `exitPool`.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `joinPool`.\"},\"pause()\":{\"details\":\"This is a permissioned function that will only work during the Pause Window set during pool factory deployment (see `TemporarilyPausable`).\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the Vault with the same arguments, along with the number of tokens `sender` would have to supply. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"details\":\"This is a permissioned function, unavailable when the pool is paused. The details of the configuration data are set by each Asset Manager. (For an example, see `RewardsAssetManager`.)\"},\"setSwapFeePercentage(uint256)\":{\"details\":\"This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event.\"},\"setTokenRateCacheDuration(address,uint256)\":{\"details\":\"Sets a new duration for a token rate cache. Note this function also updates the current cached value. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a join or an exit because the state of the pool could be out of sync with the state of the Vault. It will also revert if there was no rate provider set initially. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\",\"params\":{\"duration\":\"Number of seconds until the current token rate is fetched again.\"}},\"startAmplificationParameterUpdate(uint256,uint256)\":{\"details\":\"Begin changing the amplification parameter to `rawEndValue` over time. The value will change linearly until `endTime` is reached, when it will be `rawEndValue`. NOTE: Internally, the amplification parameter is represented using higher precision. The values returned by `getAmplificationParameter` have to be corrected to account for this when comparing to `rawEndValue`.\"},\"stopAmplificationParameterUpdate()\":{\"details\":\"Stops the amplification parameter change process, keeping the current value.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\"},\"unpause()\":{\"details\":\"This is a permissioned function that will only work on a paused pool within the Buffer Period set during pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause after the Buffer Period expires.\"},\"updateProtocolFeePercentageCache()\":{\"details\":\"Can be called by anyone to update the cached fee percentages (swap fee is only updated when delegated). Updates the cache to the latest value set by governance. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_beforeProtocolFeeCacheUpdate` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"updateTokenRateCache(address)\":{\"details\":\"Forces a rate cache hit for a token. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a join or an exit because the state of the pool could be out of sync with the state of the Vault. It will also revert if the requested token does not have an associated rate provider. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"version()\":{\"details\":\"Returns a JSON representation of the contract version containing name, version number and task ID.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"getLastJoinExitData()\":{\"notice\":\"Return the amplification factor and invariant as of the most recent join or exit (including BPT swaps)\"},\"getMinimumBpt()\":{\"notice\":\"Return the minimum BPT balance, required to avoid minimum token balances.\"},\"getPoolId()\":{\"notice\":\"Return the pool id.\"},\"getProtocolFeesCollector()\":{\"notice\":\"Return the ProtocolFeesCollector contract.\"},\"getSwapFeePercentage()\":{\"notice\":\"Return the current value of the swap fee percentage.\"},\"inRecoveryMode()\":{\"notice\":\"Returns whether the pool is in Recovery Mode.\"},\"isExemptFromYieldProtocolFee()\":{\"notice\":\"Return true if all tokens are exempt from yield fees.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for removing liquidity from a pool.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for adding liquidity to a pool (including the first time, \\\"initializing\\\" the pool).\"},\"pause()\":{\"notice\":\"Pause the pool: an emergency action which disables all pool functions.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onExitPool`.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onJoinPool`.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"notice\":\"Set the asset manager parameters for the given token.\"},\"setSwapFeePercentage(uint256)\":{\"notice\":\"Set the swap fee percentage.\"},\"unpause()\":{\"notice\":\"Reverse a `pause` operation, and restore a pool to normal functionality.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ComposableStablePool.sol\":\"ComposableStablePool\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol\":{\"keccak256\":\"0x809d1ab36b1c4190aeffd3bad9c8a54880a9524c679e770ef185323dafaf6833\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3a7d7e901eafecae0f4a8829bbb952cda0928f55290d368ab1370c92284d1469\",\"dweb:/ipfs/QmWDpNu8sZEwK3nmetwoaXrASta5RWqGZb7Z4TqHnMu7a1\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\":{\"keccak256\":\"0x9f35f065d838cfeffaa7d085b3c204f9cdb8ab32b4b843957a851a55339980c1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://f8c0057b70b373133433619b1ee98b58bd8d1082c9d8bda7e9837ca3b46f6cd6\",\"dweb:/ipfs/QmVoCVhSnnknSavEZV1FY3hVkivuBqS2Crk6B1dHTXyYLt\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol\":{\"keccak256\":\"0x19103ec3d00cbdbe25ef95721ba669cfcfaf046a60447a1b49986026e61fc57c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://6765d86f532928df96af43990b5bccd20a0d2965707cb5e9d5afda9580be3fe4\",\"dweb:/ipfs/QmZmhVpWcGpFk9u4iy4srKs248c9FdAzjjmdMATexpqa6j\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":{\"keccak256\":\"0xf6fd47a273c8f275d115dac4d216acffd976573410a5f92e2dd8c1125ce3b134\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://41febf9d4bc242065cb96d9d1258e926bf1b4f4c36131964cbf0b4cdd5ce1f99\",\"dweb:/ipfs/QmbKk893VkGw3w49xWyQS8ehqdXxbL4sqNW6TcWMXRpnGu\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol\":{\"keccak256\":\"0x7f11733a5cd8f81c123c02f79d94ead7b65217021ebddafda10e796a25e1ef41\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://7333060b9ff67e1fe734903d45b0c69ff8308b744f7c2fb8fbf630ae9d589bd6\",\"dweb:/ipfs/Qmf4rZHqsjfKDk5cSp38fv24SS8bAYJxYYQzn63TV6aPCo\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol\":{\"keccak256\":\"0xcd8cfa91f7e0c2bdbe1dceb37caddf211ce411e51de567594434da9ad2edc5e2\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://58db2ea702a5eb370172402784e7e260337b61d1f8d5338142a1bde1b6718c4d\",\"dweb:/ipfs/QmZBogEchmaq3CEadrFidyWczyyuLT987wjZRHwAb6nPWg\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":{\"keccak256\":\"0xefc640c1439bb12d652be70b20778ce123f13a42793e75a51819ed0aa3d7b8f0\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70dcf796a2295082edc1d499b26375e2001d4b87d151eb9fd7cb7b532fa8a9a8\",\"dweb:/ipfs/QmZrdWVr9qrohsFPLHX1jS37Qdnd8wCceYojRWR5xuP7RX\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol\":{\"keccak256\":\"0x65f93b8bac780e69e0ec41db98645323401686649dc61f9fa24d015d11084dfe\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://46b2c14982f82375159bb984548fd3bf4764972dd5cc0b2d40de82d0f3ccd28f\",\"dweb:/ipfs/QmPYfeoLCDwwDE6TDNRrnSQWniMgwuZSNJQ2Ycm3uRuBPs\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol\":{\"keccak256\":\"0x9b7f4fa639a65ddbd0ac2a4324d3a2654d087315eebdd24ac6dcec662e862b0b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8bec3ef24980c0de1e3a25b7bd9c4a7287236a00e703d3c307a965627e4729c1\",\"dweb:/ipfs/QmY5dhqoSrhZUymyQSYrzeqDanNA52C3ArFvhZ3gnvpqyZ\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol\":{\"keccak256\":\"0x1130ae270fcca20807ddd46644d2b4dbff73484f3fca9b7bf927043a6c1acf09\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://2c20940f2a3cb1c32ce122a769fb56517b3dd4c8f24c9288e53de83ec640666b\",\"dweb:/ipfs/Qma1AvNk3SjJeUuwyVjWqKqH2KCoVEAovjwfpnt8EsNeTN\"]},\"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\":{\"keccak256\":\"0xcc2a86a1628aa32f5c55c1e22bfed26ec2bf6cc41b1ba00ee0787b7204911698\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://907581cddf2f608fffcb47f69b7a16060f31d8eb8abf85bc935e73bf1eb2d515\",\"dweb:/ipfs/QmXYcbjuxfLs4v7qyzrP55gemhBMaoJKaZ1fSx4mYLdmCH\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol\":{\"keccak256\":\"0x25f6f0a81c60d41050ab16c9bb2bc7458ec76a32d642e161334e45b7743279f7\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://9466990b332e5656f3d6a54eb53abc3ec6ae992d6dc49db0d44ce32cc98da340\",\"dweb:/ipfs/Qmf6ehxp5Zq46SkZfcj97MbA9QWYfu59D5eBDJTPCPmxRC\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol\":{\"keccak256\":\"0x900f61d39cfbb66db432105fdd524892b4d36fd57021231a7a011ecf2e06d848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9853feb7f6ea54eed91e45cc9f833062a768365295c64867ac7e83926cb3a25\",\"dweb:/ipfs/Qmeo7jrEjenzBXQ8pSDj76CqVwHg9rhRZKiPfDpLuHk42Q\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]},\"contracts/ComposableStablePool.sol\":{\"keccak256\":\"0xf7ddd8edaf54dac9b4ba388497aa2892a643f3329ed22cc475e95606f63451d5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://4f166d93304885bdefea33ef2cafdf1d9a5053113b6adf0de4927b79e596799c\",\"dweb:/ipfs/QmWVAosFtCWeZfYFE7ato3SAJfvKCPKFJDKkcZ5PE7CbcC\"]},\"contracts/ComposableStablePoolProtocolFees.sol\":{\"keccak256\":\"0x1f090402da7a1dd3258d5f8e909cbc24451aee79c5d59ef9450166777a95110e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://663abee98b7c0247de629e5d65342c51e9205a3d45bb0717fb03f3d7b217b011\",\"dweb:/ipfs/QmekWEsw9H41pAcM5Ftu5FsjuNfV18ivGb7vZqpsHWxe9w\"]},\"contracts/ComposableStablePoolRates.sol\":{\"keccak256\":\"0x975276d580a5c7d2d0b7a47761213e30028fe9d19336912aa80649a085a2d546\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://199784f76a062f809f740185666026b6ef34e5cbc0f4707bb2ea9a58dd3f41c4\",\"dweb:/ipfs/QmRr1AgsP9JV76zqSN3rgvNQopfTYLQtu5EssegKHQPMRx\"]},\"contracts/ComposableStablePoolStorage.sol\":{\"keccak256\":\"0x2512b31e132463430900583bba3f8c140977b40121f1be523771f3f392bf153c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ec805f528d1f3de1c20be93494ea6f85b42830b33923531415f39fccd7a869bb\",\"dweb:/ipfs/QmRxr5zP4wevP5R3PesVTTZ3hkmMGyceCkCcLtmzXfT3UP\"]},\"contracts/StableMath.sol\":{\"keccak256\":\"0x82eb1bf7001a58aebbca2fe38952e9c252676e572c4d70b43ddafe6ce7b55d25\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70c3c5819a60435926f99cd6426174407fbb46b59975b8c1b61b0a7352759ee5\",\"dweb:/ipfs/QmYJDeA376HZ86YQMiuBb9cHRnUKrrsrc26fnZDhYT5yZ8\"]},\"contracts/StablePoolAmplification.sol\":{\"keccak256\":\"0x35131a0fda0168332354ea2da753a595cedcdbc2663b83281fb86adbd10e2b15\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://6c4a52f1ed61716bf879e3d232c47060196602de456fced19722bd38e2c967dc\",\"dweb:/ipfs/QmStzAS76tvSSvbofjV8EB9VrbcF7h8DwygTZGpuqzAavm\"]}},\"version\":1}"
+ }
+ },
+ "contracts/ComposableStablePoolFactory.sol": {
+ "ComposableStablePoolFactory": {
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "vault",
+ "type": "address"
+ },
+ {
+ "internalType": "contract IProtocolFeePercentagesProvider",
+ "name": "protocolFeeProvider",
+ "type": "address"
+ },
+ {
+ "internalType": "string",
+ "name": "factoryVersion",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "poolVersion",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "FactoryDisabled",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "pool",
+ "type": "address"
+ }
+ ],
+ "name": "PoolCreated",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "string",
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "internalType": "string",
+ "name": "symbol",
+ "type": "string"
+ },
+ {
+ "internalType": "contract IERC20[]",
+ "name": "tokens",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amplificationParameter",
+ "type": "uint256"
+ },
+ {
+ "internalType": "contract IRateProvider[]",
+ "name": "rateProviders",
+ "type": "address[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "tokenRateCacheDurations",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "bool",
+ "name": "exemptFromYieldProtocolFeeFlag",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes32",
+ "name": "salt",
+ "type": "bytes32"
+ }
+ ],
+ "name": "create",
+ "outputs": [
+ {
+ "internalType": "contract ComposableStablePool",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disable",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getCreationCode",
+ "outputs": [
+ {
+ "internalType": "bytes",
+ "name": "",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getCreationCodeContracts",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "contractA",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "contractB",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPauseConfiguration",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowDuration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodDuration",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolVersion",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeePercentagesProvider",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeePercentagesProvider",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "isDisabled",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "pool",
+ "type": "address"
+ }
+ ],
+ "name": "isPoolFromFactory",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "version",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "6101806040523480156200001257600080fd5b506040516200921d3803806200921d83398101604081905262000035916200036d565b83836040518060200162000049906200021c565b601f1982820381018352601f90910116604052805183903090839060006002820460a081905280830360e08190528185529091508362000095816200013d602090811b620005e517901c565b60601b6001600160601b0319166080528285018051838252620000c4826200013d602090811b620005e517901c565b6001600160601b0319606091821b811660c05296909352905261010095909552505092821b831661012052509290921b909116610140525050426276a700016101605281516200011c9060029060208501906200022a565b508051620001329060039060208401906200022a565b505050505062000415565b80517f602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe808352600091602081018484f090845291506200018b6001600160a01b03831615156101ac62000191565b50919050565b81620001a257620001a281620001a6565b5050565b620001b8816210905360ea1b620001bb565b50565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b617dca806200145383390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026d57805160ff19168380011785556200029d565b828001600101855582156200029d579182015b828111156200029d57825182559160200191906001019062000280565b50620002ab929150620002af565b5090565b5b80821115620002ab5760008155600101620002b0565b600082601f830112620002d7578081fd5b81516001600160401b0380821115620002ee578283fd5b6040516020601f8401601f191682018101838111838210171562000310578586fd5b806040525081945083825286818588010111156200032d57600080fd5b600092505b8383101562000351578583018101518284018201529182019162000332565b83831115620003635760008185840101525b5050505092915050565b6000806000806080858703121562000383578384fd5b84516200039081620003ff565b6020860151909450620003a381620003ff565b60408601519093506001600160401b0380821115620003c0578384fd5b620003ce88838901620002c6565b93506060870151915080821115620003e4578283fd5b50620003f387828801620002c6565b91505092959194509250565b6001600160a01b0381168114620001b857600080fd5b60805160601c60a05160c05160601c60e051610100516101205160601c6101405160601c61016051610fc56200048e60003980610232528061025b5250806103fa52508061047052508061042052508061063f52508061020952806106bb5250806106605250806101e852806106975250610fc56000f3fe608060405234801561001057600080fd5b50600436106100de5760003560e01c80636634b7531161008c578063851c1bb311610066578063851c1bb3146101845780638d928af8146101a4578063971e1833146101ac578063aaabadc5146101bf576100de565b80636634b753146101475780636c57f5a914610167578063739238d61461016f576100de565b80632f2770db116100bd5780632f2770db1461012d5780633f819b6f1461013757806354fd4d501461013f576100de565b8062c194db146100e3578063174481fa146101015780632da47c4014610117575b600080fd5b6100eb6101c7565b6040516100f89190610db5565b60405180910390f35b6101096101e6565b6040516100f8929190610d68565b61011f61022c565b6040516100f8929190610f17565b610135610296565b005b6100eb6102dd565b6100eb610373565b61015a610155366004610af6565b6103d1565b6040516100f89190610d82565b61015a6103ef565b6101776103f8565b6040516100f89190610dc8565b610197610192366004610b2e565b61041c565b6040516100f89190610d8d565b61017761046e565b6101776101ba366004610b72565b610492565b61017761056b565b60606101e160405180602001604052806000815250610637565b905090565b7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000009091565b600080427f000000000000000000000000000000000000000000000000000000000000000081101561028857807f000000000000000000000000000000000000000000000000000000000000000003925062278d009150610291565b60009250600091505b509091565b61029e610710565b6102a6610741565b6001805460ff1916811790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d5090600090a1565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b820191906000526020600020905b81548152906001019060200180831161034c57829003601f168201915b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b6001600160a01b031660009081526020819052604090205460ff1690565b60015460ff1690565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f000000000000000000000000000000000000000000000000000000000000000082604051602001610451929190610d50565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b600080600061049f61022c565b9150915061055a604051806101c001604052806104ba61046e565b6001600160a01b031681526020016104d06103f8565b6001600160a01b031681526020018f81526020018e81526020018d81526020018b81526020018a815260200189151581526020018c8152602001888152602001848152602001838152602001876001600160a01b031681526020016105336102dd565b90526040516105459190602001610ddc565b60405160208183030381529060405285610756565b9d9c50505050505050505050505050565b600061057561046e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ad57600080fd5b505afa1580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e19190610b56565b80517f602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe808352600091602081018484f090845291506106316001600160a01b03831615156101ac6107c3565b50919050565b8051604080517f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000818101858101848101602090810190965280855293957f00000000000000000000000000000000000000000000000000000000000000009592947f000000000000000000000000000000000000000000000000000000000000000094938801866000828a3c846000888301883c50602089810190898501016107028183866107d5565b505050505050505050919050565b60006107276000356001600160e01b03191661041c565b905061073e6107368233610813565b6101916107c3565b50565b61075461074c6103ef565b1560d36107c3565b565b6000610760610741565b600061076c84846108a3565b6001600160a01b038116600081815260208190526040808220805460ff191660011790555192935090917f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a290505b92915050565b816107d1576107d1816108e0565b5050565b5b602081106107f5578151835260209283019290910190601f19016107d6565b905182516020929092036101000a6000190180199091169116179052565b600061081d61056b565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b815260040161084c93929190610d96565b60206040518083038186803b15801561086457600080fd5b505afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610b12565b9392505050565b600060606108b084610637565b90506000838251602084016000f590506001600160a01b0381166108d8573d6000803e3d6000fd5b949350505050565b62461bcd60e51b600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b60445261073e916210905360ea1b906242414c90606490fd5b80356107bd81610f6c565b600082601f830112610956578081fd5b813561096961096482610f4c565b610f25565b81815291506020808301908481018184028601820187101561098a57600080fd5b60005b848110156109b25781356109a081610f6c565b8452928201929082019060010161098d565b505050505092915050565b600082601f8301126109cd578081fd5b81356109db61096482610f4c565b8181529150602080830190848101818402860182018710156109fc57600080fd5b60005b848110156109b2578135610a1281610f6c565b845292820192908201906001016109ff565b600082601f830112610a34578081fd5b8135610a4261096482610f4c565b818152915060208083019084810181840286018201871015610a6357600080fd5b60005b848110156109b257813584529282019290820190600101610a66565b80356107bd81610f81565b600082601f830112610a9d578081fd5b813567ffffffffffffffff811115610ab3578182fd5b610ac6601f8201601f1916602001610f25565b9150808252836020828501011115610add57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610b07578081fd5b813561089c81610f6c565b600060208284031215610b23578081fd5b815161089c81610f81565b600060208284031215610b3f578081fd5b81356001600160e01b03198116811461089c578182fd5b600060208284031215610b67578081fd5b815161089c81610f6c565b6000806000806000806000806000806101408b8d031215610b91578586fd5b8a3567ffffffffffffffff80821115610ba8578788fd5b610bb48e838f01610a8d565b9b5060208d0135915080821115610bc9578788fd5b610bd58e838f01610a8d565b9a5060408d0135915080821115610bea578788fd5b610bf68e838f01610946565b995060608d0135985060808d0135915080821115610c12578788fd5b610c1e8e838f016109bd565b975060a08d0135915080821115610c33578687fd5b50610c408d828e01610a24565b955050610c508c60c08d01610a82565b935060e08b01359250610c678c6101008d0161093b565b91506101208b013590509295989b9194979a5092959850565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015610cc55781516001600160a01b031687529582019590820190600101610ca0565b509495945050505050565b6000815180845260208085019450808401835b83811015610cc557815187529582019590820190600101610ce3565b15159052565b60008151808452815b81811015610d2a57602081850181015186830182015201610d0e565b81811115610d3b5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6001600160a01b0392831681529116602082015260400190565b901515815260200190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b60006020825261089c6020830184610d05565b6001600160a01b0391909116815260200190565b600060208252610df0602083018451610c80565b6020830151610e026040840182610c80565b5060408301516101c0806060850152610e1f6101e0850183610d05565b91506060850151601f1980868503016080870152610e3d8483610d05565b935060808701519150808685030160a0870152610e5a8483610c8d565b935060a08701519150808685030160c0870152610e778483610c8d565b935060c08701519150808685030160e0870152610e948483610cd0565b935060e08701519150610100610eac81880184610cff565b8701516101208781019190915287015161014080880191909152870151610160808801919091528701516101808088019190915287015191506101a0610ef481880184610c80565b870151868503909101838701529050610f0d8382610d05565b9695505050505050565b918252602082015260400190565b60405181810167ffffffffffffffff81118282101715610f4457600080fd5b604052919050565b600067ffffffffffffffff821115610f62578081fd5b5060209081020190565b6001600160a01b038116811461073e57600080fd5b801515811461073e57600080fdfea26469706673582212209e0aae2f26ba89d69b81af7af61eaa1316c922acdebe021f38d79fcb5f3c901364736f6c634300070100336104e06040523480156200001257600080fd5b5060405162007dca38038062007dca833981016040819052620000359162001a26565b6020810151600019620000488362000c9f565b620000538462000cd8565b8461010001518560000151600087604001518860600151620000808a608001513062000d2360201b60201c565b8a60800151516001016001600160401b03811180156200009f57600080fd5b50604051908082528060200260200182016040528015620000ca578160200160208202803683370190505b508b61012001518c61014001518d61016001518e6101800151828289898d85336001600160a01b031660001b8480604051806040016040528060018152602001603160f81b815250878781600390805190602001906200012c9291906200170f565b508051620001429060049060208401906200170f565b50506005805460ff19166012179055508151602092830120608052805191012060a052507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60c05260e0526001600160601b0319606091821b81166101005291901b166101205250620001c090506276a70083111561019462000ebd565b620001d462278d0082111561019562000ebd565b4290910161014081905201610160528551620001f6906002111560c862000ebd565b620002106200020462000ed2565b8751111560c962000ebd565b620002268662000ed760201b620015b01760201c565b620002318462000ee3565b6040516309b2760f60e01b81526000906001600160a01b038c16906309b2760f9062000262908d9060040162001c9a565b602060405180830381600087803b1580156200027d57600080fd5b505af115801562000292573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b89190620019ee565b604051633354e3e960e11b81529091506001600160a01b038c16906366a9c7d290620002ed9084908b908b9060040162001bfe565b600060405180830381600087803b1580156200030857600080fd5b505af11580156200031d573d6000803e3d6000fd5b505050508061018081815250508a6001600160a01b031663d2946c2b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200036457600080fd5b505afa15801562000379573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200039f919062001a07565b60601b6001600160601b0319166101a05250620003d1995050506001891015965061012c955062000ebd945050505050565b620003e461138882111561012d62000ebd565b6000620003ff826103e862000f7760201b620015ba1760201c565b90506200040c8162000fa6565b5050805151620004216002821160c862000ebd565b620004406001820383602001515162000fe560201b620015e51760201c565b6101c0819052815180516000906200045457fe5b60200260200101516001600160a01b0316610200816001600160a01b031660601b8152505081600001516001815181106200048b57fe5b60200260200101516001600160a01b0316610220816001600160a01b031660601b815250508160000151600281518110620004c257fe5b60200260200101516001600160a01b0316610240816001600160a01b031660601b8152505060038111620004f857600062000511565b8151805160039081106200050857fe5b60200260200101515b60601b6001600160601b0319166102605260048111620005335760006200054c565b8151805160049081106200054357fe5b60200260200101515b60601b6001600160601b03191661028052600581116200056e57600062000587565b8151805160059081106200057e57fe5b60200260200101515b60601b6001600160601b0319166102a05281518051620005c09190600090620005ac57fe5b602002602001015162000ff460201b60201c565b6102c05281518051620005da91906001908110620005ac57fe5b6102e05281518051620005f491906002908110620005ac57fe5b6103005260038111620006095760006200061f565b6200061f8260000151600381518110620005ac57fe5b6103205260048111620006345760006200064a565b6200064a8260000151600481518110620005ac57fe5b61034052600581116200065f57600062000675565b620006758260000151600581518110620005ac57fe5b61036052815151600019015b600081118015620006b2575082518051309190839081106200069f57fe5b60200260200101516001600160a01b0316115b15620006c2576000190162000681565b6101e08190528251516060906001600160401b0381118015620006e457600080fd5b506040519080825280602002602001820160405280156200070f578160200160208202803683370190505b5090506000805b8551518110156200084b57838110156200077657856020015181815181106200073b57fe5b60200260200101518382815181106200075057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505062000798565b8381146200079257856020015160018203815181106200073b57fe5b62000842565b620007e160006001600160a01b0316848381518110620007b457fe5b60200260200101516001600160a01b031614158260060184620010c360201b620015f2179092919060201c565b9150856040015180156200081c575060006001600160a01b03168382815181106200080857fe5b60200260200101516001600160a01b031614155b1562000842576200083f60018284620010c360201b620015f2179092919060201c565b91505b60010162000716565b506040850151151560f81b61046052815182906000906200086857fe5b60200260200101516001600160a01b0316610380816001600160a01b031660601b81525050816001815181106200089b57fe5b60200260200101516001600160a01b03166103a0816001600160a01b031660601b8152505081600281518110620008ce57fe5b60200260200101516001600160a01b03166103c0816001600160a01b031660601b815250506003825111620009055760006200091c565b816003815181106200091357fe5b60200260200101515b60601b6001600160601b0319166103e05281516004106200093f57600062000956565b816004815181106200094d57fe5b60200260200101515b60601b6001600160601b0319166104005281516005106200097957600062000990565b816005815181106200098757fe5b60200260200101515b60601b6001600160601b0319166104205261044052505082515160208085015151604086015151620009d195509293509190620010ec811b6200161917901c565b8051606090620009e2903062000d23565b8051909150600019015b60008111801562000a225750306001600160a01b031682828151811062000a0f57fe5b60200260200101516001600160a01b0316115b1562000a325760001901620009ec565b6000805b84515181101562000b4b578281141562000a4f57600191505b60208501518051828401916000918490811062000a6857fe5b60200260200101516001600160a01b03161462000b415762000ac2818760200151848151811062000a9557fe5b60200260200101518860400151858151811062000aae57fe5b60200260200101516200110c60201b60201c565b8560200151828151811062000ad357fe5b60200260200101516001600160a01b0316817fdd6d1c9badb346de6925b358a472c937b41698d2632696759e43fd6527feeec48860400151858151811062000b1757fe5b602002602001015160405162000b2e919062001caf565b60405180910390a362000b418162001207565b5060010162000a36565b5050505050600019811460f881901b6104a0526001600160601b0319606084901b166104805262000b7e83600262001246565b62000b8b83600362001246565b801562000ba55762000b9f83600062001246565b62000c64565b60405163178b2b9360e21b815262000c39906001600160a01b03851690635e2cae4c9062000bd99060009060040162001caf565b60206040518083038186803b15801562000bf257600080fd5b505afa15801562000c07573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c2d9190620019ee565b83111561025862000ebd565b600060008051602062007daa8339815191528360405162000c5b919062001caf565b60405180910390a25b8062000c71578162000c74565b60005b6104c0525050506101a0810151805162000c9791600d916020909101906200170f565b505062001d21565b62000ca962001790565b6040518060600160405280836080015181526020018360a0015181526020018360c0015181525090505b919050565b62000ce2620017b1565b604051806060016040528062000d0384608001513062000d2360201b60201c565b81526020018360a0015181526020018360e0015115158152509050919050565b606082516001016001600160401b038111801562000d4057600080fd5b5060405190808252806020026020018201604052801562000d6b578160200160208202803683370190505b50905082516000141562000dae57818160008151811062000d8857fe5b60200260200101906001600160a01b031690816001600160a01b03168152505062000eb7565b82515b60008111801562000dea5750826001600160a01b031684600183038151811062000dd757fe5b60200260200101516001600160a01b0316115b1562000e375783600182038151811062000e0057fe5b602002602001015182828151811062000e1557fe5b6001600160a01b03909216602092830291909101909101526000190162000db1565b60005b8181101562000e865784818151811062000e5057fe5b602002602001015183828151811062000e6557fe5b6001600160a01b039092166020928302919091019091015260010162000e3a565b508282828151811062000e9557fe5b60200260200101906001600160a01b031690816001600160a01b031681525050505b92915050565b8162000ece5762000ece81620013f1565b5050565b600690565b8062000ece8162001406565b62000efc62000ef16200148d565b82101560cb62000ebd565b62000f1562000f0a62001496565b82111560ca62000ebd565b62000f378160c0603f600854620014a260201b6200163617909392919060201c565b6008556040517fa9ba3ffe0b6c366b81232caab38605a0699ad5398d6cce76f91ee809e322dafc9062000f6c90839062001caf565b60405180910390a150565b600082820262000f9f84158062000f9757508385838162000f9457fe5b04145b600362000ebd565b9392505050565b62000fb481804280620014c7565b7fa0d01593e47e69d07e0ccd87bece09411e07dd1ed40ca8f2e7af2976542a02338160405162000f6c919062001caf565b62000ece828214606762000ebd565b60006001600160a01b038216301415620010185750670de0b6b3a764000062000cd3565b6000826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200105457600080fd5b505afa15801562001069573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200108f919062001bdb565b60ff1690506000620010ae6012836200153a60201b6200165e1760201c565b600a0a670de0b6b3a764000002949350505050565b60006001821b1984168284620010db576000620010de565b60015b60ff16901b17949350505050565b620011078284148015620010ff57508183145b606762000ebd565b505050565b6000826001600160a01b031663679aefce6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200114857600080fd5b505afa1580156200115d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620011839190620019ee565b6000858152600a6020908152604090912054919250620011b2908290849086906200167462001552821b17901c565b6000868152600a602052604090819020919091555185907fb77a83204ca282e08dc3a65b0a1ca32ea4e6875c38ef0bf5bf75e52a67354fac90620011f890859062001caf565b60405180910390a25050505050565b6000818152600a60209081526040909120549062001230908290620016ac620015ae821b17901c565b6000928352600a60205260409092209190915550565b604051631a7c326360e01b81526000906001600160a01b03841690631a7c3263906200127790859060040162001caf565b60206040518083038186803b1580156200129057600080fd5b505afa158015620012a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620012cb9190620019ee565b9050816200130f57620012e981620015d960201b620016c41760201c565b600b80546001600160401b0319166001600160401b0392909216919091179055620013c3565b600282141562001365576200132f81620015d960201b620016c41760201c565b600b80546001600160401b03929092166801000000000000000002600160401b600160801b0319909216919091179055620013c3565b6003821415620013b6576200138581620015d960201b620016c41760201c565b600b80546001600160401b0392909216600160801b02600160801b600160c01b0319909216919091179055620013c3565b620013c36101bb620013f1565b8160008051602062007daa83398151915282604051620013e4919062001caf565b60405180910390a2505050565b62001403816210905360ea1b620015f7565b50565b600281511015620014175762001403565b6000816000815181106200142757fe5b602002602001015190506000600190505b8251811015620011075760008382815181106200145157fe5b6020026020010151905062001482816001600160a01b0316846001600160a01b031610606562000ebd60201b60201c565b915060010162001438565b64e8d4a5100090565b67016345785d8a000090565b6000620014b184848462001658565b506001901b60001901811b1992909216911b1790565b620014e18160c06040620016b360201b620016e11760201c565b620014fb8360806040620016b360201b620016e11760201c565b6200151485604080620016b360201b620016e11760201c565b6200152e8760006040620016b360201b620016e11760201c565b17171760095550505050565b60006200154c83831115600162000ebd565b50900390565b600062001567606084901c1561014962000ebd565b620015a642830160e06020620015908660c083838c8c6000606062001636620014a2871b17861c565b620014a260201b6200163617909392919060201c565b949350505050565b600062000eb7620015bf83620016c8565b60608085620014a260201b6200163617909392919060201c565b6000620015f36001600160401b038311156101ba62000ebd565b5090565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b620016696101008310606462000ebd565b620016a2600182101580156200169a57506200169660ff8461010003620016e860201b620016f41760201c565b8211155b606462000ebd565b6200110783821c156101b462000ebd565b6000620016c284848462001658565b50501b90565b600062000eb760006060846200170060201b6200170a179092919060201c565b6000818310620016f9578162000f9f565b5090919050565b6001901b6000190191901c1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200175257805160ff191683800117855562001782565b8280016001018555821562001782579182015b828111156200178257825182559160200191906001019062001765565b50620015f3929150620017d4565b60405180606001604052806060815260200160608152602001606081525090565b604051806060016040528060608152602001606081526020016000151581525090565b5b80821115620015f35760008155600101620017d5565b805162000eb78162001d0b565b600082601f83011262001809578081fd5b8151620018206200181a8262001cdf565b62001cb8565b8181529150602080830190848101818402860182018710156200184257600080fd5b60005b848110156200186e5781516200185b8162001d0b565b8452928201929082019060010162001845565b505050505092915050565b600082601f8301126200188a578081fd5b81516200189b6200181a8262001cdf565b818152915060208083019084810181840286018201871015620018bd57600080fd5b60005b848110156200186e578151620018d68162001d0b565b84529282019290820190600101620018c0565b600082601f830112620018fa578081fd5b81516200190b6200181a8262001cdf565b8181529150602080830190848101818402860182018710156200192d57600080fd5b60005b848110156200186e5781518452928201929082019060010162001930565b8051801515811462000eb757600080fd5b600082601f83011262001970578081fd5b81516001600160401b0381111562001986578182fd5b60206200199c601f8301601f1916820162001cb8565b92508183528481838601011115620019b357600080fd5b60005b82811015620019d3578481018201518482018301528101620019b6565b82811115620019e55760008284860101525b50505092915050565b60006020828403121562001a00578081fd5b5051919050565b60006020828403121562001a19578081fd5b815162000f9f8162001d0b565b60006020828403121562001a38578081fd5b81516001600160401b038082111562001a4f578283fd5b81840191506101c080838703121562001a66578384fd5b62001a718162001cb8565b905062001a7f8684620017eb565b815262001a908660208501620017eb565b602082015260408301518281111562001aa7578485fd5b62001ab5878286016200195f565b60408301525060608301518281111562001acd578485fd5b62001adb878286016200195f565b60608301525060808301518281111562001af3578485fd5b62001b0187828601620017f8565b60808301525060a08301518281111562001b19578485fd5b62001b278782860162001879565b60a08301525060c08301518281111562001b3f578485fd5b62001b4d87828601620018e9565b60c08301525062001b628660e085016200194e565b60e0820152610100838101519082015261012080840151908201526101408084015190820152610160808401519082015261018062001ba487828601620017eb565b908201526101a0838101518381111562001bbc578586fd5b62001bca888287016200195f565b918301919091525095945050505050565b60006020828403121562001bed578081fd5b815160ff8116811462000f9f578182fd5b60006060820185835260206060818501528186518084526080860191508288019350845b8181101562001c4a5762001c37855162001cff565b8352938301939183019160010162001c22565b505084810360408601528551808252908201925081860190845b8181101562001c8c5762001c79835162001cff565b8552938301939183019160010162001c64565b509298975050505050505050565b602081016003831062001ca957fe5b91905290565b90815260200190565b6040518181016001600160401b038111828210171562001cd757600080fd5b604052919050565b60006001600160401b0382111562001cf5578081fd5b5060209081020190565b6001600160a01b031690565b6001600160a01b03811681146200140357600080fd5b60805160a05160c05160e0516101005160601c6101205160601c6101405161016051610180516101a05160601c6101c0516101e0516102005160601c6102205160601c6102405160601c6102605160601c6102805160601c6102a05160601c6102c0516102e051610300516103205161034051610360516103805160601c6103a05160601c6103c05160601c6103e05160601c6104005160601c6104205160601c610440516104605160f81c6104805160601c6104a05160f81c6104c051615ed862001ed260003980610e4052508061091d52508061089d52806108c852806108f3525080610fef5280611277525080612b23525080611c87525080611c57525080611c27525080611bf7525080611bc7525080611b97525080612fb6525080612f86525080612f56525080612f26525080612ef6525080612ec6525080611f82525080611f40525080611efe525080611ebc525080611e7a525080611e385250806110805250806117395250806112d3525080610bff525080611b6b525080611b4752508061118052508061115c5250806110b8525080612d34525080612d76525080612d555250615ed86000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c806370464016116101de57806395d89b411161010f578063d2946c2b116100ad578063ddf4627b1161007c578063ddf4627b146106f6578063eb0f24d6146106fe578063ed24911d14610706578063f4b7964d1461070e57610383565b8063d2946c2b146106b5578063d505accf146106bd578063d5c096c4146106d0578063dd62ed3e146106e357610383565b8063aaabadc5116100e9578063aaabadc51461068a578063ab7759f114610692578063b35056b8146106a5578063b7b814fc146106ad57610383565b806395d89b411461065c578063a457c2d714610664578063a9059cbb1461067757610383565b80638456cb591161017c57806387ec68171161015657806387ec681714610619578063893d20e81461062c5780638d928af81461064157806390193b7c1461064957610383565b80638456cb59146105f6578063851c1bb3146105fe578063876f303b1461061157610383565b806377151bee116101b857806377151bee146105b05780637ecebe00146105b85780637f1260d1146105cb57806382687a56146105ee57610383565b8063704640161461056957806370a082311461057c57806374f3b0091461058f57610383565b80633644e515116102b857806354a844ba1161025657806355c676281161023057806355c67628146105215780636028bfd414610529578063679aefce1461054a5780636daccffa1461055257610383565b806354a844ba146104fe57806354dea00a1461050657806354fd4d501461051957610383565b8063395093511161029257806339509351146104ba5780633c975d51146104cd5780633f4ba83a146104e357806350dd6ed9146104eb57610383565b80633644e5151461049757806338e9922e1461049f57806338fff2d0146104b257610383565b80631c0de0511161032557806323b872dd116102ff57806323b872dd146104495780632df2c7c01461045c5780632f1a0bc91461046f578063313ce5671461048257610383565b80631c0de051146104085780631dd746ea1461041f578063238a2d591461043457610383565b8063095ea7b311610361578063095ea7b3146103ce5780630da0669c146103ee57806315b0015b146103f857806318160ddd1461040057610383565b806301ec954a1461038857806304842d4c146103b157806306fdde03146103b9575b600080fd5b61039b6103963660046158c7565b610721565b6040516103a89190615ce8565b60405180910390f35b61039b6107c7565b6103c16107d6565b6040516103a89190615dbe565b6103e16103dc366004615504565b61086c565b6040516103a89190615cc5565b6103f6610883565b005b6103e161091b565b61039b61093f565b610410610945565b6040516103a893929190615cd0565b61042761096e565b6040516103a89190615c8d565b61043c610978565b6040516103a89190615ba9565b6103e1610457366004615454565b610a13565b6103f661046a366004615400565b610a87565b6103f661047d366004615a16565b610aeb565b61048a610bce565b6040516103a89190615e29565b61039b610bd7565b6103f66104ad3660046159e6565b610be1565b61039b610bfd565b6103e16104c8366004615504565b610c21565b6104d5610c5c565b6040516103a8929190615e00565b6103f6610c87565b6103f66104f9366004615702565b610c99565b6103f6610cb7565b61039b610514366004615400565b610cc9565b6103c1610ce4565b61039b610d45565b61053c61053736600461561b565b610d58565b6040516103a8929190615dd1565b61039b610d8f565b61055a610dfb565b6040516103a893929190615dea565b61039b6105773660046159e6565b610e16565b61039b61058a366004615400565b610ecf565b6105a261059d36600461561b565b610eea565b6040516103a8929190615ca0565b6103e1610fed565b61039b6105c6366004615400565b611011565b6105de6105d9366004615400565b61101c565b6040516103a89493929190615e0e565b61039b61107e565b6103f66110a2565b61039b61060c3660046156be565b6110b4565b61039b611106565b61053c61062736600461561b565b611134565b61063461115a565b6040516103a89190615b95565b61063461117e565b61039b610657366004615400565b6111a2565b6103c16111bd565b6103e1610672366004615504565b61121e565b6103e1610685366004615504565b61125c565b610634611269565b6103e16106a0366004615400565b611273565b6103e16112ae565b6103f66112bf565b6106346112d1565b6103f66106cb366004615494565b6112f5565b6105a26106de36600461561b565b611380565b61039b6106f136600461541c565b6114a3565b61039b6114e0565b6103f66114e6565b61039b611512565b6103f661071c366004615504565b61151c565b6000846080015161074e61073361117e565b6001600160a01b0316336001600160a01b03161460cd611719565b610763610759610bfd565b82146101f4611719565b61076b611727565b61077d8484610778611737565b61175b565b6060610787611773565b905060008751600181111561079857fe5b146107af576107aa878787878561180c565b6107bc565b6107bc8787878785611865565b979650505050505050565b60006107d16118a0565b905090565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b5050505050905090565b60006108793384846118a7565b5060015b92915050565b61088b61190f565b61089361091b565b156108c3576108c37f00000000000000000000000000000000000000000000000000000000000000006000611984565b6108ee7f00000000000000000000000000000000000000000000000000000000000000006002611984565b6109197f00000000000000000000000000000000000000000000000000000000000000006003611984565b565b7f000000000000000000000000000000000000000000000000000000000000000090565b60025490565b6000806000610952611b28565b15925061095d611b45565b9150610967611b69565b9050909192565b60606107d1611773565b60606000610984611737565b905060608167ffffffffffffffff8111801561099f57600080fd5b506040519080825280602002602001820160405280156109c9578160200160208202803683370190505b50905060005b82811015610a0c576109e081611b8d565b8282815181106109ec57fe5b6001600160a01b03909216602092830291909101909101526001016109cf565b5091505090565b600080610a2085336114a3565b9050610a44336001600160a01b0387161480610a3c5750838210155b61019e611719565b610a4f858585611cb6565b336001600160a01b03861614801590610a6a57506000198114155b15610a7c57610a7c85338584036118a7565b506001949350505050565b610a8f611d96565b6000610a9a82611e34565b90506000610aa782611b8d565b9050610ac06001600160a01b0382161515610155611719565b6000828152600a6020526040812054610ad890611fc2565b9050610ae5838383611fd1565b50505050565b610af36120b4565b610b03600183101561012c611719565b610b1461138883111561012d611719565b6000610b20824261165e565b9050610b346201518082101561013d611719565b600080610b3f6120e2565b91509150610b50811561013e611719565b6000610b5e866103e86115ba565b90506000838211610b8d57610b88610b7962015180866115ba565b610b8384886115ba565b612156565b610ba7565b610ba7610b9d62015180846115ba565b610b8386886115ba565b9050610bb9600282111561013f611719565b610bc584834289612189565b50505050505050565b60055460ff1690565b60006107d1611512565b610be96120b4565b610bf16121d8565b610bfa816121eb565b50565b7f000000000000000000000000000000000000000000000000000000000000000090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610879918590610c579086612264565b6118a7565b600c546000908190610c718160e9601761170a565b9250610c8081600060e961170a565b9150509091565b610c8f6120b4565b6109196000612276565b610ca16120b4565b610ca96121d8565b610cb382826122e9565b5050565b610cbf6120b4565b61091960016123de565b6000610cdc610cd783611e34565b612435565b90505b919050565b600d8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b6008546000906107d19060c0603f61170a565b60006060610d6e8651610d69611737565b6115e5565b610d83898989898989896124886124aa612513565b97509795505050505050565b60006060600080600080610da161263d565b9398509196509450925090506000610db98585612264565b90506000610dc56120e2565b5090506000848214610de057610ddb828961272d565b610de2565b835b9050610dee818461288f565b9850505050505050505090565b6000806000610e086120e2565b90949093506103e892509050565b6000610e206112ae565b15610e2d57506000610cdf565b81610e7957610e3a61091b565b610e64577f0000000000000000000000000000000000000000000000000000000000000000610e72565b600b5467ffffffffffffffff165b9050610cdf565b6002821415610ea15750600b5468010000000000000000900467ffffffffffffffff16610cdf565b6003821415610ec45750600b54600160801b900467ffffffffffffffff16610cdf565b610cdf6101bb6128e0565b6001600160a01b031660009081526020819052604090205490565b60608088610ef961073361117e565b610f04610759610bfd565b60606000610f11866128f0565b15610f3957610f1e61291f565b610f3089610f2a61093f565b88612932565b92509050610f8b565b610f41611727565b6060610f4b611773565b9050610f578a82612977565b610f7b8d8d8d8d8d610f676112ae565b610f71578d610f74565b60005b878e612488565b93509150610f8983826124aa565b505b610f958b826129e0565b81895167ffffffffffffffff81118015610fae57600080fd5b50604051908082528060200260200182016040528015610fd8578160200160208202803683370190505b509450945050505b5097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610cdc826111a2565b6000806000806000600a600061103188611e34565b81526020810191909152604001600020549050611052811515610155611719565b61105b816129ea565b9450611066816129f8565b935061107181612a06565b9597949650949392505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6110aa6120b4565b6109196001612276565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016110e9929190615b52565b604051602081830303815290604052805190602001209050919050565b600080600061111361263d565b5050925092505061112d818361226490919063ffffffff16565b9250505090565b600060606111458651610d69611737565b610d8389898989898989612a28612a39612513565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b6001600160a01b031660009081526006602052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108625780601f1061083757610100808354040283529160200191610862565b60008061122b33856114a3565b905080831061124557611240338560006118a7565b611252565b61125233858584036118a7565b5060019392505050565b6000610879338484611cb6565b60006107d1612aa2565b60007f00000000000000000000000000000000000000000000000000000000000000008015610cdc5750610cdc6112a983611e34565b612b1c565b6008546000906107d19060ff612b47565b6112c76120b4565b61091960006123de565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113248c6111a2565b8960405160200161133a96959493929190615d10565b60405160208183030381529060405280519060200120905061136b8882611362878787612b51565b886101f8612b90565b6113768888886118a7565b5050505050505050565b6060808861138f61073361117e565b61139a610759610bfd565b6113a2611727565b60606113ac611773565b90506113b661093f565b61146357600060606113cb8d8d8d868b612be7565b915091506113e46113da6118a0565b83101560cc611719565b6113f660006113f16118a0565b612cc0565b6114098b6114026118a0565b8403612cc0565b6114138184612a39565b808a5167ffffffffffffffff8111801561142c57600080fd5b50604051908082528060200260200182016040528015611456578160200160208202803683370190505b5095509550505050610fe0565b61146d8882612977565b600060606114958d8d8d8d8d6114816112ae565b61148b578d61148e565b60005b898e612a28565b915091506114098b83612cc0565b60006114ad61117e565b6001600160a01b0316826001600160a01b031614156114cf575060001961087d565b6114d98383612cca565b905061087d565b60001981565b6114ee6120b4565b6000806114f96120e2565b9150915061150981610140611719565b610cb382612cf5565b60006107d1612d30565b6115246120b4565b61152c611d96565b600061153783611e34565b9050600061154482611b8d565b905061155d6001600160a01b0382161515610155611719565b611568828285611fd1565b806001600160a01b0316827fdd6d1c9badb346de6925b358a472c937b41698d2632696759e43fd6527feeec4856040516115a29190615ce8565b60405180910390a350505050565b80610cb381612dcd565b60008282026115de8415806115d75750838583816115d457fe5b04145b6003611719565b9392505050565b610cb38183146067611719565b60006001821b198416828461160857600061160b565b60015b60ff16901b17949350505050565b611631828414801561162a57508183145b6067611719565b505050565b6000611643848484612e46565b5082821b6000196001831b01831b198516175b949350505050565b600061166e838311156001611719565b50900390565b6000611687606084901c15610149611719565b61165642830160e060206116a48660c083838c8c60006060611636565b929190611636565b6000610cdc6116ba836129ea565b8390606080611636565b60006116dd67ffffffffffffffff8311156101ba611719565b5090565b60006116ee848484612e46565b50501b90565b600081831061170357816115de565b5090919050565b6001901b6000190191901c1690565b81610cb357610cb3816128e0565b61172f612e8c565b610919612e94565b7f000000000000000000000000000000000000000000000000000000000000000090565b611631818410801561176c57508183105b6064611719565b6060600061177f611737565b905060608167ffffffffffffffff8111801561179a57600080fd5b506040519080825280602002602001820160405280156117c4578160200160208202803683370190505b50905060005b82811015610a0c576117ed6117de82612435565b6117e783612ebc565b90612fda565b8282815181106117f957fe5b60209081029190910101526001016117ca565b60208501516000906001600160a01b0316301480611836575060408601516001600160a01b031630145b61184c576118478686868686613006565b611859565b6118598686868686613070565b90505b95945050505050565b60208501516000906001600160a01b031630148061188f575060408601516001600160a01b031630145b61184c576118478686868686613174565b620f424090565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611902908590615ce8565b60405180910390a3505050565b611917611d96565b61191f6121d8565b6060600080600061192e61263d565b945094509450509350600083111561194957611949836131cb565b60006119536120e2565b509050600083821461196e57611969828761272d565b611970565b825b905061197c82826131dc565b505050505050565b604051631a7c326360e01b81526000906001600160a01b03841690631a7c3263906119b3908590600401615ce8565b60206040518083038186803b1580156119cb57600080fd5b505afa1580156119df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0391906159fe565b905081611a3a57611a13816116c4565b600b805467ffffffffffffffff191667ffffffffffffffff92909216919091179055611aeb565b6002821415611a8857611a4c816116c4565b600b805467ffffffffffffffff9290921668010000000000000000026fffffffffffffffff000000000000000019909216919091179055611aeb565b6003821415611ae057611a9a816116c4565b600b805467ffffffffffffffff92909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff909216919091179055611aeb565b611aeb6101bb6128e0565b817f6bfb689528fa96ec1ad670ad6d6064be1ae96bfd5d2ee35c837fd0fe0c11959a82604051611b1b9190615ce8565b60405180910390a2505050565b6000611b32611b69565b4211806107d157505060075460ff161590565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b600081611bbb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415611beb57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415611c1b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415611c4b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415611c7b57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b610cdf6101356128e0565b611ccd6001600160a01b0384161515610198611719565b611ce46001600160a01b0383161515610199611719565b611cef838383611631565b6001600160a01b038316600090815260208190526040902054611d1590826101a0613202565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611d449082612264565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611902908590615ce8565b60408051600080825260208201909252606091611dc9565b611db661526c565b815260200190600190039081611dae5790505b509050611dd461117e565b6001600160a01b0316630e8e3e84826040518263ffffffff1660e01b8152600401611dff9190615bf6565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b5050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611e7857506000610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611eba57506001610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611efc57506002610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f3e57506003610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611f8057506004610cdf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611cab57506005610cdf565b6000610cdc8260c0602061170a565b6000826001600160a01b031663679aefce6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200c57600080fd5b505afa158015612020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204491906159fe565b6000858152600a6020526040902054909150612061818385611674565b6000868152600a602052604090819020919091555185907fb77a83204ca282e08dc3a65b0a1ca32ea4e6875c38ef0bf5bf75e52a67354fac906120a5908590615ce8565b60405180910390a25050505050565b60006120cb6000356001600160e01b0319166110b4565b9050610bfa6120da8233613218565b610191611719565b6000806000806000806120f3613301565b93509350935093508042101561214657600194508383111561212a57818103824203858503028161212057fe5b0484019550612141565b818103824203848603028161213b57fe5b04840395505b61214e565b600094508295505b505050509091565b60006121658215156004611719565b826121725750600061087d565b81600184038161217e57fe5b04600101905061087d565b61219584848484613360565b7f1835882ee7a34ac194f717a35e09bb1d24c82a3b9d854ab6c9749525b714cdf2848484846040516121ca9493929190615e0e565b60405180910390a150505050565b6109196121e3611b28565b610192611719565b6122006121f661339f565b82101560cb611719565b61221561220b6133a8565b82111560ca611719565b600854612226908260c0603f611636565b6008556040517fa9ba3ffe0b6c366b81232caab38605a0699ad5398d6cce76f91ee809e322dafc90612259908390615ce8565b60405180910390a150565b60008282016115de8482101583611719565b801561229657612291612287611b45565b4210610193611719565b6122ab565b6122ab6122a1611b69565b42106101a9611719565b6007805460ff19168215151790556040517f9e3a5e37224532dea67b89face185703738a228a6e8a23dee546960180d3be6490612259908390615cc5565b60006122f3610bfd565b905060006122ff61117e565b6001600160a01b031663b05f8e4883866040518363ffffffff1660e01b815260040161232c929190615d89565b60806040518083038186803b15801561234457600080fd5b505afa158015612358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237c9190615a37565b604051630639cdb560e21b81529094506001600160a01b03851693506318e736d492506123b0915085908790600401615d70565b600060405180830381600087803b1580156123ca57600080fd5b505af1158015611376573d6000803e3d6000fd5b6008546123ed908260ff6115f2565b6008556040517feff3d4d215b42bf0960be9c6d5e05c22cba4df6627a3a523e2acee733b5854c890612420908390615cc5565b60405180910390a180610bfa57610bfa6133b4565b600061243f61107e565b8214156124555750670de0b6b3a7640000610cdf565b6000828152600a6020526040902054801561247857612473816129ea565b6115de565b670de0b6b3a76400009392505050565b60006060612499600088868661348e565b915091509850989650505050505050565b815181516124b99082906115e5565b60005b81811015610ae5576124f48482815181106124d357fe5b60200260200101518483815181106124e757fe5b602002602001015161288f565b84828151811061250057fe5b60209081029190910101526001016124bc565b3330146125d1576000306001600160a01b0316600036604051612537929190615b6a565b6000604051808303816000865af19150503d8060008114612574576040519150601f19603f3d011682016040523d82523d6000602084013e612579565b606091505b50509050806000811461258857fe5b60046000803e6000516001600160e01b0319166343adbafb60e01b81146125b3573d6000803e3d6000fd5b506020600460003e604060205260243d03602460403e601c3d016000f35b6125d9611727565b60606125e3611773565b90506125ef8782612977565b600060606126078c8c8c8c8c8c898d8d63ffffffff16565b9150915061261981848663ffffffff16565b8051601f1982018390526343adbafb603f1983015260200260231982016044820181fd5b6060600080600080606061264f61117e565b6001600160a01b031663f94d4668612665610bfd565b6040518263ffffffff1660e01b81526004016126819190615ce8565b60006040518083038186803b15801561269957600080fd5b505afa1580156126ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126d5919081019061552f565b509150506126ea816126e5611773565b612977565b6126f38161353c565b965094506000612701610c5c565b90945090506000612713888684613575565b9450905061272187826135f1565b95505050509091929394565b80516000908190815b8181101561276e5761276485828151811061274d57fe5b60200260200101518461226490919063ffffffff16565b9250600101612736565b508161277f5760009250505061087d565b600082868302825b60ff811015612878578260005b868110156127d5576127cb6127a983876115ba565b6127c68c84815181106127b857fe5b60200260200101518a6115ba565b613609565b9150600101612794565b5083945061282e61280d6128076127ec848a6115ba565b6128016127f9888d6115ba565b6103e8613609565b90612264565b866115ba565b6127c661281d89600101856115ba565b6128016127f96103e889038a6115ba565b93508484111561285657600185850311612851578397505050505050505061087d565b61286f565b60018486031161286f578397505050505050505061087d565b50600101612787565b506128846101416128e0565b505050505092915050565b600061289e8215156004611719565b826128ab5750600061087d565b670de0b6b3a7640000838102906128ce908583816128c557fe5b04146005611719565b8281816128d757fe5b0491505061087d565b610bfa816210905360ea1b613629565b6000808251118015610cdc575060ff8016828060200190518101906129159190615a77565b60ff161492915050565b61091961292a6112ae565b6101b6611719565b60006060600060606129438761353c565b915091506000606061295683858961368a565b91509150816129668260006136b6565b95509550505050505b935093915050565b815181516129869082906115e5565b60005b81811015610ae5576129c18482815181106129a057fe5b60200260200101518483815181106129b457fe5b6020026020010151612fda565b8482815181106129cd57fe5b6020908102919091010152600101612989565b610cb38282613773565b6000610cdc8282606061170a565b6000610cdc8260608061170a565b600080612a1283611fc2565b9150612a218360e0602061170a565b9050915091565b60006060612499600188868661348e565b81518151612a489082906115e5565b60005b81811015610ae557612a83848281518110612a6257fe5b6020026020010151848381518110612a7657fe5b602002602001015161383f565b848281518110612a8f57fe5b6020908102919091010152600101612a4b565b6000612aac61117e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b158015612ae457600080fd5b505afa158015612af8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d191906156e6565b6000610cdc7f0000000000000000000000000000000000000000000000000000000000000000600684015b1c60019081161490565b60408051604180825260808201909252606091829190602082018180368337019050509050836020820152826040820152846060820153949350505050565b6000612b9b8561388d565b9050612bb1612bab8783876138a9565b83611719565b612bc0428410156101b8611719565b5050506001600160a01b039092166000908152600660205260409020805460010190555050565b600060606000612bf684613958565b9050612c116000826003811115612c0957fe5b1460ce611719565b6060612c1c8561396e565b9050612c2a815187516115e5565b612c348187612977565b6000612c3e6120e2565b5090506060612c4c83613984565b90506000612c5a838361272d565b9050806000612c776d80000000000000000000000000008361165e565b9050612c838d82612cc0565b8086612c8d61107e565b81518110612c9757fe5b602002602001018181525050612cad85846131dc565b509c939b50929950505050505050505050565b610cb38282613a26565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b612d0181824242613360565b7fa0d01593e47e69d07e0ccd87bece09411e07dd1ed40ca8f2e7af2976542a0233816040516122599190615ce8565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612d9d613ab3565b30604051602001612db2959493929190615d44565b60405160208183030381529060405280519060200120905090565b600281511015612ddc57610bfa565b600081600081518110612deb57fe5b602002602001015190506000600190505b8251811015611631576000838281518110612e1357fe5b60200260200101519050612e3c816001600160a01b0316846001600160a01b0316106065611719565b9150600101612dfc565b612e5561010083106064611719565b612e7d6001821015801561176c5750612e7360ff84610100036116f4565b8211156064611719565b61163183821c156101b4611719565b6109196121d8565b6000612e9e611737565b905060005b81811015610cb357612eb481613ab7565b600101612ea3565b600081612eea57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160011415612f1a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160021415612f4a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160031415612f7a57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160041415612faa57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b8160051415611cab57507f0000000000000000000000000000000000000000000000000000000000000000610cdf565b6000828202612ff48415806115d75750838583816115d457fe5b670de0b6b3a764000090049392505050565b60006130128583612977565b613033866060015183858151811061302657fe5b6020026020010151613b0b565b6060870152600061304687878787613b17565b90506130658184878151811061305857fe5b6020026020010151613b2b565b90506107bc81613b37565b600080808751600181111561308157fe5b14905061308e8684612977565b6130ae876060015184836130a257866130a4565b875b8151811061302657fe5b876060018181525050600060606000806130c78a613b53565b93509350935093506000806130da61107e565b8a14613100576130fb878e60600151876130f38e613bbc565b888b89613bf1565b61311b565b61311b878e60600151876131138f613bbc565b888b89613c2a565b9150915061312c8486858985613c4e565b8661314657613141828a8d8151811061305857fe5b613163565b613163828a8c8151811061315657fe5b6020026020010151613cce565b9d9c50505050505050505050505050565b60006131838660600151613cda565b60608701526131928583612977565b6131a6866060015183868151811061302657fe5b606087015260006131b987878787613cfb565b90506107bc8184868151811061315657fe5b610bfa6131d66112d1565b82612cc0565b6131e981600060e96116e1565b6131f68360e960176116e1565b17600c55610cb3613d0f565b60006132118484111583611719565b5050900390565b600073ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b61323761115a565b6001600160a01b031614158015613252575061325283613d45565b1561327a5761325f61115a565b6001600160a01b0316336001600160a01b031614905061087d565b613282612aa2565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b81526004016132b193929190615cf1565b60206040518083038186803b1580156132c957600080fd5b505afa1580156132dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d991906155fb565b6000806000806133206000604060095461170a9092919063ffffffff16565b6009549094506133329060408061170a565b600954909350613345906080604061170a565b6009549092506133589060c0604061170a565b905090919293565b61336d8160c060406116e1565b61337a83608060406116e1565b613386856040806116e1565b61339387600060406116e1565b17171760095550505050565b64e8d4a5100090565b67016345785d8a000090565b6133bc611d96565b60606133c661117e565b6001600160a01b031663f94d46686133dc610bfd565b6040518263ffffffff1660e01b81526004016133f89190615ce8565b60006040518083038186803b15801561341057600080fd5b505afa158015613424573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261344c919081019061552f565b5091505061345c816126e5611773565b606061346782613984565b905060006134736120e2565b5090506000613482828461272d565b9050610ae582826131dc565b60006060600060606000806134a289613b53565b935093509350935061529c8a6134ba57613d506134be565b613de55b9050600060606134d6868689878f8f8963ffffffff16565b9150915061529c8d6134ea5761165e6134ee565b6122645b90506134fb878383613e63565b600061350b89858463ffffffff16565b905061351a8789888c85613c4e565b836135268460006136b6565b9a509a5050505050505050505094509492505050565b600060606135638361354c61107e565b8151811061355657fe5b6020026020010151613ed0565b61356c84613984565b91509150915091565b6000806000806000613588888888613ee4565b9250925092508581116135a35760009450925061296f915050565b85830383830360006135c16135b782610e16565b6117e7858761288f565b905060006135dc6135d26002610e16565b6117e7858861288f565b919091019b939a509298505050505050505050565b60006115de61360084846115ba565b6127c684613f55565b60006136188215156004611719565b81838161362157fe5b049392505050565b62461bcd60e51b600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fd5b60006060600061369984613f7b565b905060606136a8878784613f91565b919791965090945050505050565b6060825160010167ffffffffffffffff811180156136d357600080fd5b506040519080825280602002602001820160405280156136fd578160200160208202803683370190505b50905060005b815181101561376c5761371461107e565b811461374b578361372361107e565b82106137325760018203613734565b815b8151811061373e57fe5b602002602001015161374d565b825b82828151811061375957fe5b6020908102919091010152600101613703565b5092915050565b61378a6001600160a01b038316151561019b611719565b61379682600083611631565b6001600160a01b0382166000908152602081905260409020546137bc90826101b2613202565b6001600160a01b0383166000908152602081905260409020556137ef6137ea826137e461093f565b90614040565b61404e565b60006001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516138339190615ce8565b60405180910390a35050565b600061384e8215156004611719565b8261385b5750600061087d565b670de0b6b3a764000083810290613875908583816128c557fe5b82600182038161388157fe5b0460010191505061087d565b6000613897612d30565b826040516020016110e9929190615b7a565b60006138bb82516041146101b9611719565b60208281015160408085015160608601518251600080825295019283905292939092811a916001906138f4908990859088908890615da0565b6020604051602081039080840390855afa158015613916573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061394c5750876001600160a01b0316816001600160a01b0316145b98975050505050505050565b600081806020019051810190610cdc9190615811565b6060818060200190518101906115de919061582c565b606080600183510367ffffffffffffffff811180156139a257600080fd5b506040519080825280602002602001820160405280156139cc578160200160208202803683370190505b50905060005b815181101561376c57836139e461107e565b82106139f357816001016139f5565b815b815181106139ff57fe5b6020026020010151828281518110613a1357fe5b60209081029190910101526001016139d2565b613a3260008383611631565b613a416137ea8261280161093f565b6001600160a01b038216600090815260208190526040902054613a649082612264565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90613833908590615ce8565b4690565b613abf61107e565b811415613acb57610bfa565b6000818152600a60205260409020548015610cb357600080613aec83612a06565b9150915080421115610ae557610ae584613b0586611b8d565b84611fd1565b60006115de8383612fda565b600061185c60008660600151868686614053565b60006115de838361383f565b6000610cdc613b4c613b47610d45565b613f55565b839061383f565b60006060600080600080613b65610c5c565b91509150600060606000613b7a8a86866140c5565b9250925092506000613b8a6120e2565b5090506000868214613ba557613ba0828561272d565b613ba7565b825b949c939b509099509297509095505050505050565b6000613bd3613bc961107e565b8314156064611719565b613bdb61107e565b82106116dd57613bec82600161165e565b610cdc565b60008088613c0c57613c0788888888888861411d565b613c1a565b613c1a8888888888886141f4565b9150915097509795505050505050565b60008088613c4057613c07888888888888614255565b613c1a8888888888886142bb565b6000613c5a868661272d565b90506000613c68838561288f565b90506000613c768683612fda565b905080831115613cc4578083036000613ca0613c9a83613c9584610e16565b6115ba565b86613609565b90508015613cc1576000613cb487836135f1565b9050613cbf816131cb565b505b50505b61137688846131dc565b60006115de838361288f565b600080613cef613ce8610d45565b849061436a565b90506115de838261165e565b600061185c60018660600151868686614053565b6000613d19611737565b905060005b81811015610cb357613d2f81612b1c565b15613d3d57613d3d816143a6565b600101613d1e565b6000610cdc826143d4565b600060606000613d5f846143df565b90506001816002811115613d6f57fe5b1415613d8d57613d8387878a8c89896143f5565b9250925050613dda565b6002816002811115613d9b57fe5b1415613dac57613d83878a86614454565b6000816002811115613dba57fe5b1415613dcd57613d8387878a8c88614472565b613dd86101506128e0565b505b965096945050505050565b600060606000613df484613958565b90506001816003811115613e0457fe5b1415613e1857613d8387878a8c8989614513565b6003816003811115613e2657fe5b1415613e3757613d83878a86614562565b6002816003811115613e4557fe5b1415613e5857613d8387878a8c88614580565b613dd86101366128e0565b82518251613e729082906115e5565b60005b81811015611e2d57613eb1858281518110613e8c57fe5b6020026020010151858381518110613ea057fe5b60200260200101518563ffffffff16565b858281518110613ebd57fe5b6020908102919091010152600101613e75565b6000610cdc82613ede61093f565b9061165e565b6000806000613ef3858761272d565b9050838111613f0757808192509250613f4c565b613f1985613f14886145fa565b61272d565b9250613f2581846116f4565b9250613f3184846146eb565b9250613f3b610fed565b15613f4857829150613f4c565b8091505b93509350939050565b6000670de0b6b3a76400008210613f6d576000610cdc565b50670de0b6b3a76400000390565b6000818060200190518101906115de9190615a93565b60606000613f9f838561288f565b9050845167ffffffffffffffff81118015613fb957600080fd5b50604051908082528060200260200182016040528015613fe3578160200160208202803683370190505b50915060005b8551811015614037576140188287838151811061400257fe5b6020026020010151612fda90919063ffffffff16565b83828151811061402457fe5b6020908102919091010152600101613fe9565b50509392505050565b60006115de83836001613202565b600255565b6000606061406085613984565b9050600061406d85613bbc565b9050600061407a85613bbc565b905060006140866120e2565b5090506000614095828661272d565b90508a156140b7576140ab828686868e866146fb565b9550505050505061185c565b6140ab828686868e86614786565b6000606060008060606140d78861353c565b915091506000806140e9838a8a613575565b9150915060006140f985846135f1565b9050801561410a5761410a816131cb565b9390930199919850919650945050505050565b6000806060875167ffffffffffffffff8111801561413a57600080fd5b50604051908082528060200260200182016040528015614164578160200160208202803683370190505b5090508881888151811061417457fe5b6020026020010181815250506000614197878a848989614192610d45565b614819565b90506141bf8a8a8a815181106141a957fe5b602002602001015161165e90919063ffffffff16565b8989815181106141cb57fe5b602090810291909101015260006141e2878361165e565b919b919a509098505050505050505050565b600080600061420f8689898c898961420a610d45565b614aa9565b9050614221818989815181106141a957fe5b88888151811061422d57fe5b60209081029190910101526000614244868b61165e565b919a91995090975050505050505050565b60008060006142708689898c898961426b610d45565b614b98565b90506142988189898151811061428257fe5b602002602001015161226490919063ffffffff16565b8888815181106142a457fe5b60209081029190910101526000614244868b612264565b6000806060875167ffffffffffffffff811180156142d857600080fd5b50604051908082528060200260200182016040528015614302578160200160208202803683370190505b5090508881888151811061431257fe5b6020026020010181815250506000614335878a848989614330610d45565b614c65565b90506143478a8a8a8151811061428257fe5b89898151811061435357fe5b602090810291909101015260006141e28783612264565b60008282026143848415806115d75750838583816115d457fe5b8061439357600091505061087d565b670de0b6b3a76400006000198201613881565b6000818152600a60205260409020546143be816116ac565b6000928352600a60205260409092209190915550565b6000610cdc82614ecf565b600081806020019051810190610cdc9190615750565b6000606080600061440585614ef2565b91509150614415825188516115e5565b614422826126e588613984565b60006144348989858e8e614192610d45565b90506144448282111560cf611719565b9a91995090975050505050505050565b60006060600061446384614f15565b905060606136a8868884613f91565b6000606060008061448285614f2b565b91509150614494865182106064611719565b6060865167ffffffffffffffff811180156144ae57600080fd5b506040519080825280602002602001820160405280156144d8578160200160208202803683370190505b5090506144ec888884868e8e61420a610d45565b8183815181106144f857fe5b60209081029190910101529199919850909650505050505050565b6000606080600061452385614f42565b91509150614533875183516115e5565b614540826126e588613984565b60006145528989858e8e614330610d45565b90506144448282101560d0611719565b60006060600061457184614f5a565b905060606136a8868389614f70565b600060606000806145908561500c565b915091506145a2865182106064611719565b6060865167ffffffffffffffff811180156145bc57600080fd5b506040519080825280602002602001820160405280156145e6578160200160208202803683370190505b5090506144ec888884868e8e61426b610d45565b8051606090818167ffffffffffffffff8111801561461757600080fd5b50604051908082528060200260200182016040528015614641578160200160208202803683370190505b50905060005b828110156146e357600061465961107e565b821015614666578161466b565b816001015b905061467681612b1c565b6146935785828151811061468657fe5b60200260200101516146c3565b6146c38683815181106146a257fe5b6020026020010151600a600084815260200190815260200160002054615023565b8383815181106146cf57fe5b602090810291909101015250600101614647565b509392505050565b60008183101561170357816115de565b600061470d8387878151811061428257fe5b86868151811061471957fe5b60200260200101818152505060006147338888858861503e565b90508387878151811061474257fe5b60200260200101510387878151811061475757fe5b6020026020010181815250506147786001613ede838a89815181106141a957fe5b9150505b9695505050505050565b6000614798838786815181106141a957fe5b8685815181106147a457fe5b60200260200101818152505060006147be8888858961503e565b9050838786815181106147cd57fe5b6020026020010151018786815181106147e257fe5b602002602001018181525050614778600161280189898151811061480257fe5b60200260200101518461165e90919063ffffffff16565b600080805b87518110156148575761484d88828151811061483657fe5b60200260200101518361226490919063ffffffff16565b915060010161481e565b506060865167ffffffffffffffff8111801561487257600080fd5b5060405190808252806020026020018201604052801561489c578160200160208202803683370190505b5090506000805b89518110156149695760006148d4858c84815181106148be57fe5b602002602001015161383f90919063ffffffff16565b90506149168b83815181106148e557fe5b60200260200101516149108c85815181106148fc57fe5b60200260200101518e86815181106141a957fe5b9061383f565b84838151811061492257fe5b60200260200101818152505061495e6149578286858151811061494157fe5b602002602001015161436a90919063ffffffff16565b8490612264565b9250506001016148a3565b506060895167ffffffffffffffff8111801561498457600080fd5b506040519080825280602002602001820160405280156149ae578160200160208202803683370190505b50905060005b8a51811015614a795760008482815181106149cb57fe5b6020026020010151841115614a325760006149f46149e886613f55565b8e858151811061400257fe5b90506000614a08828e86815181106141a957fe5b9050614a29614a2282670de0b6b3a76400008d900361383f565b8390612264565b92505050614a49565b8a8281518110614a3e57fe5b602002602001015190505b614a59818d84815181106141a957fe5b838381518110614a6557fe5b6020908102919091010152506001016149b4565b506000614a868c8361272d565b90506000614a94828a61288f565b9050613163614aa282613f55565b8b9061436a565b600080614ac484614abe87614910818b61165e565b9061436a565b90506000614ad48a8a848b61503e565b90506000614ae8828b8b815181106141a957fe5b90506000805b8b51811015614b1057614b068c828151811061483657fe5b9150600101614aee565b506000614b39828d8d81518110614b2357fe5b602002602001015161288f90919063ffffffff16565b90506000614b4682613f55565b90506000614b54858361436a565b90506000614b62868361165e565b9050614b83614b7c83670de0b6b3a76400008d9003612fda565b8290612264565b98505050505050505050979650505050505050565b600080614bad84614abe87614910818b612264565b90506000614bbd8a8a848b61503e565b90506000614be78a8a81518110614bd057fe5b60200260200101518361165e90919063ffffffff16565b90506000805b8b51811015614c0f57614c058c828151811061483657fe5b9150600101614bed565b506000614c22828d8d81518110614b2357fe5b90506000614c2f82613f55565b90506000614c3d858361436a565b90506000614c4b868361165e565b9050614b83614b7c83670de0b6b3a76400008d900361383f565b600080805b8751811015614c8c57614c8288828151811061483657fe5b9150600101614c6a565b506060865167ffffffffffffffff81118015614ca757600080fd5b50604051908082528060200260200182016040528015614cd1578160200160208202803683370190505b5090506000805b8951811015614d6b576000614cf3858c8481518110614b2357fe5b9050614d358b8381518110614d0457fe5b6020026020010151614d2f8c8581518110614d1b57fe5b60200260200101518e868151811061428257fe5b9061288f565b848381518110614d4157fe5b602002602001018181525050614d606149578286858151811061400257fe5b925050600101614cd8565b506060895167ffffffffffffffff81118015614d8657600080fd5b50604051908082528060200260200182016040528015614db0578160200160208202803683370190505b50905060005b8a51811015614e7157600083858381518110614dce57fe5b60200260200101511115614e2a576000614df36149e886670de0b6b3a764000061165e565b90506000614e07828e86815181106141a957fe5b9050614e21614a2282670de0b6b3a76400008d9003612fda565b92505050614e41565b8a8281518110614e3657fe5b602002602001015190505b614e51818d848151811061428257fe5b838381518110614e5d57fe5b602090810291909101015250600101614db6565b506000614e7e8c8361272d565b90506000614e8c828a61288f565b9050670de0b6b3a7640000811115614ec057614eb38a670de0b6b3a763ffff198301612fda565b965050505050505061477c565b6000965050505050505061477c565b6000614ee163f4b7964d60e01b6110b4565b821480610cdc5750610cdc826151fb565b6060600082806020019051810190614f0a919061576b565b909590945092505050565b6000818060200190518101906115de91906157b0565b60008082806020019051810190614f0a91906157dc565b6060600082806020019051810190614f0a919061586f565b6000818060200190518101906115de919061588d565b60606000614f7e848461383f565b90506060855167ffffffffffffffff81118015614f9a57600080fd5b50604051908082528060200260200182016040528015614fc4578160200160208202803683370190505b50905060005b865181101561500257614fe38388838151811061494157fe5b828281518110614fef57fe5b6020908102919091010152600101614fca565b5095945050505050565b60008082806020019051810190614f0a91906158a9565b60006115de61503584613c95856129f8565b6127c6846129ea565b60008084518602905060008560008151811061505657fe5b60200260200101519050600086518760008151811061507157fe5b60200260200101510290506000600190505b87518110156150d7576150bc6150b66150af848b85815181106150a257fe5b60200260200101516115ba565b8a516115ba565b88613609565b91506150cd88828151811061274d57fe5b9250600101615083565b508685815181106150e457fe5b60200260200101518203915060006150fc87886115ba565b9050600061512861511c61511484610b8389886115ba565b6103e86115ba565b8a89815181106150a257fe5b9050600061514361513c6151148b89613609565b8690612264565b905060008061515f6151558686612264565b610b838d86612264565b905060005b60ff8110156151df578192506151946151818661280185866115ba565b610b838e613ede886128018860026115ba565b9150828211156151bd576001838303116151b8575097506116569650505050505050565b6151d7565b6001828403116151d7575097506116569650505050505050565b600101615164565b506151eb6101426128e0565b5050505050505050949350505050565b600061520d632f1a0bc960e01b6110b4565b8214806152285750615225637587926b60e11b6110b4565b82145b80610cdc5750610cdc826000615244631c74c91760e11b6110b4565b82148061525f575061525c6350dd6ed960e01b6110b4565b82145b80610cdc57506000610cdc565b6040805160a081019091528060008152600060208201819052604082018190526060820181905260809091015290565bfe5b803561087d81615e7e565b600082601f8301126152b9578081fd5b81356152cc6152c782615e5e565b615e37565b8181529150602080830190848101818402860182018710156152ed57600080fd5b60005b84811015612884578135845292820192908201906001016152f0565b600082601f83011261531c578081fd5b815161532a6152c782615e5e565b81815291506020808301908481018184028601820187101561534b57600080fd5b60005b848110156128845781518452928201929082019060010161534e565b600082601f83011261537a578081fd5b813567ffffffffffffffff811115615390578182fd5b6153a3601f8201601f1916602001615e37565b91508082528360208285010111156153ba57600080fd5b8060208401602084013760009082016020015292915050565b80516003811061087d57600080fd5b80516004811061087d57600080fd5b80356002811061087d57600080fd5b600060208284031215615411578081fd5b81356115de81615e7e565b6000806040838503121561542e578081fd5b823561543981615e7e565b9150602083013561544981615e7e565b809150509250929050565b600080600060608486031215615468578081fd5b833561547381615e7e565b9250602084013561548381615e7e565b929592945050506040919091013590565b600080600080600080600060e0888a0312156154ae578283fd5b87356154b981615e7e565b965060208801356154c981615e7e565b9550604088013594506060880135935060808801356154e781615e93565b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215615516578182fd5b823561552181615e7e565b946020939093013593505050565b600080600060608486031215615543578081fd5b835167ffffffffffffffff8082111561555a578283fd5b818601915086601f83011261556d578283fd5b815161557b6152c782615e5e565b80828252602080830192508086018b82838702890101111561559b578788fd5b8796505b848710156155c65780516155b281615e7e565b84526001969096019592810192810161559f565b5089015190975093505050808211156155dd578283fd5b506155ea8682870161530c565b925050604084015190509250925092565b60006020828403121561560c578081fd5b815180151581146115de578182fd5b600080600080600080600060e0888a031215615635578081fd5b87359650602088013561564781615e7e565b9550604088013561565781615e7e565b9450606088013567ffffffffffffffff80821115615673578283fd5b61567f8b838c016152a9565b955060808a0135945060a08a0135935060c08a01359150808211156156a2578283fd5b506156af8a828b0161536a565b91505092959891949750929550565b6000602082840312156156cf578081fd5b81356001600160e01b0319811681146115de578182fd5b6000602082840312156156f7578081fd5b81516115de81615e7e565b60008060408385031215615714578182fd5b823561571f81615e7e565b9150602083013567ffffffffffffffff81111561573a578182fd5b6157468582860161536a565b9150509250929050565b600060208284031215615761578081fd5b6115de83836153d3565b60008060006060848603121561577f578081fd5b61578985856153d3565b9250602084015167ffffffffffffffff8111156157a4578182fd5b6155ea8682870161530c565b600080604083850312156157c2578182fd5b6157cc84846153d3565b9150602083015190509250929050565b6000806000606084860312156157f0578081fd5b6157fa85856153d3565b925060208401519150604084015190509250925092565b600060208284031215615822578081fd5b6115de83836153e2565b6000806040838503121561583e578182fd5b61584884846153e2565b9150602083015167ffffffffffffffff811115615863578182fd5b6157468582860161530c565b600080600060608486031215615883578081fd5b61578985856153e2565b6000806040838503121561589f578182fd5b6157cc84846153e2565b6000806000606084860312156158bd578081fd5b6157fa85856153e2565b600080600080608085870312156158dc578182fd5b843567ffffffffffffffff808211156158f3578384fd5b818701915061012080838a031215615909578485fd5b61591281615e37565b905061591e89846153f1565b815261592d896020850161529e565b602082015261593f896040850161529e565b6040820152606083013560608201526080830135608082015260a083013560a082015261596f8960c0850161529e565b60c08201526159818960e0850161529e565b60e08201526101008084013583811115615999578687fd5b6159a58b82870161536a565b8284015250508096505060208701359150808211156159c2578384fd5b506159cf878288016152a9565b949794965050505060408301359260600135919050565b6000602082840312156159f7578081fd5b5035919050565b600060208284031215615a0f578081fd5b5051919050565b60008060408385031215615a28578182fd5b50508035926020909101359150565b60008060008060808587031215615a4c578182fd5b8451935060208501519250604085015191506060850151615a6c81615e7e565b939692955090935050565b600060208284031215615a88578081fd5b81516115de81615e93565b60008060408385031215615aa5578182fd5b8251615ab081615e93565b6020939093015192949293505050565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015615afc57815187529582019590820190600101615ae0565b509495945050505050565b60008151808452815b81811015615b2c57602081850181015186830182015201615b10565b81811115615b3d5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6000828483379101908152919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015615bea5783516001600160a01b031683529284019291840191600101615bc5565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015615c80578151805160048110615c2957fe5b855280870151615c3b88870182615ac0565b508581015186860152606080820151615c5682880182615ac0565b505060809081015190615c6b86820183615ac0565b505060a0939093019290850190600101615c13565b5091979650505050505050565b6000602082526115de6020830184615acd565b600060408252615cb36040830185615acd565b828103602084015261185c8185615acd565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6000838252604060208301526116566040830184615b07565b9182526001600160a01b0316602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526115de6020830184615b07565b6000838252604060208301526116566040830184615acd565b9283529015156020830152604082015260600190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715615e5657600080fd5b604052919050565b600067ffffffffffffffff821115615e74578081fd5b5060209081020190565b6001600160a01b0381168114610bfa57600080fd5b60ff81168114610bfa57600080fdfea2646970667358221220b4e550780037f90ebe851b3b7805b576dad987fb40b27b1310b67210681e408464736f6c634300070100336bfb689528fa96ec1ad670ad6d6064be1ae96bfd5d2ee35c837fd0fe0c11959a",
+ "opcodes": "PUSH2 0x180 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x921D CODESIZE SUB DUP1 PUSH3 0x921D DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x35 SWAP2 PUSH3 0x36D JUMP JUMPDEST DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH3 0x49 SWAP1 PUSH3 0x21C JUMP JUMPDEST PUSH1 0x1F NOT DUP3 DUP3 SUB DUP2 ADD DUP4 MSTORE PUSH1 0x1F SWAP1 SWAP2 ADD AND PUSH1 0x40 MSTORE DUP1 MLOAD DUP4 SWAP1 ADDRESS SWAP1 DUP4 SWAP1 PUSH1 0x0 PUSH1 0x2 DUP3 DIV PUSH1 0xA0 DUP2 SWAP1 MSTORE DUP1 DUP4 SUB PUSH1 0xE0 DUP2 SWAP1 MSTORE DUP2 DUP6 MSTORE SWAP1 SWAP2 POP DUP4 PUSH3 0x95 DUP2 PUSH3 0x13D PUSH1 0x20 SWAP1 DUP2 SHL PUSH3 0x5E5 OR SWAP1 SHR JUMP JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH1 0x80 MSTORE DUP3 DUP6 ADD DUP1 MLOAD DUP4 DUP3 MSTORE PUSH3 0xC4 DUP3 PUSH3 0x13D PUSH1 0x20 SWAP1 DUP2 SHL PUSH3 0x5E5 OR SWAP1 SHR JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT PUSH1 0x60 SWAP2 DUP3 SHL DUP2 AND PUSH1 0xC0 MSTORE SWAP7 SWAP1 SWAP4 MSTORE SWAP1 MSTORE PUSH2 0x100 SWAP6 SWAP1 SWAP6 MSTORE POP POP SWAP3 DUP3 SHL DUP4 AND PUSH2 0x120 MSTORE POP SWAP3 SWAP1 SWAP3 SHL SWAP1 SWAP2 AND PUSH2 0x140 MSTORE POP POP TIMESTAMP PUSH3 0x76A700 ADD PUSH2 0x160 MSTORE DUP2 MLOAD PUSH3 0x11C SWAP1 PUSH1 0x2 SWAP1 PUSH1 0x20 DUP6 ADD SWAP1 PUSH3 0x22A JUMP JUMPDEST POP DUP1 MLOAD PUSH3 0x132 SWAP1 PUSH1 0x3 SWAP1 PUSH1 0x20 DUP5 ADD SWAP1 PUSH3 0x22A JUMP JUMPDEST POP POP POP POP POP PUSH3 0x415 JUMP JUMPDEST DUP1 MLOAD PUSH32 0x602038038060206000396000F3FEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFE DUP1 DUP4 MSTORE PUSH1 0x0 SWAP2 PUSH1 0x20 DUP2 ADD DUP5 DUP5 CREATE SWAP1 DUP5 MSTORE SWAP2 POP PUSH3 0x18B PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x1AC PUSH3 0x191 JUMP JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP2 PUSH3 0x1A2 JUMPI PUSH3 0x1A2 DUP2 PUSH3 0x1A6 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH3 0x1B8 DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH3 0x1BB JUMP JUMPDEST POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST PUSH2 0x7DCA DUP1 PUSH3 0x1453 DUP4 CODECOPY ADD SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH3 0x26D JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x29D JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x29D JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x29D JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x280 JUMP JUMPDEST POP PUSH3 0x2AB SWAP3 SWAP2 POP PUSH3 0x2AF JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x2AB JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x2B0 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x2D7 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP1 DUP3 GT ISZERO PUSH3 0x2EE JUMPI DUP3 DUP4 REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 PUSH1 0x1F DUP5 ADD PUSH1 0x1F NOT AND DUP3 ADD DUP2 ADD DUP4 DUP2 GT DUP4 DUP3 LT OR ISZERO PUSH3 0x310 JUMPI DUP6 DUP7 REVERT JUMPDEST DUP1 PUSH1 0x40 MSTORE POP DUP2 SWAP5 POP DUP4 DUP3 MSTORE DUP7 DUP2 DUP6 DUP9 ADD ADD GT ISZERO PUSH3 0x32D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP3 POP JUMPDEST DUP4 DUP4 LT ISZERO PUSH3 0x351 JUMPI DUP6 DUP4 ADD DUP2 ADD MLOAD DUP3 DUP5 ADD DUP3 ADD MSTORE SWAP2 DUP3 ADD SWAP2 PUSH3 0x332 JUMP JUMPDEST DUP4 DUP4 GT ISZERO PUSH3 0x363 JUMPI PUSH1 0x0 DUP2 DUP6 DUP5 ADD ADD MSTORE JUMPDEST POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH3 0x383 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP5 MLOAD PUSH3 0x390 DUP2 PUSH3 0x3FF JUMP JUMPDEST PUSH1 0x20 DUP7 ADD MLOAD SWAP1 SWAP5 POP PUSH3 0x3A3 DUP2 PUSH3 0x3FF JUMP JUMPDEST PUSH1 0x40 DUP7 ADD MLOAD SWAP1 SWAP4 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP1 DUP3 GT ISZERO PUSH3 0x3C0 JUMPI DUP4 DUP5 REVERT JUMPDEST PUSH3 0x3CE DUP9 DUP4 DUP10 ADD PUSH3 0x2C6 JUMP JUMPDEST SWAP4 POP PUSH1 0x60 DUP8 ADD MLOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH3 0x3E4 JUMPI DUP3 DUP4 REVERT JUMPDEST POP PUSH3 0x3F3 DUP8 DUP3 DUP9 ADD PUSH3 0x2C6 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP2 SWAP5 POP SWAP3 POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH3 0x1B8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x80 MLOAD PUSH1 0x60 SHR PUSH1 0xA0 MLOAD PUSH1 0xC0 MLOAD PUSH1 0x60 SHR PUSH1 0xE0 MLOAD PUSH2 0x100 MLOAD PUSH2 0x120 MLOAD PUSH1 0x60 SHR PUSH2 0x140 MLOAD PUSH1 0x60 SHR PUSH2 0x160 MLOAD PUSH2 0xFC5 PUSH3 0x48E PUSH1 0x0 CODECOPY DUP1 PUSH2 0x232 MSTORE DUP1 PUSH2 0x25B MSTORE POP DUP1 PUSH2 0x3FA MSTORE POP DUP1 PUSH2 0x470 MSTORE POP DUP1 PUSH2 0x420 MSTORE POP DUP1 PUSH2 0x63F MSTORE POP DUP1 PUSH2 0x209 MSTORE DUP1 PUSH2 0x6BB MSTORE POP DUP1 PUSH2 0x660 MSTORE POP DUP1 PUSH2 0x1E8 MSTORE DUP1 PUSH2 0x697 MSTORE POP PUSH2 0xFC5 PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0xDE JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x6634B753 GT PUSH2 0x8C JUMPI DUP1 PUSH4 0x851C1BB3 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0x851C1BB3 EQ PUSH2 0x184 JUMPI DUP1 PUSH4 0x8D928AF8 EQ PUSH2 0x1A4 JUMPI DUP1 PUSH4 0x971E1833 EQ PUSH2 0x1AC JUMPI DUP1 PUSH4 0xAAABADC5 EQ PUSH2 0x1BF JUMPI PUSH2 0xDE JUMP JUMPDEST DUP1 PUSH4 0x6634B753 EQ PUSH2 0x147 JUMPI DUP1 PUSH4 0x6C57F5A9 EQ PUSH2 0x167 JUMPI DUP1 PUSH4 0x739238D6 EQ PUSH2 0x16F JUMPI PUSH2 0xDE JUMP JUMPDEST DUP1 PUSH4 0x2F2770DB GT PUSH2 0xBD JUMPI DUP1 PUSH4 0x2F2770DB EQ PUSH2 0x12D JUMPI DUP1 PUSH4 0x3F819B6F EQ PUSH2 0x137 JUMPI DUP1 PUSH4 0x54FD4D50 EQ PUSH2 0x13F JUMPI PUSH2 0xDE JUMP JUMPDEST DUP1 PUSH3 0xC194DB EQ PUSH2 0xE3 JUMPI DUP1 PUSH4 0x174481FA EQ PUSH2 0x101 JUMPI DUP1 PUSH4 0x2DA47C40 EQ PUSH2 0x117 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xEB PUSH2 0x1C7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xDB5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x109 PUSH2 0x1E6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP3 SWAP2 SWAP1 PUSH2 0xD68 JUMP JUMPDEST PUSH2 0x11F PUSH2 0x22C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP3 SWAP2 SWAP1 PUSH2 0xF17 JUMP JUMPDEST PUSH2 0x135 PUSH2 0x296 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xEB PUSH2 0x2DD JUMP JUMPDEST PUSH2 0xEB PUSH2 0x373 JUMP JUMPDEST PUSH2 0x15A PUSH2 0x155 CALLDATASIZE PUSH1 0x4 PUSH2 0xAF6 JUMP JUMPDEST PUSH2 0x3D1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xD82 JUMP JUMPDEST PUSH2 0x15A PUSH2 0x3EF JUMP JUMPDEST PUSH2 0x177 PUSH2 0x3F8 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xDC8 JUMP JUMPDEST PUSH2 0x197 PUSH2 0x192 CALLDATASIZE PUSH1 0x4 PUSH2 0xB2E JUMP JUMPDEST PUSH2 0x41C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xD8D JUMP JUMPDEST PUSH2 0x177 PUSH2 0x46E JUMP JUMPDEST PUSH2 0x177 PUSH2 0x1BA CALLDATASIZE PUSH1 0x4 PUSH2 0xB72 JUMP JUMPDEST PUSH2 0x492 JUMP JUMPDEST PUSH2 0x177 PUSH2 0x56B JUMP JUMPDEST PUSH1 0x60 PUSH2 0x1E1 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE POP PUSH2 0x637 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH32 0x0 PUSH32 0x0 SWAP1 SWAP2 JUMP JUMPDEST PUSH1 0x0 DUP1 TIMESTAMP PUSH32 0x0 DUP2 LT ISZERO PUSH2 0x288 JUMPI DUP1 PUSH32 0x0 SUB SWAP3 POP PUSH3 0x278D00 SWAP2 POP PUSH2 0x291 JUMP JUMPDEST PUSH1 0x0 SWAP3 POP PUSH1 0x0 SWAP2 POP JUMPDEST POP SWAP1 SWAP2 JUMP JUMPDEST PUSH2 0x29E PUSH2 0x710 JUMP JUMPDEST PUSH2 0x2A6 PUSH2 0x741 JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH1 0xFF NOT AND DUP2 OR SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH32 0x432ACBFD662DBB5D8B378384A67159B47CA9D0F1B79F97CF64CF8585FA362D50 SWAP1 PUSH1 0x0 SWAP1 LOG1 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x369 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33E JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x369 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x34C JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP8 AND ISZERO MUL ADD SWAP1 SWAP5 AND DUP6 SWAP1 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x369 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33E JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x369 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x451 SWAP3 SWAP2 SWAP1 PUSH2 0xD50 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x49F PUSH2 0x22C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x55A PUSH1 0x40 MLOAD DUP1 PUSH2 0x1C0 ADD PUSH1 0x40 MSTORE DUP1 PUSH2 0x4BA PUSH2 0x46E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x4D0 PUSH2 0x3F8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD DUP16 DUP2 MSTORE PUSH1 0x20 ADD DUP15 DUP2 MSTORE PUSH1 0x20 ADD DUP14 DUP2 MSTORE PUSH1 0x20 ADD DUP12 DUP2 MSTORE PUSH1 0x20 ADD DUP11 DUP2 MSTORE PUSH1 0x20 ADD DUP10 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD DUP13 DUP2 MSTORE PUSH1 0x20 ADD DUP9 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x533 PUSH2 0x2DD JUMP JUMPDEST SWAP1 MSTORE PUSH1 0x40 MLOAD PUSH2 0x545 SWAP2 SWAP1 PUSH1 0x20 ADD PUSH2 0xDDC JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP6 PUSH2 0x756 JUMP JUMPDEST SWAP14 SWAP13 POP POP POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x575 PUSH2 0x46E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xAAABADC5 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x5AD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x5C1 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x1E1 SWAP2 SWAP1 PUSH2 0xB56 JUMP JUMPDEST DUP1 MLOAD PUSH32 0x602038038060206000396000F3FEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFE DUP1 DUP4 MSTORE PUSH1 0x0 SWAP2 PUSH1 0x20 DUP2 ADD DUP5 DUP5 CREATE SWAP1 DUP5 MSTORE SWAP2 POP PUSH2 0x631 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x1AC PUSH2 0x7C3 JUMP JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x40 DUP1 MLOAD PUSH32 0x0 PUSH32 0x0 DUP2 DUP2 ADD DUP6 DUP2 ADD DUP5 DUP2 ADD PUSH1 0x20 SWAP1 DUP2 ADD SWAP1 SWAP7 MSTORE DUP1 DUP6 MSTORE SWAP4 SWAP6 PUSH32 0x0 SWAP6 SWAP3 SWAP5 PUSH32 0x0 SWAP5 SWAP4 DUP9 ADD DUP7 PUSH1 0x0 DUP3 DUP11 EXTCODECOPY DUP5 PUSH1 0x0 DUP9 DUP4 ADD DUP9 EXTCODECOPY POP PUSH1 0x20 DUP10 DUP2 ADD SWAP1 DUP10 DUP6 ADD ADD PUSH2 0x702 DUP2 DUP4 DUP7 PUSH2 0x7D5 JUMP JUMPDEST POP POP POP POP POP POP POP POP POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x727 PUSH1 0x0 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH2 0x41C JUMP JUMPDEST SWAP1 POP PUSH2 0x73E PUSH2 0x736 DUP3 CALLER PUSH2 0x813 JUMP JUMPDEST PUSH2 0x191 PUSH2 0x7C3 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x754 PUSH2 0x74C PUSH2 0x3EF JUMP JUMPDEST ISZERO PUSH1 0xD3 PUSH2 0x7C3 JUMP JUMPDEST JUMP JUMPDEST PUSH1 0x0 PUSH2 0x760 PUSH2 0x741 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x76C DUP5 DUP5 PUSH2 0x8A3 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE MLOAD SWAP3 SWAP4 POP SWAP1 SWAP2 PUSH32 0x83A48FBCFC991335314E74D0496AAB6A1987E992DDC85DDDBCC4D6DD6EF2E9FC SWAP2 SWAP1 LOG2 SWAP1 POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP2 PUSH2 0x7D1 JUMPI PUSH2 0x7D1 DUP2 PUSH2 0x8E0 JUMP JUMPDEST POP POP JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP2 LT PUSH2 0x7F5 JUMPI DUP2 MLOAD DUP4 MSTORE PUSH1 0x20 SWAP3 DUP4 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 PUSH1 0x1F NOT ADD PUSH2 0x7D6 JUMP JUMPDEST SWAP1 MLOAD DUP3 MLOAD PUSH1 0x20 SWAP3 SWAP1 SWAP3 SUB PUSH2 0x100 EXP PUSH1 0x0 NOT ADD DUP1 NOT SWAP1 SWAP2 AND SWAP2 AND OR SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x81D PUSH2 0x56B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x9BE2A884 DUP5 DUP5 ADDRESS PUSH1 0x40 MLOAD DUP5 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x84C SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0xD96 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x864 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x878 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x89C SWAP2 SWAP1 PUSH2 0xB12 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x8B0 DUP5 PUSH2 0x637 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP4 DUP3 MLOAD PUSH1 0x20 DUP5 ADD PUSH1 0x0 CREATE2 SWAP1 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x8D8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP4 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL DUP4 DUP7 MOD ADD SWAP2 DUP4 SWAP1 DIV SWAP3 DUP4 MOD ADD PUSH1 0x10 SHL ADD PUSH7 0x42414C23000030 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH2 0x73E SWAP2 PUSH3 0x109053 PUSH1 0xEA SHL SWAP1 PUSH3 0x42414C SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH2 0x7BD DUP2 PUSH2 0xF6C JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x956 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x969 PUSH2 0x964 DUP3 PUSH2 0xF4C JUMP JUMPDEST PUSH2 0xF25 JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x98A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x9B2 JUMPI DUP2 CALLDATALOAD PUSH2 0x9A0 DUP2 PUSH2 0xF6C JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x98D JUMP JUMPDEST POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x9CD JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x9DB PUSH2 0x964 DUP3 PUSH2 0xF4C JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x9FC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x9B2 JUMPI DUP2 CALLDATALOAD PUSH2 0xA12 DUP2 PUSH2 0xF6C JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x9FF JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0xA34 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0xA42 PUSH2 0x964 DUP3 PUSH2 0xF4C JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0xA63 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x9B2 JUMPI DUP2 CALLDATALOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0xA66 JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0x7BD DUP2 PUSH2 0xF81 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0xA9D JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xAB3 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0xAC6 PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD PUSH2 0xF25 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0xADD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH1 0x20 DUP5 ADD PUSH1 0x20 DUP5 ADD CALLDATACOPY PUSH1 0x0 SWAP1 DUP3 ADD PUSH1 0x20 ADD MSTORE SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB07 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x89C DUP2 PUSH2 0xF6C JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB23 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x89C DUP2 PUSH2 0xF81 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB3F JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH2 0x89C JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB67 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x89C DUP2 PUSH2 0xF6C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x140 DUP12 DUP14 SUB SLT ISZERO PUSH2 0xB91 JUMPI DUP6 DUP7 REVERT JUMPDEST DUP11 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0xBA8 JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xBB4 DUP15 DUP4 DUP16 ADD PUSH2 0xA8D JUMP JUMPDEST SWAP12 POP PUSH1 0x20 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xBC9 JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xBD5 DUP15 DUP4 DUP16 ADD PUSH2 0xA8D JUMP JUMPDEST SWAP11 POP PUSH1 0x40 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xBEA JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xBF6 DUP15 DUP4 DUP16 ADD PUSH2 0x946 JUMP JUMPDEST SWAP10 POP PUSH1 0x60 DUP14 ADD CALLDATALOAD SWAP9 POP PUSH1 0x80 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xC12 JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xC1E DUP15 DUP4 DUP16 ADD PUSH2 0x9BD JUMP JUMPDEST SWAP8 POP PUSH1 0xA0 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xC33 JUMPI DUP7 DUP8 REVERT JUMPDEST POP PUSH2 0xC40 DUP14 DUP3 DUP15 ADD PUSH2 0xA24 JUMP JUMPDEST SWAP6 POP POP PUSH2 0xC50 DUP13 PUSH1 0xC0 DUP14 ADD PUSH2 0xA82 JUMP JUMPDEST SWAP4 POP PUSH1 0xE0 DUP12 ADD CALLDATALOAD SWAP3 POP PUSH2 0xC67 DUP13 PUSH2 0x100 DUP14 ADD PUSH2 0x93B JUMP JUMPDEST SWAP2 POP PUSH2 0x120 DUP12 ADD CALLDATALOAD SWAP1 POP SWAP3 SWAP6 SWAP9 SWAP12 SWAP2 SWAP5 SWAP8 SWAP11 POP SWAP3 SWAP6 SWAP9 POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE PUSH1 0x20 DUP1 DUP6 ADD SWAP5 POP DUP1 DUP5 ADD DUP4 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xCC5 JUMPI DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP8 MSTORE SWAP6 DUP3 ADD SWAP6 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0xCA0 JUMP JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE PUSH1 0x20 DUP1 DUP6 ADD SWAP5 POP DUP1 DUP5 ADD DUP4 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xCC5 JUMPI DUP2 MLOAD DUP8 MSTORE SWAP6 DUP3 ADD SWAP6 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0xCE3 JUMP JUMPDEST ISZERO ISZERO SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xD2A JUMPI PUSH1 0x20 DUP2 DUP6 ADD DUP2 ADD MLOAD DUP7 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0xD0E JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0xD3B JUMPI DUP3 PUSH1 0x20 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x24 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 DUP4 AND DUP2 MSTORE SWAP2 AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 DUP4 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x20 DUP5 ADD MSTORE AND PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x89C PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0xD05 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0xDF0 PUSH1 0x20 DUP4 ADD DUP5 MLOAD PUSH2 0xC80 JUMP JUMPDEST PUSH1 0x20 DUP4 ADD MLOAD PUSH2 0xE02 PUSH1 0x40 DUP5 ADD DUP3 PUSH2 0xC80 JUMP JUMPDEST POP PUSH1 0x40 DUP4 ADD MLOAD PUSH2 0x1C0 DUP1 PUSH1 0x60 DUP6 ADD MSTORE PUSH2 0xE1F PUSH2 0x1E0 DUP6 ADD DUP4 PUSH2 0xD05 JUMP JUMPDEST SWAP2 POP PUSH1 0x60 DUP6 ADD MLOAD PUSH1 0x1F NOT DUP1 DUP7 DUP6 SUB ADD PUSH1 0x80 DUP8 ADD MSTORE PUSH2 0xE3D DUP5 DUP4 PUSH2 0xD05 JUMP JUMPDEST SWAP4 POP PUSH1 0x80 DUP8 ADD MLOAD SWAP2 POP DUP1 DUP7 DUP6 SUB ADD PUSH1 0xA0 DUP8 ADD MSTORE PUSH2 0xE5A DUP5 DUP4 PUSH2 0xC8D JUMP JUMPDEST SWAP4 POP PUSH1 0xA0 DUP8 ADD MLOAD SWAP2 POP DUP1 DUP7 DUP6 SUB ADD PUSH1 0xC0 DUP8 ADD MSTORE PUSH2 0xE77 DUP5 DUP4 PUSH2 0xC8D JUMP JUMPDEST SWAP4 POP PUSH1 0xC0 DUP8 ADD MLOAD SWAP2 POP DUP1 DUP7 DUP6 SUB ADD PUSH1 0xE0 DUP8 ADD MSTORE PUSH2 0xE94 DUP5 DUP4 PUSH2 0xCD0 JUMP JUMPDEST SWAP4 POP PUSH1 0xE0 DUP8 ADD MLOAD SWAP2 POP PUSH2 0x100 PUSH2 0xEAC DUP2 DUP9 ADD DUP5 PUSH2 0xCFF JUMP JUMPDEST DUP8 ADD MLOAD PUSH2 0x120 DUP8 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD PUSH2 0x140 DUP1 DUP9 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD PUSH2 0x160 DUP1 DUP9 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD PUSH2 0x180 DUP1 DUP9 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD SWAP2 POP PUSH2 0x1A0 PUSH2 0xEF4 DUP2 DUP9 ADD DUP5 PUSH2 0xC80 JUMP JUMPDEST DUP8 ADD MLOAD DUP7 DUP6 SUB SWAP1 SWAP2 ADD DUP4 DUP8 ADD MSTORE SWAP1 POP PUSH2 0xF0D DUP4 DUP3 PUSH2 0xD05 JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0xF44 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0xF62 JUMPI DUP1 DUP2 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x73E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x73E JUMPI PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP15 EXP 0xAE 0x2F 0x26 0xBA DUP10 0xD6 SWAP12 DUP2 0xAF PUSH27 0xF61EAA1316C922ACDEBE021F38D79FCB5F3C901364736F6C634300 SMOD ADD STOP CALLER PUSH2 0x4E0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x12 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x7DCA CODESIZE SUB DUP1 PUSH3 0x7DCA DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x35 SWAP2 PUSH3 0x1A26 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD MLOAD PUSH1 0x0 NOT PUSH3 0x48 DUP4 PUSH3 0xC9F JUMP JUMPDEST PUSH3 0x53 DUP5 PUSH3 0xCD8 JUMP JUMPDEST DUP5 PUSH2 0x100 ADD MLOAD DUP6 PUSH1 0x0 ADD MLOAD PUSH1 0x0 DUP8 PUSH1 0x40 ADD MLOAD DUP9 PUSH1 0x60 ADD MLOAD PUSH3 0x80 DUP11 PUSH1 0x80 ADD MLOAD ADDRESS PUSH3 0xD23 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST DUP11 PUSH1 0x80 ADD MLOAD MLOAD PUSH1 0x1 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP1 ISZERO PUSH3 0x9F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH3 0xCA JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP DUP12 PUSH2 0x120 ADD MLOAD DUP13 PUSH2 0x140 ADD MLOAD DUP14 PUSH2 0x160 ADD MLOAD DUP15 PUSH2 0x180 ADD MLOAD DUP3 DUP3 DUP10 DUP10 DUP14 DUP6 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SHL DUP5 DUP1 PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x31 PUSH1 0xF8 SHL DUP2 MSTORE POP DUP8 DUP8 DUP2 PUSH1 0x3 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH3 0x12C SWAP3 SWAP2 SWAP1 PUSH3 0x170F JUMP JUMPDEST POP DUP1 MLOAD PUSH3 0x142 SWAP1 PUSH1 0x4 SWAP1 PUSH1 0x20 DUP5 ADD SWAP1 PUSH3 0x170F JUMP JUMPDEST POP POP PUSH1 0x5 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x12 OR SWAP1 SSTORE POP DUP2 MLOAD PUSH1 0x20 SWAP3 DUP4 ADD KECCAK256 PUSH1 0x80 MSTORE DUP1 MLOAD SWAP2 ADD KECCAK256 PUSH1 0xA0 MSTORE POP PUSH32 0x8B73C3C69BB8FE3D512ECC4CF759CC79239F7B179B0FFACAA9A75D522B39400F PUSH1 0xC0 MSTORE PUSH1 0xE0 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT PUSH1 0x60 SWAP2 DUP3 SHL DUP2 AND PUSH2 0x100 MSTORE SWAP2 SWAP1 SHL AND PUSH2 0x120 MSTORE POP PUSH3 0x1C0 SWAP1 POP PUSH3 0x76A700 DUP4 GT ISZERO PUSH2 0x194 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x1D4 PUSH3 0x278D00 DUP3 GT ISZERO PUSH2 0x195 PUSH3 0xEBD JUMP JUMPDEST TIMESTAMP SWAP1 SWAP2 ADD PUSH2 0x140 DUP2 SWAP1 MSTORE ADD PUSH2 0x160 MSTORE DUP6 MLOAD PUSH3 0x1F6 SWAP1 PUSH1 0x2 GT ISZERO PUSH1 0xC8 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x210 PUSH3 0x204 PUSH3 0xED2 JUMP JUMPDEST DUP8 MLOAD GT ISZERO PUSH1 0xC9 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x226 DUP7 PUSH3 0xED7 PUSH1 0x20 SHL PUSH3 0x15B0 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x231 DUP5 PUSH3 0xEE3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x9B2760F PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP13 AND SWAP1 PUSH4 0x9B2760F SWAP1 PUSH3 0x262 SWAP1 DUP14 SWAP1 PUSH1 0x4 ADD PUSH3 0x1C9A JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x27D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH3 0x292 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x2B8 SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x3354E3E9 PUSH1 0xE1 SHL DUP2 MSTORE SWAP1 SWAP2 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP13 AND SWAP1 PUSH4 0x66A9C7D2 SWAP1 PUSH3 0x2ED SWAP1 DUP5 SWAP1 DUP12 SWAP1 DUP12 SWAP1 PUSH1 0x4 ADD PUSH3 0x1BFE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x308 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH3 0x31D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP DUP1 PUSH2 0x180 DUP2 DUP2 MSTORE POP POP DUP11 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xD2946C2B PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x364 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x379 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x39F SWAP2 SWAP1 PUSH3 0x1A07 JUMP JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x1A0 MSTORE POP PUSH3 0x3D1 SWAP10 POP POP POP PUSH1 0x1 DUP10 LT ISZERO SWAP7 POP PUSH2 0x12C SWAP6 POP PUSH3 0xEBD SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH3 0x3E4 PUSH2 0x1388 DUP3 GT ISZERO PUSH2 0x12D PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH3 0x3FF DUP3 PUSH2 0x3E8 PUSH3 0xF77 PUSH1 0x20 SHL PUSH3 0x15BA OR PUSH1 0x20 SHR JUMP JUMPDEST SWAP1 POP PUSH3 0x40C DUP2 PUSH3 0xFA6 JUMP JUMPDEST POP POP DUP1 MLOAD MLOAD PUSH3 0x421 PUSH1 0x2 DUP3 GT PUSH1 0xC8 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x440 PUSH1 0x1 DUP3 SUB DUP4 PUSH1 0x20 ADD MLOAD MLOAD PUSH3 0xFE5 PUSH1 0x20 SHL PUSH3 0x15E5 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH2 0x1C0 DUP2 SWAP1 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH1 0x0 SWAP1 PUSH3 0x454 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x200 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x0 ADD MLOAD PUSH1 0x1 DUP2 MLOAD DUP2 LT PUSH3 0x48B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x220 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x0 ADD MLOAD PUSH1 0x2 DUP2 MLOAD DUP2 LT PUSH3 0x4C2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x240 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP PUSH1 0x3 DUP2 GT PUSH3 0x4F8 JUMPI PUSH1 0x0 PUSH3 0x511 JUMP JUMPDEST DUP2 MLOAD DUP1 MLOAD PUSH1 0x3 SWAP1 DUP2 LT PUSH3 0x508 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x260 MSTORE PUSH1 0x4 DUP2 GT PUSH3 0x533 JUMPI PUSH1 0x0 PUSH3 0x54C JUMP JUMPDEST DUP2 MLOAD DUP1 MLOAD PUSH1 0x4 SWAP1 DUP2 LT PUSH3 0x543 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x280 MSTORE PUSH1 0x5 DUP2 GT PUSH3 0x56E JUMPI PUSH1 0x0 PUSH3 0x587 JUMP JUMPDEST DUP2 MLOAD DUP1 MLOAD PUSH1 0x5 SWAP1 DUP2 LT PUSH3 0x57E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x2A0 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH3 0x5C0 SWAP2 SWAP1 PUSH1 0x0 SWAP1 PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH3 0xFF4 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST PUSH2 0x2C0 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH3 0x5DA SWAP2 SWAP1 PUSH1 0x1 SWAP1 DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x2E0 MSTORE DUP2 MLOAD DUP1 MLOAD PUSH3 0x5F4 SWAP2 SWAP1 PUSH1 0x2 SWAP1 DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x300 MSTORE PUSH1 0x3 DUP2 GT PUSH3 0x609 JUMPI PUSH1 0x0 PUSH3 0x61F JUMP JUMPDEST PUSH3 0x61F DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x3 DUP2 MLOAD DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x320 MSTORE PUSH1 0x4 DUP2 GT PUSH3 0x634 JUMPI PUSH1 0x0 PUSH3 0x64A JUMP JUMPDEST PUSH3 0x64A DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x4 DUP2 MLOAD DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x340 MSTORE PUSH1 0x5 DUP2 GT PUSH3 0x65F JUMPI PUSH1 0x0 PUSH3 0x675 JUMP JUMPDEST PUSH3 0x675 DUP3 PUSH1 0x0 ADD MLOAD PUSH1 0x5 DUP2 MLOAD DUP2 LT PUSH3 0x5AC JUMPI INVALID JUMPDEST PUSH2 0x360 MSTORE DUP2 MLOAD MLOAD PUSH1 0x0 NOT ADD JUMPDEST PUSH1 0x0 DUP2 GT DUP1 ISZERO PUSH3 0x6B2 JUMPI POP DUP3 MLOAD DUP1 MLOAD ADDRESS SWAP2 SWAP1 DUP4 SWAP1 DUP2 LT PUSH3 0x69F JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND GT JUMPDEST ISZERO PUSH3 0x6C2 JUMPI PUSH1 0x0 NOT ADD PUSH3 0x681 JUMP JUMPDEST PUSH2 0x1E0 DUP2 SWAP1 MSTORE DUP3 MLOAD MLOAD PUSH1 0x60 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP1 ISZERO PUSH3 0x6E4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH3 0x70F JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP6 MLOAD MLOAD DUP2 LT ISZERO PUSH3 0x84B JUMPI DUP4 DUP2 LT ISZERO PUSH3 0x776 JUMPI DUP6 PUSH1 0x20 ADD MLOAD DUP2 DUP2 MLOAD DUP2 LT PUSH3 0x73B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0x750 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE POP POP PUSH3 0x798 JUMP JUMPDEST DUP4 DUP2 EQ PUSH3 0x792 JUMPI DUP6 PUSH1 0x20 ADD MLOAD PUSH1 0x1 DUP3 SUB DUP2 MLOAD DUP2 LT PUSH3 0x73B JUMPI INVALID JUMPDEST PUSH3 0x842 JUMP JUMPDEST PUSH3 0x7E1 PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH3 0x7B4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO DUP3 PUSH1 0x6 ADD DUP5 PUSH3 0x10C3 PUSH1 0x20 SHL PUSH3 0x15F2 OR SWAP1 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST SWAP2 POP DUP6 PUSH1 0x40 ADD MLOAD DUP1 ISZERO PUSH3 0x81C JUMPI POP PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0x808 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO JUMPDEST ISZERO PUSH3 0x842 JUMPI PUSH3 0x83F PUSH1 0x1 DUP3 DUP5 PUSH3 0x10C3 PUSH1 0x20 SHL PUSH3 0x15F2 OR SWAP1 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST SWAP2 POP JUMPDEST PUSH1 0x1 ADD PUSH3 0x716 JUMP JUMPDEST POP PUSH1 0x40 DUP6 ADD MLOAD ISZERO ISZERO PUSH1 0xF8 SHL PUSH2 0x460 MSTORE DUP2 MLOAD DUP3 SWAP1 PUSH1 0x0 SWAP1 PUSH3 0x868 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x380 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x1 DUP2 MLOAD DUP2 LT PUSH3 0x89B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x3A0 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP DUP2 PUSH1 0x2 DUP2 MLOAD DUP2 LT PUSH3 0x8CE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x3C0 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x60 SHL DUP2 MSTORE POP POP PUSH1 0x3 DUP3 MLOAD GT PUSH3 0x905 JUMPI PUSH1 0x0 PUSH3 0x91C JUMP JUMPDEST DUP2 PUSH1 0x3 DUP2 MLOAD DUP2 LT PUSH3 0x913 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x3E0 MSTORE DUP2 MLOAD PUSH1 0x4 LT PUSH3 0x93F JUMPI PUSH1 0x0 PUSH3 0x956 JUMP JUMPDEST DUP2 PUSH1 0x4 DUP2 MLOAD DUP2 LT PUSH3 0x94D JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x400 MSTORE DUP2 MLOAD PUSH1 0x5 LT PUSH3 0x979 JUMPI PUSH1 0x0 PUSH3 0x990 JUMP JUMPDEST DUP2 PUSH1 0x5 DUP2 MLOAD DUP2 LT PUSH3 0x987 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD JUMPDEST PUSH1 0x60 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT AND PUSH2 0x420 MSTORE PUSH2 0x440 MSTORE POP POP DUP3 MLOAD MLOAD PUSH1 0x20 DUP1 DUP6 ADD MLOAD MLOAD PUSH1 0x40 DUP7 ADD MLOAD MLOAD PUSH3 0x9D1 SWAP6 POP SWAP3 SWAP4 POP SWAP2 SWAP1 PUSH3 0x10EC DUP2 SHL PUSH3 0x1619 OR SWAP1 SHR JUMP JUMPDEST DUP1 MLOAD PUSH1 0x60 SWAP1 PUSH3 0x9E2 SWAP1 ADDRESS PUSH3 0xD23 JUMP JUMPDEST DUP1 MLOAD SWAP1 SWAP2 POP PUSH1 0x0 NOT ADD JUMPDEST PUSH1 0x0 DUP2 GT DUP1 ISZERO PUSH3 0xA22 JUMPI POP ADDRESS PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xA0F JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND GT JUMPDEST ISZERO PUSH3 0xA32 JUMPI PUSH1 0x0 NOT ADD PUSH3 0x9EC JUMP JUMPDEST PUSH1 0x0 DUP1 JUMPDEST DUP5 MLOAD MLOAD DUP2 LT ISZERO PUSH3 0xB4B JUMPI DUP3 DUP2 EQ ISZERO PUSH3 0xA4F JUMPI PUSH1 0x1 SWAP2 POP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD DUP1 MLOAD DUP3 DUP5 ADD SWAP2 PUSH1 0x0 SWAP2 DUP5 SWAP1 DUP2 LT PUSH3 0xA68 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH3 0xB41 JUMPI PUSH3 0xAC2 DUP2 DUP8 PUSH1 0x20 ADD MLOAD DUP5 DUP2 MLOAD DUP2 LT PUSH3 0xA95 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP9 PUSH1 0x40 ADD MLOAD DUP6 DUP2 MLOAD DUP2 LT PUSH3 0xAAE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH3 0x110C PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST DUP6 PUSH1 0x20 ADD MLOAD DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xAD3 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH32 0xDD6D1C9BADB346DE6925B358A472C937B41698D2632696759E43FD6527FEEEC4 DUP9 PUSH1 0x40 ADD MLOAD DUP6 DUP2 MLOAD DUP2 LT PUSH3 0xB17 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x40 MLOAD PUSH3 0xB2E SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 PUSH3 0xB41 DUP2 PUSH3 0x1207 JUMP JUMPDEST POP PUSH1 0x1 ADD PUSH3 0xA36 JUMP JUMPDEST POP POP POP POP POP PUSH1 0x0 NOT DUP2 EQ PUSH1 0xF8 DUP2 SWAP1 SHL PUSH2 0x4A0 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0x60 SHL SUB NOT PUSH1 0x60 DUP5 SWAP1 SHL AND PUSH2 0x480 MSTORE PUSH3 0xB7E DUP4 PUSH1 0x2 PUSH3 0x1246 JUMP JUMPDEST PUSH3 0xB8B DUP4 PUSH1 0x3 PUSH3 0x1246 JUMP JUMPDEST DUP1 ISZERO PUSH3 0xBA5 JUMPI PUSH3 0xB9F DUP4 PUSH1 0x0 PUSH3 0x1246 JUMP JUMPDEST PUSH3 0xC64 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x178B2B93 PUSH1 0xE2 SHL DUP2 MSTORE PUSH3 0xC39 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP6 AND SWAP1 PUSH4 0x5E2CAE4C SWAP1 PUSH3 0xBD9 SWAP1 PUSH1 0x0 SWAP1 PUSH1 0x4 ADD PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0xBF2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0xC07 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0xC2D SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST DUP4 GT ISZERO PUSH2 0x258 PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH1 0x0 DUP1 MLOAD PUSH1 0x20 PUSH3 0x7DAA DUP4 CODECOPY DUP2 MLOAD SWAP2 MSTORE DUP4 PUSH1 0x40 MLOAD PUSH3 0xC5B SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 JUMPDEST DUP1 PUSH3 0xC71 JUMPI DUP2 PUSH3 0xC74 JUMP JUMPDEST PUSH1 0x0 JUMPDEST PUSH2 0x4C0 MSTORE POP POP POP PUSH2 0x1A0 DUP2 ADD MLOAD DUP1 MLOAD PUSH3 0xC97 SWAP2 PUSH1 0xD SWAP2 PUSH1 0x20 SWAP1 SWAP2 ADD SWAP1 PUSH3 0x170F JUMP JUMPDEST POP POP PUSH3 0x1D21 JUMP JUMPDEST PUSH3 0xCA9 PUSH3 0x1790 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 DUP4 PUSH1 0x80 ADD MLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xA0 ADD MLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xC0 ADD MLOAD DUP2 MSTORE POP SWAP1 POP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0xCE2 PUSH3 0x17B1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 PUSH3 0xD03 DUP5 PUSH1 0x80 ADD MLOAD ADDRESS PUSH3 0xD23 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xA0 ADD MLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP4 PUSH1 0xE0 ADD MLOAD ISZERO ISZERO DUP2 MSTORE POP SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x60 DUP3 MLOAD PUSH1 0x1 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP1 ISZERO PUSH3 0xD40 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH3 0xD6B JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP3 MLOAD PUSH1 0x0 EQ ISZERO PUSH3 0xDAE JUMPI DUP2 DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH3 0xD88 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE POP POP PUSH3 0xEB7 JUMP JUMPDEST DUP3 MLOAD JUMPDEST PUSH1 0x0 DUP2 GT DUP1 ISZERO PUSH3 0xDEA JUMPI POP DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 DUP4 SUB DUP2 MLOAD DUP2 LT PUSH3 0xDD7 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND GT JUMPDEST ISZERO PUSH3 0xE37 JUMPI DUP4 PUSH1 0x1 DUP3 SUB DUP2 MLOAD DUP2 LT PUSH3 0xE00 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xE15 JUMPI INVALID JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x20 SWAP3 DUP4 MUL SWAP2 SWAP1 SWAP2 ADD SWAP1 SWAP2 ADD MSTORE PUSH1 0x0 NOT ADD PUSH3 0xDB1 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0xE86 JUMPI DUP5 DUP2 DUP2 MLOAD DUP2 LT PUSH3 0xE50 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xE65 JUMPI INVALID JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x20 SWAP3 DUP4 MUL SWAP2 SWAP1 SWAP2 ADD SWAP1 SWAP2 ADD MSTORE PUSH1 0x1 ADD PUSH3 0xE3A JUMP JUMPDEST POP DUP3 DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0xE95 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE POP POP POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP2 PUSH3 0xECE JUMPI PUSH3 0xECE DUP2 PUSH3 0x13F1 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x6 SWAP1 JUMP JUMPDEST DUP1 PUSH3 0xECE DUP2 PUSH3 0x1406 JUMP JUMPDEST PUSH3 0xEFC PUSH3 0xEF1 PUSH3 0x148D JUMP JUMPDEST DUP3 LT ISZERO PUSH1 0xCB PUSH3 0xEBD JUMP JUMPDEST PUSH3 0xF15 PUSH3 0xF0A PUSH3 0x1496 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0xCA PUSH3 0xEBD JUMP JUMPDEST PUSH3 0xF37 DUP2 PUSH1 0xC0 PUSH1 0x3F PUSH1 0x8 SLOAD PUSH3 0x14A2 PUSH1 0x20 SHL PUSH3 0x1636 OR SWAP1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xA9BA3FFE0B6C366B81232CAAB38605A0699AD5398D6CCE76F91EE809E322DAFC SWAP1 PUSH3 0xF6C SWAP1 DUP4 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH3 0xF9F DUP5 ISZERO DUP1 PUSH3 0xF97 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH3 0xF94 JUMPI INVALID JUMPDEST DIV EQ JUMPDEST PUSH1 0x3 PUSH3 0xEBD JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH3 0xFB4 DUP2 DUP1 TIMESTAMP DUP1 PUSH3 0x14C7 JUMP JUMPDEST PUSH32 0xA0D01593E47E69D07E0CCD87BECE09411E07DD1ED40CA8F2E7AF2976542A0233 DUP2 PUSH1 0x40 MLOAD PUSH3 0xF6C SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH3 0xECE DUP3 DUP3 EQ PUSH1 0x67 PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ADDRESS EQ ISZERO PUSH3 0x1018 JUMPI POP PUSH8 0xDE0B6B3A7640000 PUSH3 0xCD3 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x313CE567 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x1054 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x1069 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x108F SWAP2 SWAP1 PUSH3 0x1BDB JUMP JUMPDEST PUSH1 0xFF AND SWAP1 POP PUSH1 0x0 PUSH3 0x10AE PUSH1 0x12 DUP4 PUSH3 0x153A PUSH1 0x20 SHL PUSH3 0x165E OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xA EXP PUSH8 0xDE0B6B3A7640000 MUL SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 DUP3 SHL NOT DUP5 AND DUP3 DUP5 PUSH3 0x10DB JUMPI PUSH1 0x0 PUSH3 0x10DE JUMP JUMPDEST PUSH1 0x1 JUMPDEST PUSH1 0xFF AND SWAP1 SHL OR SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH3 0x1107 DUP3 DUP5 EQ DUP1 ISZERO PUSH3 0x10FF JUMPI POP DUP2 DUP4 EQ JUMPDEST PUSH1 0x67 PUSH3 0xEBD JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x679AEFCE PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x1148 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x115D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x1183 SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SLOAD SWAP2 SWAP3 POP PUSH3 0x11B2 SWAP1 DUP3 SWAP1 DUP5 SWAP1 DUP7 SWAP1 PUSH3 0x1674 PUSH3 0x1552 DUP3 SHL OR SWAP1 SHR JUMP JUMPDEST PUSH1 0x0 DUP7 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE MLOAD DUP6 SWAP1 PUSH32 0xB77A83204CA282E08DC3A65B0A1CA32EA4E6875C38EF0BF5BF75E52A67354FAC SWAP1 PUSH3 0x11F8 SWAP1 DUP6 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SLOAD SWAP1 PUSH3 0x1230 SWAP1 DUP3 SWAP1 PUSH3 0x16AC PUSH3 0x15AE DUP3 SHL OR SWAP1 SHR JUMP JUMPDEST PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 SWAP3 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x1A7C3263 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND SWAP1 PUSH4 0x1A7C3263 SWAP1 PUSH3 0x1277 SWAP1 DUP6 SWAP1 PUSH1 0x4 ADD PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH3 0x1290 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH3 0x12A5 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH3 0x12CB SWAP2 SWAP1 PUSH3 0x19EE JUMP JUMPDEST SWAP1 POP DUP2 PUSH3 0x130F JUMPI PUSH3 0x12E9 DUP2 PUSH3 0x15D9 PUSH1 0x20 SHL PUSH3 0x16C4 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH3 0x13C3 JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH3 0x1365 JUMPI PUSH3 0x132F DUP2 PUSH3 0x15D9 PUSH1 0x20 SHL PUSH3 0x16C4 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB SWAP3 SWAP1 SWAP3 AND PUSH9 0x10000000000000000 MUL PUSH1 0x1 PUSH1 0x40 SHL PUSH1 0x1 PUSH1 0x80 SHL SUB NOT SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH3 0x13C3 JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH3 0x13B6 JUMPI PUSH3 0x1385 DUP2 PUSH3 0x15D9 PUSH1 0x20 SHL PUSH3 0x16C4 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB SWAP3 SWAP1 SWAP3 AND PUSH1 0x1 PUSH1 0x80 SHL MUL PUSH1 0x1 PUSH1 0x80 SHL PUSH1 0x1 PUSH1 0xC0 SHL SUB NOT SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH3 0x13C3 JUMP JUMPDEST PUSH3 0x13C3 PUSH2 0x1BB PUSH3 0x13F1 JUMP JUMPDEST DUP2 PUSH1 0x0 DUP1 MLOAD PUSH1 0x20 PUSH3 0x7DAA DUP4 CODECOPY DUP2 MLOAD SWAP2 MSTORE DUP3 PUSH1 0x40 MLOAD PUSH3 0x13E4 SWAP2 SWAP1 PUSH3 0x1CAF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP JUMP JUMPDEST PUSH3 0x1403 DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH3 0x15F7 JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x2 DUP2 MLOAD LT ISZERO PUSH3 0x1417 JUMPI PUSH3 0x1403 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH3 0x1427 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH3 0x1107 JUMPI PUSH1 0x0 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH3 0x1451 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH3 0x1482 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND LT PUSH1 0x65 PUSH3 0xEBD PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH3 0x1438 JUMP JUMPDEST PUSH5 0xE8D4A51000 SWAP1 JUMP JUMPDEST PUSH8 0x16345785D8A0000 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0x14B1 DUP5 DUP5 DUP5 PUSH3 0x1658 JUMP JUMPDEST POP PUSH1 0x1 SWAP1 SHL PUSH1 0x0 NOT ADD DUP2 SHL NOT SWAP3 SWAP1 SWAP3 AND SWAP2 SHL OR SWAP1 JUMP JUMPDEST PUSH3 0x14E1 DUP2 PUSH1 0xC0 PUSH1 0x40 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x14FB DUP4 PUSH1 0x80 PUSH1 0x40 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x1514 DUP6 PUSH1 0x40 DUP1 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST PUSH3 0x152E DUP8 PUSH1 0x0 PUSH1 0x40 PUSH3 0x16B3 PUSH1 0x20 SHL PUSH3 0x16E1 OR PUSH1 0x20 SHR JUMP JUMPDEST OR OR OR PUSH1 0x9 SSTORE POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x154C DUP4 DUP4 GT ISZERO PUSH1 0x1 PUSH3 0xEBD JUMP JUMPDEST POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0x1567 PUSH1 0x60 DUP5 SWAP1 SHR ISZERO PUSH2 0x149 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x15A6 TIMESTAMP DUP4 ADD PUSH1 0xE0 PUSH1 0x20 PUSH3 0x1590 DUP7 PUSH1 0xC0 DUP4 DUP4 DUP13 DUP13 PUSH1 0x0 PUSH1 0x60 PUSH3 0x1636 PUSH3 0x14A2 DUP8 SHL OR DUP7 SHR JUMP JUMPDEST PUSH3 0x14A2 PUSH1 0x20 SHL PUSH3 0x1636 OR SWAP1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0xEB7 PUSH3 0x15BF DUP4 PUSH3 0x16C8 JUMP JUMPDEST PUSH1 0x60 DUP1 DUP6 PUSH3 0x14A2 PUSH1 0x20 SHL PUSH3 0x1636 OR SWAP1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0x0 PUSH3 0x15F3 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP4 GT ISZERO PUSH2 0x1BA PUSH3 0xEBD JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST PUSH3 0x1669 PUSH2 0x100 DUP4 LT PUSH1 0x64 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x16A2 PUSH1 0x1 DUP3 LT ISZERO DUP1 ISZERO PUSH3 0x169A JUMPI POP PUSH3 0x1696 PUSH1 0xFF DUP5 PUSH2 0x100 SUB PUSH3 0x16E8 PUSH1 0x20 SHL PUSH3 0x16F4 OR PUSH1 0x20 SHR JUMP JUMPDEST DUP3 GT ISZERO JUMPDEST PUSH1 0x64 PUSH3 0xEBD JUMP JUMPDEST PUSH3 0x1107 DUP4 DUP3 SHR ISZERO PUSH2 0x1B4 PUSH3 0xEBD JUMP JUMPDEST PUSH1 0x0 PUSH3 0x16C2 DUP5 DUP5 DUP5 PUSH3 0x1658 JUMP JUMPDEST POP POP SHL SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH3 0xEB7 PUSH1 0x0 PUSH1 0x60 DUP5 PUSH3 0x1700 PUSH1 0x20 SHL PUSH3 0x170A OR SWAP1 SWAP3 SWAP2 SWAP1 PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT PUSH3 0x16F9 JUMPI DUP2 PUSH3 0xF9F JUMP JUMPDEST POP SWAP1 SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x1 SWAP1 SHL PUSH1 0x0 NOT ADD SWAP2 SWAP1 SHR AND SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH3 0x1752 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x1782 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x1782 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x1782 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x1765 JUMP JUMPDEST POP PUSH3 0x15F3 SWAP3 SWAP2 POP PUSH3 0x17D4 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE POP SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x60 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 ISZERO ISZERO DUP2 MSTORE POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x15F3 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x17D5 JUMP JUMPDEST DUP1 MLOAD PUSH3 0xEB7 DUP2 PUSH3 0x1D0B JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x1809 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x1820 PUSH3 0x181A DUP3 PUSH3 0x1CDF JUMP JUMPDEST PUSH3 0x1CB8 JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH3 0x1842 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH3 0x186E JUMPI DUP2 MLOAD PUSH3 0x185B DUP2 PUSH3 0x1D0B JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH3 0x1845 JUMP JUMPDEST POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x188A JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x189B PUSH3 0x181A DUP3 PUSH3 0x1CDF JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH3 0x18BD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH3 0x186E JUMPI DUP2 MLOAD PUSH3 0x18D6 DUP2 PUSH3 0x1D0B JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH3 0x18C0 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x18FA JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x190B PUSH3 0x181A DUP3 PUSH3 0x1CDF JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH3 0x192D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH3 0x186E JUMPI DUP2 MLOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH3 0x1930 JUMP JUMPDEST DUP1 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH3 0xEB7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x1970 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH3 0x1986 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x20 PUSH3 0x199C PUSH1 0x1F DUP4 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH3 0x1CB8 JUMP JUMPDEST SWAP3 POP DUP2 DUP4 MSTORE DUP5 DUP2 DUP4 DUP7 ADD ADD GT ISZERO PUSH3 0x19B3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH3 0x19D3 JUMPI DUP5 DUP2 ADD DUP3 ADD MLOAD DUP5 DUP3 ADD DUP4 ADD MSTORE DUP2 ADD PUSH3 0x19B6 JUMP JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x19E5 JUMPI PUSH1 0x0 DUP3 DUP5 DUP7 ADD ADD MSTORE JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1A00 JUMPI DUP1 DUP2 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1A19 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH3 0xF9F DUP2 PUSH3 0x1D0B JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1A38 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP1 DUP3 GT ISZERO PUSH3 0x1A4F JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 DUP5 ADD SWAP2 POP PUSH2 0x1C0 DUP1 DUP4 DUP8 SUB SLT ISZERO PUSH3 0x1A66 JUMPI DUP4 DUP5 REVERT JUMPDEST PUSH3 0x1A71 DUP2 PUSH3 0x1CB8 JUMP JUMPDEST SWAP1 POP PUSH3 0x1A7F DUP7 DUP5 PUSH3 0x17EB JUMP JUMPDEST DUP2 MSTORE PUSH3 0x1A90 DUP7 PUSH1 0x20 DUP6 ADD PUSH3 0x17EB JUMP JUMPDEST PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1AA7 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1AB5 DUP8 DUP3 DUP7 ADD PUSH3 0x195F JUMP JUMPDEST PUSH1 0x40 DUP4 ADD MSTORE POP PUSH1 0x60 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1ACD JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1ADB DUP8 DUP3 DUP7 ADD PUSH3 0x195F JUMP JUMPDEST PUSH1 0x60 DUP4 ADD MSTORE POP PUSH1 0x80 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1AF3 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1B01 DUP8 DUP3 DUP7 ADD PUSH3 0x17F8 JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MSTORE POP PUSH1 0xA0 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1B19 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1B27 DUP8 DUP3 DUP7 ADD PUSH3 0x1879 JUMP JUMPDEST PUSH1 0xA0 DUP4 ADD MSTORE POP PUSH1 0xC0 DUP4 ADD MLOAD DUP3 DUP2 GT ISZERO PUSH3 0x1B3F JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH3 0x1B4D DUP8 DUP3 DUP7 ADD PUSH3 0x18E9 JUMP JUMPDEST PUSH1 0xC0 DUP4 ADD MSTORE POP PUSH3 0x1B62 DUP7 PUSH1 0xE0 DUP6 ADD PUSH3 0x194E JUMP JUMPDEST PUSH1 0xE0 DUP3 ADD MSTORE PUSH2 0x100 DUP4 DUP2 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x120 DUP1 DUP5 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x140 DUP1 DUP5 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x160 DUP1 DUP5 ADD MLOAD SWAP1 DUP3 ADD MSTORE PUSH2 0x180 PUSH3 0x1BA4 DUP8 DUP3 DUP7 ADD PUSH3 0x17EB JUMP JUMPDEST SWAP1 DUP3 ADD MSTORE PUSH2 0x1A0 DUP4 DUP2 ADD MLOAD DUP4 DUP2 GT ISZERO PUSH3 0x1BBC JUMPI DUP6 DUP7 REVERT JUMPDEST PUSH3 0x1BCA DUP9 DUP3 DUP8 ADD PUSH3 0x195F JUMP JUMPDEST SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE POP SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x1BED JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH3 0xF9F JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP3 ADD DUP6 DUP4 MSTORE PUSH1 0x20 PUSH1 0x60 DUP2 DUP6 ADD MSTORE DUP2 DUP7 MLOAD DUP1 DUP5 MSTORE PUSH1 0x80 DUP7 ADD SWAP2 POP DUP3 DUP9 ADD SWAP4 POP DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0x1C4A JUMPI PUSH3 0x1C37 DUP6 MLOAD PUSH3 0x1CFF JUMP JUMPDEST DUP4 MSTORE SWAP4 DUP4 ADD SWAP4 SWAP2 DUP4 ADD SWAP2 PUSH1 0x1 ADD PUSH3 0x1C22 JUMP JUMPDEST POP POP DUP5 DUP2 SUB PUSH1 0x40 DUP7 ADD MSTORE DUP6 MLOAD DUP1 DUP3 MSTORE SWAP1 DUP3 ADD SWAP3 POP DUP2 DUP7 ADD SWAP1 DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0x1C8C JUMPI PUSH3 0x1C79 DUP4 MLOAD PUSH3 0x1CFF JUMP JUMPDEST DUP6 MSTORE SWAP4 DUP4 ADD SWAP4 SWAP2 DUP4 ADD SWAP2 PUSH1 0x1 ADD PUSH3 0x1C64 JUMP JUMPDEST POP SWAP3 SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH1 0x3 DUP4 LT PUSH3 0x1CA9 JUMPI INVALID JUMPDEST SWAP2 SWAP1 MSTORE SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH3 0x1CD7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH3 0x1CF5 JUMPI DUP1 DUP2 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH3 0x1403 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x80 MLOAD PUSH1 0xA0 MLOAD PUSH1 0xC0 MLOAD PUSH1 0xE0 MLOAD PUSH2 0x100 MLOAD PUSH1 0x60 SHR PUSH2 0x120 MLOAD PUSH1 0x60 SHR PUSH2 0x140 MLOAD PUSH2 0x160 MLOAD PUSH2 0x180 MLOAD PUSH2 0x1A0 MLOAD PUSH1 0x60 SHR PUSH2 0x1C0 MLOAD PUSH2 0x1E0 MLOAD PUSH2 0x200 MLOAD PUSH1 0x60 SHR PUSH2 0x220 MLOAD PUSH1 0x60 SHR PUSH2 0x240 MLOAD PUSH1 0x60 SHR PUSH2 0x260 MLOAD PUSH1 0x60 SHR PUSH2 0x280 MLOAD PUSH1 0x60 SHR PUSH2 0x2A0 MLOAD PUSH1 0x60 SHR PUSH2 0x2C0 MLOAD PUSH2 0x2E0 MLOAD PUSH2 0x300 MLOAD PUSH2 0x320 MLOAD PUSH2 0x340 MLOAD PUSH2 0x360 MLOAD PUSH2 0x380 MLOAD PUSH1 0x60 SHR PUSH2 0x3A0 MLOAD PUSH1 0x60 SHR PUSH2 0x3C0 MLOAD PUSH1 0x60 SHR PUSH2 0x3E0 MLOAD PUSH1 0x60 SHR PUSH2 0x400 MLOAD PUSH1 0x60 SHR PUSH2 0x420 MLOAD PUSH1 0x60 SHR PUSH2 0x440 MLOAD PUSH2 0x460 MLOAD PUSH1 0xF8 SHR PUSH2 0x480 MLOAD PUSH1 0x60 SHR PUSH2 0x4A0 MLOAD PUSH1 0xF8 SHR PUSH2 0x4C0 MLOAD PUSH2 0x5ED8 PUSH3 0x1ED2 PUSH1 0x0 CODECOPY DUP1 PUSH2 0xE40 MSTORE POP DUP1 PUSH2 0x91D MSTORE POP DUP1 PUSH2 0x89D MSTORE DUP1 PUSH2 0x8C8 MSTORE DUP1 PUSH2 0x8F3 MSTORE POP DUP1 PUSH2 0xFEF MSTORE DUP1 PUSH2 0x1277 MSTORE POP DUP1 PUSH2 0x2B23 MSTORE POP DUP1 PUSH2 0x1C87 MSTORE POP DUP1 PUSH2 0x1C57 MSTORE POP DUP1 PUSH2 0x1C27 MSTORE POP DUP1 PUSH2 0x1BF7 MSTORE POP DUP1 PUSH2 0x1BC7 MSTORE POP DUP1 PUSH2 0x1B97 MSTORE POP DUP1 PUSH2 0x2FB6 MSTORE POP DUP1 PUSH2 0x2F86 MSTORE POP DUP1 PUSH2 0x2F56 MSTORE POP DUP1 PUSH2 0x2F26 MSTORE POP DUP1 PUSH2 0x2EF6 MSTORE POP DUP1 PUSH2 0x2EC6 MSTORE POP DUP1 PUSH2 0x1F82 MSTORE POP DUP1 PUSH2 0x1F40 MSTORE POP DUP1 PUSH2 0x1EFE MSTORE POP DUP1 PUSH2 0x1EBC MSTORE POP DUP1 PUSH2 0x1E7A MSTORE POP DUP1 PUSH2 0x1E38 MSTORE POP DUP1 PUSH2 0x1080 MSTORE POP DUP1 PUSH2 0x1739 MSTORE POP DUP1 PUSH2 0x12D3 MSTORE POP DUP1 PUSH2 0xBFF MSTORE POP DUP1 PUSH2 0x1B6B MSTORE POP DUP1 PUSH2 0x1B47 MSTORE POP DUP1 PUSH2 0x1180 MSTORE POP DUP1 PUSH2 0x115C MSTORE POP DUP1 PUSH2 0x10B8 MSTORE POP DUP1 PUSH2 0x2D34 MSTORE POP DUP1 PUSH2 0x2D76 MSTORE POP DUP1 PUSH2 0x2D55 MSTORE POP PUSH2 0x5ED8 PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x383 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x70464016 GT PUSH2 0x1DE JUMPI DUP1 PUSH4 0x95D89B41 GT PUSH2 0x10F JUMPI DUP1 PUSH4 0xD2946C2B GT PUSH2 0xAD JUMPI DUP1 PUSH4 0xDDF4627B GT PUSH2 0x7C JUMPI DUP1 PUSH4 0xDDF4627B EQ PUSH2 0x6F6 JUMPI DUP1 PUSH4 0xEB0F24D6 EQ PUSH2 0x6FE JUMPI DUP1 PUSH4 0xED24911D EQ PUSH2 0x706 JUMPI DUP1 PUSH4 0xF4B7964D EQ PUSH2 0x70E JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0xD2946C2B EQ PUSH2 0x6B5 JUMPI DUP1 PUSH4 0xD505ACCF EQ PUSH2 0x6BD JUMPI DUP1 PUSH4 0xD5C096C4 EQ PUSH2 0x6D0 JUMPI DUP1 PUSH4 0xDD62ED3E EQ PUSH2 0x6E3 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0xAAABADC5 GT PUSH2 0xE9 JUMPI DUP1 PUSH4 0xAAABADC5 EQ PUSH2 0x68A JUMPI DUP1 PUSH4 0xAB7759F1 EQ PUSH2 0x692 JUMPI DUP1 PUSH4 0xB35056B8 EQ PUSH2 0x6A5 JUMPI DUP1 PUSH4 0xB7B814FC EQ PUSH2 0x6AD JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x65C JUMPI DUP1 PUSH4 0xA457C2D7 EQ PUSH2 0x664 JUMPI DUP1 PUSH4 0xA9059CBB EQ PUSH2 0x677 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x8456CB59 GT PUSH2 0x17C JUMPI DUP1 PUSH4 0x87EC6817 GT PUSH2 0x156 JUMPI DUP1 PUSH4 0x87EC6817 EQ PUSH2 0x619 JUMPI DUP1 PUSH4 0x893D20E8 EQ PUSH2 0x62C JUMPI DUP1 PUSH4 0x8D928AF8 EQ PUSH2 0x641 JUMPI DUP1 PUSH4 0x90193B7C EQ PUSH2 0x649 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x8456CB59 EQ PUSH2 0x5F6 JUMPI DUP1 PUSH4 0x851C1BB3 EQ PUSH2 0x5FE JUMPI DUP1 PUSH4 0x876F303B EQ PUSH2 0x611 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x77151BEE GT PUSH2 0x1B8 JUMPI DUP1 PUSH4 0x77151BEE EQ PUSH2 0x5B0 JUMPI DUP1 PUSH4 0x7ECEBE00 EQ PUSH2 0x5B8 JUMPI DUP1 PUSH4 0x7F1260D1 EQ PUSH2 0x5CB JUMPI DUP1 PUSH4 0x82687A56 EQ PUSH2 0x5EE JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x70464016 EQ PUSH2 0x569 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x57C JUMPI DUP1 PUSH4 0x74F3B009 EQ PUSH2 0x58F JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x3644E515 GT PUSH2 0x2B8 JUMPI DUP1 PUSH4 0x54A844BA GT PUSH2 0x256 JUMPI DUP1 PUSH4 0x55C67628 GT PUSH2 0x230 JUMPI DUP1 PUSH4 0x55C67628 EQ PUSH2 0x521 JUMPI DUP1 PUSH4 0x6028BFD4 EQ PUSH2 0x529 JUMPI DUP1 PUSH4 0x679AEFCE EQ PUSH2 0x54A JUMPI DUP1 PUSH4 0x6DACCFFA EQ PUSH2 0x552 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x54A844BA EQ PUSH2 0x4FE JUMPI DUP1 PUSH4 0x54DEA00A EQ PUSH2 0x506 JUMPI DUP1 PUSH4 0x54FD4D50 EQ PUSH2 0x519 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x39509351 GT PUSH2 0x292 JUMPI DUP1 PUSH4 0x39509351 EQ PUSH2 0x4BA JUMPI DUP1 PUSH4 0x3C975D51 EQ PUSH2 0x4CD JUMPI DUP1 PUSH4 0x3F4BA83A EQ PUSH2 0x4E3 JUMPI DUP1 PUSH4 0x50DD6ED9 EQ PUSH2 0x4EB JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x3644E515 EQ PUSH2 0x497 JUMPI DUP1 PUSH4 0x38E9922E EQ PUSH2 0x49F JUMPI DUP1 PUSH4 0x38FFF2D0 EQ PUSH2 0x4B2 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1C0DE051 GT PUSH2 0x325 JUMPI DUP1 PUSH4 0x23B872DD GT PUSH2 0x2FF JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x449 JUMPI DUP1 PUSH4 0x2DF2C7C0 EQ PUSH2 0x45C JUMPI DUP1 PUSH4 0x2F1A0BC9 EQ PUSH2 0x46F JUMPI DUP1 PUSH4 0x313CE567 EQ PUSH2 0x482 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1C0DE051 EQ PUSH2 0x408 JUMPI DUP1 PUSH4 0x1DD746EA EQ PUSH2 0x41F JUMPI DUP1 PUSH4 0x238A2D59 EQ PUSH2 0x434 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x95EA7B3 GT PUSH2 0x361 JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x3CE JUMPI DUP1 PUSH4 0xDA0669C EQ PUSH2 0x3EE JUMPI DUP1 PUSH4 0x15B0015B EQ PUSH2 0x3F8 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x400 JUMPI PUSH2 0x383 JUMP JUMPDEST DUP1 PUSH4 0x1EC954A EQ PUSH2 0x388 JUMPI DUP1 PUSH4 0x4842D4C EQ PUSH2 0x3B1 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x3B9 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x39B PUSH2 0x396 CALLDATASIZE PUSH1 0x4 PUSH2 0x58C7 JUMP JUMPDEST PUSH2 0x721 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x39B PUSH2 0x7C7 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0x7D6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5DBE JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x3DC CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x86C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x883 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x3E1 PUSH2 0x91B JUMP JUMPDEST PUSH2 0x39B PUSH2 0x93F JUMP JUMPDEST PUSH2 0x410 PUSH2 0x945 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5CD0 JUMP JUMPDEST PUSH2 0x427 PUSH2 0x96E JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5C8D JUMP JUMPDEST PUSH2 0x43C PUSH2 0x978 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5BA9 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x457 CALLDATASIZE PUSH1 0x4 PUSH2 0x5454 JUMP JUMPDEST PUSH2 0xA13 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x46A CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xA87 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x47D CALLDATASIZE PUSH1 0x4 PUSH2 0x5A16 JUMP JUMPDEST PUSH2 0xAEB JUMP JUMPDEST PUSH2 0x48A PUSH2 0xBCE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5E29 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xBD7 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x4AD CALLDATASIZE PUSH1 0x4 PUSH2 0x59E6 JUMP JUMPDEST PUSH2 0xBE1 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xBFD JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x4C8 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0xC21 JUMP JUMPDEST PUSH2 0x4D5 PUSH2 0xC5C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5E00 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0xC87 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x4F9 CALLDATASIZE PUSH1 0x4 PUSH2 0x5702 JUMP JUMPDEST PUSH2 0xC99 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0xCB7 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x514 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xCC9 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0xCE4 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x53C PUSH2 0x537 CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0xD58 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5DD1 JUMP JUMPDEST PUSH2 0x39B PUSH2 0xD8F JUMP JUMPDEST PUSH2 0x55A PUSH2 0xDFB JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5DEA JUMP JUMPDEST PUSH2 0x39B PUSH2 0x577 CALLDATASIZE PUSH1 0x4 PUSH2 0x59E6 JUMP JUMPDEST PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x58A CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0xECF JUMP JUMPDEST PUSH2 0x5A2 PUSH2 0x59D CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0xEEA JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP3 SWAP2 SWAP1 PUSH2 0x5CA0 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0xFED JUMP JUMPDEST PUSH2 0x39B PUSH2 0x5C6 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x1011 JUMP JUMPDEST PUSH2 0x5DE PUSH2 0x5D9 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x101C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5E0E JUMP JUMPDEST PUSH2 0x39B PUSH2 0x107E JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x10A2 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x60C CALLDATASIZE PUSH1 0x4 PUSH2 0x56BE JUMP JUMPDEST PUSH2 0x10B4 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x1106 JUMP JUMPDEST PUSH2 0x53C PUSH2 0x627 CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0x1134 JUMP JUMPDEST PUSH2 0x634 PUSH2 0x115A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3A8 SWAP2 SWAP1 PUSH2 0x5B95 JUMP JUMPDEST PUSH2 0x634 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x39B PUSH2 0x657 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x11A2 JUMP JUMPDEST PUSH2 0x3C1 PUSH2 0x11BD JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x672 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x121E JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x685 CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x125C JUMP JUMPDEST PUSH2 0x634 PUSH2 0x1269 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x6A0 CALLDATASIZE PUSH1 0x4 PUSH2 0x5400 JUMP JUMPDEST PUSH2 0x1273 JUMP JUMPDEST PUSH2 0x3E1 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x12BF JUMP JUMPDEST PUSH2 0x634 PUSH2 0x12D1 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x6CB CALLDATASIZE PUSH1 0x4 PUSH2 0x5494 JUMP JUMPDEST PUSH2 0x12F5 JUMP JUMPDEST PUSH2 0x5A2 PUSH2 0x6DE CALLDATASIZE PUSH1 0x4 PUSH2 0x561B JUMP JUMPDEST PUSH2 0x1380 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x6F1 CALLDATASIZE PUSH1 0x4 PUSH2 0x541C JUMP JUMPDEST PUSH2 0x14A3 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x14E0 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x14E6 JUMP JUMPDEST PUSH2 0x39B PUSH2 0x1512 JUMP JUMPDEST PUSH2 0x3F6 PUSH2 0x71C CALLDATASIZE PUSH1 0x4 PUSH2 0x5504 JUMP JUMPDEST PUSH2 0x151C JUMP JUMPDEST PUSH1 0x0 DUP5 PUSH1 0x80 ADD MLOAD PUSH2 0x74E PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH1 0xCD PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x763 PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST DUP3 EQ PUSH2 0x1F4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x76B PUSH2 0x1727 JUMP JUMPDEST PUSH2 0x77D DUP5 DUP5 PUSH2 0x778 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0x175B JUMP JUMPDEST PUSH1 0x60 PUSH2 0x787 PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP8 MLOAD PUSH1 0x1 DUP2 GT ISZERO PUSH2 0x798 JUMPI INVALID JUMPDEST EQ PUSH2 0x7AF JUMPI PUSH2 0x7AA DUP8 DUP8 DUP8 DUP8 DUP6 PUSH2 0x180C JUMP JUMPDEST PUSH2 0x7BC JUMP JUMPDEST PUSH2 0x7BC DUP8 DUP8 DUP8 DUP8 DUP6 PUSH2 0x1865 JUMP JUMPDEST SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x18A0 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x845 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x879 CALLER DUP5 DUP5 PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x88B PUSH2 0x190F JUMP JUMPDEST PUSH2 0x893 PUSH2 0x91B JUMP JUMPDEST ISZERO PUSH2 0x8C3 JUMPI PUSH2 0x8C3 PUSH32 0x0 PUSH1 0x0 PUSH2 0x1984 JUMP JUMPDEST PUSH2 0x8EE PUSH32 0x0 PUSH1 0x2 PUSH2 0x1984 JUMP JUMPDEST PUSH2 0x919 PUSH32 0x0 PUSH1 0x3 PUSH2 0x1984 JUMP JUMPDEST JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x2 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x952 PUSH2 0x1B28 JUMP JUMPDEST ISZERO SWAP3 POP PUSH2 0x95D PUSH2 0x1B45 JUMP JUMPDEST SWAP2 POP PUSH2 0x967 PUSH2 0x1B69 JUMP JUMPDEST SWAP1 POP SWAP1 SWAP2 SWAP3 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x7D1 PUSH2 0x1773 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x984 PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x99F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x9C9 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0xA0C JUMPI PUSH2 0x9E0 DUP2 PUSH2 0x1B8D JUMP JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x9EC JUMPI INVALID JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x20 SWAP3 DUP4 MUL SWAP2 SWAP1 SWAP2 ADD SWAP1 SWAP2 ADD MSTORE PUSH1 0x1 ADD PUSH2 0x9CF JUMP JUMPDEST POP SWAP2 POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xA20 DUP6 CALLER PUSH2 0x14A3 JUMP JUMPDEST SWAP1 POP PUSH2 0xA44 CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND EQ DUP1 PUSH2 0xA3C JUMPI POP DUP4 DUP3 LT ISZERO JUMPDEST PUSH2 0x19E PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xA4F DUP6 DUP6 DUP6 PUSH2 0x1CB6 JUMP JUMPDEST CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND EQ DUP1 ISZERO SWAP1 PUSH2 0xA6A JUMPI POP PUSH1 0x0 NOT DUP2 EQ ISZERO JUMPDEST ISZERO PUSH2 0xA7C JUMPI PUSH2 0xA7C DUP6 CALLER DUP6 DUP5 SUB PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0xA8F PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xA9A DUP3 PUSH2 0x1E34 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0xAA7 DUP3 PUSH2 0x1B8D JUMP JUMPDEST SWAP1 POP PUSH2 0xAC0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD PUSH2 0xAD8 SWAP1 PUSH2 0x1FC2 JUMP JUMPDEST SWAP1 POP PUSH2 0xAE5 DUP4 DUP4 DUP4 PUSH2 0x1FD1 JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0xAF3 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xB03 PUSH1 0x1 DUP4 LT ISZERO PUSH2 0x12C PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xB14 PUSH2 0x1388 DUP4 GT ISZERO PUSH2 0x12D PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB20 DUP3 TIMESTAMP PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0xB34 PUSH3 0x15180 DUP3 LT ISZERO PUSH2 0x13D PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0xB3F PUSH2 0x20E2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0xB50 DUP2 ISZERO PUSH2 0x13E PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB5E DUP7 PUSH2 0x3E8 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP4 DUP3 GT PUSH2 0xB8D JUMPI PUSH2 0xB88 PUSH2 0xB79 PUSH3 0x15180 DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP5 DUP9 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2156 JUMP JUMPDEST PUSH2 0xBA7 JUMP JUMPDEST PUSH2 0xBA7 PUSH2 0xB9D PUSH3 0x15180 DUP5 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP7 DUP9 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH2 0xBB9 PUSH1 0x2 DUP3 GT ISZERO PUSH2 0x13F PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xBC5 DUP5 DUP4 TIMESTAMP DUP10 PUSH2 0x2189 JUMP JUMPDEST POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x5 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x1512 JUMP JUMPDEST PUSH2 0xBE9 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xBF1 PUSH2 0x21D8 JUMP JUMPDEST PUSH2 0xBFA DUP2 PUSH2 0x21EB JUMP JUMPDEST POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP5 MSTORE SWAP1 SWAP2 MSTORE DUP2 KECCAK256 SLOAD SWAP1 SWAP2 PUSH2 0x879 SWAP2 DUP6 SWAP1 PUSH2 0xC57 SWAP1 DUP7 PUSH2 0x2264 JUMP JUMPDEST PUSH2 0x18A7 JUMP JUMPDEST PUSH1 0xC SLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 PUSH2 0xC71 DUP2 PUSH1 0xE9 PUSH1 0x17 PUSH2 0x170A JUMP JUMPDEST SWAP3 POP PUSH2 0xC80 DUP2 PUSH1 0x0 PUSH1 0xE9 PUSH2 0x170A JUMP JUMPDEST SWAP2 POP POP SWAP1 SWAP2 JUMP JUMPDEST PUSH2 0xC8F PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x0 PUSH2 0x2276 JUMP JUMPDEST PUSH2 0xCA1 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0xCA9 PUSH2 0x21D8 JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x22E9 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0xCBF PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x1 PUSH2 0x23DE JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0xCD7 DUP4 PUSH2 0x1E34 JUMP JUMPDEST PUSH2 0x2435 JUMP JUMPDEST SWAP1 POP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0xD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH1 0x0 SWAP1 PUSH2 0x7D1 SWAP1 PUSH1 0xC0 PUSH1 0x3F PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0xD6E DUP7 MLOAD PUSH2 0xD69 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0xD83 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 PUSH2 0x2488 PUSH2 0x24AA PUSH2 0x2513 JUMP JUMPDEST SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0xDA1 PUSH2 0x263D JUMP JUMPDEST SWAP4 SWAP9 POP SWAP2 SWAP7 POP SWAP5 POP SWAP3 POP SWAP1 POP PUSH1 0x0 PUSH2 0xDB9 DUP6 DUP6 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0xDC5 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP5 DUP3 EQ PUSH2 0xDE0 JUMPI PUSH2 0xDDB DUP3 DUP10 PUSH2 0x272D JUMP JUMPDEST PUSH2 0xDE2 JUMP JUMPDEST DUP4 JUMPDEST SWAP1 POP PUSH2 0xDEE DUP2 DUP5 PUSH2 0x288F JUMP JUMPDEST SWAP9 POP POP POP POP POP POP POP POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0xE08 PUSH2 0x20E2 JUMP JUMPDEST SWAP1 SWAP5 SWAP1 SWAP4 POP PUSH2 0x3E8 SWAP3 POP SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xE20 PUSH2 0x12AE JUMP JUMPDEST ISZERO PUSH2 0xE2D JUMPI POP PUSH1 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH2 0xE79 JUMPI PUSH2 0xE3A PUSH2 0x91B JUMP JUMPDEST PUSH2 0xE64 JUMPI PUSH32 0x0 PUSH2 0xE72 JUMP JUMPDEST PUSH1 0xB SLOAD PUSH8 0xFFFFFFFFFFFFFFFF AND JUMPDEST SWAP1 POP PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH2 0xEA1 JUMPI POP PUSH1 0xB SLOAD PUSH9 0x10000000000000000 SWAP1 DIV PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH2 0xEC4 JUMPI POP PUSH1 0xB SLOAD PUSH1 0x1 PUSH1 0x80 SHL SWAP1 DIV PUSH8 0xFFFFFFFFFFFFFFFF AND PUSH2 0xCDF JUMP JUMPDEST PUSH2 0xCDF PUSH2 0x1BB PUSH2 0x28E0 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x60 DUP1 DUP9 PUSH2 0xEF9 PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH2 0xF04 PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0xF11 DUP7 PUSH2 0x28F0 JUMP JUMPDEST ISZERO PUSH2 0xF39 JUMPI PUSH2 0xF1E PUSH2 0x291F JUMP JUMPDEST PUSH2 0xF30 DUP10 PUSH2 0xF2A PUSH2 0x93F JUMP JUMPDEST DUP9 PUSH2 0x2932 JUMP JUMPDEST SWAP3 POP SWAP1 POP PUSH2 0xF8B JUMP JUMPDEST PUSH2 0xF41 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0xF4B PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0xF57 DUP11 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0xF7B DUP14 DUP14 DUP14 DUP14 DUP14 PUSH2 0xF67 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0xF71 JUMPI DUP14 PUSH2 0xF74 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP8 DUP15 PUSH2 0x2488 JUMP JUMPDEST SWAP4 POP SWAP2 POP PUSH2 0xF89 DUP4 DUP3 PUSH2 0x24AA JUMP JUMPDEST POP JUMPDEST PUSH2 0xF95 DUP12 DUP3 PUSH2 0x29E0 JUMP JUMPDEST DUP2 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0xFAE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0xFD8 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP5 POP SWAP5 POP POP POP JUMPDEST POP SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x11A2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xA PUSH1 0x0 PUSH2 0x1031 DUP9 PUSH2 0x1E34 JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 ADD PUSH1 0x0 KECCAK256 SLOAD SWAP1 POP PUSH2 0x1052 DUP2 ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x105B DUP2 PUSH2 0x29EA JUMP JUMPDEST SWAP5 POP PUSH2 0x1066 DUP2 PUSH2 0x29F8 JUMP JUMPDEST SWAP4 POP PUSH2 0x1071 DUP2 PUSH2 0x2A06 JUMP JUMPDEST SWAP6 SWAP8 SWAP5 SWAP7 POP SWAP5 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH2 0x10AA PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x1 PUSH2 0x2276 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x10E9 SWAP3 SWAP2 SWAP1 PUSH2 0x5B52 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x1113 PUSH2 0x263D JUMP JUMPDEST POP POP SWAP3 POP SWAP3 POP POP PUSH2 0x112D DUP2 DUP4 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP3 POP POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x1145 DUP7 MLOAD PUSH2 0xD69 PUSH2 0x1737 JUMP JUMPDEST PUSH2 0xD83 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 DUP10 PUSH2 0x2A28 PUSH2 0x2A39 PUSH2 0x2513 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x4 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x862 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x837 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x862 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x122B CALLER DUP6 PUSH2 0x14A3 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 LT PUSH2 0x1245 JUMPI PUSH2 0x1240 CALLER DUP6 PUSH1 0x0 PUSH2 0x18A7 JUMP JUMPDEST PUSH2 0x1252 JUMP JUMPDEST PUSH2 0x1252 CALLER DUP6 DUP6 DUP5 SUB PUSH2 0x18A7 JUMP JUMPDEST POP PUSH1 0x1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x879 CALLER DUP5 DUP5 PUSH2 0x1CB6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x2AA2 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP1 ISZERO PUSH2 0xCDC JUMPI POP PUSH2 0xCDC PUSH2 0x12A9 DUP4 PUSH2 0x1E34 JUMP JUMPDEST PUSH2 0x2B1C JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH1 0x0 SWAP1 PUSH2 0x7D1 SWAP1 PUSH1 0xFF PUSH2 0x2B47 JUMP JUMPDEST PUSH2 0x12C7 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x919 PUSH1 0x0 PUSH2 0x23DE JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x6E71EDAE12B1B97F4D1F60370FEF10105FA2FAAE0126114A169C64845D6126C9 DUP9 DUP9 DUP9 PUSH2 0x1324 DUP13 PUSH2 0x11A2 JUMP JUMPDEST DUP10 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x133A SWAP7 SWAP6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5D10 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP PUSH2 0x136B DUP9 DUP3 PUSH2 0x1362 DUP8 DUP8 DUP8 PUSH2 0x2B51 JUMP JUMPDEST DUP9 PUSH2 0x1F8 PUSH2 0x2B90 JUMP JUMPDEST PUSH2 0x1376 DUP9 DUP9 DUP9 PUSH2 0x18A7 JUMP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP1 DUP9 PUSH2 0x138F PUSH2 0x733 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x139A PUSH2 0x759 PUSH2 0xBFD JUMP JUMPDEST PUSH2 0x13A2 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x13AC PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0x13B6 PUSH2 0x93F JUMP JUMPDEST PUSH2 0x1463 JUMPI PUSH1 0x0 PUSH1 0x60 PUSH2 0x13CB DUP14 DUP14 DUP14 DUP7 DUP12 PUSH2 0x2BE7 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x13E4 PUSH2 0x13DA PUSH2 0x18A0 JUMP JUMPDEST DUP4 LT ISZERO PUSH1 0xCC PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x13F6 PUSH1 0x0 PUSH2 0x13F1 PUSH2 0x18A0 JUMP JUMPDEST PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x1409 DUP12 PUSH2 0x1402 PUSH2 0x18A0 JUMP JUMPDEST DUP5 SUB PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x1413 DUP2 DUP5 PUSH2 0x2A39 JUMP JUMPDEST DUP1 DUP11 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x142C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1456 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP6 POP SWAP6 POP POP POP POP PUSH2 0xFE0 JUMP JUMPDEST PUSH2 0x146D DUP9 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x1495 DUP14 DUP14 DUP14 DUP14 DUP14 PUSH2 0x1481 PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x148B JUMPI DUP14 PUSH2 0x148E JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP10 DUP15 PUSH2 0x2A28 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x1409 DUP12 DUP4 PUSH2 0x2CC0 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x14AD PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x14CF JUMPI POP PUSH1 0x0 NOT PUSH2 0x87D JUMP JUMPDEST PUSH2 0x14D9 DUP4 DUP4 PUSH2 0x2CCA JUMP JUMPDEST SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 NOT DUP2 JUMP JUMPDEST PUSH2 0x14EE PUSH2 0x20B4 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x14F9 PUSH2 0x20E2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x1509 DUP2 PUSH2 0x140 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0xCB3 DUP3 PUSH2 0x2CF5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7D1 PUSH2 0x2D30 JUMP JUMPDEST PUSH2 0x1524 PUSH2 0x20B4 JUMP JUMPDEST PUSH2 0x152C PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1537 DUP4 PUSH2 0x1E34 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x1544 DUP3 PUSH2 0x1B8D JUMP JUMPDEST SWAP1 POP PUSH2 0x155D PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND ISZERO ISZERO PUSH2 0x155 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1568 DUP3 DUP3 DUP6 PUSH2 0x1FD1 JUMP JUMPDEST DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH32 0xDD6D1C9BADB346DE6925B358A472C937B41698D2632696759E43FD6527FEEEC4 DUP6 PUSH1 0x40 MLOAD PUSH2 0x15A2 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP POP JUMP JUMPDEST DUP1 PUSH2 0xCB3 DUP2 PUSH2 0x2DCD JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x15DE DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST DIV EQ JUMPDEST PUSH1 0x3 PUSH2 0x1719 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0xCB3 DUP2 DUP4 EQ PUSH1 0x67 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 DUP3 SHL NOT DUP5 AND DUP3 DUP5 PUSH2 0x1608 JUMPI PUSH1 0x0 PUSH2 0x160B JUMP JUMPDEST PUSH1 0x1 JUMPDEST PUSH1 0xFF AND SWAP1 SHL OR SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0x1631 DUP3 DUP5 EQ DUP1 ISZERO PUSH2 0x162A JUMPI POP DUP2 DUP4 EQ JUMPDEST PUSH1 0x67 PUSH2 0x1719 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1643 DUP5 DUP5 DUP5 PUSH2 0x2E46 JUMP JUMPDEST POP DUP3 DUP3 SHL PUSH1 0x0 NOT PUSH1 0x1 DUP4 SHL ADD DUP4 SHL NOT DUP6 AND OR JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x166E DUP4 DUP4 GT ISZERO PUSH1 0x1 PUSH2 0x1719 JUMP JUMPDEST POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1687 PUSH1 0x60 DUP5 SWAP1 SHR ISZERO PUSH2 0x149 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1656 TIMESTAMP DUP4 ADD PUSH1 0xE0 PUSH1 0x20 PUSH2 0x16A4 DUP7 PUSH1 0xC0 DUP4 DUP4 DUP13 DUP13 PUSH1 0x0 PUSH1 0x60 PUSH2 0x1636 JUMP JUMPDEST SWAP3 SWAP2 SWAP1 PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0x16BA DUP4 PUSH2 0x29EA JUMP JUMPDEST DUP4 SWAP1 PUSH1 0x60 DUP1 PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x16DD PUSH8 0xFFFFFFFFFFFFFFFF DUP4 GT ISZERO PUSH2 0x1BA PUSH2 0x1719 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x16EE DUP5 DUP5 DUP5 PUSH2 0x2E46 JUMP JUMPDEST POP POP SHL SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT PUSH2 0x1703 JUMPI DUP2 PUSH2 0x15DE JUMP JUMPDEST POP SWAP1 SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x1 SWAP1 SHL PUSH1 0x0 NOT ADD SWAP2 SWAP1 SHR AND SWAP1 JUMP JUMPDEST DUP2 PUSH2 0xCB3 JUMPI PUSH2 0xCB3 DUP2 PUSH2 0x28E0 JUMP JUMPDEST PUSH2 0x172F PUSH2 0x2E8C JUMP JUMPDEST PUSH2 0x919 PUSH2 0x2E94 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH2 0x1631 DUP2 DUP5 LT DUP1 ISZERO PUSH2 0x176C JUMPI POP DUP2 DUP4 LT JUMPDEST PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x177F PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x179A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x17C4 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0xA0C JUMPI PUSH2 0x17ED PUSH2 0x17DE DUP3 PUSH2 0x2435 JUMP JUMPDEST PUSH2 0x17E7 DUP4 PUSH2 0x2EBC JUMP JUMPDEST SWAP1 PUSH2 0x2FDA JUMP JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x17F9 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x17CA JUMP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ DUP1 PUSH2 0x1836 JUMPI POP PUSH1 0x40 DUP7 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ JUMPDEST PUSH2 0x184C JUMPI PUSH2 0x1847 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3006 JUMP JUMPDEST PUSH2 0x1859 JUMP JUMPDEST PUSH2 0x1859 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3070 JUMP JUMPDEST SWAP1 POP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP6 ADD MLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ DUP1 PUSH2 0x188F JUMPI POP PUSH1 0x40 DUP7 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ADDRESS EQ JUMPDEST PUSH2 0x184C JUMPI PUSH2 0x1847 DUP7 DUP7 DUP7 DUP7 DUP7 PUSH2 0x3174 JUMP JUMPDEST PUSH3 0xF4240 SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 DUP8 AND DUP1 DUP5 MSTORE SWAP5 SWAP1 SWAP2 MSTORE SWAP1 DUP2 SWAP1 KECCAK256 DUP5 SWAP1 SSTORE MLOAD PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP1 PUSH2 0x1902 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP POP JUMP JUMPDEST PUSH2 0x1917 PUSH2 0x1D96 JUMP JUMPDEST PUSH2 0x191F PUSH2 0x21D8 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x192E PUSH2 0x263D JUMP JUMPDEST SWAP5 POP SWAP5 POP SWAP5 POP POP SWAP4 POP PUSH1 0x0 DUP4 GT ISZERO PUSH2 0x1949 JUMPI PUSH2 0x1949 DUP4 PUSH2 0x31CB JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1953 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP4 DUP3 EQ PUSH2 0x196E JUMPI PUSH2 0x1969 DUP3 DUP8 PUSH2 0x272D JUMP JUMPDEST PUSH2 0x1970 JUMP JUMPDEST DUP3 JUMPDEST SWAP1 POP PUSH2 0x197C DUP3 DUP3 PUSH2 0x31DC JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x1A7C3263 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND SWAP1 PUSH4 0x1A7C3263 SWAP1 PUSH2 0x19B3 SWAP1 DUP6 SWAP1 PUSH1 0x4 ADD PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x19CB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x19DF JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x1A03 SWAP2 SWAP1 PUSH2 0x59FE JUMP JUMPDEST SWAP1 POP DUP2 PUSH2 0x1A3A JUMPI PUSH2 0x1A13 DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF NOT AND PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH1 0x2 DUP3 EQ ISZERO PUSH2 0x1A88 JUMPI PUSH2 0x1A4C DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH9 0x10000000000000000 MUL PUSH16 0xFFFFFFFFFFFFFFFF0000000000000000 NOT SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH1 0x3 DUP3 EQ ISZERO PUSH2 0x1AE0 JUMPI PUSH2 0x1A9A DUP2 PUSH2 0x16C4 JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH8 0xFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND PUSH1 0x1 PUSH1 0x80 SHL MUL PUSH32 0xFFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH2 0x1AEB JUMP JUMPDEST PUSH2 0x1AEB PUSH2 0x1BB PUSH2 0x28E0 JUMP JUMPDEST DUP2 PUSH32 0x6BFB689528FA96EC1AD670AD6D6064BE1AE96BFD5D2EE35C837FD0FE0C11959A DUP3 PUSH1 0x40 MLOAD PUSH2 0x1B1B SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1B32 PUSH2 0x1B69 JUMP JUMPDEST TIMESTAMP GT DUP1 PUSH2 0x7D1 JUMPI POP POP PUSH1 0x7 SLOAD PUSH1 0xFF AND ISZERO SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH2 0x1BBB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x1 EQ ISZERO PUSH2 0x1BEB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x2 EQ ISZERO PUSH2 0x1C1B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x3 EQ ISZERO PUSH2 0x1C4B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x4 EQ ISZERO PUSH2 0x1C7B JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x5 EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH2 0xCDF PUSH2 0x135 PUSH2 0x28E0 JUMP JUMPDEST PUSH2 0x1CCD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND ISZERO ISZERO PUSH2 0x198 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1CE4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x199 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1CEF DUP4 DUP4 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x1D15 SWAP1 DUP3 PUSH2 0x1A0 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP1 DUP5 AND DUP2 MSTORE KECCAK256 SLOAD PUSH2 0x1D44 SWAP1 DUP3 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP2 MLOAD SWAP1 DUP6 AND SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 PUSH2 0x1902 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x0 DUP1 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 PUSH2 0x1DC9 JUMP JUMPDEST PUSH2 0x1DB6 PUSH2 0x526C JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x1DAE JUMPI SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x1DD4 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xE8E3E84 DUP3 PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1DFF SWAP2 SWAP1 PUSH2 0x5BF6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x1E19 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1E2D JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1E78 JUMPI POP PUSH1 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1EBA JUMPI POP PUSH1 0x1 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1EFC JUMPI POP PUSH1 0x2 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1F3E JUMPI POP PUSH1 0x3 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1F80 JUMPI POP PUSH1 0x4 PUSH2 0xCDF JUMP JUMPDEST PUSH32 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH1 0x5 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH1 0xC0 PUSH1 0x20 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x679AEFCE PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x200C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2020 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x2044 SWAP2 SWAP1 PUSH2 0x59FE JUMP JUMPDEST PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 SWAP2 POP PUSH2 0x2061 DUP2 DUP4 DUP6 PUSH2 0x1674 JUMP JUMPDEST PUSH1 0x0 DUP7 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE MLOAD DUP6 SWAP1 PUSH32 0xB77A83204CA282E08DC3A65B0A1CA32EA4E6875C38EF0BF5BF75E52A67354FAC SWAP1 PUSH2 0x20A5 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG2 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x20CB PUSH1 0x0 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH2 0x10B4 JUMP JUMPDEST SWAP1 POP PUSH2 0xBFA PUSH2 0x20DA DUP3 CALLER PUSH2 0x3218 JUMP JUMPDEST PUSH2 0x191 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x20F3 PUSH2 0x3301 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP DUP1 TIMESTAMP LT ISZERO PUSH2 0x2146 JUMPI PUSH1 0x1 SWAP5 POP DUP4 DUP4 GT ISZERO PUSH2 0x212A JUMPI DUP2 DUP2 SUB DUP3 TIMESTAMP SUB DUP6 DUP6 SUB MUL DUP2 PUSH2 0x2120 JUMPI INVALID JUMPDEST DIV DUP5 ADD SWAP6 POP PUSH2 0x2141 JUMP JUMPDEST DUP2 DUP2 SUB DUP3 TIMESTAMP SUB DUP5 DUP7 SUB MUL DUP2 PUSH2 0x213B JUMPI INVALID JUMPDEST DIV DUP5 SUB SWAP6 POP JUMPDEST PUSH2 0x214E JUMP JUMPDEST PUSH1 0x0 SWAP5 POP DUP3 SWAP6 POP JUMPDEST POP POP POP POP SWAP1 SWAP2 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2165 DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x2172 JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST DUP2 PUSH1 0x1 DUP5 SUB DUP2 PUSH2 0x217E JUMPI INVALID JUMPDEST DIV PUSH1 0x1 ADD SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x2195 DUP5 DUP5 DUP5 DUP5 PUSH2 0x3360 JUMP JUMPDEST PUSH32 0x1835882EE7A34AC194F717A35E09BB1D24C82A3B9D854AB6C9749525B714CDF2 DUP5 DUP5 DUP5 DUP5 PUSH1 0x40 MLOAD PUSH2 0x21CA SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5E0E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP POP POP POP JUMP JUMPDEST PUSH2 0x919 PUSH2 0x21E3 PUSH2 0x1B28 JUMP JUMPDEST PUSH2 0x192 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2200 PUSH2 0x21F6 PUSH2 0x339F JUMP JUMPDEST DUP3 LT ISZERO PUSH1 0xCB PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2215 PUSH2 0x220B PUSH2 0x33A8 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0xCA PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x8 SLOAD PUSH2 0x2226 SWAP1 DUP3 PUSH1 0xC0 PUSH1 0x3F PUSH2 0x1636 JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xA9BA3FFE0B6C366B81232CAAB38605A0699AD5398D6CCE76F91EE809E322DAFC SWAP1 PUSH2 0x2259 SWAP1 DUP4 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 ADD PUSH2 0x15DE DUP5 DUP3 LT ISZERO DUP4 PUSH2 0x1719 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x2296 JUMPI PUSH2 0x2291 PUSH2 0x2287 PUSH2 0x1B45 JUMP JUMPDEST TIMESTAMP LT PUSH2 0x193 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x22AB JUMP JUMPDEST PUSH2 0x22AB PUSH2 0x22A1 PUSH2 0x1B69 JUMP JUMPDEST TIMESTAMP LT PUSH2 0x1A9 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x7 DUP1 SLOAD PUSH1 0xFF NOT AND DUP3 ISZERO ISZERO OR SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH32 0x9E3A5E37224532DEA67B89FACE185703738A228A6E8A23DEE546960180D3BE64 SWAP1 PUSH2 0x2259 SWAP1 DUP4 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x22F3 PUSH2 0xBFD JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x22FF PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xB05F8E48 DUP4 DUP7 PUSH1 0x40 MLOAD DUP4 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x232C SWAP3 SWAP2 SWAP1 PUSH2 0x5D89 JUMP JUMPDEST PUSH1 0x80 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2344 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2358 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x237C SWAP2 SWAP1 PUSH2 0x5A37 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x639CDB5 PUSH1 0xE2 SHL DUP2 MSTORE SWAP1 SWAP5 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP6 AND SWAP4 POP PUSH4 0x18E736D4 SWAP3 POP PUSH2 0x23B0 SWAP2 POP DUP6 SWAP1 DUP8 SWAP1 PUSH1 0x4 ADD PUSH2 0x5D70 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x23CA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1376 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST PUSH1 0x8 SLOAD PUSH2 0x23ED SWAP1 DUP3 PUSH1 0xFF PUSH2 0x15F2 JUMP JUMPDEST PUSH1 0x8 SSTORE PUSH1 0x40 MLOAD PUSH32 0xEFF3D4D215B42BF0960BE9C6D5E05C22CBA4DF6627A3A523E2ACEE733B5854C8 SWAP1 PUSH2 0x2420 SWAP1 DUP4 SWAP1 PUSH2 0x5CC5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 DUP1 PUSH2 0xBFA JUMPI PUSH2 0xBFA PUSH2 0x33B4 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x243F PUSH2 0x107E JUMP JUMPDEST DUP3 EQ ISZERO PUSH2 0x2455 JUMPI POP PUSH8 0xDE0B6B3A7640000 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 ISZERO PUSH2 0x2478 JUMPI PUSH2 0x2473 DUP2 PUSH2 0x29EA JUMP JUMPDEST PUSH2 0x15DE JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2499 PUSH1 0x0 DUP9 DUP7 DUP7 PUSH2 0x348E JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP9 POP SWAP9 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x24B9 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x24F4 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x24D3 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x24E7 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x288F JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2500 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x24BC JUMP JUMPDEST CALLER ADDRESS EQ PUSH2 0x25D1 JUMPI PUSH1 0x0 ADDRESS PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 CALLDATASIZE PUSH1 0x40 MLOAD PUSH2 0x2537 SWAP3 SWAP2 SWAP1 PUSH2 0x5B6A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP7 GAS CALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x2574 JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x2579 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP POP SWAP1 POP DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x2588 JUMPI INVALID JUMPDEST PUSH1 0x4 PUSH1 0x0 DUP1 RETURNDATACOPY PUSH1 0x0 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH4 0x43ADBAFB PUSH1 0xE0 SHL DUP2 EQ PUSH2 0x25B3 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x4 PUSH1 0x0 RETURNDATACOPY PUSH1 0x40 PUSH1 0x20 MSTORE PUSH1 0x24 RETURNDATASIZE SUB PUSH1 0x24 PUSH1 0x40 RETURNDATACOPY PUSH1 0x1C RETURNDATASIZE ADD PUSH1 0x0 RETURN JUMPDEST PUSH2 0x25D9 PUSH2 0x1727 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x25E3 PUSH2 0x1773 JUMP JUMPDEST SWAP1 POP PUSH2 0x25EF DUP8 DUP3 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2607 DUP13 DUP13 DUP13 DUP13 DUP13 DUP13 DUP10 DUP14 DUP14 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x2619 DUP2 DUP5 DUP7 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1F NOT DUP3 ADD DUP4 SWAP1 MSTORE PUSH4 0x43ADBAFB PUSH1 0x3F NOT DUP4 ADD MSTORE PUSH1 0x20 MUL PUSH1 0x23 NOT DUP3 ADD PUSH1 0x44 DUP3 ADD DUP2 REVERT JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x60 PUSH2 0x264F PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xF94D4668 PUSH2 0x2665 PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x2681 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2699 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x26AD JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY PUSH1 0x1F RETURNDATASIZE SWAP1 DUP2 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x40 MSTORE PUSH2 0x26D5 SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x552F JUMP JUMPDEST POP SWAP2 POP POP PUSH2 0x26EA DUP2 PUSH2 0x26E5 PUSH2 0x1773 JUMP JUMPDEST PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x26F3 DUP2 PUSH2 0x353C JUMP JUMPDEST SWAP7 POP SWAP5 POP PUSH1 0x0 PUSH2 0x2701 PUSH2 0xC5C JUMP JUMPDEST SWAP1 SWAP5 POP SWAP1 POP PUSH1 0x0 PUSH2 0x2713 DUP9 DUP7 DUP5 PUSH2 0x3575 JUMP JUMPDEST SWAP5 POP SWAP1 POP PUSH2 0x2721 DUP8 DUP3 PUSH2 0x35F1 JUMP JUMPDEST SWAP6 POP POP POP POP SWAP1 SWAP2 SWAP3 SWAP4 SWAP5 JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SWAP1 DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x276E JUMPI PUSH2 0x2764 DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x274D JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP3 POP PUSH1 0x1 ADD PUSH2 0x2736 JUMP JUMPDEST POP DUP2 PUSH2 0x277F JUMPI PUSH1 0x0 SWAP3 POP POP POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 DUP3 DUP7 DUP4 MUL DUP3 JUMPDEST PUSH1 0xFF DUP2 LT ISZERO PUSH2 0x2878 JUMPI DUP3 PUSH1 0x0 JUMPDEST DUP7 DUP2 LT ISZERO PUSH2 0x27D5 JUMPI PUSH2 0x27CB PUSH2 0x27A9 DUP4 DUP8 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x27B8 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP11 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3609 JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x2794 JUMP JUMPDEST POP DUP4 SWAP5 POP PUSH2 0x282E PUSH2 0x280D PUSH2 0x2807 PUSH2 0x27EC DUP5 DUP11 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2801 PUSH2 0x27F9 DUP9 DUP14 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3E8 PUSH2 0x3609 JUMP JUMPDEST SWAP1 PUSH2 0x2264 JUMP JUMPDEST DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 PUSH2 0x281D DUP10 PUSH1 0x1 ADD DUP6 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x2801 PUSH2 0x27F9 PUSH2 0x3E8 DUP10 SUB DUP11 PUSH2 0x15BA JUMP JUMPDEST SWAP4 POP DUP5 DUP5 GT ISZERO PUSH2 0x2856 JUMPI PUSH1 0x1 DUP6 DUP6 SUB GT PUSH2 0x2851 JUMPI DUP4 SWAP8 POP POP POP POP POP POP POP POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x286F JUMP JUMPDEST PUSH1 0x1 DUP5 DUP7 SUB GT PUSH2 0x286F JUMPI DUP4 SWAP8 POP POP POP POP POP POP POP POP PUSH2 0x87D JUMP JUMPDEST POP PUSH1 0x1 ADD PUSH2 0x2787 JUMP JUMPDEST POP PUSH2 0x2884 PUSH2 0x141 PUSH2 0x28E0 JUMP JUMPDEST POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x289E DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x28AB JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 DUP4 DUP2 MUL SWAP1 PUSH2 0x28CE SWAP1 DUP6 DUP4 DUP2 PUSH2 0x28C5 JUMPI INVALID JUMPDEST DIV EQ PUSH1 0x5 PUSH2 0x1719 JUMP JUMPDEST DUP3 DUP2 DUP2 PUSH2 0x28D7 JUMPI INVALID JUMPDEST DIV SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0xBFA DUP2 PUSH3 0x109053 PUSH1 0xEA SHL PUSH2 0x3629 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 MLOAD GT DUP1 ISZERO PUSH2 0xCDC JUMPI POP PUSH1 0xFF DUP1 AND DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x2915 SWAP2 SWAP1 PUSH2 0x5A77 JUMP JUMPDEST PUSH1 0xFF AND EQ SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x919 PUSH2 0x292A PUSH2 0x12AE JUMP JUMPDEST PUSH2 0x1B6 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH1 0x60 PUSH2 0x2943 DUP8 PUSH2 0x353C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH1 0x60 PUSH2 0x2956 DUP4 DUP6 DUP10 PUSH2 0x368A JUMP JUMPDEST SWAP2 POP SWAP2 POP DUP2 PUSH2 0x2966 DUP3 PUSH1 0x0 PUSH2 0x36B6 JUMP JUMPDEST SWAP6 POP SWAP6 POP POP POP POP POP JUMPDEST SWAP4 POP SWAP4 SWAP2 POP POP JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x2986 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x29C1 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x29A0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x29B4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2FDA JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x29CD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x2989 JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x3773 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 DUP3 PUSH1 0x60 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH1 0x60 DUP1 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x2A12 DUP4 PUSH2 0x1FC2 JUMP JUMPDEST SWAP2 POP PUSH2 0x2A21 DUP4 PUSH1 0xE0 PUSH1 0x20 PUSH2 0x170A JUMP JUMPDEST SWAP1 POP SWAP2 POP SWAP2 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x2499 PUSH1 0x1 DUP9 DUP7 DUP7 PUSH2 0x348E JUMP JUMPDEST DUP2 MLOAD DUP2 MLOAD PUSH2 0x2A48 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0x2A83 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2A62 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x2A76 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x383F JUMP JUMPDEST DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2A8F JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x2A4B JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2AAC PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xAAABADC5 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x2AE4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x2AF8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x7D1 SWAP2 SWAP1 PUSH2 0x56E6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH32 0x0 PUSH1 0x6 DUP5 ADD JUMPDEST SHR PUSH1 0x1 SWAP1 DUP2 AND EQ SWAP1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x41 DUP1 DUP3 MSTORE PUSH1 0x80 DUP3 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP3 SWAP2 SWAP1 PUSH1 0x20 DUP3 ADD DUP2 DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP POP SWAP1 POP DUP4 PUSH1 0x20 DUP3 ADD MSTORE DUP3 PUSH1 0x40 DUP3 ADD MSTORE DUP5 PUSH1 0x60 DUP3 ADD MSTORE8 SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B9B DUP6 PUSH2 0x388D JUMP JUMPDEST SWAP1 POP PUSH2 0x2BB1 PUSH2 0x2BAB DUP8 DUP4 DUP8 PUSH2 0x38A9 JUMP JUMPDEST DUP4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2BC0 TIMESTAMP DUP5 LT ISZERO PUSH2 0x1B8 PUSH2 0x1719 JUMP JUMPDEST POP POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x2BF6 DUP5 PUSH2 0x3958 JUMP JUMPDEST SWAP1 POP PUSH2 0x2C11 PUSH1 0x0 DUP3 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x2C09 JUMPI INVALID JUMPDEST EQ PUSH1 0xCE PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x2C1C DUP6 PUSH2 0x396E JUMP JUMPDEST SWAP1 POP PUSH2 0x2C2A DUP2 MLOAD DUP8 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x2C34 DUP2 DUP8 PUSH2 0x2977 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2C3E PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x60 PUSH2 0x2C4C DUP4 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x2C5A DUP4 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP1 PUSH1 0x0 PUSH2 0x2C77 PUSH14 0x8000000000000000000000000000 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x2C83 DUP14 DUP3 PUSH2 0x2CC0 JUMP JUMPDEST DUP1 DUP7 PUSH2 0x2C8D PUSH2 0x107E JUMP JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x2C97 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x2CAD DUP6 DUP5 PUSH2 0x31DC JUMP JUMPDEST POP SWAP13 SWAP4 SWAP12 POP SWAP3 SWAP10 POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0xCB3 DUP3 DUP3 PUSH2 0x3A26 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x2D01 DUP2 DUP3 TIMESTAMP TIMESTAMP PUSH2 0x3360 JUMP JUMPDEST PUSH32 0xA0D01593E47E69D07E0CCD87BECE09411E07DD1ED40CA8F2E7AF2976542A0233 DUP2 PUSH1 0x40 MLOAD PUSH2 0x2259 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 PUSH32 0x0 PUSH32 0x0 PUSH2 0x2D9D PUSH2 0x3AB3 JUMP JUMPDEST ADDRESS PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x2DB2 SWAP6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5D44 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x2 DUP2 MLOAD LT ISZERO PUSH2 0x2DDC JUMPI PUSH2 0xBFA JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x2DEB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH2 0x1631 JUMPI PUSH1 0x0 DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x2E13 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH2 0x2E3C DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND LT PUSH1 0x65 PUSH2 0x1719 JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x2DFC JUMP JUMPDEST PUSH2 0x2E55 PUSH2 0x100 DUP4 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x2E7D PUSH1 0x1 DUP3 LT ISZERO DUP1 ISZERO PUSH2 0x176C JUMPI POP PUSH2 0x2E73 PUSH1 0xFF DUP5 PUSH2 0x100 SUB PUSH2 0x16F4 JUMP JUMPDEST DUP3 GT ISZERO PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x1631 DUP4 DUP3 SHR ISZERO PUSH2 0x1B4 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x919 PUSH2 0x21D8 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2E9E PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xCB3 JUMPI PUSH2 0x2EB4 DUP2 PUSH2 0x3AB7 JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x2EA3 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH2 0x2EEA JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x1 EQ ISZERO PUSH2 0x2F1A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x2 EQ ISZERO PUSH2 0x2F4A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x3 EQ ISZERO PUSH2 0x2F7A JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x4 EQ ISZERO PUSH2 0x2FAA JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST DUP2 PUSH1 0x5 EQ ISZERO PUSH2 0x1CAB JUMPI POP PUSH32 0x0 PUSH2 0xCDF JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x2FF4 DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST PUSH8 0xDE0B6B3A7640000 SWAP1 DIV SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3012 DUP6 DUP4 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x3033 DUP7 PUSH1 0x60 ADD MLOAD DUP4 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3B0B JUMP JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH1 0x0 PUSH2 0x3046 DUP8 DUP8 DUP8 DUP8 PUSH2 0x3B17 JUMP JUMPDEST SWAP1 POP PUSH2 0x3065 DUP2 DUP5 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x3058 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3B2B JUMP JUMPDEST SWAP1 POP PUSH2 0x7BC DUP2 PUSH2 0x3B37 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 DUP8 MLOAD PUSH1 0x1 DUP2 GT ISZERO PUSH2 0x3081 JUMPI INVALID JUMPDEST EQ SWAP1 POP PUSH2 0x308E DUP7 DUP5 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x30AE DUP8 PUSH1 0x60 ADD MLOAD DUP5 DUP4 PUSH2 0x30A2 JUMPI DUP7 PUSH2 0x30A4 JUMP JUMPDEST DUP8 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST DUP8 PUSH1 0x60 ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x30C7 DUP11 PUSH2 0x3B53 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP PUSH1 0x0 DUP1 PUSH2 0x30DA PUSH2 0x107E JUMP JUMPDEST DUP11 EQ PUSH2 0x3100 JUMPI PUSH2 0x30FB DUP8 DUP15 PUSH1 0x60 ADD MLOAD DUP8 PUSH2 0x30F3 DUP15 PUSH2 0x3BBC JUMP JUMPDEST DUP9 DUP12 DUP10 PUSH2 0x3BF1 JUMP JUMPDEST PUSH2 0x311B JUMP JUMPDEST PUSH2 0x311B DUP8 DUP15 PUSH1 0x60 ADD MLOAD DUP8 PUSH2 0x3113 DUP16 PUSH2 0x3BBC JUMP JUMPDEST DUP9 DUP12 DUP10 PUSH2 0x3C2A JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x312C DUP5 DUP7 DUP6 DUP10 DUP6 PUSH2 0x3C4E JUMP JUMPDEST DUP7 PUSH2 0x3146 JUMPI PUSH2 0x3141 DUP3 DUP11 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x3058 JUMPI INVALID JUMPDEST PUSH2 0x3163 JUMP JUMPDEST PUSH2 0x3163 DUP3 DUP11 DUP13 DUP2 MLOAD DUP2 LT PUSH2 0x3156 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3CCE JUMP JUMPDEST SWAP14 SWAP13 POP POP POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3183 DUP7 PUSH1 0x60 ADD MLOAD PUSH2 0x3CDA JUMP JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH2 0x3192 DUP6 DUP4 PUSH2 0x2977 JUMP JUMPDEST PUSH2 0x31A6 DUP7 PUSH1 0x60 ADD MLOAD DUP4 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x3026 JUMPI INVALID JUMPDEST PUSH1 0x60 DUP8 ADD MSTORE PUSH1 0x0 PUSH2 0x31B9 DUP8 DUP8 DUP8 DUP8 PUSH2 0x3CFB JUMP JUMPDEST SWAP1 POP PUSH2 0x7BC DUP2 DUP5 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x3156 JUMPI INVALID JUMPDEST PUSH2 0xBFA PUSH2 0x31D6 PUSH2 0x12D1 JUMP JUMPDEST DUP3 PUSH2 0x2CC0 JUMP JUMPDEST PUSH2 0x31E9 DUP2 PUSH1 0x0 PUSH1 0xE9 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x31F6 DUP4 PUSH1 0xE9 PUSH1 0x17 PUSH2 0x16E1 JUMP JUMPDEST OR PUSH1 0xC SSTORE PUSH2 0xCB3 PUSH2 0x3D0F JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3211 DUP5 DUP5 GT ISZERO DUP4 PUSH2 0x1719 JUMP JUMPDEST POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH20 0xBA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1BA1B PUSH2 0x3237 PUSH2 0x115A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO DUP1 ISZERO PUSH2 0x3252 JUMPI POP PUSH2 0x3252 DUP4 PUSH2 0x3D45 JUMP JUMPDEST ISZERO PUSH2 0x327A JUMPI PUSH2 0x325F PUSH2 0x115A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ SWAP1 POP PUSH2 0x87D JUMP JUMPDEST PUSH2 0x3282 PUSH2 0x2AA2 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x9BE2A884 DUP5 DUP5 ADDRESS PUSH1 0x40 MLOAD DUP5 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x32B1 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x5CF1 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x32C9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x32DD JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x14D9 SWAP2 SWAP1 PUSH2 0x55FB JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x3320 PUSH1 0x0 PUSH1 0x40 PUSH1 0x9 SLOAD PUSH2 0x170A SWAP1 SWAP3 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP5 POP PUSH2 0x3332 SWAP1 PUSH1 0x40 DUP1 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP4 POP PUSH2 0x3345 SWAP1 PUSH1 0x80 PUSH1 0x40 PUSH2 0x170A JUMP JUMPDEST PUSH1 0x9 SLOAD SWAP1 SWAP3 POP PUSH2 0x3358 SWAP1 PUSH1 0xC0 PUSH1 0x40 PUSH2 0x170A JUMP JUMPDEST SWAP1 POP SWAP1 SWAP2 SWAP3 SWAP4 JUMP JUMPDEST PUSH2 0x336D DUP2 PUSH1 0xC0 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x337A DUP4 PUSH1 0x80 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x3386 DUP6 PUSH1 0x40 DUP1 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0x3393 DUP8 PUSH1 0x0 PUSH1 0x40 PUSH2 0x16E1 JUMP JUMPDEST OR OR OR PUSH1 0x9 SSTORE POP POP POP POP JUMP JUMPDEST PUSH5 0xE8D4A51000 SWAP1 JUMP JUMPDEST PUSH8 0x16345785D8A0000 SWAP1 JUMP JUMPDEST PUSH2 0x33BC PUSH2 0x1D96 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x33C6 PUSH2 0x117E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xF94D4668 PUSH2 0x33DC PUSH2 0xBFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x33F8 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x3410 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x3424 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x0 DUP3 RETURNDATACOPY PUSH1 0x1F RETURNDATASIZE SWAP1 DUP2 ADD PUSH1 0x1F NOT AND DUP3 ADD PUSH1 0x40 MSTORE PUSH2 0x344C SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x552F JUMP JUMPDEST POP SWAP2 POP POP PUSH2 0x345C DUP2 PUSH2 0x26E5 PUSH2 0x1773 JUMP JUMPDEST PUSH1 0x60 PUSH2 0x3467 DUP3 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3473 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 PUSH2 0x3482 DUP3 DUP5 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH2 0xAE5 DUP3 DUP3 PUSH2 0x31DC JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x34A2 DUP10 PUSH2 0x3B53 JUMP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 POP SWAP4 POP PUSH2 0x529C DUP11 PUSH2 0x34BA JUMPI PUSH2 0x3D50 PUSH2 0x34BE JUMP JUMPDEST PUSH2 0x3DE5 JUMPDEST SWAP1 POP PUSH1 0x0 PUSH1 0x60 PUSH2 0x34D6 DUP7 DUP7 DUP10 DUP8 DUP16 DUP16 DUP10 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x529C DUP14 PUSH2 0x34EA JUMPI PUSH2 0x165E PUSH2 0x34EE JUMP JUMPDEST PUSH2 0x2264 JUMPDEST SWAP1 POP PUSH2 0x34FB DUP8 DUP4 DUP4 PUSH2 0x3E63 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x350B DUP10 DUP6 DUP5 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH2 0x351A DUP8 DUP10 DUP9 DUP13 DUP6 PUSH2 0x3C4E JUMP JUMPDEST DUP4 PUSH2 0x3526 DUP5 PUSH1 0x0 PUSH2 0x36B6 JUMP JUMPDEST SWAP11 POP SWAP11 POP POP POP POP POP POP POP POP POP POP SWAP5 POP SWAP5 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x3563 DUP4 PUSH2 0x354C PUSH2 0x107E JUMP JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x3556 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x3ED0 JUMP JUMPDEST PUSH2 0x356C DUP5 PUSH2 0x3984 JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP2 POP SWAP2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3588 DUP9 DUP9 DUP9 PUSH2 0x3EE4 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP DUP6 DUP2 GT PUSH2 0x35A3 JUMPI PUSH1 0x0 SWAP5 POP SWAP3 POP PUSH2 0x296F SWAP2 POP POP JUMP JUMPDEST DUP6 DUP4 SUB DUP4 DUP4 SUB PUSH1 0x0 PUSH2 0x35C1 PUSH2 0x35B7 DUP3 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x17E7 DUP6 DUP8 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x35DC PUSH2 0x35D2 PUSH1 0x2 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x17E7 DUP6 DUP9 PUSH2 0x288F JUMP JUMPDEST SWAP2 SWAP1 SWAP2 ADD SWAP12 SWAP4 SWAP11 POP SWAP3 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE PUSH2 0x3600 DUP5 DUP5 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x27C6 DUP5 PUSH2 0x3F55 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3618 DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP2 DUP4 DUP2 PUSH2 0x3621 JUMPI INVALID JUMPDEST DIV SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP5 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL SWAP6 DUP4 SWAP1 MOD SWAP6 SWAP1 SWAP6 ADD SWAP1 DUP3 SWAP1 DIV SWAP2 DUP3 MOD DUP6 ADD PUSH1 0x10 SHL ADD PUSH1 0x23 PUSH4 0xFFFFFF00 PUSH1 0xE0 DUP7 SWAP1 SHR AND ADD PUSH1 0x18 SHL ADD SWAP1 SWAP4 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH1 0xE8 DUP3 SWAP1 SHR SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3699 DUP5 PUSH2 0x3F7B JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP8 DUP8 DUP5 PUSH2 0x3F91 JUMP JUMPDEST SWAP2 SWAP8 SWAP2 SWAP7 POP SWAP1 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP3 MLOAD PUSH1 0x1 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x36D3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x36FD JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x376C JUMPI PUSH2 0x3714 PUSH2 0x107E JUMP JUMPDEST DUP2 EQ PUSH2 0x374B JUMPI DUP4 PUSH2 0x3723 PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x3732 JUMPI PUSH1 0x1 DUP3 SUB PUSH2 0x3734 JUMP JUMPDEST DUP2 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x373E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x374D JUMP JUMPDEST DUP3 JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3759 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3703 JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x378A PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x19B PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x3796 DUP3 PUSH1 0x0 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x37BC SWAP1 DUP3 PUSH2 0x1B2 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SSTORE PUSH2 0x37EF PUSH2 0x37EA DUP3 PUSH2 0x37E4 PUSH2 0x93F JUMP JUMPDEST SWAP1 PUSH2 0x4040 JUMP JUMPDEST PUSH2 0x404E JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF DUP4 PUSH1 0x40 MLOAD PUSH2 0x3833 SWAP2 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x384E DUP3 ISZERO ISZERO PUSH1 0x4 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x385B JUMPI POP PUSH1 0x0 PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 DUP4 DUP2 MUL SWAP1 PUSH2 0x3875 SWAP1 DUP6 DUP4 DUP2 PUSH2 0x28C5 JUMPI INVALID JUMPDEST DUP3 PUSH1 0x1 DUP3 SUB DUP2 PUSH2 0x3881 JUMPI INVALID JUMPDEST DIV PUSH1 0x1 ADD SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3897 PUSH2 0x2D30 JUMP JUMPDEST DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x10E9 SWAP3 SWAP2 SWAP1 PUSH2 0x5B7A JUMP JUMPDEST PUSH1 0x0 PUSH2 0x38BB DUP3 MLOAD PUSH1 0x41 EQ PUSH2 0x1B9 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x20 DUP3 DUP2 ADD MLOAD PUSH1 0x40 DUP1 DUP6 ADD MLOAD PUSH1 0x60 DUP7 ADD MLOAD DUP3 MLOAD PUSH1 0x0 DUP1 DUP3 MSTORE SWAP6 ADD SWAP3 DUP4 SWAP1 MSTORE SWAP3 SWAP4 SWAP1 SWAP3 DUP2 BYTE SWAP2 PUSH1 0x1 SWAP1 PUSH2 0x38F4 SWAP1 DUP10 SWAP1 DUP6 SWAP1 DUP9 SWAP1 DUP9 SWAP1 PUSH2 0x5DA0 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 SUB SWAP1 DUP1 DUP5 SUB SWAP1 DUP6 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x3916 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP PUSH1 0x40 MLOAD PUSH1 0x1F NOT ADD MLOAD SWAP2 POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND ISZERO DUP1 ISZERO SWAP1 PUSH2 0x394C JUMPI POP DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ JUMPDEST SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xCDC SWAP2 SWAP1 PUSH2 0x5811 JUMP JUMPDEST PUSH1 0x60 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x582C JUMP JUMPDEST PUSH1 0x60 DUP1 PUSH1 0x1 DUP4 MLOAD SUB PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x39A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x39CC JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x376C JUMPI DUP4 PUSH2 0x39E4 PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x39F3 JUMPI DUP2 PUSH1 0x1 ADD PUSH2 0x39F5 JUMP JUMPDEST DUP2 JUMPDEST DUP2 MLOAD DUP2 LT PUSH2 0x39FF JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3A13 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x39D2 JUMP JUMPDEST PUSH2 0x3A32 PUSH1 0x0 DUP4 DUP4 PUSH2 0x1631 JUMP JUMPDEST PUSH2 0x3A41 PUSH2 0x37EA DUP3 PUSH2 0x2801 PUSH2 0x93F JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x3A64 SWAP1 DUP3 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 SWAP4 SWAP1 SWAP4 SSTORE SWAP2 MLOAD SWAP1 SWAP2 SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 PUSH2 0x3833 SWAP1 DUP6 SWAP1 PUSH2 0x5CE8 JUMP JUMPDEST CHAINID SWAP1 JUMP JUMPDEST PUSH2 0x3ABF PUSH2 0x107E JUMP JUMPDEST DUP2 EQ ISZERO PUSH2 0x3ACB JUMPI PUSH2 0xBFA JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP1 ISZERO PUSH2 0xCB3 JUMPI PUSH1 0x0 DUP1 PUSH2 0x3AEC DUP4 PUSH2 0x2A06 JUMP JUMPDEST SWAP2 POP SWAP2 POP DUP1 TIMESTAMP GT ISZERO PUSH2 0xAE5 JUMPI PUSH2 0xAE5 DUP5 PUSH2 0x3B05 DUP7 PUSH2 0x1B8D JUMP JUMPDEST DUP5 PUSH2 0x1FD1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x2FDA JUMP JUMPDEST PUSH1 0x0 PUSH2 0x185C PUSH1 0x0 DUP7 PUSH1 0x60 ADD MLOAD DUP7 DUP7 DUP7 PUSH2 0x4053 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC PUSH2 0x3B4C PUSH2 0x3B47 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x3F55 JUMP JUMPDEST DUP4 SWAP1 PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x3B65 PUSH2 0xC5C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3B7A DUP11 DUP7 DUP7 PUSH2 0x40C5 JUMP JUMPDEST SWAP3 POP SWAP3 POP SWAP3 POP PUSH1 0x0 PUSH2 0x3B8A PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP7 DUP3 EQ PUSH2 0x3BA5 JUMPI PUSH2 0x3BA0 DUP3 DUP6 PUSH2 0x272D JUMP JUMPDEST PUSH2 0x3BA7 JUMP JUMPDEST DUP3 JUMPDEST SWAP5 SWAP13 SWAP4 SWAP12 POP SWAP1 SWAP10 POP SWAP3 SWAP8 POP SWAP1 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3BD3 PUSH2 0x3BC9 PUSH2 0x107E JUMP JUMPDEST DUP4 EQ ISZERO PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x3BDB PUSH2 0x107E JUMP JUMPDEST DUP3 LT PUSH2 0x16DD JUMPI PUSH2 0x3BEC DUP3 PUSH1 0x1 PUSH2 0x165E JUMP JUMPDEST PUSH2 0xCDC JUMP JUMPDEST PUSH1 0x0 DUP1 DUP9 PUSH2 0x3C0C JUMPI PUSH2 0x3C07 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x411D JUMP JUMPDEST PUSH2 0x3C1A JUMP JUMPDEST PUSH2 0x3C1A DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x41F4 JUMP JUMPDEST SWAP2 POP SWAP2 POP SWAP8 POP SWAP8 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP9 PUSH2 0x3C40 JUMPI PUSH2 0x3C07 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x4255 JUMP JUMPDEST PUSH2 0x3C1A DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x42BB JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3C5A DUP7 DUP7 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3C68 DUP4 DUP6 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x3C76 DUP7 DUP4 PUSH2 0x2FDA JUMP JUMPDEST SWAP1 POP DUP1 DUP4 GT ISZERO PUSH2 0x3CC4 JUMPI DUP1 DUP4 SUB PUSH1 0x0 PUSH2 0x3CA0 PUSH2 0x3C9A DUP4 PUSH2 0x3C95 DUP5 PUSH2 0xE16 JUMP JUMPDEST PUSH2 0x15BA JUMP JUMPDEST DUP7 PUSH2 0x3609 JUMP JUMPDEST SWAP1 POP DUP1 ISZERO PUSH2 0x3CC1 JUMPI PUSH1 0x0 PUSH2 0x3CB4 DUP8 DUP4 PUSH2 0x35F1 JUMP JUMPDEST SWAP1 POP PUSH2 0x3CBF DUP2 PUSH2 0x31CB JUMP JUMPDEST POP JUMPDEST POP POP JUMPDEST PUSH2 0x1376 DUP9 DUP5 PUSH2 0x31DC JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH2 0x288F JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x3CEF PUSH2 0x3CE8 PUSH2 0xD45 JUMP JUMPDEST DUP5 SWAP1 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH2 0x15DE DUP4 DUP3 PUSH2 0x165E JUMP JUMPDEST PUSH1 0x0 PUSH2 0x185C PUSH1 0x1 DUP7 PUSH1 0x60 ADD MLOAD DUP7 DUP7 DUP7 PUSH2 0x4053 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x3D19 PUSH2 0x1737 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xCB3 JUMPI PUSH2 0x3D2F DUP2 PUSH2 0x2B1C JUMP JUMPDEST ISZERO PUSH2 0x3D3D JUMPI PUSH2 0x3D3D DUP2 PUSH2 0x43A6 JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x3D1E JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x43D4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3D5F DUP5 PUSH2 0x43DF JUMP JUMPDEST SWAP1 POP PUSH1 0x1 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3D6F JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3D8D JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP10 DUP10 PUSH2 0x43F5 JUMP JUMPDEST SWAP3 POP SWAP3 POP POP PUSH2 0x3DDA JUMP JUMPDEST PUSH1 0x2 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3D9B JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3DAC JUMPI PUSH2 0x3D83 DUP8 DUP11 DUP7 PUSH2 0x4454 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x2 DUP2 GT ISZERO PUSH2 0x3DBA JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3DCD JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP9 PUSH2 0x4472 JUMP JUMPDEST PUSH2 0x3DD8 PUSH2 0x150 PUSH2 0x28E0 JUMP JUMPDEST POP JUMPDEST SWAP7 POP SWAP7 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x3DF4 DUP5 PUSH2 0x3958 JUMP JUMPDEST SWAP1 POP PUSH1 0x1 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E04 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E18 JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP10 DUP10 PUSH2 0x4513 JUMP JUMPDEST PUSH1 0x3 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E26 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E37 JUMPI PUSH2 0x3D83 DUP8 DUP11 DUP7 PUSH2 0x4562 JUMP JUMPDEST PUSH1 0x2 DUP2 PUSH1 0x3 DUP2 GT ISZERO PUSH2 0x3E45 JUMPI INVALID JUMPDEST EQ ISZERO PUSH2 0x3E58 JUMPI PUSH2 0x3D83 DUP8 DUP8 DUP11 DUP13 DUP9 PUSH2 0x4580 JUMP JUMPDEST PUSH2 0x3DD8 PUSH2 0x136 PUSH2 0x28E0 JUMP JUMPDEST DUP3 MLOAD DUP3 MLOAD PUSH2 0x3E72 SWAP1 DUP3 SWAP1 PUSH2 0x15E5 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x1E2D JUMPI PUSH2 0x3EB1 DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3E8C JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP6 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x3EA0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP6 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x3EBD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3E75 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x3EDE PUSH2 0x93F JUMP JUMPDEST SWAP1 PUSH2 0x165E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x3EF3 DUP6 DUP8 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP4 DUP2 GT PUSH2 0x3F07 JUMPI DUP1 DUP2 SWAP3 POP SWAP3 POP PUSH2 0x3F4C JUMP JUMPDEST PUSH2 0x3F19 DUP6 PUSH2 0x3F14 DUP9 PUSH2 0x45FA JUMP JUMPDEST PUSH2 0x272D JUMP JUMPDEST SWAP3 POP PUSH2 0x3F25 DUP2 DUP5 PUSH2 0x16F4 JUMP JUMPDEST SWAP3 POP PUSH2 0x3F31 DUP5 DUP5 PUSH2 0x46EB JUMP JUMPDEST SWAP3 POP PUSH2 0x3F3B PUSH2 0xFED JUMP JUMPDEST ISZERO PUSH2 0x3F48 JUMPI DUP3 SWAP2 POP PUSH2 0x3F4C JUMP JUMPDEST DUP1 SWAP2 POP JUMPDEST SWAP4 POP SWAP4 POP SWAP4 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xDE0B6B3A7640000 DUP3 LT PUSH2 0x3F6D JUMPI PUSH1 0x0 PUSH2 0xCDC JUMP JUMPDEST POP PUSH8 0xDE0B6B3A7640000 SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x5A93 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x3F9F DUP4 DUP6 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP DUP5 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x3FB9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x3FE3 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP2 POP PUSH1 0x0 JUMPDEST DUP6 MLOAD DUP2 LT ISZERO PUSH2 0x4037 JUMPI PUSH2 0x4018 DUP3 DUP8 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2FDA SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP4 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4024 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x3FE9 JUMP JUMPDEST POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE DUP4 DUP4 PUSH1 0x1 PUSH2 0x3202 JUMP JUMPDEST PUSH1 0x2 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x4060 DUP6 PUSH2 0x3984 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x406D DUP6 PUSH2 0x3BBC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x407A DUP6 PUSH2 0x3BBC JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4086 PUSH2 0x20E2 JUMP JUMPDEST POP SWAP1 POP PUSH1 0x0 PUSH2 0x4095 DUP3 DUP7 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP DUP11 ISZERO PUSH2 0x40B7 JUMPI PUSH2 0x40AB DUP3 DUP7 DUP7 DUP7 DUP15 DUP7 PUSH2 0x46FB JUMP JUMPDEST SWAP6 POP POP POP POP POP POP PUSH2 0x185C JUMP JUMPDEST PUSH2 0x40AB DUP3 DUP7 DUP7 DUP7 DUP15 DUP7 PUSH2 0x4786 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH1 0x60 PUSH2 0x40D7 DUP9 PUSH2 0x353C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 DUP1 PUSH2 0x40E9 DUP4 DUP11 DUP11 PUSH2 0x3575 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH1 0x0 PUSH2 0x40F9 DUP6 DUP5 PUSH2 0x35F1 JUMP JUMPDEST SWAP1 POP DUP1 ISZERO PUSH2 0x410A JUMPI PUSH2 0x410A DUP2 PUSH2 0x31CB JUMP JUMPDEST SWAP4 SWAP1 SWAP4 ADD SWAP10 SWAP2 SWAP9 POP SWAP2 SWAP7 POP SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x60 DUP8 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x413A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4164 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP9 DUP2 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x4174 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4197 DUP8 DUP11 DUP5 DUP10 DUP10 PUSH2 0x4192 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4819 JUMP JUMPDEST SWAP1 POP PUSH2 0x41BF DUP11 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41CB JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x41E2 DUP8 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP2 SWAP12 SWAP2 SWAP11 POP SWAP1 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x420F DUP7 DUP10 DUP10 DUP13 DUP10 DUP10 PUSH2 0x420A PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4AA9 JUMP JUMPDEST SWAP1 POP PUSH2 0x4221 DUP2 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP9 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x422D JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x4244 DUP7 DUP12 PUSH2 0x165E JUMP JUMPDEST SWAP2 SWAP11 SWAP2 SWAP10 POP SWAP1 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x4270 DUP7 DUP10 DUP10 DUP13 DUP10 DUP10 PUSH2 0x426B PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4B98 JUMP JUMPDEST SWAP1 POP PUSH2 0x4298 DUP2 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP9 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x42A4 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x4244 DUP7 DUP12 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x60 DUP8 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x42D8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4302 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP DUP9 DUP2 DUP9 DUP2 MLOAD DUP2 LT PUSH2 0x4312 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4335 DUP8 DUP11 DUP5 DUP10 DUP10 PUSH2 0x4330 PUSH2 0xD45 JUMP JUMPDEST PUSH2 0x4C65 JUMP JUMPDEST SWAP1 POP PUSH2 0x4347 DUP11 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4353 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x0 PUSH2 0x41E2 DUP8 DUP4 PUSH2 0x2264 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MUL PUSH2 0x4384 DUP5 ISZERO DUP1 PUSH2 0x15D7 JUMPI POP DUP4 DUP6 DUP4 DUP2 PUSH2 0x15D4 JUMPI INVALID JUMPDEST DUP1 PUSH2 0x4393 JUMPI PUSH1 0x0 SWAP2 POP POP PUSH2 0x87D JUMP JUMPDEST PUSH8 0xDE0B6B3A7640000 PUSH1 0x0 NOT DUP3 ADD PUSH2 0x3881 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0x43BE DUP2 PUSH2 0x16AC JUMP JUMPDEST PUSH1 0x0 SWAP3 DUP4 MSTORE PUSH1 0xA PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 SWAP3 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCDC DUP3 PUSH2 0x4ECF JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xCDC SWAP2 SWAP1 PUSH2 0x5750 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP1 PUSH1 0x0 PUSH2 0x4405 DUP6 PUSH2 0x4EF2 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4415 DUP3 MLOAD DUP9 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x4422 DUP3 PUSH2 0x26E5 DUP9 PUSH2 0x3984 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4434 DUP10 DUP10 DUP6 DUP15 DUP15 PUSH2 0x4192 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP PUSH2 0x4444 DUP3 DUP3 GT ISZERO PUSH1 0xCF PUSH2 0x1719 JUMP JUMPDEST SWAP11 SWAP2 SWAP10 POP SWAP1 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x4463 DUP5 PUSH2 0x4F15 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP7 DUP9 DUP5 PUSH2 0x3F91 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x4482 DUP6 PUSH2 0x4F2B JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4494 DUP7 MLOAD DUP3 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x44AE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x44D8 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x44EC DUP9 DUP9 DUP5 DUP7 DUP15 DUP15 PUSH2 0x420A PUSH2 0xD45 JUMP JUMPDEST DUP2 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x44F8 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE SWAP2 SWAP10 SWAP2 SWAP9 POP SWAP1 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP1 PUSH1 0x0 PUSH2 0x4523 DUP6 PUSH2 0x4F42 JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x4533 DUP8 MLOAD DUP4 MLOAD PUSH2 0x15E5 JUMP JUMPDEST PUSH2 0x4540 DUP3 PUSH2 0x26E5 DUP9 PUSH2 0x3984 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4552 DUP10 DUP10 DUP6 DUP15 DUP15 PUSH2 0x4330 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP PUSH2 0x4444 DUP3 DUP3 LT ISZERO PUSH1 0xD0 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 PUSH2 0x4571 DUP5 PUSH2 0x4F5A JUMP JUMPDEST SWAP1 POP PUSH1 0x60 PUSH2 0x36A8 DUP7 DUP4 DUP10 PUSH2 0x4F70 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x0 DUP1 PUSH2 0x4590 DUP6 PUSH2 0x500C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x45A2 DUP7 MLOAD DUP3 LT PUSH1 0x64 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x45BC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x45E6 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH2 0x44EC DUP9 DUP9 DUP5 DUP7 DUP15 DUP15 PUSH2 0x426B PUSH2 0xD45 JUMP JUMPDEST DUP1 MLOAD PUSH1 0x60 SWAP1 DUP2 DUP2 PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4617 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4641 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x46E3 JUMPI PUSH1 0x0 PUSH2 0x4659 PUSH2 0x107E JUMP JUMPDEST DUP3 LT ISZERO PUSH2 0x4666 JUMPI DUP2 PUSH2 0x466B JUMP JUMPDEST DUP2 PUSH1 0x1 ADD JUMPDEST SWAP1 POP PUSH2 0x4676 DUP2 PUSH2 0x2B1C JUMP JUMPDEST PUSH2 0x4693 JUMPI DUP6 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4686 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x46C3 JUMP JUMPDEST PUSH2 0x46C3 DUP7 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x46A2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH1 0xA PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 SLOAD PUSH2 0x5023 JUMP JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x46CF JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x4647 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 LT ISZERO PUSH2 0x1703 JUMPI DUP2 PUSH2 0x15DE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x470D DUP4 DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP7 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x4719 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x4733 DUP9 DUP9 DUP6 DUP9 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP DUP4 DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4742 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SUB DUP8 DUP8 DUP2 MLOAD DUP2 LT PUSH2 0x4757 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4778 PUSH1 0x1 PUSH2 0x3EDE DUP4 DUP11 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP2 POP POP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4798 DUP4 DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x47A4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH1 0x0 PUSH2 0x47BE DUP9 DUP9 DUP6 DUP10 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP DUP4 DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x47CD JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD ADD DUP8 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x47E2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4778 PUSH1 0x1 PUSH2 0x2801 DUP10 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x4802 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x4857 JUMPI PUSH2 0x484D DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 PUSH2 0x2264 SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x481E JUMP JUMPDEST POP PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4872 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x489C JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP10 MLOAD DUP2 LT ISZERO PUSH2 0x4969 JUMPI PUSH1 0x0 PUSH2 0x48D4 DUP6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x48BE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x383F SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH2 0x4916 DUP12 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x48E5 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x4910 DUP13 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x48FC JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 PUSH2 0x383F JUMP JUMPDEST DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4922 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x495E PUSH2 0x4957 DUP3 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4941 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x436A SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST DUP5 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x48A3 JUMP JUMPDEST POP PUSH1 0x60 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4984 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x49AE JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP11 MLOAD DUP2 LT ISZERO PUSH2 0x4A79 JUMPI PUSH1 0x0 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x49CB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP5 GT ISZERO PUSH2 0x4A32 JUMPI PUSH1 0x0 PUSH2 0x49F4 PUSH2 0x49E8 DUP7 PUSH2 0x3F55 JUMP JUMPDEST DUP15 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4A08 DUP3 DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4A29 PUSH2 0x4A22 DUP3 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x383F JUMP JUMPDEST DUP4 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x4A49 JUMP JUMPDEST DUP11 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4A3E JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x4A59 DUP2 DUP14 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4A65 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x49B4 JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4A86 DUP13 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4A94 DUP3 DUP11 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH2 0x3163 PUSH2 0x4AA2 DUP3 PUSH2 0x3F55 JUMP JUMPDEST DUP12 SWAP1 PUSH2 0x436A JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4AC4 DUP5 PUSH2 0x4ABE DUP8 PUSH2 0x4910 DUP2 DUP12 PUSH2 0x165E JUMP JUMPDEST SWAP1 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4AD4 DUP11 DUP11 DUP5 DUP12 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4AE8 DUP3 DUP12 DUP12 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP12 MLOAD DUP2 LT ISZERO PUSH2 0x4B10 JUMPI PUSH2 0x4B06 DUP13 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4AEE JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4B39 DUP3 DUP14 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x288F SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B46 DUP3 PUSH2 0x3F55 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B54 DUP6 DUP4 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4B62 DUP7 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x4B83 PUSH2 0x4B7C DUP4 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x2FDA JUMP JUMPDEST DUP3 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP9 POP POP POP POP POP POP POP POP POP SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x4BAD DUP5 PUSH2 0x4ABE DUP8 PUSH2 0x4910 DUP2 DUP12 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4BBD DUP11 DUP11 DUP5 DUP12 PUSH2 0x503E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4BE7 DUP11 DUP11 DUP2 MLOAD DUP2 LT PUSH2 0x4BD0 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP4 PUSH2 0x165E SWAP1 SWAP2 SWAP1 PUSH4 0xFFFFFFFF AND JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP12 MLOAD DUP2 LT ISZERO PUSH2 0x4C0F JUMPI PUSH2 0x4C05 DUP13 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4BED JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4C22 DUP3 DUP14 DUP14 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C2F DUP3 PUSH2 0x3F55 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C3D DUP6 DUP4 PUSH2 0x436A JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4C4B DUP7 DUP4 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH2 0x4B83 PUSH2 0x4B7C DUP4 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x383F JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x4C8C JUMPI PUSH2 0x4C82 DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4836 JUMPI INVALID JUMPDEST SWAP2 POP PUSH1 0x1 ADD PUSH2 0x4C6A JUMP JUMPDEST POP PUSH1 0x60 DUP7 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4CA7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4CD1 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 DUP1 JUMPDEST DUP10 MLOAD DUP2 LT ISZERO PUSH2 0x4D6B JUMPI PUSH1 0x0 PUSH2 0x4CF3 DUP6 DUP13 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4B23 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4D35 DUP12 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4D04 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x4D2F DUP13 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4D1B JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST SWAP1 PUSH2 0x288F JUMP JUMPDEST DUP5 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4D41 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 DUP2 MSTORE POP POP PUSH2 0x4D60 PUSH2 0x4957 DUP3 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x4002 JUMPI INVALID JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x4CD8 JUMP JUMPDEST POP PUSH1 0x60 DUP10 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4D86 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4DB0 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP11 MLOAD DUP2 LT ISZERO PUSH2 0x4E71 JUMPI PUSH1 0x0 DUP4 DUP6 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4DCE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD GT ISZERO PUSH2 0x4E2A JUMPI PUSH1 0x0 PUSH2 0x4DF3 PUSH2 0x49E8 DUP7 PUSH8 0xDE0B6B3A7640000 PUSH2 0x165E JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4E07 DUP3 DUP15 DUP7 DUP2 MLOAD DUP2 LT PUSH2 0x41A9 JUMPI INVALID JUMPDEST SWAP1 POP PUSH2 0x4E21 PUSH2 0x4A22 DUP3 PUSH8 0xDE0B6B3A7640000 DUP14 SWAP1 SUB PUSH2 0x2FDA JUMP JUMPDEST SWAP3 POP POP POP PUSH2 0x4E41 JUMP JUMPDEST DUP11 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4E36 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x4E51 DUP2 DUP14 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x4282 JUMPI INVALID JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4E5D JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x4DB6 JUMP JUMPDEST POP PUSH1 0x0 PUSH2 0x4E7E DUP13 DUP4 PUSH2 0x272D JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x4E8C DUP3 DUP11 PUSH2 0x288F JUMP JUMPDEST SWAP1 POP PUSH8 0xDE0B6B3A7640000 DUP2 GT ISZERO PUSH2 0x4EC0 JUMPI PUSH2 0x4EB3 DUP11 PUSH8 0xDE0B6B3A763FFFF NOT DUP4 ADD PUSH2 0x2FDA JUMP JUMPDEST SWAP7 POP POP POP POP POP POP POP PUSH2 0x477C JUMP JUMPDEST PUSH1 0x0 SWAP7 POP POP POP POP POP POP POP PUSH2 0x477C JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4EE1 PUSH4 0xF4B7964D PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0xCDC JUMPI POP PUSH2 0xCDC DUP3 PUSH2 0x51FB JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x576B JUMP JUMPDEST SWAP1 SWAP6 SWAP1 SWAP5 POP SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x57B0 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x57DC JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x586F JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x15DE SWAP2 SWAP1 PUSH2 0x588D JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x4F7E DUP5 DUP5 PUSH2 0x383F JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP6 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP1 ISZERO PUSH2 0x4F9A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x4FC4 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CALLDATASIZE DUP4 CALLDATACOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP7 MLOAD DUP2 LT ISZERO PUSH2 0x5002 JUMPI PUSH2 0x4FE3 DUP4 DUP9 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x4941 JUMPI INVALID JUMPDEST DUP3 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x4FEF JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 ADD PUSH2 0x4FCA JUMP JUMPDEST POP SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP3 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0x4F0A SWAP2 SWAP1 PUSH2 0x58A9 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x15DE PUSH2 0x5035 DUP5 PUSH2 0x3C95 DUP6 PUSH2 0x29F8 JUMP JUMPDEST PUSH2 0x27C6 DUP5 PUSH2 0x29EA JUMP JUMPDEST PUSH1 0x0 DUP1 DUP5 MLOAD DUP7 MUL SWAP1 POP PUSH1 0x0 DUP6 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x5056 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH1 0x0 DUP7 MLOAD DUP8 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x5071 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD MUL SWAP1 POP PUSH1 0x0 PUSH1 0x1 SWAP1 POP JUMPDEST DUP8 MLOAD DUP2 LT ISZERO PUSH2 0x50D7 JUMPI PUSH2 0x50BC PUSH2 0x50B6 PUSH2 0x50AF DUP5 DUP12 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x50A2 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x15BA JUMP JUMPDEST DUP11 MLOAD PUSH2 0x15BA JUMP JUMPDEST DUP9 PUSH2 0x3609 JUMP JUMPDEST SWAP2 POP PUSH2 0x50CD DUP9 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x274D JUMPI INVALID JUMPDEST SWAP3 POP PUSH1 0x1 ADD PUSH2 0x5083 JUMP JUMPDEST POP DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x50E4 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP3 SUB SWAP2 POP PUSH1 0x0 PUSH2 0x50FC DUP8 DUP9 PUSH2 0x15BA JUMP JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x5128 PUSH2 0x511C PUSH2 0x5114 DUP5 PUSH2 0xB83 DUP10 DUP9 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0x3E8 PUSH2 0x15BA JUMP JUMPDEST DUP11 DUP10 DUP2 MLOAD DUP2 LT PUSH2 0x50A2 JUMPI INVALID JUMPDEST SWAP1 POP PUSH1 0x0 PUSH2 0x5143 PUSH2 0x513C PUSH2 0x5114 DUP12 DUP10 PUSH2 0x3609 JUMP JUMPDEST DUP7 SWAP1 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP1 PUSH2 0x515F PUSH2 0x5155 DUP7 DUP7 PUSH2 0x2264 JUMP JUMPDEST PUSH2 0xB83 DUP14 DUP7 PUSH2 0x2264 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 JUMPDEST PUSH1 0xFF DUP2 LT ISZERO PUSH2 0x51DF JUMPI DUP2 SWAP3 POP PUSH2 0x5194 PUSH2 0x5181 DUP7 PUSH2 0x2801 DUP6 DUP7 PUSH2 0x15BA JUMP JUMPDEST PUSH2 0xB83 DUP15 PUSH2 0x3EDE DUP9 PUSH2 0x2801 DUP9 PUSH1 0x2 PUSH2 0x15BA JUMP JUMPDEST SWAP2 POP DUP3 DUP3 GT ISZERO PUSH2 0x51BD JUMPI PUSH1 0x1 DUP4 DUP4 SUB GT PUSH2 0x51B8 JUMPI POP SWAP8 POP PUSH2 0x1656 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x51D7 JUMP JUMPDEST PUSH1 0x1 DUP3 DUP5 SUB GT PUSH2 0x51D7 JUMPI POP SWAP8 POP PUSH2 0x1656 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x5164 JUMP JUMPDEST POP PUSH2 0x51EB PUSH2 0x142 PUSH2 0x28E0 JUMP JUMPDEST POP POP POP POP POP POP POP POP SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x520D PUSH4 0x2F1A0BC9 PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0x5228 JUMPI POP PUSH2 0x5225 PUSH4 0x7587926B PUSH1 0xE1 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ JUMPDEST DUP1 PUSH2 0xCDC JUMPI POP PUSH2 0xCDC DUP3 PUSH1 0x0 PUSH2 0x5244 PUSH4 0x1C74C917 PUSH1 0xE1 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ DUP1 PUSH2 0x525F JUMPI POP PUSH2 0x525C PUSH4 0x50DD6ED9 PUSH1 0xE0 SHL PUSH2 0x10B4 JUMP JUMPDEST DUP3 EQ JUMPDEST DUP1 PUSH2 0xCDC JUMPI POP PUSH1 0x0 PUSH2 0xCDC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD SWAP1 SWAP2 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE PUSH1 0x0 PUSH1 0x20 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x40 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x60 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x80 SWAP1 SWAP2 ADD MSTORE SWAP1 JUMP JUMPDEST INVALID JUMPDEST DUP1 CALLDATALOAD PUSH2 0x87D DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x52B9 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x52CC PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST PUSH2 0x5E37 JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x52ED JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x2884 JUMPI DUP2 CALLDATALOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x52F0 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x531C JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x532A PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x534B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x2884 JUMPI DUP2 MLOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x534E JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x537A JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5390 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x53A3 PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD PUSH2 0x5E37 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0x53BA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH1 0x20 DUP5 ADD PUSH1 0x20 DUP5 ADD CALLDATACOPY PUSH1 0x0 SWAP1 DUP3 ADD PUSH1 0x20 ADD MSTORE SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x3 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 MLOAD PUSH1 0x4 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH1 0x2 DUP2 LT PUSH2 0x87D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5411 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x15DE DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x542E JUMPI DUP1 DUP2 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x5439 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x5449 DUP2 PUSH2 0x5E7E JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5468 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x5473 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0x5483 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP3 SWAP6 SWAP3 SWAP5 POP POP POP PUSH1 0x40 SWAP2 SWAP1 SWAP2 ADD CALLDATALOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x54AE JUMPI DUP3 DUP4 REVERT JUMPDEST DUP8 CALLDATALOAD PUSH2 0x54B9 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x54C9 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD SWAP4 POP PUSH1 0x80 DUP9 ADD CALLDATALOAD PUSH2 0x54E7 DUP2 PUSH2 0x5E93 JUMP JUMPDEST SWAP7 SWAP10 SWAP6 SWAP9 POP SWAP4 SWAP7 SWAP3 SWAP6 SWAP5 PUSH1 0xA0 DUP5 ADD CALLDATALOAD SWAP5 POP PUSH1 0xC0 SWAP1 SWAP4 ADD CALLDATALOAD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5516 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x5521 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5543 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP4 MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x555A JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 DUP7 ADD SWAP2 POP DUP7 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x556D JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x557B PUSH2 0x52C7 DUP3 PUSH2 0x5E5E JUMP JUMPDEST DUP1 DUP3 DUP3 MSTORE PUSH1 0x20 DUP1 DUP4 ADD SWAP3 POP DUP1 DUP7 ADD DUP12 DUP3 DUP4 DUP8 MUL DUP10 ADD ADD GT ISZERO PUSH2 0x559B JUMPI DUP8 DUP9 REVERT JUMPDEST DUP8 SWAP7 POP JUMPDEST DUP5 DUP8 LT ISZERO PUSH2 0x55C6 JUMPI DUP1 MLOAD PUSH2 0x55B2 DUP2 PUSH2 0x5E7E JUMP JUMPDEST DUP5 MSTORE PUSH1 0x1 SWAP7 SWAP1 SWAP7 ADD SWAP6 SWAP3 DUP2 ADD SWAP3 DUP2 ADD PUSH2 0x559F JUMP JUMPDEST POP DUP10 ADD MLOAD SWAP1 SWAP8 POP SWAP4 POP POP POP DUP1 DUP3 GT ISZERO PUSH2 0x55DD JUMPI DUP3 DUP4 REVERT JUMPDEST POP PUSH2 0x55EA DUP7 DUP3 DUP8 ADD PUSH2 0x530C JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x560C JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x15DE JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x5635 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP8 CALLDATALOAD SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x5647 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH2 0x5657 DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x5673 JUMPI DUP3 DUP4 REVERT JUMPDEST PUSH2 0x567F DUP12 DUP4 DUP13 ADD PUSH2 0x52A9 JUMP JUMPDEST SWAP6 POP PUSH1 0x80 DUP11 ADD CALLDATALOAD SWAP5 POP PUSH1 0xA0 DUP11 ADD CALLDATALOAD SWAP4 POP PUSH1 0xC0 DUP11 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x56A2 JUMPI DUP3 DUP4 REVERT JUMPDEST POP PUSH2 0x56AF DUP11 DUP3 DUP12 ADD PUSH2 0x536A JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP9 SWAP2 SWAP5 SWAP8 POP SWAP3 SWAP6 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x56CF JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH2 0x15DE JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x56F7 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x15DE DUP2 PUSH2 0x5E7E JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5714 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x571F DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x573A JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5746 DUP6 DUP3 DUP7 ADD PUSH2 0x536A JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5761 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x15DE DUP4 DUP4 PUSH2 0x53D3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x577F JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x5789 DUP6 DUP6 PUSH2 0x53D3 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x57A4 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x55EA DUP7 DUP3 DUP8 ADD PUSH2 0x530C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x57C2 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x57CC DUP5 DUP5 PUSH2 0x53D3 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x57F0 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x57FA DUP6 DUP6 PUSH2 0x53D3 JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD MLOAD SWAP2 POP PUSH1 0x40 DUP5 ADD MLOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5822 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x15DE DUP4 DUP4 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x583E JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5848 DUP5 DUP5 PUSH2 0x53E2 JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x5863 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x5746 DUP6 DUP3 DUP7 ADD PUSH2 0x530C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x5883 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x5789 DUP6 DUP6 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x589F JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0x57CC DUP5 DUP5 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x58BD JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0x57FA DUP6 DUP6 PUSH2 0x53E2 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x58DC JUMPI DUP2 DUP3 REVERT JUMPDEST DUP5 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0x58F3 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP2 DUP8 ADD SWAP2 POP PUSH2 0x120 DUP1 DUP4 DUP11 SUB SLT ISZERO PUSH2 0x5909 JUMPI DUP5 DUP6 REVERT JUMPDEST PUSH2 0x5912 DUP2 PUSH2 0x5E37 JUMP JUMPDEST SWAP1 POP PUSH2 0x591E DUP10 DUP5 PUSH2 0x53F1 JUMP JUMPDEST DUP2 MSTORE PUSH2 0x592D DUP10 PUSH1 0x20 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0x20 DUP3 ADD MSTORE PUSH2 0x593F DUP10 PUSH1 0x40 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 DUP4 ADD CALLDATALOAD PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 DUP4 ADD CALLDATALOAD PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 DUP4 ADD CALLDATALOAD PUSH1 0xA0 DUP3 ADD MSTORE PUSH2 0x596F DUP10 PUSH1 0xC0 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0xC0 DUP3 ADD MSTORE PUSH2 0x5981 DUP10 PUSH1 0xE0 DUP6 ADD PUSH2 0x529E JUMP JUMPDEST PUSH1 0xE0 DUP3 ADD MSTORE PUSH2 0x100 DUP1 DUP5 ADD CALLDATALOAD DUP4 DUP2 GT ISZERO PUSH2 0x5999 JUMPI DUP7 DUP8 REVERT JUMPDEST PUSH2 0x59A5 DUP12 DUP3 DUP8 ADD PUSH2 0x536A JUMP JUMPDEST DUP3 DUP5 ADD MSTORE POP POP DUP1 SWAP7 POP POP PUSH1 0x20 DUP8 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0x59C2 JUMPI DUP4 DUP5 REVERT JUMPDEST POP PUSH2 0x59CF DUP8 DUP3 DUP9 ADD PUSH2 0x52A9 JUMP JUMPDEST SWAP5 SWAP8 SWAP5 SWAP7 POP POP POP POP PUSH1 0x40 DUP4 ADD CALLDATALOAD SWAP3 PUSH1 0x60 ADD CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x59F7 JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5A0F JUMPI DUP1 DUP2 REVERT JUMPDEST POP MLOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5A28 JUMPI DUP2 DUP3 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x5A4C JUMPI DUP2 DUP3 REVERT JUMPDEST DUP5 MLOAD SWAP4 POP PUSH1 0x20 DUP6 ADD MLOAD SWAP3 POP PUSH1 0x40 DUP6 ADD MLOAD SWAP2 POP PUSH1 0x60 DUP6 ADD MLOAD PUSH2 0x5A6C DUP2 PUSH2 0x5E7E JUMP JUMPDEST SWAP4 SWAP7 SWAP3 SWAP6 POP SWAP1 SWAP4 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x5A88 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x15DE DUP2 PUSH2 0x5E93 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x5AA5 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 MLOAD PUSH2 0x5AB0 DUP2 PUSH2 0x5E93 JUMP JUMPDEST PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD MLOAD SWAP3 SWAP5 SWAP3 SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE PUSH1 0x20 DUP1 DUP6 ADD SWAP5 POP DUP1 DUP5 ADD DUP4 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x5AFC JUMPI DUP2 MLOAD DUP8 MSTORE SWAP6 DUP3 ADD SWAP6 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x5AE0 JUMP JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x5B2C JUMPI PUSH1 0x20 DUP2 DUP6 ADD DUP2 ADD MLOAD DUP7 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0x5B10 JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0x5B3D JUMPI DUP3 PUSH1 0x20 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x24 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 DUP4 CALLDATACOPY SWAP2 ADD SWAP1 DUP2 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1901 PUSH1 0xF0 SHL DUP2 MSTORE PUSH1 0x2 DUP2 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x22 DUP3 ADD MSTORE PUSH1 0x42 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 DUP5 DUP3 ADD SWAP1 PUSH1 0x40 DUP6 ADD SWAP1 DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x5BEA JUMPI DUP4 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 MSTORE SWAP3 DUP5 ADD SWAP3 SWAP2 DUP5 ADD SWAP2 PUSH1 0x1 ADD PUSH2 0x5BC5 JUMP JUMPDEST POP SWAP1 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 PUSH1 0x40 SWAP1 DUP2 DUP6 ADD SWAP1 DUP7 DUP5 ADD DUP6 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x5C80 JUMPI DUP2 MLOAD DUP1 MLOAD PUSH1 0x4 DUP2 LT PUSH2 0x5C29 JUMPI INVALID JUMPDEST DUP6 MSTORE DUP1 DUP8 ADD MLOAD PUSH2 0x5C3B DUP9 DUP8 ADD DUP3 PUSH2 0x5AC0 JUMP JUMPDEST POP DUP6 DUP2 ADD MLOAD DUP7 DUP7 ADD MSTORE PUSH1 0x60 DUP1 DUP3 ADD MLOAD PUSH2 0x5C56 DUP3 DUP9 ADD DUP3 PUSH2 0x5AC0 JUMP JUMPDEST POP POP PUSH1 0x80 SWAP1 DUP2 ADD MLOAD SWAP1 PUSH2 0x5C6B DUP7 DUP3 ADD DUP4 PUSH2 0x5AC0 JUMP JUMPDEST POP POP PUSH1 0xA0 SWAP4 SWAP1 SWAP4 ADD SWAP3 SWAP1 DUP6 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x5C13 JUMP JUMPDEST POP SWAP2 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x15DE PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x5ACD JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 DUP3 MSTORE PUSH2 0x5CB3 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x5ACD JUMP JUMPDEST DUP3 DUP2 SUB PUSH1 0x20 DUP5 ADD MSTORE PUSH2 0x185C DUP2 DUP6 PUSH2 0x5ACD JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 ISZERO ISZERO DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 DUP4 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x20 DUP5 ADD MSTORE AND PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP6 DUP7 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP5 DUP6 AND PUSH1 0x20 DUP8 ADD MSTORE SWAP3 SWAP1 SWAP4 AND PUSH1 0x40 DUP6 ADD MSTORE PUSH1 0x60 DUP5 ADD MSTORE PUSH1 0x80 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0xA0 DUP3 ADD MSTORE PUSH1 0xC0 ADD SWAP1 JUMP JUMPDEST SWAP5 DUP6 MSTORE PUSH1 0x20 DUP6 ADD SWAP4 SWAP1 SWAP4 MSTORE PUSH1 0x40 DUP5 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x60 DUP4 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0xA0 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP4 DUP3 MSTORE PUSH1 0x40 PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1656 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x5B07 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP4 DUP5 MSTORE PUSH1 0xFF SWAP3 SWAP1 SWAP3 AND PUSH1 0x20 DUP5 ADD MSTORE PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x15DE PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x5B07 JUMP JUMPDEST PUSH1 0x0 DUP4 DUP3 MSTORE PUSH1 0x40 PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1656 PUSH1 0x40 DUP4 ADD DUP5 PUSH2 0x5ACD JUMP JUMPDEST SWAP3 DUP4 MSTORE SWAP1 ISZERO ISZERO PUSH1 0x20 DUP4 ADD MSTORE PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP4 DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP3 SWAP1 SWAP3 MSTORE PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH1 0xFF SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x5E56 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x5E74 JUMPI DUP1 DUP2 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0xBFA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0xBFA JUMPI PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB4 0xE5 POP PUSH25 0x37F90EBE851B3B7805B576DAD987FB40B27B1310B6721068 0x1E BLOCKHASH DUP5 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER PUSH12 0xFB689528FA96EC1AD670AD6D PUSH1 0x64 0xBE BYTE 0xE9 PUSH12 0xFD5D2EE35C837FD0FE0C1195 SWAP11 ",
+ "sourceMap": "1168:2460:55:-:0;;;1341:337;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1531:5;1538:19;1559:39;;;;;;;;:::i;:::-;-1:-1:-1;;1559:39:55;;;;;;;;;;;;;;1942:19:38;;2492:5:31;;1143:4:43;;1559:39:55;;1119:31:43;2336:1:38;1942:19;2317:20;2347:38;;;;2424:36;;;2470:38;;;;3172:40;;;2317:20;;-1:-1:-1;3172:40:38;3347:34;3172:40;3347:19;;;;;;;:34;;:::i;:::-;3322:59;;-1:-1:-1;;;;;;3322:59:38;;;3920:36;;;3982:20;;4015:40;;;4240:34;3920:36;4240:19;;;;;;;:34;;:::i;:::-;-1:-1:-1;;;;;;4215:59:38;;;;;;;;4429:39;;;;4481:32;;2049:46:37;;;;;-1:-1:-1;;1162:14:43;;;;;::::1;::::0;-1:-1:-1;2509:42:31;;;;;;;::::2;::::0;-1:-1:-1;;1652:15:32;1337:7;1652:48;1625:75;;1610:25:55;;::::1;::::0;:8:::1;::::0;:25:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;1645:26:55;;::::1;::::0;:12:::1;::::0;:26:::1;::::0;::::1;::::0;::::1;:::i;:::-;;1341:337:::0;;;;1168:2460;;2737:1366:39;3232:11;;2514:66;3465:34;;;2790:19;;3768:2;3752:19;;3238:4;2790:19;3736:36;3872:24;;;3721:51;-1:-1:-1;4030:66:39;-1:-1:-1;;;;;4039:25:39;;;;11595:3:10;4030:8:39;:66::i;:::-;2737:1366;;;;:::o;918:101:10:-;987:9;982:34;;998:18;1006:9;998:7;:18::i;:::-;918:101;;:::o;1437:126::-;1484:28;1492:9;-1:-1:-1;;;1484:7:10;:28::i;:::-;1437:126;:::o;1670:3378::-;-1:-1:-1;;;1732:18:10;4383:79;;;4601:66;4595:4;4588:80;4743:1;4737:4;4730:15;2871:2;2904:18;;;2949;;;2876:4;2945:29;;;3747:1;3838:14;2856:18;;;;3827:26;;;;2997:18;;;;3044;;;3040:29;;3859:2;3855:17;3823:50;3737:4;3743:18;;;;;;3733:29;3729:2;3725:38;3802:72;;;;3797:3;3793:82;4810:4;4803:26;1761:14;;;;;5036:3;;5026:14;1168:2460:55;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1168:2460:55;;;-1:-1:-1;1168:2460:55;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;398:444:-1;;511:3;504:4;496:6;492:17;488:27;478:2;;-1:-1;;519:12;478:2;553:13;;-1:-1;;;;;2233:30;;;2230:2;;;-1:-1;;2266:12;2230:2;1899;1893:9;2407:4;2339:9;2320:17;;-1:-1;;2316:33;1925:17;;;;1985:34;;;2021:22;;;1982:62;1979:2;;;-1:-1;;2047:12;1979:2;2077:10;1899:2;2066:22;;572:74;;;666:6;659:5;652:21;770:3;2407:4;761:6;694;752:16;;749:25;746:2;;;787:1;;777:12;746:2;2972:1;2963:10;;2979:101;2993:6;2990:1;2987:13;2979:101;;;3060:11;;;;;3054:18;3041:11;;;;;3034:39;3008:10;;;;2979:101;;;3095:6;3092:1;3089:13;3086:2;;;2972:1;2407:4;3151:6;728:5;3142:16;;3135:27;3086:2;;;;;471:371;;;;:::o;850:980::-;;;;;1091:3;1079:9;1070:7;1066:23;1062:33;1059:2;;;-1:-1;;1098:12;1059:2;325:6;319:13;337:48;379:5;337:48;:::i;:::-;1276:2;1366:22;;123:13;1150:89;;-1:-1;141:73;123:13;141:73;:::i;:::-;1456:2;1441:18;;1435:25;1284:114;;-1:-1;;;;;;1469:30;;;1466:2;;;-1:-1;;1502:12;1466:2;1532:74;1598:7;1589:6;1578:9;1574:22;1532:74;:::i;:::-;1522:84;;1664:2;1653:9;1649:18;1643:25;1629:39;;1480:18;1680:6;1677:30;1674:2;;;-1:-1;;1710:12;1674:2;;1740:74;1806:7;1797:6;1786:9;1782:22;1740:74;:::i;:::-;1730:84;;;1053:777;;;;;;;:::o;3183:197::-;-1:-1;;;;;2840:54;;3282:75;;3272:2;;3371:1;;3361:12;3266:114;1168:2460:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {
+ "4153": [
+ {
+ "length": 32,
+ "start": 1018
+ }
+ ],
+ "4291": [
+ {
+ "length": 32,
+ "start": 562
+ },
+ {
+ "length": 32,
+ "start": 603
+ }
+ ],
+ "4973": [
+ {
+ "length": 32,
+ "start": 1056
+ }
+ ],
+ "5048": [
+ {
+ "length": 32,
+ "start": 488
+ },
+ {
+ "length": 32,
+ "start": 1687
+ }
+ ],
+ "5050": [
+ {
+ "length": 32,
+ "start": 1632
+ }
+ ],
+ "5052": [
+ {
+ "length": 32,
+ "start": 521
+ },
+ {
+ "length": 32,
+ "start": 1723
+ }
+ ],
+ "5054": [
+ {
+ "length": 32,
+ "start": 1599
+ }
+ ],
+ "5929": [
+ {
+ "length": 32,
+ "start": 1136
+ }
+ ]
+ },
+ "linkReferences": {},
+ "object": "608060405234801561001057600080fd5b50600436106100de5760003560e01c80636634b7531161008c578063851c1bb311610066578063851c1bb3146101845780638d928af8146101a4578063971e1833146101ac578063aaabadc5146101bf576100de565b80636634b753146101475780636c57f5a914610167578063739238d61461016f576100de565b80632f2770db116100bd5780632f2770db1461012d5780633f819b6f1461013757806354fd4d501461013f576100de565b8062c194db146100e3578063174481fa146101015780632da47c4014610117575b600080fd5b6100eb6101c7565b6040516100f89190610db5565b60405180910390f35b6101096101e6565b6040516100f8929190610d68565b61011f61022c565b6040516100f8929190610f17565b610135610296565b005b6100eb6102dd565b6100eb610373565b61015a610155366004610af6565b6103d1565b6040516100f89190610d82565b61015a6103ef565b6101776103f8565b6040516100f89190610dc8565b610197610192366004610b2e565b61041c565b6040516100f89190610d8d565b61017761046e565b6101776101ba366004610b72565b610492565b61017761056b565b60606101e160405180602001604052806000815250610637565b905090565b7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000009091565b600080427f000000000000000000000000000000000000000000000000000000000000000081101561028857807f000000000000000000000000000000000000000000000000000000000000000003925062278d009150610291565b60009250600091505b509091565b61029e610710565b6102a6610741565b6001805460ff1916811790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d5090600090a1565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b820191906000526020600020905b81548152906001019060200180831161034c57829003601f168201915b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156103695780601f1061033e57610100808354040283529160200191610369565b6001600160a01b031660009081526020819052604090205460ff1690565b60015460ff1690565b7f000000000000000000000000000000000000000000000000000000000000000090565b60007f000000000000000000000000000000000000000000000000000000000000000082604051602001610451929190610d50565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b600080600061049f61022c565b9150915061055a604051806101c001604052806104ba61046e565b6001600160a01b031681526020016104d06103f8565b6001600160a01b031681526020018f81526020018e81526020018d81526020018b81526020018a815260200189151581526020018c8152602001888152602001848152602001838152602001876001600160a01b031681526020016105336102dd565b90526040516105459190602001610ddc565b60405160208183030381529060405285610756565b9d9c50505050505050505050505050565b600061057561046e565b6001600160a01b031663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ad57600080fd5b505afa1580156105c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e19190610b56565b80517f602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe808352600091602081018484f090845291506106316001600160a01b03831615156101ac6107c3565b50919050565b8051604080517f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000818101858101848101602090810190965280855293957f00000000000000000000000000000000000000000000000000000000000000009592947f000000000000000000000000000000000000000000000000000000000000000094938801866000828a3c846000888301883c50602089810190898501016107028183866107d5565b505050505050505050919050565b60006107276000356001600160e01b03191661041c565b905061073e6107368233610813565b6101916107c3565b50565b61075461074c6103ef565b1560d36107c3565b565b6000610760610741565b600061076c84846108a3565b6001600160a01b038116600081815260208190526040808220805460ff191660011790555192935090917f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a290505b92915050565b816107d1576107d1816108e0565b5050565b5b602081106107f5578151835260209283019290910190601f19016107d6565b905182516020929092036101000a6000190180199091169116179052565b600061081d61056b565b6001600160a01b0316639be2a8848484306040518463ffffffff1660e01b815260040161084c93929190610d96565b60206040518083038186803b15801561086457600080fd5b505afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c9190610b12565b9392505050565b600060606108b084610637565b90506000838251602084016000f590506001600160a01b0381166108d8573d6000803e3d6000fd5b949350505050565b62461bcd60e51b600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b60445261073e916210905360ea1b906242414c90606490fd5b80356107bd81610f6c565b600082601f830112610956578081fd5b813561096961096482610f4c565b610f25565b81815291506020808301908481018184028601820187101561098a57600080fd5b60005b848110156109b25781356109a081610f6c565b8452928201929082019060010161098d565b505050505092915050565b600082601f8301126109cd578081fd5b81356109db61096482610f4c565b8181529150602080830190848101818402860182018710156109fc57600080fd5b60005b848110156109b2578135610a1281610f6c565b845292820192908201906001016109ff565b600082601f830112610a34578081fd5b8135610a4261096482610f4c565b818152915060208083019084810181840286018201871015610a6357600080fd5b60005b848110156109b257813584529282019290820190600101610a66565b80356107bd81610f81565b600082601f830112610a9d578081fd5b813567ffffffffffffffff811115610ab3578182fd5b610ac6601f8201601f1916602001610f25565b9150808252836020828501011115610add57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610b07578081fd5b813561089c81610f6c565b600060208284031215610b23578081fd5b815161089c81610f81565b600060208284031215610b3f578081fd5b81356001600160e01b03198116811461089c578182fd5b600060208284031215610b67578081fd5b815161089c81610f6c565b6000806000806000806000806000806101408b8d031215610b91578586fd5b8a3567ffffffffffffffff80821115610ba8578788fd5b610bb48e838f01610a8d565b9b5060208d0135915080821115610bc9578788fd5b610bd58e838f01610a8d565b9a5060408d0135915080821115610bea578788fd5b610bf68e838f01610946565b995060608d0135985060808d0135915080821115610c12578788fd5b610c1e8e838f016109bd565b975060a08d0135915080821115610c33578687fd5b50610c408d828e01610a24565b955050610c508c60c08d01610a82565b935060e08b01359250610c678c6101008d0161093b565b91506101208b013590509295989b9194979a5092959850565b6001600160a01b03169052565b6000815180845260208085019450808401835b83811015610cc55781516001600160a01b031687529582019590820190600101610ca0565b509495945050505050565b6000815180845260208085019450808401835b83811015610cc557815187529582019590820190600101610ce3565b15159052565b60008151808452815b81811015610d2a57602081850181015186830182015201610d0e565b81811115610d3b5782602083870101525b50601f01601f19169290920160200192915050565b9182526001600160e01b031916602082015260240190565b6001600160a01b0392831681529116602082015260400190565b901515815260200190565b90815260200190565b9283526001600160a01b03918216602084015216604082015260600190565b60006020825261089c6020830184610d05565b6001600160a01b0391909116815260200190565b600060208252610df0602083018451610c80565b6020830151610e026040840182610c80565b5060408301516101c0806060850152610e1f6101e0850183610d05565b91506060850151601f1980868503016080870152610e3d8483610d05565b935060808701519150808685030160a0870152610e5a8483610c8d565b935060a08701519150808685030160c0870152610e778483610c8d565b935060c08701519150808685030160e0870152610e948483610cd0565b935060e08701519150610100610eac81880184610cff565b8701516101208781019190915287015161014080880191909152870151610160808801919091528701516101808088019190915287015191506101a0610ef481880184610c80565b870151868503909101838701529050610f0d8382610d05565b9695505050505050565b918252602082015260400190565b60405181810167ffffffffffffffff81118282101715610f4457600080fd5b604052919050565b600067ffffffffffffffff821115610f62578081fd5b5060209081020190565b6001600160a01b038116811461073e57600080fd5b801515811461073e57600080fdfea26469706673582212209e0aae2f26ba89d69b81af7af61eaa1316c922acdebe021f38d79fcb5f3c901364736f6c63430007010033",
+ "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0xDE JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x6634B753 GT PUSH2 0x8C JUMPI DUP1 PUSH4 0x851C1BB3 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0x851C1BB3 EQ PUSH2 0x184 JUMPI DUP1 PUSH4 0x8D928AF8 EQ PUSH2 0x1A4 JUMPI DUP1 PUSH4 0x971E1833 EQ PUSH2 0x1AC JUMPI DUP1 PUSH4 0xAAABADC5 EQ PUSH2 0x1BF JUMPI PUSH2 0xDE JUMP JUMPDEST DUP1 PUSH4 0x6634B753 EQ PUSH2 0x147 JUMPI DUP1 PUSH4 0x6C57F5A9 EQ PUSH2 0x167 JUMPI DUP1 PUSH4 0x739238D6 EQ PUSH2 0x16F JUMPI PUSH2 0xDE JUMP JUMPDEST DUP1 PUSH4 0x2F2770DB GT PUSH2 0xBD JUMPI DUP1 PUSH4 0x2F2770DB EQ PUSH2 0x12D JUMPI DUP1 PUSH4 0x3F819B6F EQ PUSH2 0x137 JUMPI DUP1 PUSH4 0x54FD4D50 EQ PUSH2 0x13F JUMPI PUSH2 0xDE JUMP JUMPDEST DUP1 PUSH3 0xC194DB EQ PUSH2 0xE3 JUMPI DUP1 PUSH4 0x174481FA EQ PUSH2 0x101 JUMPI DUP1 PUSH4 0x2DA47C40 EQ PUSH2 0x117 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xEB PUSH2 0x1C7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xDB5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x109 PUSH2 0x1E6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP3 SWAP2 SWAP1 PUSH2 0xD68 JUMP JUMPDEST PUSH2 0x11F PUSH2 0x22C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP3 SWAP2 SWAP1 PUSH2 0xF17 JUMP JUMPDEST PUSH2 0x135 PUSH2 0x296 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xEB PUSH2 0x2DD JUMP JUMPDEST PUSH2 0xEB PUSH2 0x373 JUMP JUMPDEST PUSH2 0x15A PUSH2 0x155 CALLDATASIZE PUSH1 0x4 PUSH2 0xAF6 JUMP JUMPDEST PUSH2 0x3D1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xD82 JUMP JUMPDEST PUSH2 0x15A PUSH2 0x3EF JUMP JUMPDEST PUSH2 0x177 PUSH2 0x3F8 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xDC8 JUMP JUMPDEST PUSH2 0x197 PUSH2 0x192 CALLDATASIZE PUSH1 0x4 PUSH2 0xB2E JUMP JUMPDEST PUSH2 0x41C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF8 SWAP2 SWAP1 PUSH2 0xD8D JUMP JUMPDEST PUSH2 0x177 PUSH2 0x46E JUMP JUMPDEST PUSH2 0x177 PUSH2 0x1BA CALLDATASIZE PUSH1 0x4 PUSH2 0xB72 JUMP JUMPDEST PUSH2 0x492 JUMP JUMPDEST PUSH2 0x177 PUSH2 0x56B JUMP JUMPDEST PUSH1 0x60 PUSH2 0x1E1 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE POP PUSH2 0x637 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH32 0x0 PUSH32 0x0 SWAP1 SWAP2 JUMP JUMPDEST PUSH1 0x0 DUP1 TIMESTAMP PUSH32 0x0 DUP2 LT ISZERO PUSH2 0x288 JUMPI DUP1 PUSH32 0x0 SUB SWAP3 POP PUSH3 0x278D00 SWAP2 POP PUSH2 0x291 JUMP JUMPDEST PUSH1 0x0 SWAP3 POP PUSH1 0x0 SWAP2 POP JUMPDEST POP SWAP1 SWAP2 JUMP JUMPDEST PUSH2 0x29E PUSH2 0x710 JUMP JUMPDEST PUSH2 0x2A6 PUSH2 0x741 JUMP JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH1 0xFF NOT AND DUP2 OR SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH32 0x432ACBFD662DBB5D8B378384A67159B47CA9D0F1B79F97CF64CF8585FA362D50 SWAP1 PUSH1 0x0 SWAP1 LOG1 JUMP JUMPDEST PUSH1 0x3 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x369 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33E JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x369 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x34C JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x2 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP8 AND ISZERO MUL ADD SWAP1 SWAP5 AND DUP6 SWAP1 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x369 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x33E JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x369 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x1 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH32 0x0 DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x451 SWAP3 SWAP2 SWAP1 PUSH2 0xD50 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x0 SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x49F PUSH2 0x22C JUMP JUMPDEST SWAP2 POP SWAP2 POP PUSH2 0x55A PUSH1 0x40 MLOAD DUP1 PUSH2 0x1C0 ADD PUSH1 0x40 MSTORE DUP1 PUSH2 0x4BA PUSH2 0x46E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x4D0 PUSH2 0x3F8 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD DUP16 DUP2 MSTORE PUSH1 0x20 ADD DUP15 DUP2 MSTORE PUSH1 0x20 ADD DUP14 DUP2 MSTORE PUSH1 0x20 ADD DUP12 DUP2 MSTORE PUSH1 0x20 ADD DUP11 DUP2 MSTORE PUSH1 0x20 ADD DUP10 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD DUP13 DUP2 MSTORE PUSH1 0x20 ADD DUP9 DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP2 MSTORE PUSH1 0x20 ADD DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x533 PUSH2 0x2DD JUMP JUMPDEST SWAP1 MSTORE PUSH1 0x40 MLOAD PUSH2 0x545 SWAP2 SWAP1 PUSH1 0x20 ADD PUSH2 0xDDC JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP6 PUSH2 0x756 JUMP JUMPDEST SWAP14 SWAP13 POP POP POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x575 PUSH2 0x46E JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0xAAABADC5 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x5AD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x5C1 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x1E1 SWAP2 SWAP1 PUSH2 0xB56 JUMP JUMPDEST DUP1 MLOAD PUSH32 0x602038038060206000396000F3FEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFEFE DUP1 DUP4 MSTORE PUSH1 0x0 SWAP2 PUSH1 0x20 DUP2 ADD DUP5 DUP5 CREATE SWAP1 DUP5 MSTORE SWAP2 POP PUSH2 0x631 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND ISZERO ISZERO PUSH2 0x1AC PUSH2 0x7C3 JUMP JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x40 DUP1 MLOAD PUSH32 0x0 PUSH32 0x0 DUP2 DUP2 ADD DUP6 DUP2 ADD DUP5 DUP2 ADD PUSH1 0x20 SWAP1 DUP2 ADD SWAP1 SWAP7 MSTORE DUP1 DUP6 MSTORE SWAP4 SWAP6 PUSH32 0x0 SWAP6 SWAP3 SWAP5 PUSH32 0x0 SWAP5 SWAP4 DUP9 ADD DUP7 PUSH1 0x0 DUP3 DUP11 EXTCODECOPY DUP5 PUSH1 0x0 DUP9 DUP4 ADD DUP9 EXTCODECOPY POP PUSH1 0x20 DUP10 DUP2 ADD SWAP1 DUP10 DUP6 ADD ADD PUSH2 0x702 DUP2 DUP4 DUP7 PUSH2 0x7D5 JUMP JUMPDEST POP POP POP POP POP POP POP POP POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x727 PUSH1 0x0 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH2 0x41C JUMP JUMPDEST SWAP1 POP PUSH2 0x73E PUSH2 0x736 DUP3 CALLER PUSH2 0x813 JUMP JUMPDEST PUSH2 0x191 PUSH2 0x7C3 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x754 PUSH2 0x74C PUSH2 0x3EF JUMP JUMPDEST ISZERO PUSH1 0xD3 PUSH2 0x7C3 JUMP JUMPDEST JUMP JUMPDEST PUSH1 0x0 PUSH2 0x760 PUSH2 0x741 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x76C DUP5 DUP5 PUSH2 0x8A3 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE MLOAD SWAP3 SWAP4 POP SWAP1 SWAP2 PUSH32 0x83A48FBCFC991335314E74D0496AAB6A1987E992DDC85DDDBCC4D6DD6EF2E9FC SWAP2 SWAP1 LOG2 SWAP1 POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP2 PUSH2 0x7D1 JUMPI PUSH2 0x7D1 DUP2 PUSH2 0x8E0 JUMP JUMPDEST POP POP JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP2 LT PUSH2 0x7F5 JUMPI DUP2 MLOAD DUP4 MSTORE PUSH1 0x20 SWAP3 DUP4 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 PUSH1 0x1F NOT ADD PUSH2 0x7D6 JUMP JUMPDEST SWAP1 MLOAD DUP3 MLOAD PUSH1 0x20 SWAP3 SWAP1 SWAP3 SUB PUSH2 0x100 EXP PUSH1 0x0 NOT ADD DUP1 NOT SWAP1 SWAP2 AND SWAP2 AND OR SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x81D PUSH2 0x56B JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH4 0x9BE2A884 DUP5 DUP5 ADDRESS PUSH1 0x40 MLOAD DUP5 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x84C SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0xD96 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x864 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x878 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x89C SWAP2 SWAP1 PUSH2 0xB12 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH2 0x8B0 DUP5 PUSH2 0x637 JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP4 DUP3 MLOAD PUSH1 0x20 DUP5 ADD PUSH1 0x0 CREATE2 SWAP1 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x8D8 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH3 0x461BCD PUSH1 0xE5 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 MSTORE PUSH1 0x7 PUSH1 0x24 MSTORE PUSH1 0xA DUP1 DUP4 DIV DUP2 DUP2 MOD PUSH1 0x30 SWAP1 DUP2 ADD PUSH1 0x8 SHL DUP4 DUP7 MOD ADD SWAP2 DUP4 SWAP1 DIV SWAP3 DUP4 MOD ADD PUSH1 0x10 SHL ADD PUSH7 0x42414C23000030 ADD PUSH1 0xC8 SHL PUSH1 0x44 MSTORE PUSH2 0x73E SWAP2 PUSH3 0x109053 PUSH1 0xEA SHL SWAP1 PUSH3 0x42414C SWAP1 PUSH1 0x64 SWAP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH2 0x7BD DUP2 PUSH2 0xF6C JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x956 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x969 PUSH2 0x964 DUP3 PUSH2 0xF4C JUMP JUMPDEST PUSH2 0xF25 JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x98A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x9B2 JUMPI DUP2 CALLDATALOAD PUSH2 0x9A0 DUP2 PUSH2 0xF6C JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x98D JUMP JUMPDEST POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x9CD JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x9DB PUSH2 0x964 DUP3 PUSH2 0xF4C JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0x9FC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x9B2 JUMPI DUP2 CALLDATALOAD PUSH2 0xA12 DUP2 PUSH2 0xF6C JUMP JUMPDEST DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x9FF JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0xA34 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0xA42 PUSH2 0x964 DUP3 PUSH2 0xF4C JUMP JUMPDEST DUP2 DUP2 MSTORE SWAP2 POP PUSH1 0x20 DUP1 DUP4 ADD SWAP1 DUP5 DUP2 ADD DUP2 DUP5 MUL DUP7 ADD DUP3 ADD DUP8 LT ISZERO PUSH2 0xA63 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP5 DUP2 LT ISZERO PUSH2 0x9B2 JUMPI DUP2 CALLDATALOAD DUP5 MSTORE SWAP3 DUP3 ADD SWAP3 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0xA66 JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0x7BD DUP2 PUSH2 0xF81 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0xA9D JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xAB3 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0xAC6 PUSH1 0x1F DUP3 ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD PUSH2 0xF25 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0xADD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH1 0x20 DUP5 ADD PUSH1 0x20 DUP5 ADD CALLDATACOPY PUSH1 0x0 SWAP1 DUP3 ADD PUSH1 0x20 ADD MSTORE SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB07 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x89C DUP2 PUSH2 0xF6C JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB23 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x89C DUP2 PUSH2 0xF81 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB3F JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH2 0x89C JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xB67 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x89C DUP2 PUSH2 0xF6C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x140 DUP12 DUP14 SUB SLT ISZERO PUSH2 0xB91 JUMPI DUP6 DUP7 REVERT JUMPDEST DUP11 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0xBA8 JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xBB4 DUP15 DUP4 DUP16 ADD PUSH2 0xA8D JUMP JUMPDEST SWAP12 POP PUSH1 0x20 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xBC9 JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xBD5 DUP15 DUP4 DUP16 ADD PUSH2 0xA8D JUMP JUMPDEST SWAP11 POP PUSH1 0x40 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xBEA JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xBF6 DUP15 DUP4 DUP16 ADD PUSH2 0x946 JUMP JUMPDEST SWAP10 POP PUSH1 0x60 DUP14 ADD CALLDATALOAD SWAP9 POP PUSH1 0x80 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xC12 JUMPI DUP8 DUP9 REVERT JUMPDEST PUSH2 0xC1E DUP15 DUP4 DUP16 ADD PUSH2 0x9BD JUMP JUMPDEST SWAP8 POP PUSH1 0xA0 DUP14 ADD CALLDATALOAD SWAP2 POP DUP1 DUP3 GT ISZERO PUSH2 0xC33 JUMPI DUP7 DUP8 REVERT JUMPDEST POP PUSH2 0xC40 DUP14 DUP3 DUP15 ADD PUSH2 0xA24 JUMP JUMPDEST SWAP6 POP POP PUSH2 0xC50 DUP13 PUSH1 0xC0 DUP14 ADD PUSH2 0xA82 JUMP JUMPDEST SWAP4 POP PUSH1 0xE0 DUP12 ADD CALLDATALOAD SWAP3 POP PUSH2 0xC67 DUP13 PUSH2 0x100 DUP14 ADD PUSH2 0x93B JUMP JUMPDEST SWAP2 POP PUSH2 0x120 DUP12 ADD CALLDATALOAD SWAP1 POP SWAP3 SWAP6 SWAP9 SWAP12 SWAP2 SWAP5 SWAP8 SWAP11 POP SWAP3 SWAP6 SWAP9 POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE PUSH1 0x20 DUP1 DUP6 ADD SWAP5 POP DUP1 DUP5 ADD DUP4 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xCC5 JUMPI DUP2 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP8 MSTORE SWAP6 DUP3 ADD SWAP6 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0xCA0 JUMP JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE PUSH1 0x20 DUP1 DUP6 ADD SWAP5 POP DUP1 DUP5 ADD DUP4 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xCC5 JUMPI DUP2 MLOAD DUP8 MSTORE SWAP6 DUP3 ADD SWAP6 SWAP1 DUP3 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0xCE3 JUMP JUMPDEST ISZERO ISZERO SWAP1 MSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xD2A JUMPI PUSH1 0x20 DUP2 DUP6 ADD DUP2 ADD MLOAD DUP7 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0xD0E JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0xD3B JUMPI DUP3 PUSH1 0x20 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x24 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 DUP4 AND DUP2 MSTORE SWAP2 AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST SWAP3 DUP4 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x20 DUP5 ADD MSTORE AND PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0x89C PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0xD05 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0xDF0 PUSH1 0x20 DUP4 ADD DUP5 MLOAD PUSH2 0xC80 JUMP JUMPDEST PUSH1 0x20 DUP4 ADD MLOAD PUSH2 0xE02 PUSH1 0x40 DUP5 ADD DUP3 PUSH2 0xC80 JUMP JUMPDEST POP PUSH1 0x40 DUP4 ADD MLOAD PUSH2 0x1C0 DUP1 PUSH1 0x60 DUP6 ADD MSTORE PUSH2 0xE1F PUSH2 0x1E0 DUP6 ADD DUP4 PUSH2 0xD05 JUMP JUMPDEST SWAP2 POP PUSH1 0x60 DUP6 ADD MLOAD PUSH1 0x1F NOT DUP1 DUP7 DUP6 SUB ADD PUSH1 0x80 DUP8 ADD MSTORE PUSH2 0xE3D DUP5 DUP4 PUSH2 0xD05 JUMP JUMPDEST SWAP4 POP PUSH1 0x80 DUP8 ADD MLOAD SWAP2 POP DUP1 DUP7 DUP6 SUB ADD PUSH1 0xA0 DUP8 ADD MSTORE PUSH2 0xE5A DUP5 DUP4 PUSH2 0xC8D JUMP JUMPDEST SWAP4 POP PUSH1 0xA0 DUP8 ADD MLOAD SWAP2 POP DUP1 DUP7 DUP6 SUB ADD PUSH1 0xC0 DUP8 ADD MSTORE PUSH2 0xE77 DUP5 DUP4 PUSH2 0xC8D JUMP JUMPDEST SWAP4 POP PUSH1 0xC0 DUP8 ADD MLOAD SWAP2 POP DUP1 DUP7 DUP6 SUB ADD PUSH1 0xE0 DUP8 ADD MSTORE PUSH2 0xE94 DUP5 DUP4 PUSH2 0xCD0 JUMP JUMPDEST SWAP4 POP PUSH1 0xE0 DUP8 ADD MLOAD SWAP2 POP PUSH2 0x100 PUSH2 0xEAC DUP2 DUP9 ADD DUP5 PUSH2 0xCFF JUMP JUMPDEST DUP8 ADD MLOAD PUSH2 0x120 DUP8 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD PUSH2 0x140 DUP1 DUP9 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD PUSH2 0x160 DUP1 DUP9 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD PUSH2 0x180 DUP1 DUP9 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP8 ADD MLOAD SWAP2 POP PUSH2 0x1A0 PUSH2 0xEF4 DUP2 DUP9 ADD DUP5 PUSH2 0xC80 JUMP JUMPDEST DUP8 ADD MLOAD DUP7 DUP6 SUB SWAP1 SWAP2 ADD DUP4 DUP8 ADD MSTORE SWAP1 POP PUSH2 0xF0D DUP4 DUP3 PUSH2 0xD05 JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0xF44 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0xF62 JUMPI DUP1 DUP2 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x73E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x73E JUMPI PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SWAP15 EXP 0xAE 0x2F 0x26 0xBA DUP10 0xD6 SWAP12 DUP2 0xAF PUSH27 0xF61EAA1316C922ACDEBE021F38D79FCB5F3C901364736F6C634300 SMOD ADD STOP CALLER ",
+ "sourceMap": "1168:2460:55:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4928:114:38;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4663:167;;;:::i;:::-;;;;;;;;:::i;2066:887:32:-;;;:::i;:::-;;;;;;;;:::i;2794:143:31:-;;;:::i;:::-;;1788:107:55;;;:::i;1684:98::-;;;:::i;2564:127:31:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2697:91::-;;;:::i;3046:143::-;;;:::i;:::-;;;;;;;:::i;2607:430:37:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1247:79:43:-;;;:::i;1967:1659:55:-;;;;;;:::i;:::-;;:::i;1386:109:43:-;;;:::i;4928:114:38:-;4976:12;5007:28;;;;;;;;;;;;;:24;:28::i;:::-;5000:35;;4928:114;:::o;4663:167::-;4776:22;4800;4663:167;;:::o;2066:887:32:-;2120:27;;2211:15;2254:24;2240:38;;2236:711;;;2577:11;2550:24;:38;2528:60;;1401:7;2637:46;;2236:711;;;2897:1;2875:23;;2935:1;2912:24;;2236:711;2066:887;;;:::o;2794:143:31:-;2276:21:37;:19;:21::i;:::-;2854:16:31::1;:14;:16::i;:::-;2893:4;2881:16:::0;;-1:-1:-1;;2881:16:31::1;::::0;::::1;::::0;;2913:17:::1;::::0;::::1;::::0;2881:9:::1;::::0;2913:17:::1;2794:143::o:0;1788:107:55:-;1876:12;1869:19;;;;;;;;-1:-1:-1;;1869:19:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1844:13;;1869:19;;1876:12;;1869:19;;1876:12;1869:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1788:107;:::o;1684:98::-;1767:8;1760:15;;;;;;;-1:-1:-1;;1760:15:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1735:13;;1760:15;;1767:8;;1760:15;;1767:8;1760:15;;;;;;;;;;;;;;;;;;;;;;;;2564:127:31;-1:-1:-1;;;;;2660:24:31;2637:4;2660:24;;;;;;;;;;;;;;2564:127::o;2697:91::-;2772:9;;;;2697:91;:::o;3046:143::-;3162:20;3046:143;:::o;2607:430:37:-;2675:7;2996:22;3020:8;2979:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2969:61;;;;;;2962:68;;2607:430;;;:::o;1247:79:43:-;1313:6;1247:79;:::o;1967:1659:55:-;2358:20;2391:27;2420:28;2452:23;:21;:23::i;:::-;2390:85;;;;2542:1063;2607:932;;;;;;;;2679:10;:8;:10::i;:::-;-1:-1:-1;;;;;2607:932:55;;;;;2740:35;:33;:35::i;:::-;-1:-1:-1;;;;;2607:932:55;;;;;2811:4;2607:932;;;;2853:6;2607:932;;;;2897:6;2607:932;;;;2948:13;2607:932;;;;3016:23;2607:932;;;;3101:30;2607:932;;;;;;3185:22;2607:932;;;;3256:17;2607:932;;;;3324:19;2607:932;;;;3395:20;2607:932;;;;3452:5;-1:-1:-1;;;;;2607:932:55;;;;;3496:16;:14;:16::i;:::-;2607:932;;2571:990;;;;;;;;:::i;:::-;;;;;;;;;;;;;3583:4;2542:7;:1063::i;:::-;2485:1134;1967:1659;-1:-1:-1;;;;;;;;;;;;;1967:1659:55:o;1386:109:43:-;1432:11;1462:10;:8;:10::i;:::-;-1:-1:-1;;;;;1462:24:43;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;2737:1366:39:-;3232:11;;2514:66;3465:34;;;2790:19;;3768:2;3752:19;;3238:4;2790:19;3736:36;3872:24;;;3721:51;-1:-1:-1;4030:66:39;-1:-1:-1;;;;;4039:25:39;;;;11595:3:10;4030:8:39;:66::i;:::-;2737:1366;;;;:::o;5172:2692:38:-;6433:22;;6807:4;6801:11;;6300:18;6180;6356:37;;;6485:38;;;6838:28;;;6862:2;6838:28;;;6825:42;;;6960:22;;;6801:11;;6120:22;;6180:18;;6240:22;;6300:18;7086:13;;6180:18;6088:29;7086:13;6120:22;7112:67;7265:17;7262:1;7242:17;7231:9;7227:33;7204:21;7192:91;-1:-1:-1;7675:2:38;7654:24;;;;7721:36;;;;7777:80;7721:36;7654:24;7837:19;7777:7;:80::i;:::-;5172:2692;;;;;;;;;;;;:::o;2420:181:37:-;2475:16;2494:20;2506:7;;-1:-1:-1;;;;;;2506:7:37;2494:11;:20::i;:::-;2475:39;;2524:70;2533:33;2545:8;2555:10;2533:11;:33::i;:::-;9891:3:10;2524:8:37;:70::i;:::-;2420:181;:::o;2943:97:31:-;2993:40;3003:12;:10;:12::i;:::-;3002:13;6506:3:10;2993:8:31;:40::i;:::-;2943:97::o;3195:297::-;3291:7;3310:16;:14;:16::i;:::-;3337:12;3352:36;3366:15;3383:4;3352:13;:36::i;:::-;-1:-1:-1;;;;;3399:24:31;;:18;:24;;;;;;;;;;;:31;;-1:-1:-1;;3399:31:31;3426:4;3399:31;;;3446:17;3337:51;;-1:-1:-1;3399:24:31;;3446:17;;3399:18;3446:17;3481:4;-1:-1:-1;3195:297:31;;;;;:::o;918:101:10:-;987:9;982:34;;998:18;1006:9;998:7;:18::i;:::-;918:101;;:::o;8892:590:38:-;9052:165;9066:2;9059:3;:9;9052:165;;9135:10;;9122:24;;9181:2;9173:10;;;;9197:9;;;;-1:-1:-1;;9070:9:38;9052:165;;;9345:10;;9400:11;;9280:2;:8;;;;9274:3;:15;-1:-1:-1;;9274:19:38;9357:9;;9341:26;;;9396:22;;9444:21;9431:35;;9312:164::o;1501:178:43:-;1589:4;1612:15;:13;:15::i;:::-;-1:-1:-1;;;;;1612:26:43;;1639:8;1649:7;1666:4;1612:60;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1605:67;1501:178;-1:-1:-1;;;1501:178:43:o;8105:651:38:-;8192:7;8211:25;8239:41;8264:15;8239:24;:41::i;:::-;8211:69;;8291:19;8413:4;8398:12;8392:19;8387:2;8373:12;8369:21;8366:1;8358:60;8343:75;-1:-1:-1;;;;;;8442:25:38;;8438:283;;8636:16;8633:1;;8615:38;8680:16;8633:1;8670:27;8597:114;8738:11;8105:651;-1:-1:-1;;;;8105:651:38:o;1437:126:10:-;-1:-1:-1;;;1732:18:10;4383:79;;;4601:66;4595:4;4588:80;4743:1;4737:4;4730:15;2871:2;2904:18;;;2949;;;2876:4;2945:29;;;3747:1;3838:14;2856:18;;;3827:26;2997:18;;;;3044;;;3040:29;3859:2;3855:17;3823:50;3802:72;;3797:3;3793:82;4810:4;4803:26;1484:28;;-1:-1:-1;;;1484:28:10;1761:14;;5036:3;;5026:14;5:130:-1;72:20;;97:33;72:20;97:33;:::i;168:752::-;;300:3;293:4;285:6;281:17;277:27;267:2;;-1:-1;;308:12;267:2;355:6;342:20;377:95;392:79;464:6;392:79;:::i;:::-;377:95;:::i;:::-;500:21;;;368:104;-1:-1;544:4;557:14;;;;532:17;;;646;;;637:27;;;;634:36;-1:-1;631:2;;;683:1;;673:12;631:2;708:1;693:221;718:6;715:1;712:13;693:221;;;3286:6;3273:20;3298:48;3340:5;3298:48;:::i;:::-;786:65;;865:14;;;;893;;;;740:1;733:9;693:221;;;697:14;;;;;260:660;;;;:::o;961:770::-;;1099:3;1092:4;1084:6;1080:17;1076:27;1066:2;;-1:-1;;1107:12;1066:2;1154:6;1141:20;1176:101;1191:85;1269:6;1191:85;:::i;1176:101::-;1305:21;;;1167:110;-1:-1;1349:4;1362:14;;;;1337:17;;;1451;;;1442:27;;;;1439:36;-1:-1;1436:2;;;1488:1;;1478:12;1436:2;1513:1;1498:227;1523:6;1520:1;1517:13;1498:227;;;3459:6;3446:20;3471:54;3519:5;3471:54;:::i;:::-;1591:71;;1676:14;;;;1704;;;;1545:1;1538:9;1498:227;;1757:707;;1874:3;1867:4;1859:6;1855:17;1851:27;1841:2;;-1:-1;;1882:12;1841:2;1929:6;1916:20;1951:80;1966:64;2023:6;1966:64;:::i;1951:80::-;2059:21;;;1942:89;-1:-1;2103:4;2116:14;;;;2091:17;;;2205;;;2196:27;;;;2193:36;-1:-1;2190:2;;;2242:1;;2232:12;2190:2;2267:1;2252:206;2277:6;2274:1;2271:13;2252:206;;;4055:20;;2345:50;;2409:14;;;;2437;;;;2299:1;2292:9;2252:206;;2472:124;2536:20;;2561:30;2536:20;2561:30;:::i;3538:442::-;;3640:3;3633:4;3625:6;3621:17;3617:27;3607:2;;-1:-1;;3648:12;3607:2;3695:6;3682:20;22523:18;22515:6;22512:30;22509:2;;;-1:-1;;22545:12;22509:2;3717:65;22618:9;22599:17;;-1:-1;;22595:33;22686:4;22676:15;3717:65;:::i;:::-;3708:74;;3802:6;3795:5;3788:21;3906:3;22686:4;3897:6;3830;3888:16;;3885:25;3882:2;;;3923:1;;3913:12;3882:2;28123:6;22686:4;3830:6;3826:17;22686:4;3864:5;3860:16;28100:30;28179:1;28161:16;;;22686:4;28161:16;28154:27;3864:5;3600:380;-1:-1;;3600:380::o;4125:241::-;;4229:2;4217:9;4208:7;4204:23;4200:32;4197:2;;;-1:-1;;4235:12;4197:2;85:6;72:20;97:33;124:5;97:33;:::i;4373:257::-;;4485:2;4473:9;4464:7;4460:23;4456:32;4453:2;;;-1:-1;;4491:12;4453:2;2684:6;2678:13;2696:30;2720:5;2696:30;:::i;4637:239::-;;4740:2;4728:9;4719:7;4715:23;4711:32;4708:2;;;-1:-1;;4746:12;4708:2;2941:20;;-1:-1;;;;;;25513:78;;29162:34;;29152:2;;-1:-1;;29200:12;4883:303;;5018:2;5006:9;4997:7;4993:23;4989:32;4986:2;;;-1:-1;;5024:12;4986:2;3114:6;3108:13;3126:53;3173:5;3126:53;:::i;5193:2059::-;;;;;;;;;;;5578:3;5566:9;5557:7;5553:23;5549:33;5546:2;;;-1:-1;;5585:12;5546:2;5643:17;5630:31;5681:18;;5673:6;5670:30;5667:2;;;-1:-1;;5703:12;5667:2;5733:63;5788:7;5779:6;5768:9;5764:22;5733:63;:::i;:::-;5723:73;;5861:2;5850:9;5846:18;5833:32;5819:46;;5681:18;5877:6;5874:30;5871:2;;;-1:-1;;5907:12;5871:2;5937:63;5992:7;5983:6;5972:9;5968:22;5937:63;:::i;:::-;5927:73;;6065:2;6054:9;6050:18;6037:32;6023:46;;5681:18;6081:6;6078:30;6075:2;;;-1:-1;;6111:12;6075:2;6141:93;6226:7;6217:6;6206:9;6202:22;6141:93;:::i;:::-;6131:103;;6271:2;6314:9;6310:22;4055:20;6279:63;;6407:3;6396:9;6392:19;6379:33;6365:47;;5681:18;6424:6;6421:30;6418:2;;;-1:-1;;6454:12;6418:2;6484:99;6575:7;6566:6;6555:9;6551:22;6484:99;:::i;:::-;6474:109;;6648:3;6637:9;6633:19;6620:33;6606:47;;5681:18;6665:6;6662:30;6659:2;;;-1:-1;;6695:12;6659:2;;6725:78;6795:7;6786:6;6775:9;6771:22;6725:78;:::i;:::-;6715:88;;;6859:50;6901:7;6840:3;6881:9;6877:22;6859:50;:::i;:::-;6849:60;;6946:3;6990:9;6986:22;4055:20;6955:63;;7074:53;7119:7;7055:3;7099:9;7095:22;7074:53;:::i;:::-;7064:63;;7164:3;7208:9;7204:22;2805:20;7173:63;;5540:1712;;;;;;;;;;;;;:::o;7877:103::-;-1:-1;;;;;26015:54;7938:37;;7932:48::o;8146:745::-;;8359:5;23336:12;24445:6;24440:3;24433:19;24482:4;;24477:3;24473:14;8371:83;;24482:4;8540:5;22838:14;-1:-1;8579:290;8604:6;8601:1;8598:13;8579:290;;;8665:13;;-1:-1;;;;;26015:54;11534:80;;7443:14;;;;24047;;;;8626:1;8619:9;8579:290;;;-1:-1;8875:10;;8275:616;-1:-1;;;;;8275:616::o;9759:670::-;;9942:5;23336:12;24445:6;24440:3;24433:19;24482:4;;24477:3;24473:14;9954:83;;24482:4;10108:5;22838:14;-1:-1;10147:260;10172:6;10169:1;10166:13;10147:260;;;10233:13;;10720:37;;7849:14;;;;24047;;;;10194:1;10187:9;10147:260;;10437:94;25347:13;25340:21;10492:34;;10486:45::o;11083:343::-;;11225:5;23336:12;24445:6;24440:3;24433:19;-1:-1;28268:101;28282:6;28279:1;28276:13;28268:101;;;24482:4;28349:11;;;;;28343:18;28330:11;;;;;28323:39;28297:10;28268:101;;;28384:6;28381:1;28378:13;28375:2;;;-1:-1;24482:4;28440:6;24477:3;28431:16;;28424:27;28375:2;-1:-1;22618:9;28701:14;-1:-1;;28697:28;11382:39;;;;24482:4;11382:39;;11173:253;-1:-1;;11173:253::o;17019:387::-;10720:37;;;-1:-1;;;;;;25513:78;17270:2;17261:12;;11015:56;17370:11;;;17161:245::o;17413:333::-;-1:-1;;;;;26015:54;;;7938:37;;26015:54;;17732:2;17717:18;;7938:37;17568:2;17553:18;;17539:207::o;17753:210::-;25347:13;;25340:21;10492:34;;17874:2;17859:18;;17845:118::o;17970:222::-;10720:37;;;18097:2;18082:18;;18068:124::o;18199:444::-;10720:37;;;-1:-1;;;;;26015:54;;;18546:2;18531:18;;7938:37;26015:54;18629:2;18614:18;;7938:37;18382:2;18367:18;;18353:290::o;18650:306::-;;18795:2;18816:17;18809:47;18870:76;18795:2;18784:9;18780:18;18932:6;18870:76;:::i;18963:282::-;-1:-1;;;;;26015:54;;;;11534:80;;19120:2;19105:18;;19091:154::o;20406:394::-;;20595:2;20616:17;20609:47;13891:78;20595:2;20584:9;20580:18;13868:16;13862:23;13891:78;:::i;:::-;20595:2;14056:5;14052:16;14046:23;14075:103;14163:14;20584:9;14163:14;14149:12;14075:103;:::i;:::-;;14163:14;14250:5;14246:16;14240:23;13793:6;;14283:14;20584:9;14283:14;14276:38;14329:73;13784:16;20584:9;13784:16;14383:12;14329:73;:::i;:::-;14321:81;;14283:14;14482:5;14478:16;14472:23;22618:9;;14531:14;20584:9;14535:4;14531:14;;14515;20584:9;14515:14;14508:38;14561:73;14629:4;14615:12;14561:73;:::i;:::-;14553:81;;14515:14;14714:5;14710:16;14704:23;14684:43;;14531:14;20584:9;14767:4;14763:14;;14747;20584:9;14747:14;14740:38;14793:118;14906:4;14892:12;14793:118;:::i;:::-;14785:126;;14747:14;14998:5;14994:16;14988:23;14968:43;;14531:14;20584:9;15051:4;15047:14;;15031;20584:9;15031:14;15024:38;15077:124;15196:4;15182:12;15077:124;:::i;:::-;15069:132;;15031:14;15298:5;15294:16;15288:23;15268:43;;14531:14;20584:9;15351:4;15347:14;;15331;20584:9;15331:14;15324:38;15377:103;15475:4;15461:12;15377:103;:::i;:::-;15369:111;;15331:14;15584:5;15580:16;15574:23;15554:43;;15645:14;15603:57;15645:14;20584:9;15645:14;15631:12;15603:57;:::i;:::-;15746:18;;15740:25;15819:16;;;;10720:37;;;;15917:18;;15911:25;15990:16;;;;10720:37;;;;16090:18;;16084:25;16163:16;;;;10720:37;;;;16264:18;;16258:25;16337:16;;;;10720:37;;;;16423:18;;16417:25;;-1:-1;16496:16;16448:65;16496:16;;;16417:25;16448:65;:::i;:::-;16584:18;;16578:25;16641:14;;;;;;16623:16;;;16616:40;16578:25;-1:-1;16671:73;16645:4;16578:25;16671:73;:::i;:::-;20662:128;20566:234;-1:-1;;;;;;20566:234::o;20807:333::-;10720:37;;;21126:2;21111:18;;10720:37;20962:2;20947:18;;20933:207::o;21147:256::-;21209:2;21203:9;21235:17;;;21310:18;21295:34;;21331:22;;;21292:62;21289:2;;;21367:1;;21357:12;21289:2;21209;21376:22;21187:216;;-1:-1;21187:216::o;21410:319::-;;21584:18;21576:6;21573:30;21570:2;;;-1:-1;;21606:12;21570:2;-1:-1;21651:4;21639:17;;;21704:15;;21507:222::o;28738:117::-;-1:-1;;;;;28825:5;26015:54;28800:5;28797:35;28787:2;;28846:1;;28836:12;28862:111;28943:5;25347:13;25340:21;28921:5;28918:32;28908:2;;28964:1;;28954:12"
+ },
+ "methodIdentifiers": {
+ "create(string,string,address[],uint256,address[],uint256[],bool,uint256,address,bytes32)": "971e1833",
+ "disable()": "2f2770db",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getCreationCode()": "00c194db",
+ "getCreationCodeContracts()": "174481fa",
+ "getPauseConfiguration()": "2da47c40",
+ "getPoolVersion()": "3f819b6f",
+ "getProtocolFeePercentagesProvider()": "739238d6",
+ "getVault()": "8d928af8",
+ "isDisabled()": "6c57f5a9",
+ "isPoolFromFactory(address)": "6634b753",
+ "version()": "54fd4d50"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IVault\",\"name\":\"vault\",\"type\":\"address\"},{\"internalType\":\"contract IProtocolFeePercentagesProvider\",\"name\":\"protocolFeeProvider\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"factoryVersion\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"poolVersion\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"FactoryDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"amplificationParameter\",\"type\":\"uint256\"},{\"internalType\":\"contract IRateProvider[]\",\"name\":\"rateProviders\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenRateCacheDurations\",\"type\":\"uint256[]\"},{\"internalType\":\"bool\",\"name\":\"exemptFromYieldProtocolFeeFlag\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"create\",\"outputs\":[{\"internalType\":\"contract ComposableStablePool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCreationCode\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCreationCodeContracts\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"contractA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"contractB\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPauseConfiguration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"pauseWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodDuration\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeePercentagesProvider\",\"outputs\":[{\"internalType\":\"contract IProtocolFeePercentagesProvider\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isDisabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"isPoolFromFactory\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"create(string,string,address[],uint256,address[],uint256[],bool,uint256,address,bytes32)\":{\"details\":\"Deploys a new `ComposableStablePool`.\"},\"disable()\":{\"details\":\"Disable the factory, preventing the creation of more pools. Already existing pools are unaffected. Once a factory is disabled, it cannot be re-enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getCreationCode()\":{\"details\":\"Returns the creation code of the contract this factory creates.\"},\"getCreationCodeContracts()\":{\"details\":\"Returns the two addresses where the creation code of the contract crated by this factory is stored.\"},\"getPauseConfiguration()\":{\"details\":\"Returns the current `TemporarilyPausable` configuration that will be applied to Pools created by this factory. `pauseWindowDuration` will decrease over time until it reaches zero, at which point both it and `bufferPeriodDuration` will be zero forever, meaning deployed Pools will not be pausable.\"},\"getPoolVersion()\":{\"details\":\"Returns a JSON representation of the deployed pool version containing name, version number and task ID. This is typically only useful in complex Pool deployment schemes, where multiple subsystems need to know about each other. Note that this value will only be updated at factory creation time.\"},\"isDisabled()\":{\"details\":\"Check whether the derived factory has been disabled.\"},\"isPoolFromFactory(address)\":{\"details\":\"Returns true if `pool` was created by this factory.\"},\"version()\":{\"details\":\"Returns a JSON representation of the contract version containing name, version number and task ID.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getAuthorizer()\":{\"notice\":\"Returns the Authorizer\"},\"getVault()\":{\"notice\":\"Returns the Balancer Vault\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ComposableStablePoolFactory.sol\":\"ComposableStablePoolFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol\":{\"keccak256\":\"0x1e5bca6b4fb897adc2458f65aa7abed8499dcf146ac5872c62544d91516867cb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://faa81254fe029b7ccd05635d6919da30bcb2114026996d10f6b51fc0e1f5b850\",\"dweb:/ipfs/Qmax3d2kq51xjt6hjYgskuXSrsB3fBZ4LAxBPRDDzbg8XD\"]},\"@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol\":{\"keccak256\":\"0x809d1ab36b1c4190aeffd3bad9c8a54880a9524c679e770ef185323dafaf6833\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3a7d7e901eafecae0f4a8829bbb952cda0928f55290d368ab1370c92284d1469\",\"dweb:/ipfs/QmWDpNu8sZEwK3nmetwoaXrASta5RWqGZb7Z4TqHnMu7a1\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol\":{\"keccak256\":\"0xf5cf4f466955514781a7a7c571b905ed20168ea5b352963bcf5dd2d8fd4fd0e9\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://5e0c9405a058b809ceee4d89187c67926f20e2ec5cf9f5b77d14226780674b27\",\"dweb:/ipfs/QmXCbDCthmF34C7bzHMS15x8jV7kBXgmGe2Xwoop1b9NQ4\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol\":{\"keccak256\":\"0xa4d02a91c12fb22b14ef4180dfc3909f8de5d0fc0fdbffd437dc5b5bba9b3920\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://b830017902f0da9ba73219585e18d31ca226af95900724961090be9bc3627d0a\",\"dweb:/ipfs/QmUTon5DFuK81ghM1baGD1Tq8izYM5iPzvVqkmRNuESWdF\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\":{\"keccak256\":\"0x9f35f065d838cfeffaa7d085b3c204f9cdb8ab32b4b843957a851a55339980c1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://f8c0057b70b373133433619b1ee98b58bd8d1082c9d8bda7e9837ca3b46f6cd6\",\"dweb:/ipfs/QmVoCVhSnnknSavEZV1FY3hVkivuBqS2Crk6B1dHTXyYLt\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol\":{\"keccak256\":\"0x19103ec3d00cbdbe25ef95721ba669cfcfaf046a60447a1b49986026e61fc57c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://6765d86f532928df96af43990b5bccd20a0d2965707cb5e9d5afda9580be3fe4\",\"dweb:/ipfs/QmZmhVpWcGpFk9u4iy4srKs248c9FdAzjjmdMATexpqa6j\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":{\"keccak256\":\"0xf6fd47a273c8f275d115dac4d216acffd976573410a5f92e2dd8c1125ce3b134\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://41febf9d4bc242065cb96d9d1258e926bf1b4f4c36131964cbf0b4cdd5ce1f99\",\"dweb:/ipfs/QmbKk893VkGw3w49xWyQS8ehqdXxbL4sqNW6TcWMXRpnGu\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol\":{\"keccak256\":\"0x7f11733a5cd8f81c123c02f79d94ead7b65217021ebddafda10e796a25e1ef41\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://7333060b9ff67e1fe734903d45b0c69ff8308b744f7c2fb8fbf630ae9d589bd6\",\"dweb:/ipfs/Qmf4rZHqsjfKDk5cSp38fv24SS8bAYJxYYQzn63TV6aPCo\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol\":{\"keccak256\":\"0xcd8cfa91f7e0c2bdbe1dceb37caddf211ce411e51de567594434da9ad2edc5e2\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://58db2ea702a5eb370172402784e7e260337b61d1f8d5338142a1bde1b6718c4d\",\"dweb:/ipfs/QmZBogEchmaq3CEadrFidyWczyyuLT987wjZRHwAb6nPWg\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":{\"keccak256\":\"0xefc640c1439bb12d652be70b20778ce123f13a42793e75a51819ed0aa3d7b8f0\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70dcf796a2295082edc1d499b26375e2001d4b87d151eb9fd7cb7b532fa8a9a8\",\"dweb:/ipfs/QmZrdWVr9qrohsFPLHX1jS37Qdnd8wCceYojRWR5xuP7RX\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol\":{\"keccak256\":\"0xfa19a22448dab30922839cf2050fd3d4d6d0ab427ac5029dc2b6d3e9cba3c2fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://32f6977e576f94db0515312a6687c71d4c5d8f7d6889991fac293f18930f2f3b\",\"dweb:/ipfs/QmbRTciYsQUNqecRcq7xNnqxLBgdoyBKnr4VDdkgmenk7e\"]},\"@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol\":{\"keccak256\":\"0x7d764b70fdb9f4d2b07f2914ff5deec66f1bc193741017afef2fa14be57dc4ef\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8184f7aea4afaa63bff9352da02293d8423d71a394620d561c7e861fde12f921\",\"dweb:/ipfs/QmRdokGbResxbERJ72ofPNkK2PTivkBQ6W3mJPxTJ3oqBU\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol\":{\"keccak256\":\"0x65f93b8bac780e69e0ec41db98645323401686649dc61f9fa24d015d11084dfe\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://46b2c14982f82375159bb984548fd3bf4764972dd5cc0b2d40de82d0f3ccd28f\",\"dweb:/ipfs/QmPYfeoLCDwwDE6TDNRrnSQWniMgwuZSNJQ2Ycm3uRuBPs\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol\":{\"keccak256\":\"0x9b7f4fa639a65ddbd0ac2a4324d3a2654d087315eebdd24ac6dcec662e862b0b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8bec3ef24980c0de1e3a25b7bd9c4a7287236a00e703d3c307a965627e4729c1\",\"dweb:/ipfs/QmY5dhqoSrhZUymyQSYrzeqDanNA52C3ArFvhZ3gnvpqyZ\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol\":{\"keccak256\":\"0x1130ae270fcca20807ddd46644d2b4dbff73484f3fca9b7bf927043a6c1acf09\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://2c20940f2a3cb1c32ce122a769fb56517b3dd4c8f24c9288e53de83ec640666b\",\"dweb:/ipfs/Qma1AvNk3SjJeUuwyVjWqKqH2KCoVEAovjwfpnt8EsNeTN\"]},\"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\":{\"keccak256\":\"0xcc2a86a1628aa32f5c55c1e22bfed26ec2bf6cc41b1ba00ee0787b7204911698\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://907581cddf2f608fffcb47f69b7a16060f31d8eb8abf85bc935e73bf1eb2d515\",\"dweb:/ipfs/QmXYcbjuxfLs4v7qyzrP55gemhBMaoJKaZ1fSx4mYLdmCH\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol\":{\"keccak256\":\"0xd13a9c66440204fdd94c422e4759e323d396c1bd1ee8d3858f33917cc65e60d6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://052a2c0319dc342444101a99bd91527c1c33d38e5bf3037ede11299a6a2a6e41\",\"dweb:/ipfs/QmSYSGZ4UpSAvEJbd4zSjRAzfie1GkBgByvCei46JxY5Zh\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol\":{\"keccak256\":\"0x77e86d8251dfa9c442b94dde2fabbd3aab7af34e64fb9bb2c8236c74da844f1f\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://b1d03e9151b3c4bc46166e6c28a8ee7bac9c9681e651e01688067566af55f184\",\"dweb:/ipfs/QmZacZh87hu4SQpsZvEaaRJRfLjP9fLwP8CK6pC8TxW7pE\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol\":{\"keccak256\":\"0x25f6f0a81c60d41050ab16c9bb2bc7458ec76a32d642e161334e45b7743279f7\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://9466990b332e5656f3d6a54eb53abc3ec6ae992d6dc49db0d44ce32cc98da340\",\"dweb:/ipfs/Qmf6ehxp5Zq46SkZfcj97MbA9QWYfu59D5eBDJTPCPmxRC\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol\":{\"keccak256\":\"0x6c48b193602f6d6407e8fca3389fb32264a91f1de8ec33db209694e3bf9d0d13\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1fa358f1537907cdd9f6b176f5a1effbbe9925429634038e9c533493ed824cab\",\"dweb:/ipfs/QmW1EcMLkMFuDKrPwWJ2qhBkmVzAUTVEMP75kw7D8XTjJf\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol\":{\"keccak256\":\"0x900f61d39cfbb66db432105fdd524892b4d36fd57021231a7a011ecf2e06d848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9853feb7f6ea54eed91e45cc9f833062a768365295c64867ac7e83926cb3a25\",\"dweb:/ipfs/Qmeo7jrEjenzBXQ8pSDj76CqVwHg9rhRZKiPfDpLuHk42Q\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]},\"contracts/ComposableStablePool.sol\":{\"keccak256\":\"0xf7ddd8edaf54dac9b4ba388497aa2892a643f3329ed22cc475e95606f63451d5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://4f166d93304885bdefea33ef2cafdf1d9a5053113b6adf0de4927b79e596799c\",\"dweb:/ipfs/QmWVAosFtCWeZfYFE7ato3SAJfvKCPKFJDKkcZ5PE7CbcC\"]},\"contracts/ComposableStablePoolFactory.sol\":{\"keccak256\":\"0x0a0c34891b76b4f0a72b014f0080f5577073f6150ad105f2748890874b62d0e4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://536bc489cbad27fe88460d4f16f91a1d5f157fb789f74294f629aba06a21c2bb\",\"dweb:/ipfs/QmNwddaR54Dp1kjoPhZrA1LLrbodf4woNVwji1zZJ6nTDM\"]},\"contracts/ComposableStablePoolProtocolFees.sol\":{\"keccak256\":\"0x1f090402da7a1dd3258d5f8e909cbc24451aee79c5d59ef9450166777a95110e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://663abee98b7c0247de629e5d65342c51e9205a3d45bb0717fb03f3d7b217b011\",\"dweb:/ipfs/QmekWEsw9H41pAcM5Ftu5FsjuNfV18ivGb7vZqpsHWxe9w\"]},\"contracts/ComposableStablePoolRates.sol\":{\"keccak256\":\"0x975276d580a5c7d2d0b7a47761213e30028fe9d19336912aa80649a085a2d546\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://199784f76a062f809f740185666026b6ef34e5cbc0f4707bb2ea9a58dd3f41c4\",\"dweb:/ipfs/QmRr1AgsP9JV76zqSN3rgvNQopfTYLQtu5EssegKHQPMRx\"]},\"contracts/ComposableStablePoolStorage.sol\":{\"keccak256\":\"0x2512b31e132463430900583bba3f8c140977b40121f1be523771f3f392bf153c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ec805f528d1f3de1c20be93494ea6f85b42830b33923531415f39fccd7a869bb\",\"dweb:/ipfs/QmRxr5zP4wevP5R3PesVTTZ3hkmMGyceCkCcLtmzXfT3UP\"]},\"contracts/StableMath.sol\":{\"keccak256\":\"0x82eb1bf7001a58aebbca2fe38952e9c252676e572c4d70b43ddafe6ce7b55d25\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70c3c5819a60435926f99cd6426174407fbb46b59975b8c1b61b0a7352759ee5\",\"dweb:/ipfs/QmYJDeA376HZ86YQMiuBb9cHRnUKrrsrc26fnZDhYT5yZ8\"]},\"contracts/StablePoolAmplification.sol\":{\"keccak256\":\"0x35131a0fda0168332354ea2da753a595cedcdbc2663b83281fb86adbd10e2b15\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://6c4a52f1ed61716bf879e3d232c47060196602de456fced19722bd38e2c967dc\",\"dweb:/ipfs/QmStzAS76tvSSvbofjV8EB9VrbcF7h8DwygTZGpuqzAavm\"]}},\"version\":1}"
+ }
+ },
+ "contracts/ComposableStablePoolProtocolFees.sol": {
+ "ComposableStablePoolProtocolFees": {
+ "abi": [
+ {
+ "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": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "protocolFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "ProtocolFeePercentageCacheUpdated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "SwapFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenIndex",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "rate",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenRateCacheUpdated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenIndex",
+ "type": "uint256"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IRateProvider",
+ "name": "provider",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "cacheDuration",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenRateProviderSet",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getBptIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getLastJoinExitData",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "lastJoinExitAmplification",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastPostJoinExitInvariant",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "feeType",
+ "type": "uint256"
+ }
+ ],
+ "name": "getProtocolFeePercentageCache",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeesCollector",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeesCollector",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolSwapFeeDelegation",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getRateProviders",
+ "outputs": [
+ {
+ "internalType": "contract IRateProvider[]",
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "getTokenRate",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "getTokenRateCache",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "rate",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "oldRate",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "expires",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "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": "isExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "isTokenExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "poolConfig",
+ "type": "bytes"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "setTokenRateCacheDuration",
+ "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": [],
+ "name": "unpause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "updateProtocolFeePercentageCache",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "updateTokenRateCache",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL()": "ddf4627b",
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getBptIndex()": "82687a56",
+ "getDomainSeparator()": "ed24911d",
+ "getLastJoinExitData()": "3c975d51",
+ "getNextNonce(address)": "90193b7c",
+ "getOwner()": "893d20e8",
+ "getPausedState()": "1c0de051",
+ "getPoolId()": "38fff2d0",
+ "getProtocolFeePercentageCache(uint256)": "70464016",
+ "getProtocolFeesCollector()": "d2946c2b",
+ "getProtocolSwapFeeDelegation()": "15b0015b",
+ "getRateProviders()": "238a2d59",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "getTokenRate(address)": "54dea00a",
+ "getTokenRateCache(address)": "7f1260d1",
+ "getVault()": "8d928af8",
+ "inRecoveryMode()": "b35056b8",
+ "increaseAllowance(address,uint256)": "39509351",
+ "isExemptFromYieldProtocolFee()": "77151bee",
+ "isTokenExemptFromYieldProtocolFee(address)": "ab7759f1",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "pause()": "8456cb59",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817",
+ "setAssetManagerPoolConfig(address,bytes)": "50dd6ed9",
+ "setSwapFeePercentage(uint256)": "38e9922e",
+ "setTokenRateCacheDuration(address,uint256)": "f4b7964d",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd",
+ "unpause()": "3f4ba83a",
+ "updateProtocolFeePercentageCache()": "0da0669c",
+ "updateTokenRateCache(address)": "2df2c7c0"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFeePercentage\",\"type\":\"uint256\"}],\"name\":\"ProtocolFeePercentageCacheUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"SwapFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"TokenRateCacheUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenIndex\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"contract IRateProvider\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cacheDuration\",\"type\":\"uint256\"}],\"name\":\"TokenRateProviderSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBptIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastJoinExitData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"lastJoinExitAmplification\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastPostJoinExitInvariant\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeType\",\"type\":\"uint256\"}],\"name\":\"getProtocolFeePercentageCache\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeesCollector\",\"outputs\":[{\"internalType\":\"contract IProtocolFeesCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolSwapFeeDelegation\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRateProviders\",\"outputs\":[{\"internalType\":\"contract IRateProvider[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenRateCache\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"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\":\"isExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isTokenExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"name\":\"setAssetManagerPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"setTokenRateCacheDuration\",\"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\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateProtocolFeePercentageCache\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"updateTokenRateCache\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval. This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this contract inherits.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Override to allow decreasing allowance by more than the current amount (setting it to zero)\"},\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getPausedState()\":{\"details\":\"Returns the current contract pause status, as well as the end times of the Pause Window and Buffer Period.\"},\"getProtocolFeePercentageCache(uint256)\":{\"details\":\"Returns the cached protocol fee percentage. If `getProtocolSwapFeeDelegation()` is false, this value is immutable for swap fee queries. Alternatively, it will track the global fee percentage set in the ProtocolFeePercentagesProvider.\"},\"getProtocolFeesCollector()\":{\"details\":\"This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)\"},\"getProtocolSwapFeeDelegation()\":{\"details\":\"Returns whether this Pool tracks protocol swap fee changes in the IProtocolFeePercentagesProvider.\"},\"getRateProviders()\":{\"details\":\"Returns the rate providers configured for each token (in the same order as registered).\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"This is stored in `_miscData`.\"},\"getTokenRate(address)\":{\"details\":\"Returns the rate for a given token. All token rates are fixed-point values with 18 decimals. If there is no rate provider for the provided token, it returns FixedPoint.ONE.\"},\"getTokenRateCache(address)\":{\"details\":\"Returns the cached value for token's rate. Reverts if the token doesn't belong to the pool or has no rate provider.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"isTokenExemptFromYieldProtocolFee(address)\":{\"details\":\"Returns whether the token is exempt from protocol fees on the yield. If the BPT token is passed in (which doesn't make much sense, but shouldn't fail, since it is a valid pool token), the corresponding flag will be false.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `exitPool`.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `joinPool`.\"},\"pause()\":{\"details\":\"This is a permissioned function that will only work during the Pause Window set during pool factory deployment (see `TemporarilyPausable`).\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the Vault with the same arguments, along with the number of tokens `sender` would have to supply. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"details\":\"This is a permissioned function, unavailable when the pool is paused. The details of the configuration data are set by each Asset Manager. (For an example, see `RewardsAssetManager`.)\"},\"setSwapFeePercentage(uint256)\":{\"details\":\"This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event.\"},\"setTokenRateCacheDuration(address,uint256)\":{\"details\":\"Sets a new duration for a token rate cache. Note this function also updates the current cached value. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a join or an exit because the state of the pool could be out of sync with the state of the Vault. It will also revert if there was no rate provider set initially. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\",\"params\":{\"duration\":\"Number of seconds until the current token rate is fetched again.\"}},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\"},\"unpause()\":{\"details\":\"This is a permissioned function that will only work on a paused pool within the Buffer Period set during pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause after the Buffer Period expires.\"},\"updateProtocolFeePercentageCache()\":{\"details\":\"Can be called by anyone to update the cached fee percentages (swap fee is only updated when delegated). Updates the cache to the latest value set by governance. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_beforeProtocolFeeCacheUpdate` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"updateTokenRateCache(address)\":{\"details\":\"Forces a rate cache hit for a token. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a join or an exit because the state of the pool could be out of sync with the state of the Vault. It will also revert if the requested token does not have an associated rate provider. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"getLastJoinExitData()\":{\"notice\":\"Return the amplification factor and invariant as of the most recent join or exit (including BPT swaps)\"},\"getPoolId()\":{\"notice\":\"Return the pool id.\"},\"getProtocolFeesCollector()\":{\"notice\":\"Return the ProtocolFeesCollector contract.\"},\"getSwapFeePercentage()\":{\"notice\":\"Return the current value of the swap fee percentage.\"},\"inRecoveryMode()\":{\"notice\":\"Returns whether the pool is in Recovery Mode.\"},\"isExemptFromYieldProtocolFee()\":{\"notice\":\"Return true if all tokens are exempt from yield fees.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for removing liquidity from a pool.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for adding liquidity to a pool (including the first time, \\\"initializing\\\" the pool).\"},\"pause()\":{\"notice\":\"Pause the pool: an emergency action which disables all pool functions.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onExitPool`.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onJoinPool`.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"notice\":\"Set the asset manager parameters for the given token.\"},\"setSwapFeePercentage(uint256)\":{\"notice\":\"Set the swap fee percentage.\"},\"unpause()\":{\"notice\":\"Reverse a `pause` operation, and restore a pool to normal functionality.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ComposableStablePoolProtocolFees.sol\":\"ComposableStablePoolProtocolFees\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\":{\"keccak256\":\"0x9f35f065d838cfeffaa7d085b3c204f9cdb8ab32b4b843957a851a55339980c1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://f8c0057b70b373133433619b1ee98b58bd8d1082c9d8bda7e9837ca3b46f6cd6\",\"dweb:/ipfs/QmVoCVhSnnknSavEZV1FY3hVkivuBqS2Crk6B1dHTXyYLt\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol\":{\"keccak256\":\"0xf6fd47a273c8f275d115dac4d216acffd976573410a5f92e2dd8c1125ce3b134\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://41febf9d4bc242065cb96d9d1258e926bf1b4f4c36131964cbf0b4cdd5ce1f99\",\"dweb:/ipfs/QmbKk893VkGw3w49xWyQS8ehqdXxbL4sqNW6TcWMXRpnGu\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":{\"keccak256\":\"0xefc640c1439bb12d652be70b20778ce123f13a42793e75a51819ed0aa3d7b8f0\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70dcf796a2295082edc1d499b26375e2001d4b87d151eb9fd7cb7b532fa8a9a8\",\"dweb:/ipfs/QmZrdWVr9qrohsFPLHX1jS37Qdnd8wCceYojRWR5xuP7RX\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol\":{\"keccak256\":\"0x65f93b8bac780e69e0ec41db98645323401686649dc61f9fa24d015d11084dfe\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://46b2c14982f82375159bb984548fd3bf4764972dd5cc0b2d40de82d0f3ccd28f\",\"dweb:/ipfs/QmPYfeoLCDwwDE6TDNRrnSQWniMgwuZSNJQ2Ycm3uRuBPs\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol\":{\"keccak256\":\"0x9b7f4fa639a65ddbd0ac2a4324d3a2654d087315eebdd24ac6dcec662e862b0b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8bec3ef24980c0de1e3a25b7bd9c4a7287236a00e703d3c307a965627e4729c1\",\"dweb:/ipfs/QmY5dhqoSrhZUymyQSYrzeqDanNA52C3ArFvhZ3gnvpqyZ\"]},\"@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol\":{\"keccak256\":\"0x1130ae270fcca20807ddd46644d2b4dbff73484f3fca9b7bf927043a6c1acf09\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://2c20940f2a3cb1c32ce122a769fb56517b3dd4c8f24c9288e53de83ec640666b\",\"dweb:/ipfs/Qma1AvNk3SjJeUuwyVjWqKqH2KCoVEAovjwfpnt8EsNeTN\"]},\"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\":{\"keccak256\":\"0xcc2a86a1628aa32f5c55c1e22bfed26ec2bf6cc41b1ba00ee0787b7204911698\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://907581cddf2f608fffcb47f69b7a16060f31d8eb8abf85bc935e73bf1eb2d515\",\"dweb:/ipfs/QmXYcbjuxfLs4v7qyzrP55gemhBMaoJKaZ1fSx4mYLdmCH\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol\":{\"keccak256\":\"0x25f6f0a81c60d41050ab16c9bb2bc7458ec76a32d642e161334e45b7743279f7\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://9466990b332e5656f3d6a54eb53abc3ec6ae992d6dc49db0d44ce32cc98da340\",\"dweb:/ipfs/Qmf6ehxp5Zq46SkZfcj97MbA9QWYfu59D5eBDJTPCPmxRC\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol\":{\"keccak256\":\"0x900f61d39cfbb66db432105fdd524892b4d36fd57021231a7a011ecf2e06d848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9853feb7f6ea54eed91e45cc9f833062a768365295c64867ac7e83926cb3a25\",\"dweb:/ipfs/Qmeo7jrEjenzBXQ8pSDj76CqVwHg9rhRZKiPfDpLuHk42Q\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]},\"contracts/ComposableStablePoolProtocolFees.sol\":{\"keccak256\":\"0x1f090402da7a1dd3258d5f8e909cbc24451aee79c5d59ef9450166777a95110e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://663abee98b7c0247de629e5d65342c51e9205a3d45bb0717fb03f3d7b217b011\",\"dweb:/ipfs/QmekWEsw9H41pAcM5Ftu5FsjuNfV18ivGb7vZqpsHWxe9w\"]},\"contracts/ComposableStablePoolRates.sol\":{\"keccak256\":\"0x975276d580a5c7d2d0b7a47761213e30028fe9d19336912aa80649a085a2d546\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://199784f76a062f809f740185666026b6ef34e5cbc0f4707bb2ea9a58dd3f41c4\",\"dweb:/ipfs/QmRr1AgsP9JV76zqSN3rgvNQopfTYLQtu5EssegKHQPMRx\"]},\"contracts/ComposableStablePoolStorage.sol\":{\"keccak256\":\"0x2512b31e132463430900583bba3f8c140977b40121f1be523771f3f392bf153c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ec805f528d1f3de1c20be93494ea6f85b42830b33923531415f39fccd7a869bb\",\"dweb:/ipfs/QmRxr5zP4wevP5R3PesVTTZ3hkmMGyceCkCcLtmzXfT3UP\"]},\"contracts/StableMath.sol\":{\"keccak256\":\"0x82eb1bf7001a58aebbca2fe38952e9c252676e572c4d70b43ddafe6ce7b55d25\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70c3c5819a60435926f99cd6426174407fbb46b59975b8c1b61b0a7352759ee5\",\"dweb:/ipfs/QmYJDeA376HZ86YQMiuBb9cHRnUKrrsrc26fnZDhYT5yZ8\"]}},\"version\":1}"
+ }
+ },
+ "contracts/ComposableStablePoolRates.sol": {
+ "ComposableStablePoolRates": {
+ "abi": [
+ {
+ "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": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "SwapFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenIndex",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "rate",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenRateCacheUpdated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "uint256",
+ "name": "tokenIndex",
+ "type": "uint256"
+ },
+ {
+ "indexed": true,
+ "internalType": "contract IRateProvider",
+ "name": "provider",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "cacheDuration",
+ "type": "uint256"
+ }
+ ],
+ "name": "TokenRateProviderSet",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getBptIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeesCollector",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeesCollector",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getRateProviders",
+ "outputs": [
+ {
+ "internalType": "contract IRateProvider[]",
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "getTokenRate",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "getTokenRateCache",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "rate",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "oldRate",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "expires",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "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": "isExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "isTokenExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "poolConfig",
+ "type": "bytes"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "duration",
+ "type": "uint256"
+ }
+ ],
+ "name": "setTokenRateCacheDuration",
+ "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": [],
+ "name": "unpause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "updateTokenRateCache",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getBptIndex()": "82687a56",
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c",
+ "getOwner()": "893d20e8",
+ "getPausedState()": "1c0de051",
+ "getPoolId()": "38fff2d0",
+ "getProtocolFeesCollector()": "d2946c2b",
+ "getRateProviders()": "238a2d59",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "getTokenRate(address)": "54dea00a",
+ "getTokenRateCache(address)": "7f1260d1",
+ "getVault()": "8d928af8",
+ "inRecoveryMode()": "b35056b8",
+ "increaseAllowance(address,uint256)": "39509351",
+ "isExemptFromYieldProtocolFee()": "77151bee",
+ "isTokenExemptFromYieldProtocolFee(address)": "ab7759f1",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "pause()": "8456cb59",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817",
+ "setAssetManagerPoolConfig(address,bytes)": "50dd6ed9",
+ "setSwapFeePercentage(uint256)": "38e9922e",
+ "setTokenRateCacheDuration(address,uint256)": "f4b7964d",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd",
+ "unpause()": "3f4ba83a",
+ "updateTokenRateCache(address)": "2df2c7c0"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"SwapFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"}],\"name\":\"TokenRateCacheUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenIndex\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"contract IRateProvider\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"cacheDuration\",\"type\":\"uint256\"}],\"name\":\"TokenRateProviderSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBptIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeesCollector\",\"outputs\":[{\"internalType\":\"contract IProtocolFeesCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRateProviders\",\"outputs\":[{\"internalType\":\"contract IRateProvider[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenRateCache\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"rate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expires\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"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\":\"isExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isTokenExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"name\":\"setAssetManagerPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"setTokenRateCacheDuration\",\"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\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"updateTokenRateCache\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval. This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this contract inherits.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Override to allow decreasing allowance by more than the current amount (setting it to zero)\"},\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getPausedState()\":{\"details\":\"Returns the current contract pause status, as well as the end times of the Pause Window and Buffer Period.\"},\"getProtocolFeesCollector()\":{\"details\":\"This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)\"},\"getRateProviders()\":{\"details\":\"Returns the rate providers configured for each token (in the same order as registered).\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"This is stored in `_miscData`.\"},\"getTokenRate(address)\":{\"details\":\"Returns the rate for a given token. All token rates are fixed-point values with 18 decimals. If there is no rate provider for the provided token, it returns FixedPoint.ONE.\"},\"getTokenRateCache(address)\":{\"details\":\"Returns the cached value for token's rate. Reverts if the token doesn't belong to the pool or has no rate provider.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"isTokenExemptFromYieldProtocolFee(address)\":{\"details\":\"Returns whether the token is exempt from protocol fees on the yield. If the BPT token is passed in (which doesn't make much sense, but shouldn't fail, since it is a valid pool token), the corresponding flag will be false.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `exitPool`.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `joinPool`.\"},\"pause()\":{\"details\":\"This is a permissioned function that will only work during the Pause Window set during pool factory deployment (see `TemporarilyPausable`).\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the Vault with the same arguments, along with the number of tokens `sender` would have to supply. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"details\":\"This is a permissioned function, unavailable when the pool is paused. The details of the configuration data are set by each Asset Manager. (For an example, see `RewardsAssetManager`.)\"},\"setSwapFeePercentage(uint256)\":{\"details\":\"This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event.\"},\"setTokenRateCacheDuration(address,uint256)\":{\"details\":\"Sets a new duration for a token rate cache. Note this function also updates the current cached value. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a join or an exit because the state of the pool could be out of sync with the state of the Vault. It will also revert if there was no rate provider set initially. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\",\"params\":{\"duration\":\"Number of seconds until the current token rate is fetched again.\"}},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\"},\"unpause()\":{\"details\":\"This is a permissioned function that will only work on a paused pool within the Buffer Period set during pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause after the Buffer Period expires.\"},\"updateTokenRateCache(address)\":{\"details\":\"Forces a rate cache hit for a token. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a join or an exit because the state of the pool could be out of sync with the state of the Vault. It will also revert if the requested token does not have an associated rate provider. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"getPoolId()\":{\"notice\":\"Return the pool id.\"},\"getProtocolFeesCollector()\":{\"notice\":\"Return the ProtocolFeesCollector contract.\"},\"getSwapFeePercentage()\":{\"notice\":\"Return the current value of the swap fee percentage.\"},\"inRecoveryMode()\":{\"notice\":\"Returns whether the pool is in Recovery Mode.\"},\"isExemptFromYieldProtocolFee()\":{\"notice\":\"Return true if all tokens are exempt from yield fees.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for removing liquidity from a pool.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for adding liquidity to a pool (including the first time, \\\"initializing\\\" the pool).\"},\"pause()\":{\"notice\":\"Pause the pool: an emergency action which disables all pool functions.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onExitPool`.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onJoinPool`.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"notice\":\"Set the asset manager parameters for the given token.\"},\"setSwapFeePercentage(uint256)\":{\"notice\":\"Set the swap fee percentage.\"},\"unpause()\":{\"notice\":\"Reverse a `pause` operation, and restore a pool to normal functionality.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ComposableStablePoolRates.sol\":\"ComposableStablePoolRates\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\":{\"keccak256\":\"0x9f35f065d838cfeffaa7d085b3c204f9cdb8ab32b4b843957a851a55339980c1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://f8c0057b70b373133433619b1ee98b58bd8d1082c9d8bda7e9837ca3b46f6cd6\",\"dweb:/ipfs/QmVoCVhSnnknSavEZV1FY3hVkivuBqS2Crk6B1dHTXyYLt\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":{\"keccak256\":\"0xefc640c1439bb12d652be70b20778ce123f13a42793e75a51819ed0aa3d7b8f0\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70dcf796a2295082edc1d499b26375e2001d4b87d151eb9fd7cb7b532fa8a9a8\",\"dweb:/ipfs/QmZrdWVr9qrohsFPLHX1jS37Qdnd8wCceYojRWR5xuP7RX\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol\":{\"keccak256\":\"0xcc2a86a1628aa32f5c55c1e22bfed26ec2bf6cc41b1ba00ee0787b7204911698\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://907581cddf2f608fffcb47f69b7a16060f31d8eb8abf85bc935e73bf1eb2d515\",\"dweb:/ipfs/QmXYcbjuxfLs4v7qyzrP55gemhBMaoJKaZ1fSx4mYLdmCH\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol\":{\"keccak256\":\"0x25f6f0a81c60d41050ab16c9bb2bc7458ec76a32d642e161334e45b7743279f7\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://9466990b332e5656f3d6a54eb53abc3ec6ae992d6dc49db0d44ce32cc98da340\",\"dweb:/ipfs/Qmf6ehxp5Zq46SkZfcj97MbA9QWYfu59D5eBDJTPCPmxRC\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]},\"contracts/ComposableStablePoolRates.sol\":{\"keccak256\":\"0x975276d580a5c7d2d0b7a47761213e30028fe9d19336912aa80649a085a2d546\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://199784f76a062f809f740185666026b6ef34e5cbc0f4707bb2ea9a58dd3f41c4\",\"dweb:/ipfs/QmRr1AgsP9JV76zqSN3rgvNQopfTYLQtu5EssegKHQPMRx\"]},\"contracts/ComposableStablePoolStorage.sol\":{\"keccak256\":\"0x2512b31e132463430900583bba3f8c140977b40121f1be523771f3f392bf153c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ec805f528d1f3de1c20be93494ea6f85b42830b33923531415f39fccd7a869bb\",\"dweb:/ipfs/QmRxr5zP4wevP5R3PesVTTZ3hkmMGyceCkCcLtmzXfT3UP\"]},\"contracts/StableMath.sol\":{\"keccak256\":\"0x82eb1bf7001a58aebbca2fe38952e9c252676e572c4d70b43ddafe6ce7b55d25\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70c3c5819a60435926f99cd6426174407fbb46b59975b8c1b61b0a7352759ee5\",\"dweb:/ipfs/QmYJDeA376HZ86YQMiuBb9cHRnUKrrsrc26fnZDhYT5yZ8\"]}},\"version\":1}"
+ }
+ },
+ "contracts/ComposableStablePoolStorage.sol": {
+ "ComposableStablePoolStorage": {
+ "abi": [
+ {
+ "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": "bool",
+ "name": "paused",
+ "type": "bool"
+ }
+ ],
+ "name": "PausedStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "bool",
+ "name": "enabled",
+ "type": "bool"
+ }
+ ],
+ "name": "RecoveryModeStateChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "SwapFeePercentageChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "from",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Transfer",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "DOMAIN_SEPARATOR",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ }
+ ],
+ "name": "allowance",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "internalType": "uint8",
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "spender",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseAllowance",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "disableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "enableRecoveryMode",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getBptIndex",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getDomainSeparator",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getNextNonce",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPausedState",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "paused",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "pauseWindowEndTime",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "bufferPeriodEndTime",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getPoolId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getProtocolFeesCollector",
+ "outputs": [
+ {
+ "internalType": "contract IProtocolFeesCollector",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getRateProviders",
+ "outputs": [
+ {
+ "internalType": "contract IRateProvider[]",
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getScalingFactors",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getSwapFeePercentage",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getVault",
+ "outputs": [
+ {
+ "internalType": "contract IVault",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "inRecoveryMode",
+ "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": "isExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ }
+ ],
+ "name": "isTokenExemptFromYieldProtocolFee",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "view",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onExitPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "onJoinPool",
+ "outputs": [
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "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": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryExit",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptIn",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsOut",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "poolId",
+ "type": "bytes32"
+ },
+ {
+ "internalType": "address",
+ "name": "sender",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recipient",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "balances",
+ "type": "uint256[]"
+ },
+ {
+ "internalType": "uint256",
+ "name": "lastChangeBlock",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "protocolSwapFeePercentage",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bytes",
+ "name": "userData",
+ "type": "bytes"
+ }
+ ],
+ "name": "queryJoin",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "bptOut",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256[]",
+ "name": "amountsIn",
+ "type": "uint256[]"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "contract IERC20",
+ "name": "token",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "poolConfig",
+ "type": "bytes"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "swapFeePercentage",
+ "type": "uint256"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "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": [],
+ "name": "unpause",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "DOMAIN_SEPARATOR()": "3644e515",
+ "allowance(address,address)": "dd62ed3e",
+ "approve(address,uint256)": "095ea7b3",
+ "balanceOf(address)": "70a08231",
+ "decimals()": "313ce567",
+ "decreaseAllowance(address,uint256)": "a457c2d7",
+ "disableRecoveryMode()": "b7b814fc",
+ "enableRecoveryMode()": "54a844ba",
+ "getActionId(bytes4)": "851c1bb3",
+ "getAuthorizer()": "aaabadc5",
+ "getBptIndex()": "82687a56",
+ "getDomainSeparator()": "ed24911d",
+ "getNextNonce(address)": "90193b7c",
+ "getOwner()": "893d20e8",
+ "getPausedState()": "1c0de051",
+ "getPoolId()": "38fff2d0",
+ "getProtocolFeesCollector()": "d2946c2b",
+ "getRateProviders()": "238a2d59",
+ "getScalingFactors()": "1dd746ea",
+ "getSwapFeePercentage()": "55c67628",
+ "getVault()": "8d928af8",
+ "inRecoveryMode()": "b35056b8",
+ "increaseAllowance(address,uint256)": "39509351",
+ "isExemptFromYieldProtocolFee()": "77151bee",
+ "isTokenExemptFromYieldProtocolFee(address)": "ab7759f1",
+ "name()": "06fdde03",
+ "nonces(address)": "7ecebe00",
+ "onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "74f3b009",
+ "onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)": "d5c096c4",
+ "pause()": "8456cb59",
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
+ "queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)": "6028bfd4",
+ "queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)": "87ec6817",
+ "setAssetManagerPoolConfig(address,bytes)": "50dd6ed9",
+ "setSwapFeePercentage(uint256)": "38e9922e",
+ "symbol()": "95d89b41",
+ "totalSupply()": "18160ddd",
+ "transfer(address,uint256)": "a9059cbb",
+ "transferFrom(address,address,uint256)": "23b872dd",
+ "unpause()": "3f4ba83a"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PausedStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"RecoveryModeStateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"SwapFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enableRecoveryMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBptIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDomainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getNextNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPausedState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFeesCollector\",\"outputs\":[{\"internalType\":\"contract IProtocolFeesCollector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRateProviders\",\"outputs\":[{\"internalType\":\"contract IRateProvider[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getScalingFactors\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSwapFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"inRecoveryMode\",\"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\":\"isExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isTokenExemptFromYieldProtocolFee\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onExitPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"onJoinPool\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryExit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"queryJoin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"name\":\"setAssetManagerPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setSwapFeePercentage\",\"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\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"See {IERC20Permit-DOMAIN_SEPARATOR}.\"},\"allowance(address,address)\":{\"details\":\"Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval. This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this contract inherits.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"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 {_setupDecimals} is called. 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}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Override to allow decreasing allowance by more than the current amount (setting it to zero)\"},\"disableRecoveryMode()\":{\"details\":\"Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly necessary. This function will revert when called within a Vault context (i.e. in the middle of a join or an exit). This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or an exit, because the state of the pool could be out of sync with the state of the Vault. `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively protecting this function. See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\"},\"enableRecoveryMode()\":{\"details\":\"Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may perform certain operations in a \\\"safer\\\" manner that is less likely to fail, in an attempt to keep the pool running, even in a pathological state. Unlike the Pause operation, which is only available during a short window after factory deployment, Recovery Mode can always be enabled.\"},\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"getDomainSeparator()\":{\"details\":\"Returns the EIP712 domain separator.\"},\"getPausedState()\":{\"details\":\"Returns the current contract pause status, as well as the end times of the Pause Window and Buffer Period.\"},\"getProtocolFeesCollector()\":{\"details\":\"This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)\"},\"getRateProviders()\":{\"details\":\"Returns the rate providers configured for each token (in the same order as registered).\"},\"getScalingFactors()\":{\"details\":\"Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically not relevant for outside parties, but which might be useful for some types of Pools.\"},\"getSwapFeePercentage()\":{\"details\":\"This is stored in `_miscData`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"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.\"},\"isTokenExemptFromYieldProtocolFee(address)\":{\"details\":\"Returns whether the token is exempt from protocol fees on the yield. If the BPT token is passed in (which doesn't make much sense, but shouldn't fail, since it is a valid pool token), the corresponding flag will be false.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"nonces(address)\":{\"details\":\"See {IERC20Permit-nonces}.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `exitPool`.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"This function can only be called from the Vault, from `joinPool`.\"},\"pause()\":{\"details\":\"This is a permissioned function that will only work during the Pause Window set during pool factory deployment (see `TemporarilyPausable`).\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"See {IERC20Permit-permit}.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"details\":\"Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the Vault with the same arguments, along with the number of tokens `sender` would have to supply. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"details\":\"This is a permissioned function, unavailable when the pool is paused. The details of the configuration data are set by each Asset Manager. (For an example, see `RewardsAssetManager`.)\"},\"setSwapFeePercentage(uint256)\":{\"details\":\"This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}. The total supply should only be read using this function Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other storage values).\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance\"},\"unpause()\":{\"details\":\"This is a permissioned function that will only work on a paused pool within the Buffer Period set during pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause after the Buffer Period expires.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"disableRecoveryMode()\":{\"notice\":\"Disable recovery mode, which disables the special safe exit path for LPs.\"},\"enableRecoveryMode()\":{\"notice\":\"Enable recovery mode, which enables a special safe exit path for LPs.\"},\"getPoolId()\":{\"notice\":\"Return the pool id.\"},\"getProtocolFeesCollector()\":{\"notice\":\"Return the ProtocolFeesCollector contract.\"},\"getSwapFeePercentage()\":{\"notice\":\"Return the current value of the swap fee percentage.\"},\"inRecoveryMode()\":{\"notice\":\"Returns whether the pool is in Recovery Mode.\"},\"isExemptFromYieldProtocolFee()\":{\"notice\":\"Return true if all tokens are exempt from yield fees.\"},\"onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for removing liquidity from a pool.\"},\"onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"Vault hook for adding liquidity to a pool (including the first time, \\\"initializing\\\" the pool).\"},\"pause()\":{\"notice\":\"Pause the pool: an emergency action which disables all pool functions.\"},\"queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onExitPool`.\"},\"queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes)\":{\"notice\":\"\\\"Dry run\\\" `onJoinPool`.\"},\"setAssetManagerPoolConfig(address,bytes)\":{\"notice\":\"Set the asset manager parameters for the given token.\"},\"setSwapFeePercentage(uint256)\":{\"notice\":\"Set the swap fee percentage.\"},\"unpause()\":{\"notice\":\"Reverse a `pause` operation, and restore a pool to normal functionality.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ComposableStablePoolStorage.sol\":\"ComposableStablePoolStorage\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol\":{\"keccak256\":\"0x29a6dcacf7fb1d48ec2cbaa6da7d8338c2ba35ec50c1fb90cf2972055bfd18fa\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://767965180c88743a46680854be50876cc91df7451d981e71e0795dc6cc8c7f3c\",\"dweb:/ipfs/QmbwCYy8J5c1jbYRXbGXbiPziKAVCwcriqA9nhPXJv5usp\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol\":{\"keccak256\":\"0xf444eabd05e1e9ae0cfd63402f4b39446157b2644419d73a6329228c1bf93ba4\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://cb4d3b9b940c066bfa07a285e8d09550cacfaaa758b2c14d7d892359ffee5b6b\",\"dweb:/ipfs/QmR49e1iePTjk2wjyvPZ37iDThjYjXzamz4hRHW7p6BdqR\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol\":{\"keccak256\":\"0xf4f7a49012fb01cc72e155add7ce901fa3cbc6373d04b8af876e970dca456133\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://accf67ea3a4acc40dcd46e93aad0eaea0fbb97534e603de71470a12993382e74\",\"dweb:/ipfs/QmQV81Xn6Mq7XV15YSkgKjdEKu4EQdFYYQHVposSdUUtvQ\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol\":{\"keccak256\":\"0x9f35f065d838cfeffaa7d085b3c204f9cdb8ab32b4b843957a851a55339980c1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://f8c0057b70b373133433619b1ee98b58bd8d1082c9d8bda7e9837ca3b46f6cd6\",\"dweb:/ipfs/QmVoCVhSnnknSavEZV1FY3hVkivuBqS2Crk6B1dHTXyYLt\"]},\"@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol\":{\"keccak256\":\"0x3b709912ffc400dc23d03030fb1c78e45df0c5721071f8c6f3c32bd694924055\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1a2c0c77e07b54ed3098ae1d2178f3b168c282872250ac6bd53a6a5e6d08b4ff\",\"dweb:/ipfs/QmdPQ4RzyuNsW7geoXrTt9NzBhqDLN6JHUWCHAnGd4fNYw\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol\":{\"keccak256\":\"0x2fe46b13b7c8bfc6f5c539c0b73d6325813f383f551b71fb6bca8dafd06964e1\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8e651ae7a3a3652c8bb7aaa42c2cce5924310df62a923d9ec50ddb9c850d2995\",\"dweb:/ipfs/QmTHz9y18L5FD7v9GcvxGWSLJuin2KCUEYoARTgz8njce8\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol\":{\"keccak256\":\"0xb3e5b7c63f80b80ef3f0138eac56c397a439bf6b667fc06d5061aa869828b562\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://978d66fba0721a1a67e29a32eaddab8d1f92ab2fb2d611724ea8d0d3c9b0e95b\",\"dweb:/ipfs/QmfG4foZvx3NDZao7d4VvGzL4Uxtk8VWNJXvgo9fiAJxZv\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol\":{\"keccak256\":\"0x19a0628bedbe48178a4c90509a40d750d5039677b964ec533a24361a8d97274b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c55887c89f152f00e5d65389061de28fada0e73eb5f41ebd16a3b8e65846cb1a\",\"dweb:/ipfs/QmNbVtaA44BGvKnKiCT4bEtjZu1ZD5ZJ6XrgBDh5qVEGcP\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol\":{\"keccak256\":\"0xd828a935a72a6d182912abba290e4debb8c684c36fd756088f7acb30e0b2bb76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e6ac013b95e9622917c5ad388dc73f0a389a76341597731746e54547aa9de8a\",\"dweb:/ipfs/QmPB8qWcRPZaDsASgQpf5a6i2YrZ4TDV3Ebi25Mn9EAdf4\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol\":{\"keccak256\":\"0xffe929ce55ef0cbdcc60eee8bc9375c295757ad13afe3d757646538aa0429ff5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://90091ad3a860b0baa930d9b4083b503eb9ce2d222f738ce3b009d434271a27ae\",\"dweb:/ipfs/QmeQxy2YHbeumMXxKqEnXF7pGw2Ke43cHzttG59WYHibVV\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol\":{\"keccak256\":\"0x70ecf1d48c285d78718bd2e159345677038ed8a81c74444bedd6a5c61af9aff6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c7c210e449ea5d284abeaaed82e3bb3c203b57d8b3e5dfb6daedf76eaae31d1\",\"dweb:/ipfs/QmfJWLPhCG6PcHNJMLNDbAM6nd2ZVFCexCXvJ9qQmRaNbn\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol\":{\"keccak256\":\"0xd36229e6ac86c11d67c77af218720c36a2e44511c84635fd780f1a3b9ac78d75\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70570fa1ae61157b1fe163c07f559ff42987723ad4971a624d9c3fa7de0c99e8\",\"dweb:/ipfs/QmZ97kZMpg9kypYQHCdGD4xoqs9a6PrEwumU4EWNogpzLh\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol\":{\"keccak256\":\"0x5370e6567e4765d26437ff0904ae3244e57a19b20155079b34c4c292d003e521\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://309377ce43e8fb09c8ae998612a1556b9b5cbcca2da71dd7c786cf0480f5dc92\",\"dweb:/ipfs/QmeUJKtRBtFdLK7WHbTAMn4ZuBoiSXYX5wZFPZ46oqpkv8\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol\":{\"keccak256\":\"0x997616af454ac3b56c8377fc913a25c7b282dc95355f6251dd4283c2b6d4805e\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://22479024819e8b6a7b19ecd910dd847ec1611924db4aa67070c419ef9aac4f07\",\"dweb:/ipfs/QmbfzphtRmBAB8KgbN2Q4DUqpLo9gEGm5QEUFWXSou1Yt7\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol\":{\"keccak256\":\"0xa073b9e057a346ac1fdab1b4c348799d199b44daf1553da3fb3301d5c038282b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://640d27c0ea440a2b9fa3312d92d7eb63a68dd1a2ebb76ca0c26920986b05a1d1\",\"dweb:/ipfs/QmRQ7xdHQ7kvfY3XhmRoKVBoUET2V1LRwiN4TGnLy1MZrU\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IVault.sol\":{\"keccak256\":\"0x5c942367601af6fcff9f54774cccd3dc0e72d98becc69e5c0eb6bcf053d486ab\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://edfe93fb7cc70bac2f5deedfe9558b8f5c07ad94d272d2e16d88948aa46fb713\",\"dweb:/ipfs/QmeCP598vDn6rTHQuWUbUVnHn2y8GJLmtoJwhaga8znHJm\"]},\"@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol\":{\"keccak256\":\"0x5ea2a299ca82624b363275fdd8e946c2cd549e948f8e33332db85dfa15866551\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://3d5dd88be97aefb5b0f1f90a7fe9dd4614b0b5854ad657a7dd9943c43144de59\",\"dweb:/ipfs/QmaRARLz4mPTmpq2YnAKbtsQTaRTCuhfMWTWdbTWRKDxKt\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePool.sol\":{\"keccak256\":\"0xefc640c1439bb12d652be70b20778ce123f13a42793e75a51819ed0aa3d7b8f0\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70dcf796a2295082edc1d499b26375e2001d4b87d151eb9fd7cb7b532fa8a9a8\",\"dweb:/ipfs/QmZrdWVr9qrohsFPLHX1jS37Qdnd8wCceYojRWR5xuP7RX\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol\":{\"keccak256\":\"0x7573a823f4b34100a39fabef2fde857162dfb0ee195579f7a67cb4762a3358bc\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://8c898823c493a218ab0cda694c31c4451ebb5818778b39ed130e2432c178eb6b\",\"dweb:/ipfs/QmQVXZHBKpJBQuy2S4VW8N1wpKJog7a3ZzFu5xrvNvXd26\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol\":{\"keccak256\":\"0x01bbfbec787d72db3b84969a1e629d922bcab2116c84e27d596979457e778c74\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://e89c70804224f69f50546824a8c963774fd239430a2677090d23ad8e018d3052\",\"dweb:/ipfs/QmbSHyur8EDo798qz3TCqcBcoiWuuPmoVjCbP2CzH1hoCP\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol\":{\"keccak256\":\"0xb9f711fe78be500e514d52ab9d39319ab05019a82a70be8ca071d0c8a7e2cb4c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://33f606957103269b63c5892bb843ff17af87dfe9ecdb560c12ff0b9f29aaf3a9\",\"dweb:/ipfs/QmUS1HHLQHEnNVhbGidzwnfW7PLoQDv3oq85edWRXgEoeM\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol\":{\"keccak256\":\"0x0ef66c7a887be422f59a66aa5824e605686ac3a10b2ac3bd7f93dced56c05edb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f9885e1452815bbf2ee1ce660e1ffffa88932fc9f4810acd425a7b41d017ee1\",\"dweb:/ipfs/QmTbsp1xBgSgXkh2vjk8thxoBstqorYkUEihV4Qan52dfS\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol\":{\"keccak256\":\"0x0cf3ec5d6130aac057e69df14b1ff87baf9c6c2cb13bc545952def004e629ac0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://446419367266d271bf6953e4ae0423356a5cc4717f7b9a5a0532436de4be2d70\",\"dweb:/ipfs/QmPV56wHs1Mqif6et6TYrhZ2QYPNmiVTmXWvQMhqWfKLk9\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol\":{\"keccak256\":\"0x4c243366b8586a81a439c52e400fd74ef22ee55dc6569ee49beefc0651417163\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7ef6fc6451c8f9010777eb0e46ed7800212220e50d36286caf56b9a9fcdb4229\",\"dweb:/ipfs/QmR2HnofdMgVS9qW8AzPGNEQTBk8UJxPrLheTUmXX5GfSH\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol\":{\"keccak256\":\"0xbd474d9fb6f51b241ac85b659eabed4bac9a029f8565c64bc285edf04ef591cc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://334c367ffb8ff1df7f8dfebe67d0d7bf72cf39306481dd32f98b5a52033082b0\",\"dweb:/ipfs/QmdEmGyCohoDBhHqBaV6JbzYEXUqhRzVjLCPCmc81HfqUs\"]},\"@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol\":{\"keccak256\":\"0x59848b5045422c5cf58841baea490766b848f84ec1bb5066e2ae9365e2a6d750\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6bc10face470969cd65169aa12404814b4f76ad0e199e8ffedbf64af135e86e2\",\"dweb:/ipfs/QmSzcRHgfGuBUD2TPLat3JJejCWgSWKJP54ZCvzLWZPCiz\"]},\"contracts/ComposableStablePoolStorage.sol\":{\"keccak256\":\"0x2512b31e132463430900583bba3f8c140977b40121f1be523771f3f392bf153c\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ec805f528d1f3de1c20be93494ea6f85b42830b33923531415f39fccd7a869bb\",\"dweb:/ipfs/QmRxr5zP4wevP5R3PesVTTZ3hkmMGyceCkCcLtmzXfT3UP\"]},\"contracts/StableMath.sol\":{\"keccak256\":\"0x82eb1bf7001a58aebbca2fe38952e9c252676e572c4d70b43ddafe6ce7b55d25\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70c3c5819a60435926f99cd6426174407fbb46b59975b8c1b61b0a7352759ee5\",\"dweb:/ipfs/QmYJDeA376HZ86YQMiuBb9cHRnUKrrsrc26fnZDhYT5yZ8\"]}},\"version\":1}"
+ }
+ },
+ "contracts/StableMath.sol": {
+ "StableMath": {
+ "abi": [],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207d80c8278ad60c9808cb07dda7a4666e37eaf1b51c459398a020f6e2b790c39764736f6c63430007010033",
+ "opcodes": "PUSH1 0x56 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH30 0x80C8278AD60C9808CB07DDA7A4666E37EAF1B51C459398A020F6E2B790C3 SWAP8 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "1178:22308:59:-:0;;;;;;;;;;;;;;;;;;;;;;;;;"
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207d80c8278ad60c9808cb07dda7a4666e37eaf1b51c459398a020f6e2b790c39764736f6c63430007010033",
+ "opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH30 0x80C8278AD60C9808CB07DDA7A4666E37EAF1B51C459398A020F6E2B790C3 SWAP8 PUSH5 0x736F6C6343 STOP SMOD ADD STOP CALLER ",
+ "sourceMap": "1178:22308:59:-:0;;;;;;;;"
+ },
+ "methodIdentifiers": {}
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/StableMath.sol\":\"StableMath\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"contracts/StableMath.sol\":{\"keccak256\":\"0x82eb1bf7001a58aebbca2fe38952e9c252676e572c4d70b43ddafe6ce7b55d25\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70c3c5819a60435926f99cd6426174407fbb46b59975b8c1b61b0a7352759ee5\",\"dweb:/ipfs/QmYJDeA376HZ86YQMiuBb9cHRnUKrrsrc26fnZDhYT5yZ8\"]}},\"version\":1}"
+ }
+ },
+ "contracts/StablePoolAmplification.sol": {
+ "StablePoolAmplification": {
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "startValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "endValue",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "startTime",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "endTime",
+ "type": "uint256"
+ }
+ ],
+ "name": "AmpUpdateStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "currentValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "AmpUpdateStopped",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes4",
+ "name": "selector",
+ "type": "bytes4"
+ }
+ ],
+ "name": "getActionId",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAmplificationParameter",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "value",
+ "type": "uint256"
+ },
+ {
+ "internalType": "bool",
+ "name": "isUpdating",
+ "type": "bool"
+ },
+ {
+ "internalType": "uint256",
+ "name": "precision",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getAuthorizer",
+ "outputs": [
+ {
+ "internalType": "contract IAuthorizer",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "getOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "rawEndValue",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "endTime",
+ "type": "uint256"
+ }
+ ],
+ "name": "startAmplificationParameterUpdate",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "stopAmplificationParameterUpdate",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "evm": {
+ "bytecode": {
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "deployedBytecode": {
+ "immutableReferences": {},
+ "linkReferences": {},
+ "object": "",
+ "opcodes": "",
+ "sourceMap": ""
+ },
+ "methodIdentifiers": {
+ "getActionId(bytes4)": "851c1bb3",
+ "getAmplificationParameter()": "6daccffa",
+ "getAuthorizer()": "aaabadc5",
+ "getOwner()": "893d20e8",
+ "startAmplificationParameterUpdate(uint256,uint256)": "2f1a0bc9",
+ "stopAmplificationParameterUpdate()": "eb0f24d6"
+ }
+ },
+ "metadata": "{\"compiler\":{\"version\":\"0.7.1+commit.f4a555be\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"}],\"name\":\"AmpUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"currentValue\",\"type\":\"uint256\"}],\"name\":\"AmpUpdateStopped\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"name\":\"getActionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAmplificationParameter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isUpdating\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"precision\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAuthorizer\",\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"rawEndValue\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"}],\"name\":\"startAmplificationParameterUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopAmplificationParameterUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getActionId(bytes4)\":{\"details\":\"Returns the action identifier associated with the external function described by `selector`.\"},\"startAmplificationParameterUpdate(uint256,uint256)\":{\"details\":\"Begin changing the amplification parameter to `rawEndValue` over time. The value will change linearly until `endTime` is reached, when it will be `rawEndValue`. NOTE: Internally, the amplification parameter is represented using higher precision. The values returned by `getAmplificationParameter` have to be corrected to account for this when comparing to `rawEndValue`.\"},\"stopAmplificationParameterUpdate()\":{\"details\":\"Stops the amplification parameter change process, keeping the current value.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/StablePoolAmplification.sol\":\"StablePoolAmplification\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":800},\"remappings\":[]},\"sources\":{\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol\":{\"keccak256\":\"0x0a18e547a5a02960715d13222c38671444bf2de3153321aaa4c2e1c6a6c3dc86\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://422513642fe275dd59c6bcc04b50eccce31c1bf2e666625ccf95be443726da41\",\"dweb:/ipfs/QmNLsoUmZxWKdgeDTch84hGrgzLsriqJaeNU5NFdRuNAnC\"]},\"@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol\":{\"keccak256\":\"0xfd687ced203d2c6da8189792e1719a5182faf45956129388b231ee76740b99a6\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://581aa664e84e950cd9bb747bf6022867db63c64f67d9556a86b5f04f871c2c5d\",\"dweb:/ipfs/QmRa6EEV3LXJaHzymztiLqyeAzmE4jAgBEEi3mi8R5cfFa\"]},\"@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol\":{\"keccak256\":\"0x792871e208bba1dad291f8d1cffad86f4afa5e2360816bd9c43481f7297155f5\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://af8ab65258e294c8ba0a5feee91208789f641181d225364b02123d38d9eec7d0\",\"dweb:/ipfs/Qmb5HUXRaSrHJafwK1H8XRjcCTnAZMShTvBNhr1ovA1j2m\"]},\"@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol\":{\"keccak256\":\"0x84e3f88f972a704cad9cb327f070ca3724a261a4842fed26e5dafff5b05b3f3d\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://54f854fcfd7bc8a3f16d1038366cd6fc3de6d7ee7e2f08f2122af5adbad22de0\",\"dweb:/ipfs/QmbeVJQ7xx73uBQgyeeoz2uXDmEPF6U2Eb43KaFEVFHqAr\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol\":{\"keccak256\":\"0x1462b53900d425f1c7dcd53d928b6aa5d327cba8fa2bec27720603bb40d9be70\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ad188b1ccd7b1353665228bdc77de9c25e426553f3ec518006aa83d1300b6bf2\",\"dweb:/ipfs/QmaBTVdpM5jSucrVJHU37ZUHdZXEWPYMLkbB6hRiEwHcKN\"]},\"@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol\":{\"keccak256\":\"0x1ad308f5d6b263fbd039dea4b6136f87bd093877c4f2681736aa46339a597637\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://a78dd3e61288d00811884ed98f4598a4567b7ac5fb404efb5494deaeabc2b310\",\"dweb:/ipfs/QmYjEURaDnqquVHk79WkRB8sbqj4RwPYp7ujv8RTXtDAg5\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol\":{\"keccak256\":\"0x1ac831deb4f3dcea6c5f67a2bc83d49a9a7434029a4d6cc386b086a7f8fce369\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://492a6ea2320206e8956c15ebf326de8dbba3c3869014d7de4959bdb856ecd892\",\"dweb:/ipfs/QmSuPXCvQJyTe2YbSE9sgTv64nMuoZrHH7Y2LPG7cVbJG7\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol\":{\"keccak256\":\"0x1ef044eb991d5278b9edfe159e3cd4824733d5ed8e6a9de3f4f57d6bf65be94d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://168d31e5d2a92c9eeb0b50be5fb859d17746ad4ce0ee97552befce65dc6d726a\",\"dweb:/ipfs/QmQLyFUS1PTkkKUKKXU5Z7BoMPoQGdcvgpMUtJ6LaWMjrW\"]},\"@balancer-labs/v2-solidity-utils/contracts/math/Math.sol\":{\"keccak256\":\"0xa50a6030616fb98d27463df96d3bd9386c157ecae82c7a71be7e0b7ba778d02f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://51dbb7eeb98561aaf6cf6b48825a64a725f5d1d63cfd888711c4cb1468f52fc4\",\"dweb:/ipfs/Qmc2o8dUCBuu8PxJPrPufHmoZ6DGdMPoaXcruUqr3WuCLA\"]},\"contracts/StableMath.sol\":{\"keccak256\":\"0x82eb1bf7001a58aebbca2fe38952e9c252676e572c4d70b43ddafe6ce7b55d25\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://70c3c5819a60435926f99cd6426174407fbb46b59975b8c1b61b0a7352759ee5\",\"dweb:/ipfs/QmYJDeA376HZ86YQMiuBb9cHRnUKrrsrc26fnZDhYT5yZ8\"]},\"contracts/StablePoolAmplification.sol\":{\"keccak256\":\"0x35131a0fda0168332354ea2da753a595cedcdbc2663b83281fb86adbd10e2b15\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://6c4a52f1ed61716bf879e3d232c47060196602de456fced19722bd38e2c967dc\",\"dweb:/ipfs/QmStzAS76tvSSvbofjV8EB9VrbcF7h8DwygTZGpuqzAavm\"]}},\"version\":1}"
+ }
+ }
+ },
+ "sources": {
+ "@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol",
+ "exportedSymbols": {
+ "IAuthorizerAdaptor": [
+ 28
+ ]
+ },
+ "id": 29,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:0"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol",
+ "file": "../solidity-utils/helpers/IAuthentication.sol",
+ "id": 2,
+ "nodeType": "ImportDirective",
+ "scope": 29,
+ "sourceUnit": 1023,
+ "src": "713:55:0",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "../vault/IVault.sol",
+ "id": 3,
+ "nodeType": "ImportDirective",
+ "scope": 29,
+ "sourceUnit": 2022,
+ "src": "769:29:0",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 4,
+ "name": "IAuthentication",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1022,
+ "src": "832:15:0",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthentication_$1022",
+ "typeString": "contract IAuthentication"
+ }
+ },
+ "id": 5,
+ "nodeType": "InheritanceSpecifier",
+ "src": "832:15:0"
+ }
+ ],
+ "contractDependencies": [
+ 1022
+ ],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 28,
+ "linearizedBaseContracts": [
+ 28,
+ 1022
+ ],
+ "name": "IAuthorizerAdaptor",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 6,
+ "nodeType": "StructuredDocumentation",
+ "src": "854:53:0",
+ "text": " @notice Returns the Balancer Vault"
+ },
+ "functionSelector": "8d928af8",
+ "id": 11,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getVault",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "929:2:0"
+ },
+ "returnParameters": {
+ "id": 10,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11,
+ "src": "955:6:0",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 8,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "955:6:0",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "954:8:0"
+ },
+ "scope": 28,
+ "src": "912:51:0",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 12,
+ "nodeType": "StructuredDocumentation",
+ "src": "969:49:0",
+ "text": " @notice Returns the Authorizer"
+ },
+ "functionSelector": "aaabadc5",
+ "id": 17,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 13,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1045:2:0"
+ },
+ "returnParameters": {
+ "id": 16,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 15,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 17,
+ "src": "1071:11:0",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 14,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "1071:11:0",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1070:13:0"
+ },
+ "scope": 28,
+ "src": "1023:61:0",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 18,
+ "nodeType": "StructuredDocumentation",
+ "src": "1090:331:0",
+ "text": " @notice Performs an arbitrary function call on a target contract, provided the caller is authorized to do so.\n @param target - Address of the contract to be called\n @param data - Calldata to be sent to the target contract\n @return The bytes encoded return value from the performed function call"
+ },
+ "functionSelector": "4036176a",
+ "id": 27,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "performAction",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 23,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 20,
+ "mutability": "mutable",
+ "name": "target",
+ "nodeType": "VariableDeclaration",
+ "scope": 27,
+ "src": "1449:14:0",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 19,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1449:7:0",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 22,
+ "mutability": "mutable",
+ "name": "data",
+ "nodeType": "VariableDeclaration",
+ "scope": 27,
+ "src": "1465:19:0",
+ "stateVariable": false,
+ "storageLocation": "calldata",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_calldata_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 21,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1465:5:0",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1448:37:0"
+ },
+ "returnParameters": {
+ "id": 26,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 25,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 27,
+ "src": "1512:12:0",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 24,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1512:5:0",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1511:14:0"
+ },
+ "scope": 28,
+ "src": "1426:100:0",
+ "stateMutability": "payable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 29,
+ "src": "800:728:0"
+ }
+ ],
+ "src": "688:841:0"
+ },
+ "id": 0
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol",
+ "exportedSymbols": {
+ "StablePoolUserData": [
+ 236
+ ]
+ },
+ "id": 237,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 30,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:1"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 236,
+ "linearizedBaseContracts": [
+ 236
+ ],
+ "name": "StablePoolUserData",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "canonicalName": "StablePoolUserData.JoinKind",
+ "id": 35,
+ "members": [
+ {
+ "id": 31,
+ "name": "INIT",
+ "nodeType": "EnumValue",
+ "src": "762:4:1"
+ },
+ {
+ "id": 32,
+ "name": "EXACT_TOKENS_IN_FOR_BPT_OUT",
+ "nodeType": "EnumValue",
+ "src": "768:27:1"
+ },
+ {
+ "id": 33,
+ "name": "TOKEN_IN_FOR_EXACT_BPT_OUT",
+ "nodeType": "EnumValue",
+ "src": "797:26:1"
+ },
+ {
+ "id": 34,
+ "name": "ALL_TOKENS_IN_FOR_EXACT_BPT_OUT",
+ "nodeType": "EnumValue",
+ "src": "825:31:1"
+ }
+ ],
+ "name": "JoinKind",
+ "nodeType": "EnumDefinition",
+ "src": "746:112:1"
+ },
+ {
+ "canonicalName": "StablePoolUserData.ExitKind",
+ "id": 39,
+ "members": [
+ {
+ "id": 36,
+ "name": "EXACT_BPT_IN_FOR_ONE_TOKEN_OUT",
+ "nodeType": "EnumValue",
+ "src": "879:30:1"
+ },
+ {
+ "id": 37,
+ "name": "BPT_IN_FOR_EXACT_TOKENS_OUT",
+ "nodeType": "EnumValue",
+ "src": "911:27:1"
+ },
+ {
+ "id": 38,
+ "name": "EXACT_BPT_IN_FOR_ALL_TOKENS_OUT",
+ "nodeType": "EnumValue",
+ "src": "940:31:1"
+ }
+ ],
+ "name": "ExitKind",
+ "nodeType": "EnumDefinition",
+ "src": "863:110:1"
+ },
+ {
+ "body": {
+ "id": 53,
+ "nodeType": "Block",
+ "src": "1049:52:1",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 48,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 41,
+ "src": "1077:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 49,
+ "name": "JoinKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 35,
+ "src": "1084:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ }
+ ],
+ "id": 50,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1083:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ ],
+ "expression": {
+ "id": 46,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1066:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 47,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "1066:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 51,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1066:28:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "functionReturnParameters": 45,
+ "id": 52,
+ "nodeType": "Return",
+ "src": "1059:35:1"
+ }
+ ]
+ },
+ "id": 54,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "joinKind",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 42,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 41,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 54,
+ "src": "997:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 40,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "997:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "996:19:1"
+ },
+ "returnParameters": {
+ "id": 45,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 44,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 54,
+ "src": "1039:8:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ },
+ "typeName": {
+ "id": 43,
+ "name": "JoinKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 35,
+ "src": "1039:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1038:10:1"
+ },
+ "scope": 236,
+ "src": "979:122:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 68,
+ "nodeType": "Block",
+ "src": "1177:52:1",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 63,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 56,
+ "src": "1205:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 64,
+ "name": "ExitKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 39,
+ "src": "1212:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ }
+ ],
+ "id": 65,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1211:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ ],
+ "expression": {
+ "id": 61,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1194:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 62,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "1194:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 66,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1194:28:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "functionReturnParameters": 60,
+ "id": 67,
+ "nodeType": "Return",
+ "src": "1187:35:1"
+ }
+ ]
+ },
+ "id": 69,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "exitKind",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 57,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 56,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 69,
+ "src": "1125:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 55,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1125:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1124:19:1"
+ },
+ "returnParameters": {
+ "id": 60,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 59,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 69,
+ "src": "1167:8:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ },
+ "typeName": {
+ "id": 58,
+ "name": "ExitKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 39,
+ "src": "1167:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1166:10:1"
+ },
+ "scope": 236,
+ "src": "1107:122:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 90,
+ "nodeType": "Block",
+ "src": "1345:72:1",
+ "statements": [
+ {
+ "expression": {
+ "id": 88,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 77,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 75,
+ "src": "1358:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 78,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "1355:13:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(,uint256[] memory)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 81,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 71,
+ "src": "1382:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 82,
+ "name": "JoinKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 35,
+ "src": "1389:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 84,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1399:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 83,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1399:7:1",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 85,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1399:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "type(uint256[] memory)"
+ }
+ }
+ ],
+ "id": 86,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1388:21:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_array$_t_uint256_$dyn_memory_ptr_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256[] memory))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_array$_t_uint256_$dyn_memory_ptr_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256[] memory))"
+ }
+ ],
+ "expression": {
+ "id": 79,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1371:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 80,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "1371:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 87,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1371:39:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_enum$_JoinKind_$35_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(enum StablePoolUserData.JoinKind,uint256[] memory)"
+ }
+ },
+ "src": "1355:55:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 89,
+ "nodeType": "ExpressionStatement",
+ "src": "1355:55:1"
+ }
+ ]
+ },
+ "id": 91,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "initialAmountsIn",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 72,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 71,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 91,
+ "src": "1275:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 70,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1275:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1274:19:1"
+ },
+ "returnParameters": {
+ "id": 76,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 75,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 91,
+ "src": "1317:26:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 73,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1317:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 74,
+ "nodeType": "ArrayTypeName",
+ "src": "1317:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1316:28:1"
+ },
+ "scope": 236,
+ "src": "1249:168:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 117,
+ "nodeType": "Block",
+ "src": "1578:98:1",
+ "statements": [
+ {
+ "expression": {
+ "id": 115,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 101,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 97,
+ "src": "1591:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 102,
+ "name": "minBPTAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 99,
+ "src": "1602:15:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 103,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "1588:30:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(,uint256[] memory,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 106,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 93,
+ "src": "1632:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 107,
+ "name": "JoinKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 35,
+ "src": "1639:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 109,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1649:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 108,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1649:7:1",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 110,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1649:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "type(uint256[] memory)"
+ }
+ },
+ {
+ "id": 112,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1660:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 111,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1660:7:1",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 113,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1638:30:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_array$_t_uint256_$dyn_memory_ptr_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256[] memory),type(uint256))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_array$_t_uint256_$dyn_memory_ptr_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256[] memory),type(uint256))"
+ }
+ ],
+ "expression": {
+ "id": 104,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1621:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 105,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "1621:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 114,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1621:48:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_enum$_JoinKind_$35_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(enum StablePoolUserData.JoinKind,uint256[] memory,uint256)"
+ }
+ },
+ "src": "1588:81:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 116,
+ "nodeType": "ExpressionStatement",
+ "src": "1588:81:1"
+ }
+ ]
+ },
+ "id": 118,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "exactTokensInForBptOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 94,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 93,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 118,
+ "src": "1455:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 92,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1455:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1454:19:1"
+ },
+ "returnParameters": {
+ "id": 100,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 97,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 118,
+ "src": "1521:26:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 95,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1521:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 96,
+ "nodeType": "ArrayTypeName",
+ "src": "1521:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 99,
+ "mutability": "mutable",
+ "name": "minBPTAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 118,
+ "src": "1549:23:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 98,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1549:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1520:53:1"
+ },
+ "scope": 236,
+ "src": "1423:253:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 142,
+ "nodeType": "Block",
+ "src": "1797:94:1",
+ "statements": [
+ {
+ "expression": {
+ "id": 140,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 127,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 123,
+ "src": "1810:12:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 128,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 125,
+ "src": "1824:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 129,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "1807:28:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(,uint256,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 132,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 120,
+ "src": "1849:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 133,
+ "name": "JoinKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 35,
+ "src": "1856:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ {
+ "id": 135,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1866:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 134,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1866:7:1",
+ "typeDescriptions": {}
+ }
+ },
+ {
+ "id": 137,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1875:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 136,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1875:7:1",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 138,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1855:28:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_uint256_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256),type(uint256))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_uint256_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256),type(uint256))"
+ }
+ ],
+ "expression": {
+ "id": 130,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1838:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 131,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "1838:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 139,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1838:46:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_enum$_JoinKind_$35_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(enum StablePoolUserData.JoinKind,uint256,uint256)"
+ }
+ },
+ "src": "1807:77:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 141,
+ "nodeType": "ExpressionStatement",
+ "src": "1807:77:1"
+ }
+ ]
+ },
+ "id": 143,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "tokenInForExactBptOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 121,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 120,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 143,
+ "src": "1713:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 119,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1713:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1712:19:1"
+ },
+ "returnParameters": {
+ "id": 126,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 123,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 143,
+ "src": "1755:20:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 122,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1755:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 125,
+ "mutability": "mutable",
+ "name": "tokenIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 143,
+ "src": "1777:18:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 124,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1777:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1754:42:1"
+ },
+ "scope": 236,
+ "src": "1682:209:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 162,
+ "nodeType": "Block",
+ "src": "1996:73:1",
+ "statements": [
+ {
+ "expression": {
+ "id": 160,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 150,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 148,
+ "src": "2009:12:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 151,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "2006:16:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_uint256_$",
+ "typeString": "tuple(,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 154,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 145,
+ "src": "2036:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 155,
+ "name": "JoinKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 35,
+ "src": "2043:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ {
+ "id": 157,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2053:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 156,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2053:7:1",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 158,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2042:19:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_JoinKind_$35_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.JoinKind),type(uint256))"
+ }
+ ],
+ "expression": {
+ "id": 152,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "2025:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 153,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "2025:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 159,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2025:37:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_enum$_JoinKind_$35_$_t_uint256_$",
+ "typeString": "tuple(enum StablePoolUserData.JoinKind,uint256)"
+ }
+ },
+ "src": "2006:56:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 161,
+ "nodeType": "ExpressionStatement",
+ "src": "2006:56:1"
+ }
+ ]
+ },
+ "id": 163,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "allTokensInForExactBptOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 146,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 145,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 163,
+ "src": "1932:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 144,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1932:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1931:19:1"
+ },
+ "returnParameters": {
+ "id": 149,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 148,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 163,
+ "src": "1974:20:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 147,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1974:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1973:22:1"
+ },
+ "scope": 236,
+ "src": "1897:172:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 187,
+ "nodeType": "Block",
+ "src": "2203:93:1",
+ "statements": [
+ {
+ "expression": {
+ "id": 185,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 172,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 168,
+ "src": "2216:11:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 173,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 170,
+ "src": "2229:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 174,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "2213:27:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(,uint256,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 177,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 165,
+ "src": "2254:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 178,
+ "name": "ExitKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 39,
+ "src": "2261:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ },
+ {
+ "id": 180,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2271:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 179,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2271:7:1",
+ "typeDescriptions": {}
+ }
+ },
+ {
+ "id": 182,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2280:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 181,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2280:7:1",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 183,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2260:28:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_ExitKind_$39_$_$_t_type$_t_uint256_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.ExitKind),type(uint256),type(uint256))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_ExitKind_$39_$_$_t_type$_t_uint256_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.ExitKind),type(uint256),type(uint256))"
+ }
+ ],
+ "expression": {
+ "id": 175,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "2243:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 176,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "2243:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 184,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2243:46:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_enum$_ExitKind_$39_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(enum StablePoolUserData.ExitKind,uint256,uint256)"
+ }
+ },
+ "src": "2213:76:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 186,
+ "nodeType": "ExpressionStatement",
+ "src": "2213:76:1"
+ }
+ ]
+ },
+ "id": 188,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "exactBptInForTokenOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 166,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 165,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 188,
+ "src": "2120:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 164,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2120:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2119:19:1"
+ },
+ "returnParameters": {
+ "id": 171,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 168,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 188,
+ "src": "2162:19:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 167,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2162:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 170,
+ "mutability": "mutable",
+ "name": "tokenIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 188,
+ "src": "2183:18:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 169,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2183:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2161:41:1"
+ },
+ "scope": 236,
+ "src": "2089:207:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 207,
+ "nodeType": "Block",
+ "src": "2397:72:1",
+ "statements": [
+ {
+ "expression": {
+ "id": 205,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 195,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 193,
+ "src": "2410:11:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 196,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "2407:15:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_uint256_$",
+ "typeString": "tuple(,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 199,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 190,
+ "src": "2436:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 200,
+ "name": "ExitKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 39,
+ "src": "2443:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ },
+ {
+ "id": 202,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2453:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 201,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2453:7:1",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 203,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2442:19:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_ExitKind_$39_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.ExitKind),type(uint256))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_ExitKind_$39_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.ExitKind),type(uint256))"
+ }
+ ],
+ "expression": {
+ "id": 197,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "2425:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 198,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "2425:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 204,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2425:37:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_enum$_ExitKind_$39_$_t_uint256_$",
+ "typeString": "tuple(enum StablePoolUserData.ExitKind,uint256)"
+ }
+ },
+ "src": "2407:55:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 206,
+ "nodeType": "ExpressionStatement",
+ "src": "2407:55:1"
+ }
+ ]
+ },
+ "id": 208,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "exactBptInForTokensOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 191,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 190,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 208,
+ "src": "2334:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 189,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2334:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2333:19:1"
+ },
+ "returnParameters": {
+ "id": 194,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 193,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 208,
+ "src": "2376:19:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 192,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2376:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2375:21:1"
+ },
+ "scope": 236,
+ "src": "2302:167:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 234,
+ "nodeType": "Block",
+ "src": "2630:98:1",
+ "statements": [
+ {
+ "expression": {
+ "id": 232,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 218,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 214,
+ "src": "2643:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 219,
+ "name": "maxBPTAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 216,
+ "src": "2655:14:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 220,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "2640:30:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(,uint256[] memory,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 223,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 210,
+ "src": "2684:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 224,
+ "name": "ExitKind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 39,
+ "src": "2691:8:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 226,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2701:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 225,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2701:7:1",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 227,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "2701:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "type(uint256[] memory)"
+ }
+ },
+ {
+ "id": 229,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2712:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 228,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2712:7:1",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 230,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2690:30:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_ExitKind_$39_$_$_t_type$_t_array$_t_uint256_$dyn_memory_ptr_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.ExitKind),type(uint256[] memory),type(uint256))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_enum$_ExitKind_$39_$_$_t_type$_t_array$_t_uint256_$dyn_memory_ptr_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(enum StablePoolUserData.ExitKind),type(uint256[] memory),type(uint256))"
+ }
+ ],
+ "expression": {
+ "id": 221,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "2673:3:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 222,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "2673:10:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 231,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2673:48:1",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_enum$_ExitKind_$39_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(enum StablePoolUserData.ExitKind,uint256[] memory,uint256)"
+ }
+ },
+ "src": "2640:81:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 233,
+ "nodeType": "ExpressionStatement",
+ "src": "2640:81:1"
+ }
+ ]
+ },
+ "id": 235,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "bptInForExactTokensOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 211,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 210,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 235,
+ "src": "2507:17:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 209,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2507:5:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2506:19:1"
+ },
+ "returnParameters": {
+ "id": 217,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 214,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 235,
+ "src": "2573:27:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 212,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2573:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 213,
+ "nodeType": "ArrayTypeName",
+ "src": "2573:9:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 216,
+ "mutability": "mutable",
+ "name": "maxBPTAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 235,
+ "src": "2602:22:1",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 215,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2602:7:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2572:53:1"
+ },
+ "scope": 236,
+ "src": "2475:253:1",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 237,
+ "src": "713:2017:1"
+ }
+ ],
+ "src": "688:2043:1"
+ },
+ "id": 1
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol",
+ "exportedSymbols": {
+ "BasePoolUserData": [
+ 286
+ ]
+ },
+ "id": 287,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 238,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:2"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 286,
+ "linearizedBaseContracts": [
+ 286
+ ],
+ "name": "BasePoolUserData",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "functionSelector": "09564cb1",
+ "id": 241,
+ "mutability": "constant",
+ "name": "RECOVERY_MODE_EXIT_KIND",
+ "nodeType": "VariableDeclaration",
+ "scope": 286,
+ "src": "955:51:2",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 239,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "955:5:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "value": {
+ "hexValue": "323535",
+ "id": 240,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1003:3:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ "value": "255"
+ },
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 263,
+ "nodeType": "Block",
+ "src": "1146:163:2",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 261,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 251,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 248,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 243,
+ "src": "1231:4:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 249,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "1231:11:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 250,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1245:1:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1231:15:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "id": 260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 254,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 243,
+ "src": "1261:4:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 256,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1268:5:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint8_$",
+ "typeString": "type(uint8)"
+ },
+ "typeName": {
+ "id": 255,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "1268:5:2",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 257,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1267:7:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint8_$",
+ "typeString": "type(uint8)"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_type$_t_uint8_$",
+ "typeString": "type(uint8)"
+ }
+ ],
+ "expression": {
+ "id": 252,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1250:3:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 253,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "1250:10:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 258,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1250:25:2",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 259,
+ "name": "RECOVERY_MODE_EXIT_KIND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 241,
+ "src": "1279:23:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "src": "1250:52:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1231:71:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 247,
+ "id": 262,
+ "nodeType": "Return",
+ "src": "1224:78:2"
+ }
+ ]
+ },
+ "id": 264,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "isRecoveryModeExitKind",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 244,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 243,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 264,
+ "src": "1098:17:2",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 242,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1098:5:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1097:19:2"
+ },
+ "returnParameters": {
+ "id": 247,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 246,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 264,
+ "src": "1140:4:2",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 245,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1140:4:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1139:6:2"
+ },
+ "scope": 286,
+ "src": "1066:243:2",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 284,
+ "nodeType": "Block",
+ "src": "1453:69:2",
+ "statements": [
+ {
+ "expression": {
+ "id": 282,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ null,
+ {
+ "id": 271,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 269,
+ "src": "1466:11:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 272,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "1463:15:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$_t_uint256_$",
+ "typeString": "tuple(,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 275,
+ "name": "self",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 266,
+ "src": "1492:4:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "components": [
+ {
+ "id": 277,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1499:5:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint8_$",
+ "typeString": "type(uint8)"
+ },
+ "typeName": {
+ "id": 276,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "1499:5:2",
+ "typeDescriptions": {}
+ }
+ },
+ {
+ "id": 279,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1506:7:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 278,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1506:7:2",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "id": 280,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1498:16:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_type$_t_uint8_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(uint8),type(uint256))"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_tuple$_t_type$_t_uint8_$_$_t_type$_t_uint256_$_$",
+ "typeString": "tuple(type(uint8),type(uint256))"
+ }
+ ],
+ "expression": {
+ "id": 273,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1481:3:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 274,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "decode",
+ "nodeType": "MemberAccess",
+ "src": "1481:10:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 281,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1481:34:2",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint8_$_t_uint256_$",
+ "typeString": "tuple(uint8,uint256)"
+ }
+ },
+ "src": "1463:52:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 283,
+ "nodeType": "ExpressionStatement",
+ "src": "1463:52:2"
+ }
+ ]
+ },
+ "id": 285,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "recoveryModeExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 267,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 266,
+ "mutability": "mutable",
+ "name": "self",
+ "nodeType": "VariableDeclaration",
+ "scope": 285,
+ "src": "1390:17:2",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 265,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1390:5:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1389:19:2"
+ },
+ "returnParameters": {
+ "id": 270,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 269,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 285,
+ "src": "1432:19:2",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 268,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1432:7:2",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1431:21:2"
+ },
+ "scope": 286,
+ "src": "1364:158:2",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 287,
+ "src": "713:811:2"
+ }
+ ],
+ "src": "688:837:2"
+ },
+ "id": 2
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol",
+ "exportedSymbols": {
+ "IAssetManager": [
+ 368
+ ]
+ },
+ "id": 369,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 288,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:3"
+ },
+ {
+ "id": 289,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:3"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "../solidity-utils/openzeppelin/IERC20.sol",
+ "id": 290,
+ "nodeType": "ImportDirective",
+ "scope": 369,
+ "sourceUnit": 1153,
+ "src": "747:51:3",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 368,
+ "linearizedBaseContracts": [
+ 368
+ ],
+ "name": "IAssetManager",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 291,
+ "nodeType": "StructuredDocumentation",
+ "src": "830:67:3",
+ "text": " @notice Emitted when asset manager is rebalanced"
+ },
+ "id": 295,
+ "name": "Rebalance",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 294,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 293,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 295,
+ "src": "918:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 292,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "918:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "917:16:3"
+ },
+ "src": "902:32:3"
+ },
+ {
+ "documentation": {
+ "id": 296,
+ "nodeType": "StructuredDocumentation",
+ "src": "940:42:3",
+ "text": " @notice Sets the config"
+ },
+ "functionSelector": "18e736d4",
+ "id": 303,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setConfig",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 301,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 298,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 303,
+ "src": "1006:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 297,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1006:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 300,
+ "mutability": "mutable",
+ "name": "config",
+ "nodeType": "VariableDeclaration",
+ "scope": 303,
+ "src": "1022:21:3",
+ "stateVariable": false,
+ "storageLocation": "calldata",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_calldata_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 299,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1022:5:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1005:39:3"
+ },
+ "returnParameters": {
+ "id": 302,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1053:0:3"
+ },
+ "scope": 368,
+ "src": "987:67:3",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 304,
+ "nodeType": "StructuredDocumentation",
+ "src": "1246:60:3",
+ "text": " @notice Returns the asset manager's token"
+ },
+ "functionSelector": "21df0da7",
+ "id": 309,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getToken",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 305,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1328:2:3"
+ },
+ "returnParameters": {
+ "id": 308,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 307,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 309,
+ "src": "1354:6:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 306,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1354:6:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1353:8:3"
+ },
+ "scope": 368,
+ "src": "1311:51:3",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 310,
+ "nodeType": "StructuredDocumentation",
+ "src": "1368:84:3",
+ "text": " @return the current assets under management of this asset manager"
+ },
+ "functionSelector": "dc99fc21",
+ "id": 317,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getAUM",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 313,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 312,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 317,
+ "src": "1473:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 311,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1473:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1472:16:3"
+ },
+ "returnParameters": {
+ "id": 316,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 315,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 317,
+ "src": "1512:7:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 314,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1512:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1511:9:3"
+ },
+ "scope": 368,
+ "src": "1457:64:3",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 318,
+ "nodeType": "StructuredDocumentation",
+ "src": "1527:149:3",
+ "text": " @return poolCash - The up-to-date cash balance of the pool\n @return poolManaged - The up-to-date managed balance of the pool"
+ },
+ "functionSelector": "76bad529",
+ "id": 327,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPoolBalances",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 321,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 320,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 327,
+ "src": "1706:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 319,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1706:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1705:16:3"
+ },
+ "returnParameters": {
+ "id": 326,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 323,
+ "mutability": "mutable",
+ "name": "poolCash",
+ "nodeType": "VariableDeclaration",
+ "scope": 327,
+ "src": "1745:16:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 322,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1745:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 325,
+ "mutability": "mutable",
+ "name": "poolManaged",
+ "nodeType": "VariableDeclaration",
+ "scope": 327,
+ "src": "1763:19:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 324,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1763:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1744:39:3"
+ },
+ "scope": 368,
+ "src": "1681:103:3",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 328,
+ "nodeType": "StructuredDocumentation",
+ "src": "1790:161:3",
+ "text": " @return The difference in tokens between the target investment\n and the currently invested amount (i.e. the amount that can be invested)"
+ },
+ "functionSelector": "ea748923",
+ "id": 335,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "maxInvestableBalance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 331,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 330,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 335,
+ "src": "1986:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 329,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1986:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1985:16:3"
+ },
+ "returnParameters": {
+ "id": 334,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 333,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 335,
+ "src": "2025:6:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 332,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2025:6:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2024:8:3"
+ },
+ "scope": 368,
+ "src": "1956:77:3",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 336,
+ "nodeType": "StructuredDocumentation",
+ "src": "2039:90:3",
+ "text": " @notice Updates the Vault on the value of the pool's investment returns"
+ },
+ "functionSelector": "0b5ff6b9",
+ "id": 341,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "updateBalanceOfPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 339,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 338,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 341,
+ "src": "2163:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 337,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2163:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2162:16:3"
+ },
+ "returnParameters": {
+ "id": 340,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2187:0:3"
+ },
+ "scope": 368,
+ "src": "2134:54:3",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 342,
+ "nodeType": "StructuredDocumentation",
+ "src": "2194:99:3",
+ "text": " @notice Determines whether the pool should rebalance given the provided balances"
+ },
+ "functionSelector": "9c64ad30",
+ "id": 351,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "shouldRebalance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 347,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 344,
+ "mutability": "mutable",
+ "name": "cash",
+ "nodeType": "VariableDeclaration",
+ "scope": 351,
+ "src": "2323:12:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 343,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2323:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 346,
+ "mutability": "mutable",
+ "name": "managed",
+ "nodeType": "VariableDeclaration",
+ "scope": 351,
+ "src": "2337:15:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 345,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2337:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2322:31:3"
+ },
+ "returnParameters": {
+ "id": 350,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 349,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 351,
+ "src": "2377:4:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 348,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2377:4:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2376:6:3"
+ },
+ "scope": 368,
+ "src": "2298:85:3",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 352,
+ "nodeType": "StructuredDocumentation",
+ "src": "2389:304:3",
+ "text": " @notice Rebalances funds between the pool and the asset manager to maintain target investment percentage.\n @param poolId - the poolId of the pool to be rebalanced\n @param force - a boolean representing whether a rebalance should be forced even when the pool is near balance"
+ },
+ "functionSelector": "4c936d8a",
+ "id": 359,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "rebalance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 357,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 354,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 359,
+ "src": "2717:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 353,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2717:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 356,
+ "mutability": "mutable",
+ "name": "force",
+ "nodeType": "VariableDeclaration",
+ "scope": 359,
+ "src": "2733:10:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 355,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2733:4:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2716:28:3"
+ },
+ "returnParameters": {
+ "id": 358,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2753:0:3"
+ },
+ "scope": 368,
+ "src": "2698:56:3",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 360,
+ "nodeType": "StructuredDocumentation",
+ "src": "2760:253:3",
+ "text": " @notice allows an authorized rebalancer to remove capital to facilitate large withdrawals\n @param poolId - the poolId of the pool to withdraw funds back to\n @param amount - the amount of tokens to withdraw back to the pool"
+ },
+ "functionSelector": "2b13a509",
+ "id": 367,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "capitalOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 365,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 362,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 367,
+ "src": "3038:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 361,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3038:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 364,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 367,
+ "src": "3054:14:3",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 363,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3054:7:3",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3037:32:3"
+ },
+ "returnParameters": {
+ "id": 366,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3078:0:3"
+ },
+ "scope": 368,
+ "src": "3018:61:3",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 369,
+ "src": "800:2281:3"
+ }
+ ],
+ "src": "688:2394:3"
+ },
+ "id": 3
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol",
+ "exportedSymbols": {
+ "IBasePoolFactory": [
+ 393
+ ]
+ },
+ "id": 394,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 370,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:4"
+ },
+ {
+ "id": 371,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:4"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol",
+ "file": "../solidity-utils/helpers/IAuthentication.sol",
+ "id": 372,
+ "nodeType": "ImportDirective",
+ "scope": 394,
+ "sourceUnit": 1023,
+ "src": "747:55:4",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 373,
+ "name": "IAuthentication",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1022,
+ "src": "834:15:4",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthentication_$1022",
+ "typeString": "contract IAuthentication"
+ }
+ },
+ "id": 374,
+ "nodeType": "InheritanceSpecifier",
+ "src": "834:15:4"
+ }
+ ],
+ "contractDependencies": [
+ 1022
+ ],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 393,
+ "linearizedBaseContracts": [
+ 393,
+ 1022
+ ],
+ "name": "IBasePoolFactory",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 375,
+ "nodeType": "StructuredDocumentation",
+ "src": "856:75:4",
+ "text": " @dev Returns true if `pool` was created by this factory."
+ },
+ "functionSelector": "6634b753",
+ "id": 382,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "isPoolFromFactory",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 378,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 377,
+ "mutability": "mutable",
+ "name": "pool",
+ "nodeType": "VariableDeclaration",
+ "scope": 382,
+ "src": "963:12:4",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 376,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "963:7:4",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "962:14:4"
+ },
+ "returnParameters": {
+ "id": 381,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 380,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 382,
+ "src": "1000:4:4",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 379,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1000:4:4",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "999:6:4"
+ },
+ "scope": 393,
+ "src": "936:70:4",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 383,
+ "nodeType": "StructuredDocumentation",
+ "src": "1012:76:4",
+ "text": " @dev Check whether the derived factory has been disabled."
+ },
+ "functionSelector": "6c57f5a9",
+ "id": 388,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "isDisabled",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 384,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1112:2:4"
+ },
+ "returnParameters": {
+ "id": 387,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 386,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 388,
+ "src": "1138:4:4",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 385,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1138:4:4",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1137:6:4"
+ },
+ "scope": 393,
+ "src": "1093:51:4",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 389,
+ "nodeType": "StructuredDocumentation",
+ "src": "1150:182:4",
+ "text": " @dev Disable the factory, preventing the creation of more pools. Already existing pools are unaffected.\n Once a factory is disabled, it cannot be re-enabled."
+ },
+ "functionSelector": "2f2770db",
+ "id": 392,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "disable",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 390,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1353:2:4"
+ },
+ "returnParameters": {
+ "id": 391,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1364:0:4"
+ },
+ "scope": 393,
+ "src": "1337:28:4",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 394,
+ "src": "804:563:4"
+ }
+ ],
+ "src": "688:680:4"
+ },
+ "id": 4
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol",
+ "exportedSymbols": {
+ "IControlledPool": [
+ 409
+ ]
+ },
+ "id": 410,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 395,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:5"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "../solidity-utils/openzeppelin/IERC20.sol",
+ "id": 396,
+ "nodeType": "ImportDirective",
+ "scope": 410,
+ "sourceUnit": 1153,
+ "src": "713:51:5",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 409,
+ "linearizedBaseContracts": [
+ 409
+ ],
+ "name": "IControlledPool",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "functionSelector": "38e9922e",
+ "id": 401,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 399,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 398,
+ "mutability": "mutable",
+ "name": "swapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 401,
+ "src": "828:25:5",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 397,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "828:7:5",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "827:27:5"
+ },
+ "returnParameters": {
+ "id": 400,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "863:0:5"
+ },
+ "scope": 409,
+ "src": "798:66:5",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "50dd6ed9",
+ "id": 408,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setAssetManagerPoolConfig",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 406,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 403,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 408,
+ "src": "905:12:5",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 402,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "905:6:5",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 405,
+ "mutability": "mutable",
+ "name": "poolConfig",
+ "nodeType": "VariableDeclaration",
+ "scope": 408,
+ "src": "919:23:5",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 404,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "919:5:5",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "904:39:5"
+ },
+ "returnParameters": {
+ "id": 407,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "952:0:5"
+ },
+ "scope": 409,
+ "src": "870:83:5",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 410,
+ "src": "766:189:5"
+ }
+ ],
+ "src": "688:268:5"
+ },
+ "id": 5
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol",
+ "exportedSymbols": {
+ "IPoolVersion": [
+ 419
+ ]
+ },
+ "id": 420,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 411,
+ "literals": [
+ "solidity",
+ ">=",
+ "0.7",
+ ".0",
+ "<",
+ "0.9",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:31:6"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 412,
+ "nodeType": "StructuredDocumentation",
+ "src": "721:96:6",
+ "text": " @notice Simple interface to retrieve the version of pools deployed by a pool factory."
+ },
+ "fullyImplemented": false,
+ "id": 419,
+ "linearizedBaseContracts": [
+ 419
+ ],
+ "name": "IPoolVersion",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 413,
+ "nodeType": "StructuredDocumentation",
+ "src": "847:339:6",
+ "text": " @dev Returns a JSON representation of the deployed pool version containing name, version number and task ID.\n This is typically only useful in complex Pool deployment schemes, where multiple subsystems need to know about\n each other. Note that this value will only be updated at factory creation time."
+ },
+ "functionSelector": "3f819b6f",
+ "id": 418,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPoolVersion",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 414,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1214:2:6"
+ },
+ "returnParameters": {
+ "id": 417,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 416,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 418,
+ "src": "1240:13:6",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 415,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1240:6:6",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1239:15:6"
+ },
+ "scope": 419,
+ "src": "1191:64:6",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 420,
+ "src": "818:439:6"
+ }
+ ],
+ "src": "688:570:6"
+ },
+ "id": 6
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol",
+ "exportedSymbols": {
+ "IRateProvider": [
+ 428
+ ]
+ },
+ "id": 429,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 421,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:7"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 428,
+ "linearizedBaseContracts": [
+ 428
+ ],
+ "name": "IRateProvider",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 422,
+ "nodeType": "StructuredDocumentation",
+ "src": "743:191:7",
+ "text": " @dev Returns an 18 decimal fixed point number that is the exchange rate of the token to some other underlying\n token. The meaning of this rate depends on the context."
+ },
+ "functionSelector": "679aefce",
+ "id": 427,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 423,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "955:2:7"
+ },
+ "returnParameters": {
+ "id": 426,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 425,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 427,
+ "src": "981:7:7",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 424,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "981:7:7",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "980:9:7"
+ },
+ "scope": 428,
+ "src": "939:51:7",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 429,
+ "src": "713:279:7"
+ }
+ ],
+ "src": "688:305:7"
+ },
+ "id": 7
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol",
+ "exportedSymbols": {
+ "IRecoveryMode": [
+ 451
+ ]
+ },
+ "id": 452,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 430,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:8"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 431,
+ "nodeType": "StructuredDocumentation",
+ "src": "713:54:8",
+ "text": " @dev Interface for the RecoveryMode module."
+ },
+ "fullyImplemented": false,
+ "id": 451,
+ "linearizedBaseContracts": [
+ 451
+ ],
+ "name": "IRecoveryMode",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 432,
+ "nodeType": "StructuredDocumentation",
+ "src": "798:70:8",
+ "text": " @dev Emitted when the Recovery Mode status changes."
+ },
+ "id": 436,
+ "name": "RecoveryModeStateChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 435,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 434,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "enabled",
+ "nodeType": "VariableDeclaration",
+ "scope": 436,
+ "src": "904:12:8",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 433,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "904:4:8",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "903:14:8"
+ },
+ "src": "873:45:8"
+ },
+ {
+ "documentation": {
+ "id": 437,
+ "nodeType": "StructuredDocumentation",
+ "src": "924:198:8",
+ "text": " @notice Enables Recovery Mode in the Pool, disabling protocol fee collection and allowing for safe proportional\n exits with low computational complexity and no dependencies."
+ },
+ "functionSelector": "54a844ba",
+ "id": 440,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "enableRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 438,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1154:2:8"
+ },
+ "returnParameters": {
+ "id": 439,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1165:0:8"
+ },
+ "scope": 451,
+ "src": "1127:39:8",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 441,
+ "nodeType": "StructuredDocumentation",
+ "src": "1172:132:8",
+ "text": " @notice Disables Recovery Mode in the Pool, restoring protocol fee collection and disallowing proportional exits."
+ },
+ "functionSelector": "b7b814fc",
+ "id": 444,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "disableRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 442,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1337:2:8"
+ },
+ "returnParameters": {
+ "id": 443,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1348:0:8"
+ },
+ "scope": 451,
+ "src": "1309:40:8",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 445,
+ "nodeType": "StructuredDocumentation",
+ "src": "1355:72:8",
+ "text": " @notice Returns true if the Pool is in Recovery Mode."
+ },
+ "functionSelector": "b35056b8",
+ "id": 450,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "inRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 446,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1455:2:8"
+ },
+ "returnParameters": {
+ "id": 449,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 448,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 450,
+ "src": "1481:4:8",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 447,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1481:4:8",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1480:6:8"
+ },
+ "scope": 451,
+ "src": "1432:55:8",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 452,
+ "src": "768:721:8"
+ }
+ ],
+ "src": "688:802:8"
+ },
+ "id": 8
+ },
+ "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol",
+ "exportedSymbols": {
+ "IVersion": [
+ 461
+ ]
+ },
+ "id": 462,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 453,
+ "literals": [
+ "solidity",
+ ">=",
+ "0.7",
+ ".0",
+ "<",
+ "0.9",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:31:9"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 454,
+ "nodeType": "StructuredDocumentation",
+ "src": "721:83:9",
+ "text": " @notice Simple interface to retrieve the version of a deployed contract."
+ },
+ "fullyImplemented": false,
+ "id": 461,
+ "linearizedBaseContracts": [
+ 461
+ ],
+ "name": "IVersion",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 455,
+ "nodeType": "StructuredDocumentation",
+ "src": "830:122:9",
+ "text": " @dev Returns a JSON representation of the contract version containing name, version number and task ID."
+ },
+ "functionSelector": "54fd4d50",
+ "id": 460,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "version",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 456,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "973:2:9"
+ },
+ "returnParameters": {
+ "id": 459,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 458,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 460,
+ "src": "999:13:9",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 457,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "999:6:9",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "998:15:9"
+ },
+ "scope": 461,
+ "src": "957:57:9",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 462,
+ "src": "805:211:9"
+ }
+ ],
+ "src": "688:329:9"
+ },
+ "id": 9
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "exportedSymbols": {
+ "Errors": [
+ 1011
+ ],
+ "_require": [
+ 479,
+ 498
+ ],
+ "_revert": [
+ 510,
+ 530
+ ]
+ },
+ "id": 1012,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 463,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:10"
+ },
+ {
+ "body": {
+ "id": 478,
+ "nodeType": "Block",
+ "src": "976:43:10",
+ "statements": [
+ {
+ "condition": {
+ "id": 472,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "986:10:10",
+ "subExpression": {
+ "id": 471,
+ "name": "condition",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 466,
+ "src": "987:9:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 477,
+ "nodeType": "IfStatement",
+ "src": "982:34:10",
+ "trueBody": {
+ "expression": {
+ "arguments": [
+ {
+ "id": 474,
+ "name": "errorCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 468,
+ "src": "1006:9:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 473,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 510,
+ "src": "998:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$__$",
+ "typeString": "function (uint256) pure"
+ }
+ },
+ "id": 475,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "998:18:10",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 476,
+ "nodeType": "ExpressionStatement",
+ "src": "998:18:10"
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 464,
+ "nodeType": "StructuredDocumentation",
+ "src": "733:184:10",
+ "text": " @dev Reverts if `condition` is false, with a revert reason containing `errorCode`. Only codes up to 999 are\n supported.\n Uses the default 'BAL' prefix for the error code"
+ },
+ "id": 479,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_require",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 469,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 466,
+ "mutability": "mutable",
+ "name": "condition",
+ "nodeType": "VariableDeclaration",
+ "scope": 479,
+ "src": "936:14:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 465,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "936:4:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 468,
+ "mutability": "mutable",
+ "name": "errorCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 479,
+ "src": "952:17:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 467,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "952:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "935:35:10"
+ },
+ "returnParameters": {
+ "id": 470,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "976:0:10"
+ },
+ "scope": 1012,
+ "src": "918:101:10",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 497,
+ "nodeType": "Block",
+ "src": "1227:51:10",
+ "statements": [
+ {
+ "condition": {
+ "id": 490,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "1237:10:10",
+ "subExpression": {
+ "id": 489,
+ "name": "condition",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 482,
+ "src": "1238:9:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 496,
+ "nodeType": "IfStatement",
+ "src": "1233:42:10",
+ "trueBody": {
+ "expression": {
+ "arguments": [
+ {
+ "id": 492,
+ "name": "errorCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 484,
+ "src": "1257:9:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 493,
+ "name": "prefix",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 486,
+ "src": "1268:6:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ }
+ ],
+ "id": 491,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 530,
+ "src": "1249:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_bytes3_$returns$__$",
+ "typeString": "function (uint256,bytes3) pure"
+ }
+ },
+ "id": 494,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1249:26:10",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 495,
+ "nodeType": "ExpressionStatement",
+ "src": "1249:26:10"
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 480,
+ "nodeType": "StructuredDocumentation",
+ "src": "1021:132:10",
+ "text": " @dev Reverts if `condition` is false, with a revert reason containing `errorCode`. Only codes up to 999 are\n supported."
+ },
+ "id": 498,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_require",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 487,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 482,
+ "mutability": "mutable",
+ "name": "condition",
+ "nodeType": "VariableDeclaration",
+ "scope": 498,
+ "src": "1172:14:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 481,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1172:4:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 484,
+ "mutability": "mutable",
+ "name": "errorCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 498,
+ "src": "1188:17:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 483,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1188:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 486,
+ "mutability": "mutable",
+ "name": "prefix",
+ "nodeType": "VariableDeclaration",
+ "scope": 498,
+ "src": "1207:13:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ },
+ "typeName": {
+ "id": 485,
+ "name": "bytes3",
+ "nodeType": "ElementaryTypeName",
+ "src": "1207:6:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1171:50:10"
+ },
+ "returnParameters": {
+ "id": 488,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1227:0:10"
+ },
+ "scope": 1012,
+ "src": "1154:124:10",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 509,
+ "nodeType": "Block",
+ "src": "1478:85:10",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 505,
+ "name": "errorCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 501,
+ "src": "1492:9:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "hexValue": "3078343234313463",
+ "id": 506,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1503:8:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4342092_by_1",
+ "typeString": "int_const 4342092"
+ },
+ "value": "0x42414c"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_rational_4342092_by_1",
+ "typeString": "int_const 4342092"
+ }
+ ],
+ "id": 504,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 530,
+ "src": "1484:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_bytes3_$returns$__$",
+ "typeString": "function (uint256,bytes3) pure"
+ }
+ },
+ "id": 507,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1484:28:10",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 508,
+ "nodeType": "ExpressionStatement",
+ "src": "1484:28:10"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 499,
+ "nodeType": "StructuredDocumentation",
+ "src": "1280:156:10",
+ "text": " @dev Reverts with a revert reason containing `errorCode`. Only codes up to 999 are supported.\n Uses the default 'BAL' prefix for the error code"
+ },
+ "id": 510,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_revert",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 502,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 501,
+ "mutability": "mutable",
+ "name": "errorCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 510,
+ "src": "1454:17:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 500,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1454:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1453:19:10"
+ },
+ "returnParameters": {
+ "id": 503,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1478:0:10"
+ },
+ "scope": 1012,
+ "src": "1437:126:10",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 529,
+ "nodeType": "Block",
+ "src": "1726:3322:10",
+ "statements": [
+ {
+ "assignments": [
+ 519
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 519,
+ "mutability": "mutable",
+ "name": "prefixUint",
+ "nodeType": "VariableDeclaration",
+ "scope": 529,
+ "src": "1732:18:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 518,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1732:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 527,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 524,
+ "name": "prefix",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 515,
+ "src": "1768:6:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ }
+ ],
+ "id": 523,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1761:6:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint24_$",
+ "typeString": "type(uint24)"
+ },
+ "typeName": {
+ "id": 522,
+ "name": "uint24",
+ "nodeType": "ElementaryTypeName",
+ "src": "1761:6:10",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 525,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1761:14:10",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint24",
+ "typeString": "uint24"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint24",
+ "typeString": "uint24"
+ }
+ ],
+ "id": 521,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1753:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 520,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1753:7:10",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 526,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1753:23:10",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1732:44:10"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "2565:2481:10",
+ "statements": [
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "2839:42:10",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "errorCode",
+ "nodeType": "YulIdentifier",
+ "src": "2860:9:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "2871:2:10",
+ "type": "",
+ "value": "10"
+ }
+ ],
+ "functionName": {
+ "name": "mod",
+ "nodeType": "YulIdentifier",
+ "src": "2856:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "2856:18:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "2876:4:10",
+ "type": "",
+ "value": "0x30"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "2852:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "2852:29:10"
+ },
+ "variables": [
+ {
+ "name": "units",
+ "nodeType": "YulTypedName",
+ "src": "2843:5:10",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "2891:31:10",
+ "value": {
+ "arguments": [
+ {
+ "name": "errorCode",
+ "nodeType": "YulIdentifier",
+ "src": "2908:9:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "2919:2:10",
+ "type": "",
+ "value": "10"
+ }
+ ],
+ "functionName": {
+ "name": "div",
+ "nodeType": "YulIdentifier",
+ "src": "2904:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "2904:18:10"
+ },
+ "variableNames": [
+ {
+ "name": "errorCode",
+ "nodeType": "YulIdentifier",
+ "src": "2891:9:10"
+ }
+ ]
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "2931:43:10",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "errorCode",
+ "nodeType": "YulIdentifier",
+ "src": "2953:9:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "2964:2:10",
+ "type": "",
+ "value": "10"
+ }
+ ],
+ "functionName": {
+ "name": "mod",
+ "nodeType": "YulIdentifier",
+ "src": "2949:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "2949:18:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "2969:4:10",
+ "type": "",
+ "value": "0x30"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "2945:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "2945:29:10"
+ },
+ "variables": [
+ {
+ "name": "tenths",
+ "nodeType": "YulTypedName",
+ "src": "2935:6:10",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "2984:31:10",
+ "value": {
+ "arguments": [
+ {
+ "name": "errorCode",
+ "nodeType": "YulIdentifier",
+ "src": "3001:9:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3012:2:10",
+ "type": "",
+ "value": "10"
+ }
+ ],
+ "functionName": {
+ "name": "div",
+ "nodeType": "YulIdentifier",
+ "src": "2997:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "2997:18:10"
+ },
+ "variableNames": [
+ {
+ "name": "errorCode",
+ "nodeType": "YulIdentifier",
+ "src": "2984:9:10"
+ }
+ ]
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "3024:45:10",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "errorCode",
+ "nodeType": "YulIdentifier",
+ "src": "3048:9:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3059:2:10",
+ "type": "",
+ "value": "10"
+ }
+ ],
+ "functionName": {
+ "name": "mod",
+ "nodeType": "YulIdentifier",
+ "src": "3044:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3044:18:10"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3064:4:10",
+ "type": "",
+ "value": "0x30"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3040:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3040:29:10"
+ },
+ "variables": [
+ {
+ "name": "hundreds",
+ "nodeType": "YulTypedName",
+ "src": "3028:8:10",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "3702:61:10",
+ "value": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3729:2:10",
+ "type": "",
+ "value": "24"
+ },
+ {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3737:4:10",
+ "type": "",
+ "value": "0x23"
+ },
+ {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3747:1:10",
+ "type": "",
+ "value": "8"
+ },
+ {
+ "name": "prefixUint",
+ "nodeType": "YulIdentifier",
+ "src": "3750:10:10"
+ }
+ ],
+ "functionName": {
+ "name": "shl",
+ "nodeType": "YulIdentifier",
+ "src": "3743:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3743:18:10"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3733:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3733:29:10"
+ }
+ ],
+ "functionName": {
+ "name": "shl",
+ "nodeType": "YulIdentifier",
+ "src": "3725:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3725:38:10"
+ },
+ "variables": [
+ {
+ "name": "formattedPrefix",
+ "nodeType": "YulTypedName",
+ "src": "3706:15:10",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "3773:102:10",
+ "value": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3797:3:10",
+ "type": "",
+ "value": "200"
+ },
+ {
+ "arguments": [
+ {
+ "name": "formattedPrefix",
+ "nodeType": "YulIdentifier",
+ "src": "3806:15:10"
+ },
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "units",
+ "nodeType": "YulIdentifier",
+ "src": "3831:5:10"
+ },
+ {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3842:1:10",
+ "type": "",
+ "value": "8"
+ },
+ {
+ "name": "tenths",
+ "nodeType": "YulIdentifier",
+ "src": "3845:6:10"
+ }
+ ],
+ "functionName": {
+ "name": "shl",
+ "nodeType": "YulIdentifier",
+ "src": "3838:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3838:14:10"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3827:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3827:26:10"
+ },
+ {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3859:2:10",
+ "type": "",
+ "value": "16"
+ },
+ {
+ "name": "hundreds",
+ "nodeType": "YulIdentifier",
+ "src": "3863:8:10"
+ }
+ ],
+ "functionName": {
+ "name": "shl",
+ "nodeType": "YulIdentifier",
+ "src": "3855:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3855:17:10"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3823:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3823:50:10"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3802:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3802:72:10"
+ }
+ ],
+ "functionName": {
+ "name": "shl",
+ "nodeType": "YulIdentifier",
+ "src": "3793:3:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3793:82:10"
+ },
+ "variables": [
+ {
+ "name": "revertReason",
+ "nodeType": "YulTypedName",
+ "src": "3777:12:10",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4390:3:10",
+ "type": "",
+ "value": "0x0"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4395:66:10",
+ "type": "",
+ "value": "0x08c379a000000000000000000000000000000000000000000000000000000000"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4383:6:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4383:79:10"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4383:79:10"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4595:4:10",
+ "type": "",
+ "value": "0x04"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4601:66:10",
+ "type": "",
+ "value": "0x0000000000000000000000000000000000000000000000000000000000000020"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4588:6:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4588:80:10"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4588:80:10"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4737:4:10",
+ "type": "",
+ "value": "0x24"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4743:1:10",
+ "type": "",
+ "value": "7"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4730:6:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4730:15:10"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4730:15:10"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4810:4:10",
+ "type": "",
+ "value": "0x44"
+ },
+ {
+ "name": "revertReason",
+ "nodeType": "YulIdentifier",
+ "src": "4816:12:10"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4803:6:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4803:26:10"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4803:26:10"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "5033:1:10",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "5036:3:10",
+ "type": "",
+ "value": "100"
+ }
+ ],
+ "functionName": {
+ "name": "revert",
+ "nodeType": "YulIdentifier",
+ "src": "5026:6:10"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "5026:14:10"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "5026:14:10"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 513,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "2860:9:10",
+ "valueSize": 1
+ },
+ {
+ "declaration": 513,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "2891:9:10",
+ "valueSize": 1
+ },
+ {
+ "declaration": 513,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "2908:9:10",
+ "valueSize": 1
+ },
+ {
+ "declaration": 513,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "2953:9:10",
+ "valueSize": 1
+ },
+ {
+ "declaration": 513,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "2984:9:10",
+ "valueSize": 1
+ },
+ {
+ "declaration": 513,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3001:9:10",
+ "valueSize": 1
+ },
+ {
+ "declaration": 513,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3048:9:10",
+ "valueSize": 1
+ },
+ {
+ "declaration": 519,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3750:10:10",
+ "valueSize": 1
+ }
+ ],
+ "id": 528,
+ "nodeType": "InlineAssembly",
+ "src": "2556:2490:10"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 511,
+ "nodeType": "StructuredDocumentation",
+ "src": "1565:104:10",
+ "text": " @dev Reverts with a revert reason containing `errorCode`. Only codes up to 999 are supported."
+ },
+ "id": 530,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_revert",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 516,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 513,
+ "mutability": "mutable",
+ "name": "errorCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 530,
+ "src": "1687:17:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 512,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1687:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 515,
+ "mutability": "mutable",
+ "name": "prefix",
+ "nodeType": "VariableDeclaration",
+ "scope": 530,
+ "src": "1706:13:10",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ },
+ "typeName": {
+ "id": 514,
+ "name": "bytes3",
+ "nodeType": "ElementaryTypeName",
+ "src": "1706:6:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes3",
+ "typeString": "bytes3"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1686:34:10"
+ },
+ "returnParameters": {
+ "id": 517,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1726:0:10"
+ },
+ "scope": 1012,
+ "src": "1670:3378:10",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 1011,
+ "linearizedBaseContracts": [
+ 1011
+ ],
+ "name": "Errors",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 533,
+ "mutability": "constant",
+ "name": "ADD_OVERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5083:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 531,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5083:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "30",
+ "id": 532,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5124:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 536,
+ "mutability": "constant",
+ "name": "SUB_OVERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5131:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 534,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5131:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "31",
+ "id": 535,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5172:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 539,
+ "mutability": "constant",
+ "name": "SUB_UNDERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5179:43:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 537,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5179:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "32",
+ "id": 538,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5221:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 542,
+ "mutability": "constant",
+ "name": "MUL_OVERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5228:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 540,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5228:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "33",
+ "id": 541,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5269:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 545,
+ "mutability": "constant",
+ "name": "ZERO_DIVISION",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5276:43:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 543,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5276:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "34",
+ "id": 544,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5318:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4_by_1",
+ "typeString": "int_const 4"
+ },
+ "value": "4"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 548,
+ "mutability": "constant",
+ "name": "DIV_INTERNAL",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5325:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 546,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5325:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "35",
+ "id": 547,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5366:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 551,
+ "mutability": "constant",
+ "name": "X_OUT_OF_BOUNDS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5373:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 549,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5373:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "36",
+ "id": 550,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5417:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_6_by_1",
+ "typeString": "int_const 6"
+ },
+ "value": "6"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 554,
+ "mutability": "constant",
+ "name": "Y_OUT_OF_BOUNDS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5424:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 552,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5424:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "37",
+ "id": 553,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5468:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_7_by_1",
+ "typeString": "int_const 7"
+ },
+ "value": "7"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 557,
+ "mutability": "constant",
+ "name": "PRODUCT_OUT_OF_BOUNDS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5475:51:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 555,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5475:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "38",
+ "id": 556,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5525:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_8_by_1",
+ "typeString": "int_const 8"
+ },
+ "value": "8"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 560,
+ "mutability": "constant",
+ "name": "INVALID_EXPONENT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5532:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 558,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5532:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "39",
+ "id": 559,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5577:1:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_9_by_1",
+ "typeString": "int_const 9"
+ },
+ "value": "9"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 563,
+ "mutability": "constant",
+ "name": "OUT_OF_BOUNDS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5598:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 561,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5598:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "313030",
+ "id": 562,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5640:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100_by_1",
+ "typeString": "int_const 100"
+ },
+ "value": "100"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 566,
+ "mutability": "constant",
+ "name": "UNSORTED_ARRAY",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5649:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 564,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5649:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "313031",
+ "id": 565,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5692:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_101_by_1",
+ "typeString": "int_const 101"
+ },
+ "value": "101"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 569,
+ "mutability": "constant",
+ "name": "UNSORTED_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5701:47:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 567,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5701:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "313032",
+ "id": 568,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5745:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_102_by_1",
+ "typeString": "int_const 102"
+ },
+ "value": "102"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 572,
+ "mutability": "constant",
+ "name": "INPUT_LENGTH_MISMATCH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5754:53:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 570,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5754:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "313033",
+ "id": 571,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5804:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_103_by_1",
+ "typeString": "int_const 103"
+ },
+ "value": "103"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 575,
+ "mutability": "constant",
+ "name": "ZERO_TOKEN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5813:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 573,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5813:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "313034",
+ "id": 574,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5852:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_104_by_1",
+ "typeString": "int_const 104"
+ },
+ "value": "104"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 578,
+ "mutability": "constant",
+ "name": "MIN_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5882:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 576,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5882:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323030",
+ "id": 577,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5921:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_200_by_1",
+ "typeString": "int_const 200"
+ },
+ "value": "200"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 581,
+ "mutability": "constant",
+ "name": "MAX_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5930:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 579,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5930:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323031",
+ "id": 580,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5969:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_201_by_1",
+ "typeString": "int_const 201"
+ },
+ "value": "201"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 584,
+ "mutability": "constant",
+ "name": "MAX_SWAP_FEE_PERCENTAGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "5978:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 582,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5978:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323032",
+ "id": 583,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6030:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_202_by_1",
+ "typeString": "int_const 202"
+ },
+ "value": "202"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 587,
+ "mutability": "constant",
+ "name": "MIN_SWAP_FEE_PERCENTAGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6039:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 585,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6039:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323033",
+ "id": 586,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6091:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_203_by_1",
+ "typeString": "int_const 203"
+ },
+ "value": "203"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 590,
+ "mutability": "constant",
+ "name": "MINIMUM_BPT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6100:43:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 588,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6100:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323034",
+ "id": 589,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6140:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_204_by_1",
+ "typeString": "int_const 204"
+ },
+ "value": "204"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 593,
+ "mutability": "constant",
+ "name": "CALLER_NOT_VAULT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6149:48:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 591,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6149:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323035",
+ "id": 592,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6194:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_205_by_1",
+ "typeString": "int_const 205"
+ },
+ "value": "205"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 596,
+ "mutability": "constant",
+ "name": "UNINITIALIZED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6203:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 594,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6203:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323036",
+ "id": 595,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6245:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_206_by_1",
+ "typeString": "int_const 206"
+ },
+ "value": "206"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 599,
+ "mutability": "constant",
+ "name": "BPT_IN_MAX_AMOUNT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6254:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 597,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6254:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323037",
+ "id": 598,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6300:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_207_by_1",
+ "typeString": "int_const 207"
+ },
+ "value": "207"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 602,
+ "mutability": "constant",
+ "name": "BPT_OUT_MIN_AMOUNT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6309:50:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 600,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6309:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323038",
+ "id": 601,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6356:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_208_by_1",
+ "typeString": "int_const 208"
+ },
+ "value": "208"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 605,
+ "mutability": "constant",
+ "name": "EXPIRED_PERMIT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6365:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 603,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6365:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323039",
+ "id": 604,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6408:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_209_by_1",
+ "typeString": "int_const 209"
+ },
+ "value": "209"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 608,
+ "mutability": "constant",
+ "name": "NOT_TWO_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6417:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 606,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6417:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323130",
+ "id": 607,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6460:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_210_by_1",
+ "typeString": "int_const 210"
+ },
+ "value": "210"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 611,
+ "mutability": "constant",
+ "name": "DISABLED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6469:40:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 609,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6469:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323131",
+ "id": 610,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6506:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_211_by_1",
+ "typeString": "int_const 211"
+ },
+ "value": "211"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 614,
+ "mutability": "constant",
+ "name": "MIN_AMP",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6529:39:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 612,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6529:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333030",
+ "id": 613,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6565:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_300_by_1",
+ "typeString": "int_const 300"
+ },
+ "value": "300"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 617,
+ "mutability": "constant",
+ "name": "MAX_AMP",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6574:39:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 615,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6574:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333031",
+ "id": 616,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6610:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_301_by_1",
+ "typeString": "int_const 301"
+ },
+ "value": "301"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 620,
+ "mutability": "constant",
+ "name": "MIN_WEIGHT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6619:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 618,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6619:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333032",
+ "id": 619,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6658:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_302_by_1",
+ "typeString": "int_const 302"
+ },
+ "value": "302"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 623,
+ "mutability": "constant",
+ "name": "MAX_STABLE_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6667:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 621,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6667:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333033",
+ "id": 622,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6713:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_303_by_1",
+ "typeString": "int_const 303"
+ },
+ "value": "303"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 626,
+ "mutability": "constant",
+ "name": "MAX_IN_RATIO",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6722:44:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 624,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6722:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333034",
+ "id": 625,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6763:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_304_by_1",
+ "typeString": "int_const 304"
+ },
+ "value": "304"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 629,
+ "mutability": "constant",
+ "name": "MAX_OUT_RATIO",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6772:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 627,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6772:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333035",
+ "id": 628,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6814:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_305_by_1",
+ "typeString": "int_const 305"
+ },
+ "value": "305"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 632,
+ "mutability": "constant",
+ "name": "MIN_BPT_IN_FOR_TOKEN_OUT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6823:56:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 630,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6823:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333036",
+ "id": 631,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6876:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_306_by_1",
+ "typeString": "int_const 306"
+ },
+ "value": "306"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 635,
+ "mutability": "constant",
+ "name": "MAX_OUT_BPT_FOR_TOKEN_IN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6885:56:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 633,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6885:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333037",
+ "id": 634,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6938:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_307_by_1",
+ "typeString": "int_const 307"
+ },
+ "value": "307"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 638,
+ "mutability": "constant",
+ "name": "NORMALIZED_WEIGHT_INVARIANT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "6947:59:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 636,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6947:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333038",
+ "id": 637,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7003:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_308_by_1",
+ "typeString": "int_const 308"
+ },
+ "value": "308"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 641,
+ "mutability": "constant",
+ "name": "INVALID_TOKEN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7012:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 639,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7012:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333039",
+ "id": 640,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7054:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_309_by_1",
+ "typeString": "int_const 309"
+ },
+ "value": "309"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 644,
+ "mutability": "constant",
+ "name": "UNHANDLED_JOIN_KIND",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7063:51:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 642,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7063:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333130",
+ "id": 643,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7111:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_310_by_1",
+ "typeString": "int_const 310"
+ },
+ "value": "310"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 647,
+ "mutability": "constant",
+ "name": "ZERO_INVARIANT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7120:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 645,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7120:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333131",
+ "id": 646,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7163:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_311_by_1",
+ "typeString": "int_const 311"
+ },
+ "value": "311"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 650,
+ "mutability": "constant",
+ "name": "ORACLE_INVALID_SECONDS_QUERY",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7172:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 648,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7172:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333132",
+ "id": 649,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7229:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_312_by_1",
+ "typeString": "int_const 312"
+ },
+ "value": "312"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 653,
+ "mutability": "constant",
+ "name": "ORACLE_NOT_INITIALIZED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7238:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 651,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7238:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333133",
+ "id": 652,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7289:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_313_by_1",
+ "typeString": "int_const 313"
+ },
+ "value": "313"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 656,
+ "mutability": "constant",
+ "name": "ORACLE_QUERY_TOO_OLD",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7298:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 654,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7298:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333134",
+ "id": 655,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7347:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_314_by_1",
+ "typeString": "int_const 314"
+ },
+ "value": "314"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 659,
+ "mutability": "constant",
+ "name": "ORACLE_INVALID_INDEX",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7356:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 657,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7356:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333135",
+ "id": 658,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7405:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_315_by_1",
+ "typeString": "int_const 315"
+ },
+ "value": "315"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 662,
+ "mutability": "constant",
+ "name": "ORACLE_BAD_SECS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7414:47:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 660,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7414:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333136",
+ "id": 661,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7458:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_316_by_1",
+ "typeString": "int_const 316"
+ },
+ "value": "316"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 665,
+ "mutability": "constant",
+ "name": "AMP_END_TIME_TOO_CLOSE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7467:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 663,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7467:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333137",
+ "id": 664,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7518:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_317_by_1",
+ "typeString": "int_const 317"
+ },
+ "value": "317"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 668,
+ "mutability": "constant",
+ "name": "AMP_ONGOING_UPDATE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7527:50:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 666,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7527:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333138",
+ "id": 667,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7574:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_318_by_1",
+ "typeString": "int_const 318"
+ },
+ "value": "318"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 671,
+ "mutability": "constant",
+ "name": "AMP_RATE_TOO_HIGH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7583:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 669,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7583:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333139",
+ "id": 670,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7629:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_319_by_1",
+ "typeString": "int_const 319"
+ },
+ "value": "319"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 674,
+ "mutability": "constant",
+ "name": "AMP_NO_ONGOING_UPDATE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7638:53:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 672,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7638:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333230",
+ "id": 673,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7688:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_320_by_1",
+ "typeString": "int_const 320"
+ },
+ "value": "320"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 677,
+ "mutability": "constant",
+ "name": "STABLE_INVARIANT_DIDNT_CONVERGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7697:63:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 675,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7697:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333231",
+ "id": 676,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7757:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_321_by_1",
+ "typeString": "int_const 321"
+ },
+ "value": "321"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 680,
+ "mutability": "constant",
+ "name": "STABLE_GET_BALANCE_DIDNT_CONVERGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7766:65:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 678,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7766:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333232",
+ "id": 679,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7828:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_322_by_1",
+ "typeString": "int_const 322"
+ },
+ "value": "322"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 683,
+ "mutability": "constant",
+ "name": "RELAYER_NOT_CONTRACT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7837:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 681,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7837:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333233",
+ "id": 682,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7886:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_323_by_1",
+ "typeString": "int_const 323"
+ },
+ "value": "323"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 686,
+ "mutability": "constant",
+ "name": "BASE_POOL_RELAYER_NOT_CALLED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7895:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 684,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7895:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333234",
+ "id": 685,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7952:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_324_by_1",
+ "typeString": "int_const 324"
+ },
+ "value": "324"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 689,
+ "mutability": "constant",
+ "name": "REBALANCING_RELAYER_REENTERED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "7961:61:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 687,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7961:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333235",
+ "id": 688,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8019:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_325_by_1",
+ "typeString": "int_const 325"
+ },
+ "value": "325"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 692,
+ "mutability": "constant",
+ "name": "GRADUAL_UPDATE_TIME_TRAVEL",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8028:58:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 690,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8028:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333236",
+ "id": 691,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8083:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_326_by_1",
+ "typeString": "int_const 326"
+ },
+ "value": "326"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 695,
+ "mutability": "constant",
+ "name": "SWAPS_DISABLED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8092:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 693,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8092:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333237",
+ "id": 694,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8135:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_327_by_1",
+ "typeString": "int_const 327"
+ },
+ "value": "327"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 698,
+ "mutability": "constant",
+ "name": "CALLER_IS_NOT_LBP_OWNER",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8144:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 696,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8144:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333238",
+ "id": 697,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8196:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_328_by_1",
+ "typeString": "int_const 328"
+ },
+ "value": "328"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 701,
+ "mutability": "constant",
+ "name": "PRICE_RATE_OVERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8205:51:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 699,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8205:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333239",
+ "id": 700,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8253:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_329_by_1",
+ "typeString": "int_const 329"
+ },
+ "value": "329"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 704,
+ "mutability": "constant",
+ "name": "INVALID_JOIN_EXIT_KIND_WHILE_SWAPS_DISABLED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8262:75:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 702,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8262:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333330",
+ "id": 703,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8334:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_330_by_1",
+ "typeString": "int_const 330"
+ },
+ "value": "330"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 707,
+ "mutability": "constant",
+ "name": "WEIGHT_CHANGE_TOO_FAST",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8343:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 705,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8343:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333331",
+ "id": 706,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8394:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_331_by_1",
+ "typeString": "int_const 331"
+ },
+ "value": "331"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 710,
+ "mutability": "constant",
+ "name": "LOWER_GREATER_THAN_UPPER_TARGET",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8403:63:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 708,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8403:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333332",
+ "id": 709,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8463:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_332_by_1",
+ "typeString": "int_const 332"
+ },
+ "value": "332"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 713,
+ "mutability": "constant",
+ "name": "UPPER_TARGET_TOO_HIGH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8472:53:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 711,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8472:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333333",
+ "id": 712,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8522:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_333_by_1",
+ "typeString": "int_const 333"
+ },
+ "value": "333"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 716,
+ "mutability": "constant",
+ "name": "UNHANDLED_BY_LINEAR_POOL",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8531:56:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 714,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8531:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333334",
+ "id": 715,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8584:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_334_by_1",
+ "typeString": "int_const 334"
+ },
+ "value": "334"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 719,
+ "mutability": "constant",
+ "name": "OUT_OF_TARGET_RANGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8593:51:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 717,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8593:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333335",
+ "id": 718,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8641:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_335_by_1",
+ "typeString": "int_const 335"
+ },
+ "value": "335"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 722,
+ "mutability": "constant",
+ "name": "UNHANDLED_EXIT_KIND",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8650:51:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 720,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8650:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333336",
+ "id": 721,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8698:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_336_by_1",
+ "typeString": "int_const 336"
+ },
+ "value": "336"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 725,
+ "mutability": "constant",
+ "name": "UNAUTHORIZED_EXIT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8707:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 723,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8707:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333337",
+ "id": 724,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8753:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_337_by_1",
+ "typeString": "int_const 337"
+ },
+ "value": "337"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 728,
+ "mutability": "constant",
+ "name": "MAX_MANAGEMENT_SWAP_FEE_PERCENTAGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8762:66:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 726,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8762:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333338",
+ "id": 727,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8825:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_338_by_1",
+ "typeString": "int_const 338"
+ },
+ "value": "338"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 731,
+ "mutability": "constant",
+ "name": "UNHANDLED_BY_MANAGED_POOL",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8834:57:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 729,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8834:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333339",
+ "id": 730,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8888:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_339_by_1",
+ "typeString": "int_const 339"
+ },
+ "value": "339"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 734,
+ "mutability": "constant",
+ "name": "UNHANDLED_BY_PHANTOM_POOL",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8897:57:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 732,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8897:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333430",
+ "id": 733,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8951:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_340_by_1",
+ "typeString": "int_const 340"
+ },
+ "value": "340"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 737,
+ "mutability": "constant",
+ "name": "TOKEN_DOES_NOT_HAVE_RATE_PROVIDER",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "8960:65:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 735,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8960:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333431",
+ "id": 736,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9022:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_341_by_1",
+ "typeString": "int_const 341"
+ },
+ "value": "341"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 740,
+ "mutability": "constant",
+ "name": "INVALID_INITIALIZATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9031:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 738,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9031:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333432",
+ "id": 739,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9082:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_342_by_1",
+ "typeString": "int_const 342"
+ },
+ "value": "342"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 743,
+ "mutability": "constant",
+ "name": "OUT_OF_NEW_TARGET_RANGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9091:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 741,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9091:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333433",
+ "id": 742,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9143:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_343_by_1",
+ "typeString": "int_const 343"
+ },
+ "value": "343"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 746,
+ "mutability": "constant",
+ "name": "FEATURE_DISABLED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9152:48:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 744,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9152:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333434",
+ "id": 745,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9197:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_344_by_1",
+ "typeString": "int_const 344"
+ },
+ "value": "344"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 749,
+ "mutability": "constant",
+ "name": "UNINITIALIZED_POOL_CONTROLLER",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9206:61:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 747,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9206:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333435",
+ "id": 748,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9264:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_345_by_1",
+ "typeString": "int_const 345"
+ },
+ "value": "345"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 752,
+ "mutability": "constant",
+ "name": "SET_SWAP_FEE_DURING_FEE_CHANGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9273:62:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 750,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9273:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333436",
+ "id": 751,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9332:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_346_by_1",
+ "typeString": "int_const 346"
+ },
+ "value": "346"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 755,
+ "mutability": "constant",
+ "name": "SET_SWAP_FEE_PENDING_FEE_CHANGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9341:63:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 753,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9341:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333437",
+ "id": 754,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9401:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_347_by_1",
+ "typeString": "int_const 347"
+ },
+ "value": "347"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 758,
+ "mutability": "constant",
+ "name": "CHANGE_TOKENS_DURING_WEIGHT_CHANGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9410:66:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 756,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9410:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333438",
+ "id": 757,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9473:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_348_by_1",
+ "typeString": "int_const 348"
+ },
+ "value": "348"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 761,
+ "mutability": "constant",
+ "name": "CHANGE_TOKENS_PENDING_WEIGHT_CHANGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9482:67:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 759,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9482:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333439",
+ "id": 760,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9546:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_349_by_1",
+ "typeString": "int_const 349"
+ },
+ "value": "349"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 764,
+ "mutability": "constant",
+ "name": "MAX_WEIGHT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9555:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 762,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9555:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333530",
+ "id": 763,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9594:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_350_by_1",
+ "typeString": "int_const 350"
+ },
+ "value": "350"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 767,
+ "mutability": "constant",
+ "name": "UNAUTHORIZED_JOIN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9603:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 765,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9603:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333531",
+ "id": 766,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9649:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_351_by_1",
+ "typeString": "int_const 351"
+ },
+ "value": "351"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 770,
+ "mutability": "constant",
+ "name": "MAX_MANAGEMENT_AUM_FEE_PERCENTAGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9658:65:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 768,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9658:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333532",
+ "id": 769,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9720:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_352_by_1",
+ "typeString": "int_const 352"
+ },
+ "value": "352"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 773,
+ "mutability": "constant",
+ "name": "FRACTIONAL_TARGET",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9729:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 771,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9729:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "333533",
+ "id": 772,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9775:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_353_by_1",
+ "typeString": "int_const 353"
+ },
+ "value": "353"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 776,
+ "mutability": "constant",
+ "name": "REENTRANCY",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9796:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 774,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9796:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343030",
+ "id": 775,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9835:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_400_by_1",
+ "typeString": "int_const 400"
+ },
+ "value": "400"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 779,
+ "mutability": "constant",
+ "name": "SENDER_NOT_ALLOWED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9844:50:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 777,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9844:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343031",
+ "id": 778,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9891:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_401_by_1",
+ "typeString": "int_const 401"
+ },
+ "value": "401"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 782,
+ "mutability": "constant",
+ "name": "PAUSED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9900:38:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 780,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9900:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343032",
+ "id": 781,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9935:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_402_by_1",
+ "typeString": "int_const 402"
+ },
+ "value": "402"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 785,
+ "mutability": "constant",
+ "name": "PAUSE_WINDOW_EXPIRED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "9944:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 783,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9944:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343033",
+ "id": 784,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9993:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_403_by_1",
+ "typeString": "int_const 403"
+ },
+ "value": "403"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 788,
+ "mutability": "constant",
+ "name": "MAX_PAUSE_WINDOW_DURATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10002:57:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 786,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10002:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343034",
+ "id": 787,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10056:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_404_by_1",
+ "typeString": "int_const 404"
+ },
+ "value": "404"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 791,
+ "mutability": "constant",
+ "name": "MAX_BUFFER_PERIOD_DURATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10065:58:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 789,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10065:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343035",
+ "id": 790,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10120:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_405_by_1",
+ "typeString": "int_const 405"
+ },
+ "value": "405"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 794,
+ "mutability": "constant",
+ "name": "INSUFFICIENT_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10129:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 792,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10129:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343036",
+ "id": 793,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10178:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_406_by_1",
+ "typeString": "int_const 406"
+ },
+ "value": "406"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 797,
+ "mutability": "constant",
+ "name": "INSUFFICIENT_ALLOWANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10187:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 795,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10187:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343037",
+ "id": 796,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10238:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_407_by_1",
+ "typeString": "int_const 407"
+ },
+ "value": "407"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 800,
+ "mutability": "constant",
+ "name": "ERC20_TRANSFER_FROM_ZERO_ADDRESS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10247:64:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 798,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10247:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343038",
+ "id": 799,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10308:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_408_by_1",
+ "typeString": "int_const 408"
+ },
+ "value": "408"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 803,
+ "mutability": "constant",
+ "name": "ERC20_TRANSFER_TO_ZERO_ADDRESS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10317:62:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 801,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10317:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343039",
+ "id": 802,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10376:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_409_by_1",
+ "typeString": "int_const 409"
+ },
+ "value": "409"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 806,
+ "mutability": "constant",
+ "name": "ERC20_MINT_TO_ZERO_ADDRESS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10385:58:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 804,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10385:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343130",
+ "id": 805,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10440:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_410_by_1",
+ "typeString": "int_const 410"
+ },
+ "value": "410"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 809,
+ "mutability": "constant",
+ "name": "ERC20_BURN_FROM_ZERO_ADDRESS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10449:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 807,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10449:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343131",
+ "id": 808,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10506:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_411_by_1",
+ "typeString": "int_const 411"
+ },
+ "value": "411"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 812,
+ "mutability": "constant",
+ "name": "ERC20_APPROVE_FROM_ZERO_ADDRESS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10515:63:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 810,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10515:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343132",
+ "id": 811,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10575:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_412_by_1",
+ "typeString": "int_const 412"
+ },
+ "value": "412"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 815,
+ "mutability": "constant",
+ "name": "ERC20_APPROVE_TO_ZERO_ADDRESS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10584:61:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 813,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10584:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343133",
+ "id": 814,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10642:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_413_by_1",
+ "typeString": "int_const 413"
+ },
+ "value": "413"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 818,
+ "mutability": "constant",
+ "name": "ERC20_TRANSFER_EXCEEDS_ALLOWANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10651:64:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 816,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10651:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343134",
+ "id": 817,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10712:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_414_by_1",
+ "typeString": "int_const 414"
+ },
+ "value": "414"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 821,
+ "mutability": "constant",
+ "name": "ERC20_DECREASED_ALLOWANCE_BELOW_ZERO",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10721:68:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 819,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10721:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343135",
+ "id": 820,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10786:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_415_by_1",
+ "typeString": "int_const 415"
+ },
+ "value": "415"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 824,
+ "mutability": "constant",
+ "name": "ERC20_TRANSFER_EXCEEDS_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10795:62:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 822,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10795:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343136",
+ "id": 823,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10854:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_416_by_1",
+ "typeString": "int_const 416"
+ },
+ "value": "416"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 827,
+ "mutability": "constant",
+ "name": "ERC20_BURN_EXCEEDS_ALLOWANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10863:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 825,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10863:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343137",
+ "id": 826,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10920:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_417_by_1",
+ "typeString": "int_const 417"
+ },
+ "value": "417"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 830,
+ "mutability": "constant",
+ "name": "SAFE_ERC20_CALL_FAILED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10929:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 828,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10929:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343138",
+ "id": 829,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10980:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_418_by_1",
+ "typeString": "int_const 418"
+ },
+ "value": "418"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 833,
+ "mutability": "constant",
+ "name": "ADDRESS_INSUFFICIENT_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "10989:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 831,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10989:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343139",
+ "id": 832,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11046:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_419_by_1",
+ "typeString": "int_const 419"
+ },
+ "value": "419"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 836,
+ "mutability": "constant",
+ "name": "ADDRESS_CANNOT_SEND_VALUE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11055:57:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 834,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11055:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343230",
+ "id": 835,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11109:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_420_by_1",
+ "typeString": "int_const 420"
+ },
+ "value": "420"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 839,
+ "mutability": "constant",
+ "name": "SAFE_CAST_VALUE_CANT_FIT_INT256",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11118:63:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 837,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11118:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343231",
+ "id": 838,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11178:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_421_by_1",
+ "typeString": "int_const 421"
+ },
+ "value": "421"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 842,
+ "mutability": "constant",
+ "name": "GRANT_SENDER_NOT_ADMIN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11187:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 840,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11187:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343232",
+ "id": 841,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11238:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_422_by_1",
+ "typeString": "int_const 422"
+ },
+ "value": "422"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 845,
+ "mutability": "constant",
+ "name": "REVOKE_SENDER_NOT_ADMIN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11247:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 843,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11247:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343233",
+ "id": 844,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11299:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_423_by_1",
+ "typeString": "int_const 423"
+ },
+ "value": "423"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 848,
+ "mutability": "constant",
+ "name": "RENOUNCE_SENDER_NOT_ALLOWED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11308:59:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 846,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11308:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343234",
+ "id": 847,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11364:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_424_by_1",
+ "typeString": "int_const 424"
+ },
+ "value": "424"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 851,
+ "mutability": "constant",
+ "name": "BUFFER_PERIOD_EXPIRED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11373:53:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 849,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11373:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343235",
+ "id": 850,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11423:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_425_by_1",
+ "typeString": "int_const 425"
+ },
+ "value": "425"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 854,
+ "mutability": "constant",
+ "name": "CALLER_IS_NOT_OWNER",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11432:51:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 852,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11432:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343236",
+ "id": 853,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11480:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_426_by_1",
+ "typeString": "int_const 426"
+ },
+ "value": "426"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 857,
+ "mutability": "constant",
+ "name": "NEW_OWNER_IS_ZERO",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11489:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 855,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11489:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343237",
+ "id": 856,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11535:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_427_by_1",
+ "typeString": "int_const 427"
+ },
+ "value": "427"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 860,
+ "mutability": "constant",
+ "name": "CODE_DEPLOYMENT_FAILED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11544:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 858,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11544:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343238",
+ "id": 859,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11595:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_428_by_1",
+ "typeString": "int_const 428"
+ },
+ "value": "428"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 863,
+ "mutability": "constant",
+ "name": "CALL_TO_NON_CONTRACT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11604:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 861,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11604:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343239",
+ "id": 862,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11653:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_429_by_1",
+ "typeString": "int_const 429"
+ },
+ "value": "429"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 866,
+ "mutability": "constant",
+ "name": "LOW_LEVEL_CALL_FAILED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11662:53:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 864,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11662:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343330",
+ "id": 865,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11712:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_430_by_1",
+ "typeString": "int_const 430"
+ },
+ "value": "430"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 869,
+ "mutability": "constant",
+ "name": "NOT_PAUSED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11721:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 867,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11721:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343331",
+ "id": 868,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11760:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_431_by_1",
+ "typeString": "int_const 431"
+ },
+ "value": "431"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 872,
+ "mutability": "constant",
+ "name": "ADDRESS_ALREADY_ALLOWLISTED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11769:59:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 870,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11769:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343332",
+ "id": 871,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11825:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_432_by_1",
+ "typeString": "int_const 432"
+ },
+ "value": "432"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 875,
+ "mutability": "constant",
+ "name": "ADDRESS_NOT_ALLOWLISTED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11834:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 873,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11834:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343333",
+ "id": 874,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11886:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_433_by_1",
+ "typeString": "int_const 433"
+ },
+ "value": "433"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 878,
+ "mutability": "constant",
+ "name": "ERC20_BURN_EXCEEDS_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11895:58:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 876,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11895:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343334",
+ "id": 877,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11950:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_434_by_1",
+ "typeString": "int_const 434"
+ },
+ "value": "434"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 881,
+ "mutability": "constant",
+ "name": "INVALID_OPERATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "11959:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 879,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11959:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343335",
+ "id": 880,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12005:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_435_by_1",
+ "typeString": "int_const 435"
+ },
+ "value": "435"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 884,
+ "mutability": "constant",
+ "name": "CODEC_OVERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12014:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 882,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12014:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343336",
+ "id": 883,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12057:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_436_by_1",
+ "typeString": "int_const 436"
+ },
+ "value": "436"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 887,
+ "mutability": "constant",
+ "name": "IN_RECOVERY_MODE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12066:48:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 885,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12066:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343337",
+ "id": 886,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12111:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_437_by_1",
+ "typeString": "int_const 437"
+ },
+ "value": "437"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 890,
+ "mutability": "constant",
+ "name": "NOT_IN_RECOVERY_MODE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12120:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 888,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12120:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343338",
+ "id": 889,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12169:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_438_by_1",
+ "typeString": "int_const 438"
+ },
+ "value": "438"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 893,
+ "mutability": "constant",
+ "name": "INDUCED_FAILURE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12178:47:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 891,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12178:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343339",
+ "id": 892,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12222:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_439_by_1",
+ "typeString": "int_const 439"
+ },
+ "value": "439"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 896,
+ "mutability": "constant",
+ "name": "EXPIRED_SIGNATURE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12231:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 894,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12231:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343430",
+ "id": 895,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12277:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_440_by_1",
+ "typeString": "int_const 440"
+ },
+ "value": "440"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 899,
+ "mutability": "constant",
+ "name": "MALFORMED_SIGNATURE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12286:51:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 897,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12286:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343431",
+ "id": 898,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12334:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_441_by_1",
+ "typeString": "int_const 441"
+ },
+ "value": "441"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 902,
+ "mutability": "constant",
+ "name": "SAFE_CAST_VALUE_CANT_FIT_UINT64",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12343:63:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 900,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12343:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343432",
+ "id": 901,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12403:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_442_by_1",
+ "typeString": "int_const 442"
+ },
+ "value": "442"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 905,
+ "mutability": "constant",
+ "name": "UNHANDLED_FEE_TYPE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12412:50:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 903,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12412:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "343433",
+ "id": 904,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12459:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_443_by_1",
+ "typeString": "int_const 443"
+ },
+ "value": "443"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 908,
+ "mutability": "constant",
+ "name": "INVALID_POOL_ID",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12482:47:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 906,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12482:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353030",
+ "id": 907,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12526:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_500_by_1",
+ "typeString": "int_const 500"
+ },
+ "value": "500"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 911,
+ "mutability": "constant",
+ "name": "CALLER_NOT_POOL",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12535:47:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 909,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12535:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353031",
+ "id": 910,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12579:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_501_by_1",
+ "typeString": "int_const 501"
+ },
+ "value": "501"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 914,
+ "mutability": "constant",
+ "name": "SENDER_NOT_ASSET_MANAGER",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12588:56:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 912,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12588:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353032",
+ "id": 913,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12641:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_502_by_1",
+ "typeString": "int_const 502"
+ },
+ "value": "502"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 917,
+ "mutability": "constant",
+ "name": "USER_DOESNT_ALLOW_RELAYER",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12650:57:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 915,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12650:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353033",
+ "id": 916,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12704:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_503_by_1",
+ "typeString": "int_const 503"
+ },
+ "value": "503"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 920,
+ "mutability": "constant",
+ "name": "INVALID_SIGNATURE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12713:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 918,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12713:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353034",
+ "id": 919,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12759:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_504_by_1",
+ "typeString": "int_const 504"
+ },
+ "value": "504"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 923,
+ "mutability": "constant",
+ "name": "EXIT_BELOW_MIN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12768:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 921,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12768:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353035",
+ "id": 922,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12811:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_505_by_1",
+ "typeString": "int_const 505"
+ },
+ "value": "505"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 926,
+ "mutability": "constant",
+ "name": "JOIN_ABOVE_MAX",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12820:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 924,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12820:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353036",
+ "id": 925,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12863:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_506_by_1",
+ "typeString": "int_const 506"
+ },
+ "value": "506"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 929,
+ "mutability": "constant",
+ "name": "SWAP_LIMIT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12872:42:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 927,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12872:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353037",
+ "id": 928,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12911:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_507_by_1",
+ "typeString": "int_const 507"
+ },
+ "value": "507"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 932,
+ "mutability": "constant",
+ "name": "SWAP_DEADLINE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12920:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 930,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12920:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353038",
+ "id": 931,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12962:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_508_by_1",
+ "typeString": "int_const 508"
+ },
+ "value": "508"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 935,
+ "mutability": "constant",
+ "name": "CANNOT_SWAP_SAME_TOKEN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "12971:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 933,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12971:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353039",
+ "id": 934,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13022:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_509_by_1",
+ "typeString": "int_const 509"
+ },
+ "value": "509"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 938,
+ "mutability": "constant",
+ "name": "UNKNOWN_AMOUNT_IN_FIRST_SWAP",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13031:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 936,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13031:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353130",
+ "id": 937,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13088:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_510_by_1",
+ "typeString": "int_const 510"
+ },
+ "value": "510"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 941,
+ "mutability": "constant",
+ "name": "MALCONSTRUCTED_MULTIHOP_SWAP",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13097:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 939,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13097:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353131",
+ "id": 940,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13154:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_511_by_1",
+ "typeString": "int_const 511"
+ },
+ "value": "511"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 944,
+ "mutability": "constant",
+ "name": "INTERNAL_BALANCE_OVERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13163:57:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 942,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13163:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353132",
+ "id": 943,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13217:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_512_by_1",
+ "typeString": "int_const 512"
+ },
+ "value": "512"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 947,
+ "mutability": "constant",
+ "name": "INSUFFICIENT_INTERNAL_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13226:61:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 945,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13226:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353133",
+ "id": 946,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13284:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_513_by_1",
+ "typeString": "int_const 513"
+ },
+ "value": "513"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 950,
+ "mutability": "constant",
+ "name": "INVALID_ETH_INTERNAL_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13293:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 948,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13293:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353134",
+ "id": 949,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13350:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_514_by_1",
+ "typeString": "int_const 514"
+ },
+ "value": "514"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 953,
+ "mutability": "constant",
+ "name": "INVALID_POST_LOAN_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13359:57:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 951,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13359:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353135",
+ "id": 952,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13413:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_515_by_1",
+ "typeString": "int_const 515"
+ },
+ "value": "515"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 956,
+ "mutability": "constant",
+ "name": "INSUFFICIENT_ETH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13422:48:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 954,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13422:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353136",
+ "id": 955,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13467:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_516_by_1",
+ "typeString": "int_const 516"
+ },
+ "value": "516"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 959,
+ "mutability": "constant",
+ "name": "UNALLOCATED_ETH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13476:47:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 957,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13476:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353137",
+ "id": 958,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13520:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_517_by_1",
+ "typeString": "int_const 517"
+ },
+ "value": "517"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 962,
+ "mutability": "constant",
+ "name": "ETH_TRANSFER",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13529:44:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 960,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13529:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353138",
+ "id": 961,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13570:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_518_by_1",
+ "typeString": "int_const 518"
+ },
+ "value": "518"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 965,
+ "mutability": "constant",
+ "name": "CANNOT_USE_ETH_SENTINEL",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13579:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 963,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13579:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353139",
+ "id": 964,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13631:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_519_by_1",
+ "typeString": "int_const 519"
+ },
+ "value": "519"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 968,
+ "mutability": "constant",
+ "name": "TOKENS_MISMATCH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13640:47:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 966,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13640:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353230",
+ "id": 967,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13684:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_520_by_1",
+ "typeString": "int_const 520"
+ },
+ "value": "520"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 971,
+ "mutability": "constant",
+ "name": "TOKEN_NOT_REGISTERED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13693:52:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 969,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13693:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353231",
+ "id": 970,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13742:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_521_by_1",
+ "typeString": "int_const 521"
+ },
+ "value": "521"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 974,
+ "mutability": "constant",
+ "name": "TOKEN_ALREADY_REGISTERED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13751:56:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 972,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13751:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353232",
+ "id": 973,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13804:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_522_by_1",
+ "typeString": "int_const 522"
+ },
+ "value": "522"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 977,
+ "mutability": "constant",
+ "name": "TOKENS_ALREADY_SET",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13813:50:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 975,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13813:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353233",
+ "id": 976,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13860:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_523_by_1",
+ "typeString": "int_const 523"
+ },
+ "value": "523"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 980,
+ "mutability": "constant",
+ "name": "TOKENS_LENGTH_MUST_BE_2",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13869:55:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 978,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13869:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353234",
+ "id": 979,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13921:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_524_by_1",
+ "typeString": "int_const 524"
+ },
+ "value": "524"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 983,
+ "mutability": "constant",
+ "name": "NONZERO_TOKEN_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13930:53:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 981,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13930:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353235",
+ "id": 982,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13980:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_525_by_1",
+ "typeString": "int_const 525"
+ },
+ "value": "525"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 986,
+ "mutability": "constant",
+ "name": "BALANCE_TOTAL_OVERFLOW",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "13989:54:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 984,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13989:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353236",
+ "id": 985,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14040:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_526_by_1",
+ "typeString": "int_const 526"
+ },
+ "value": "526"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 989,
+ "mutability": "constant",
+ "name": "POOL_NO_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14049:46:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 987,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14049:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353237",
+ "id": 988,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14092:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_527_by_1",
+ "typeString": "int_const 527"
+ },
+ "value": "527"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 992,
+ "mutability": "constant",
+ "name": "INSUFFICIENT_FLASH_LOAN_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14101:63:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 990,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14101:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "353238",
+ "id": 991,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14161:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_528_by_1",
+ "typeString": "int_const 528"
+ },
+ "value": "528"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 995,
+ "mutability": "constant",
+ "name": "SWAP_FEE_PERCENTAGE_TOO_HIGH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14183:60:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 993,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14183:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "363030",
+ "id": 994,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14240:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_600_by_1",
+ "typeString": "int_const 600"
+ },
+ "value": "600"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 998,
+ "mutability": "constant",
+ "name": "FLASH_LOAN_FEE_PERCENTAGE_TOO_HIGH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14249:66:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 996,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14249:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "363031",
+ "id": 997,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14312:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_601_by_1",
+ "typeString": "int_const 601"
+ },
+ "value": "601"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 1001,
+ "mutability": "constant",
+ "name": "INSUFFICIENT_FLASH_LOAN_FEE_AMOUNT",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14321:66:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 999,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14321:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "363032",
+ "id": 1000,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14384:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_602_by_1",
+ "typeString": "int_const 602"
+ },
+ "value": "602"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 1004,
+ "mutability": "constant",
+ "name": "AUM_FEE_PERCENTAGE_TOO_HIGH",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14393:59:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1002,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14393:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "363033",
+ "id": 1003,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14449:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_603_by_1",
+ "typeString": "int_const 603"
+ },
+ "value": "603"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 1007,
+ "mutability": "constant",
+ "name": "UNIMPLEMENTED",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14471:45:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1005,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14471:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "393938",
+ "id": 1006,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14513:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_998_by_1",
+ "typeString": "int_const 998"
+ },
+ "value": "998"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 1010,
+ "mutability": "constant",
+ "name": "SHOULD_NOT_HAPPEN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1011,
+ "src": "14522:49:10",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1008,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14522:7:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "393939",
+ "id": 1009,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14568:3:10",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_999_by_1",
+ "typeString": "int_const 999"
+ },
+ "value": "999"
+ },
+ "visibility": "internal"
+ }
+ ],
+ "scope": 1012,
+ "src": "5050:9524:10"
+ }
+ ],
+ "src": "688:13887:10"
+ },
+ "id": 10
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol",
+ "exportedSymbols": {
+ "IAuthentication": [
+ 1022
+ ]
+ },
+ "id": 1023,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1013,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:11"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 1022,
+ "linearizedBaseContracts": [
+ 1022
+ ],
+ "name": "IAuthentication",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1014,
+ "nodeType": "StructuredDocumentation",
+ "src": "745:116:11",
+ "text": " @dev Returns the action identifier associated with the external function described by `selector`."
+ },
+ "functionSelector": "851c1bb3",
+ "id": 1021,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getActionId",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1017,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1016,
+ "mutability": "mutable",
+ "name": "selector",
+ "nodeType": "VariableDeclaration",
+ "scope": 1021,
+ "src": "887:15:11",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ },
+ "typeName": {
+ "id": 1015,
+ "name": "bytes4",
+ "nodeType": "ElementaryTypeName",
+ "src": "887:6:11",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "886:17:11"
+ },
+ "returnParameters": {
+ "id": 1020,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1019,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1021,
+ "src": "927:7:11",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1018,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "927:7:11",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "926:9:11"
+ },
+ "scope": 1022,
+ "src": "866:70:11",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1023,
+ "src": "713:225:11"
+ }
+ ],
+ "src": "688:251:11"
+ },
+ "id": 11
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol",
+ "exportedSymbols": {
+ "ISignaturesValidator": [
+ 1040
+ ]
+ },
+ "id": 1041,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1024,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:12"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1025,
+ "nodeType": "StructuredDocumentation",
+ "src": "713:95:12",
+ "text": " @dev Interface for the SignatureValidator helper, used to support meta-transactions."
+ },
+ "fullyImplemented": false,
+ "id": 1040,
+ "linearizedBaseContracts": [
+ 1040
+ ],
+ "name": "ISignaturesValidator",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1026,
+ "nodeType": "StructuredDocumentation",
+ "src": "846:60:12",
+ "text": " @dev Returns the EIP712 domain separator."
+ },
+ "functionSelector": "ed24911d",
+ "id": 1031,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getDomainSeparator",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1027,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "938:2:12"
+ },
+ "returnParameters": {
+ "id": 1030,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1029,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1031,
+ "src": "964:7:12",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1028,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "964:7:12",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "963:9:12"
+ },
+ "scope": 1040,
+ "src": "911:62:12",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1032,
+ "nodeType": "StructuredDocumentation",
+ "src": "979:83:12",
+ "text": " @dev Returns the next nonce used by an address to sign messages."
+ },
+ "functionSelector": "90193b7c",
+ "id": 1039,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getNextNonce",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1035,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1034,
+ "mutability": "mutable",
+ "name": "user",
+ "nodeType": "VariableDeclaration",
+ "scope": 1039,
+ "src": "1089:12:12",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1033,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1089:7:12",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1088:14:12"
+ },
+ "returnParameters": {
+ "id": 1038,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1037,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1039,
+ "src": "1126:7:12",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1036,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1126:7:12",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1125:9:12"
+ },
+ "scope": 1040,
+ "src": "1067:68:12",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1041,
+ "src": "809:328:12"
+ }
+ ],
+ "src": "688:450:12"
+ },
+ "id": 12
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol",
+ "exportedSymbols": {
+ "ITemporarilyPausable": [
+ 1059
+ ]
+ },
+ "id": 1060,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1042,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:13"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1043,
+ "nodeType": "StructuredDocumentation",
+ "src": "713:61:13",
+ "text": " @dev Interface for the TemporarilyPausable helper."
+ },
+ "fullyImplemented": false,
+ "id": 1059,
+ "linearizedBaseContracts": [
+ 1059
+ ],
+ "name": "ITemporarilyPausable",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1044,
+ "nodeType": "StructuredDocumentation",
+ "src": "812:83:13",
+ "text": " @dev Emitted every time the pause state changes by `_setPaused`."
+ },
+ "id": 1048,
+ "name": "PausedStateChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1047,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1046,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "paused",
+ "nodeType": "VariableDeclaration",
+ "scope": 1048,
+ "src": "925:11:13",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1045,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "925:4:13",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "924:13:13"
+ },
+ "src": "900:38:13"
+ },
+ {
+ "documentation": {
+ "id": 1049,
+ "nodeType": "StructuredDocumentation",
+ "src": "944:57:13",
+ "text": " @dev Returns the current paused state."
+ },
+ "functionSelector": "1c0de051",
+ "id": 1058,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPausedState",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1050,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1029:2:13"
+ },
+ "returnParameters": {
+ "id": 1057,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1052,
+ "mutability": "mutable",
+ "name": "paused",
+ "nodeType": "VariableDeclaration",
+ "scope": 1058,
+ "src": "1092:11:13",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1051,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1092:4:13",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1054,
+ "mutability": "mutable",
+ "name": "pauseWindowEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 1058,
+ "src": "1117:26:13",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1053,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1117:7:13",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1056,
+ "mutability": "mutable",
+ "name": "bufferPeriodEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 1058,
+ "src": "1157:27:13",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1055,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1157:7:13",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1078:116:13"
+ },
+ "scope": 1059,
+ "src": "1006:189:13",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1060,
+ "src": "775:422:13"
+ }
+ ],
+ "src": "688:510:13"
+ },
+ "id": 13
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol",
+ "exportedSymbols": {
+ "IWETH": [
+ 1074
+ ]
+ },
+ "id": 1075,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1061,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:14"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "../openzeppelin/IERC20.sol",
+ "id": 1062,
+ "nodeType": "ImportDirective",
+ "scope": 1075,
+ "sourceUnit": 1153,
+ "src": "713:36:14",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 1064,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "921:6:14",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1065,
+ "nodeType": "InheritanceSpecifier",
+ "src": "921:6:14"
+ }
+ ],
+ "contractDependencies": [
+ 1152
+ ],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1063,
+ "nodeType": "StructuredDocumentation",
+ "src": "751:150:14",
+ "text": " @dev Interface for WETH9.\n See https://github.com/gnosis/canonical-weth/blob/0dd1ea3e295eef916d0c6223ec63141137d22d67/contracts/WETH9.sol"
+ },
+ "fullyImplemented": false,
+ "id": 1074,
+ "linearizedBaseContracts": [
+ 1074,
+ 1152
+ ],
+ "name": "IWETH",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "functionSelector": "d0e30db0",
+ "id": 1068,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "deposit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1066,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "950:2:14"
+ },
+ "returnParameters": {
+ "id": 1067,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "969:0:14"
+ },
+ "scope": 1074,
+ "src": "934:36:14",
+ "stateMutability": "payable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "2e1a7d4d",
+ "id": 1073,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "withdraw",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1071,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1070,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1073,
+ "src": "994:14:14",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1069,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "994:7:14",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "993:16:14"
+ },
+ "returnParameters": {
+ "id": 1072,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1018:0:14"
+ },
+ "scope": 1074,
+ "src": "976:43:14",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1075,
+ "src": "902:119:14"
+ }
+ ],
+ "src": "688:334:14"
+ },
+ "id": 14
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "exportedSymbols": {
+ "IERC20": [
+ 1152
+ ]
+ },
+ "id": 1153,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1076,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:15"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1077,
+ "nodeType": "StructuredDocumentation",
+ "src": "58:70:15",
+ "text": " @dev Interface of the ERC20 standard as defined in the EIP."
+ },
+ "fullyImplemented": false,
+ "id": 1152,
+ "linearizedBaseContracts": [
+ 1152
+ ],
+ "name": "IERC20",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1078,
+ "nodeType": "StructuredDocumentation",
+ "src": "152:66:15",
+ "text": " @dev Returns the amount of tokens in existence."
+ },
+ "functionSelector": "18160ddd",
+ "id": 1083,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "totalSupply",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1079,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "243:2:15"
+ },
+ "returnParameters": {
+ "id": 1082,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1081,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1083,
+ "src": "269:7:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1080,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "269:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "268:9:15"
+ },
+ "scope": 1152,
+ "src": "223:55:15",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1084,
+ "nodeType": "StructuredDocumentation",
+ "src": "284:72:15",
+ "text": " @dev Returns the amount of tokens owned by `account`."
+ },
+ "functionSelector": "70a08231",
+ "id": 1091,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "balanceOf",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1087,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1086,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 1091,
+ "src": "380:15:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1085,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "380:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "379:17:15"
+ },
+ "returnParameters": {
+ "id": 1090,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1089,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1091,
+ "src": "420:7:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1088,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "420:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "419:9:15"
+ },
+ "scope": 1152,
+ "src": "361:68:15",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1092,
+ "nodeType": "StructuredDocumentation",
+ "src": "435:209:15",
+ "text": " @dev Moves `amount` tokens from the caller's account to `recipient`.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event."
+ },
+ "functionSelector": "a9059cbb",
+ "id": 1101,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "transfer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1097,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1094,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1101,
+ "src": "667:17:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1093,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "667:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1096,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1101,
+ "src": "686:14:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1095,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "686:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "666:35:15"
+ },
+ "returnParameters": {
+ "id": 1100,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1099,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1101,
+ "src": "720:4:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1098,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "720:4:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "719:6:15"
+ },
+ "scope": 1152,
+ "src": "649:77:15",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1102,
+ "nodeType": "StructuredDocumentation",
+ "src": "732:264:15",
+ "text": " @dev Returns the remaining number of tokens that `spender` will be\n allowed to spend on behalf of `owner` through {transferFrom}. This is\n zero by default.\n This value changes when {approve} or {transferFrom} are called."
+ },
+ "functionSelector": "dd62ed3e",
+ "id": 1111,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "allowance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1107,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1104,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 1111,
+ "src": "1020:13:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1103,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1020:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1106,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1111,
+ "src": "1035:15:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1105,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1035:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1019:32:15"
+ },
+ "returnParameters": {
+ "id": 1110,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1109,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1111,
+ "src": "1075:7:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1108,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1075:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1074:9:15"
+ },
+ "scope": 1152,
+ "src": "1001:83:15",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1112,
+ "nodeType": "StructuredDocumentation",
+ "src": "1090:642:15",
+ "text": " @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n Returns a boolean value indicating whether the operation succeeded.\n IMPORTANT: Beware that changing an allowance with this method brings the risk\n that someone may use both the old and the new allowance by unfortunate\n transaction ordering. One possible solution to mitigate this race\n condition is to first reduce the spender's allowance to 0 and set the\n desired value afterwards:\n https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n Emits an {Approval} event."
+ },
+ "functionSelector": "095ea7b3",
+ "id": 1121,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "approve",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1117,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1114,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1121,
+ "src": "1754:15:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1113,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1754:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1116,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1121,
+ "src": "1771:14:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1115,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1771:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1753:33:15"
+ },
+ "returnParameters": {
+ "id": 1120,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1119,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1121,
+ "src": "1805:4:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1118,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1805:4:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1804:6:15"
+ },
+ "scope": 1152,
+ "src": "1737:74:15",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1122,
+ "nodeType": "StructuredDocumentation",
+ "src": "1817:296:15",
+ "text": " @dev Moves `amount` tokens from `sender` to `recipient` using the\n allowance mechanism. `amount` is then deducted from the caller's\n allowance.\n Returns a boolean value indicating whether the operation succeeded.\n Emits a {Transfer} event."
+ },
+ "functionSelector": "23b872dd",
+ "id": 1133,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "transferFrom",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1129,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1124,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1133,
+ "src": "2149:14:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1123,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2149:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1126,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1133,
+ "src": "2173:17:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1125,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2173:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1128,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1133,
+ "src": "2200:14:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1127,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2200:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2139:81:15"
+ },
+ "returnParameters": {
+ "id": 1132,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1131,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1133,
+ "src": "2239:4:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1130,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2239:4:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2238:6:15"
+ },
+ "scope": 1152,
+ "src": "2118:127:15",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1134,
+ "nodeType": "StructuredDocumentation",
+ "src": "2251:158:15",
+ "text": " @dev Emitted when `value` tokens are moved from one account (`from`) to\n another (`to`).\n Note that `value` may be zero."
+ },
+ "id": 1142,
+ "name": "Transfer",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1141,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1136,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "from",
+ "nodeType": "VariableDeclaration",
+ "scope": 1142,
+ "src": "2429:20:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1135,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2429:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1138,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "to",
+ "nodeType": "VariableDeclaration",
+ "scope": 1142,
+ "src": "2451:18:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1137,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2451:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1140,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 1142,
+ "src": "2471:13:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1139,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2471:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2428:57:15"
+ },
+ "src": "2414:72:15"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1143,
+ "nodeType": "StructuredDocumentation",
+ "src": "2492:148:15",
+ "text": " @dev Emitted when the allowance of a `spender` for an `owner` is set by\n a call to {approve}. `value` is the new allowance."
+ },
+ "id": 1151,
+ "name": "Approval",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1150,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1145,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 1151,
+ "src": "2660:21:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1144,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2660:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1147,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1151,
+ "src": "2683:23:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1146,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2683:7:15",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1149,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 1151,
+ "src": "2708:13:15",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1148,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2708:7:15",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2659:63:15"
+ },
+ "src": "2645:78:15"
+ }
+ ],
+ "scope": 1153,
+ "src": "129:2596:15"
+ }
+ ],
+ "src": "33:2693:15"
+ },
+ "id": 15
+ },
+ "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol",
+ "exportedSymbols": {
+ "IERC20Permit": [
+ 1188
+ ]
+ },
+ "id": 1189,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1154,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:16"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1155,
+ "nodeType": "StructuredDocumentation",
+ "src": "58:482:16",
+ "text": " @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\n need to send a transaction, and thus is not required to hold Ether at all."
+ },
+ "fullyImplemented": false,
+ "id": 1188,
+ "linearizedBaseContracts": [
+ 1188
+ ],
+ "name": "IERC20Permit",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1156,
+ "nodeType": "StructuredDocumentation",
+ "src": "570:788:16",
+ "text": " @dev Sets `value` as the allowance of `spender` over `owner`'s tokens,\n given `owner`'s signed approval.\n IMPORTANT: The same issues {IERC20-approve} has related to transaction\n ordering also apply here.\n Emits an {Approval} event.\n Requirements:\n - `spender` cannot be the zero address.\n - `deadline` must be a timestamp in the future.\n - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n over the EIP712-formatted function arguments.\n - the signature must use ``owner``'s current nonce (see {nonces}).\n For more information on the signature format, see the\n https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n section]."
+ },
+ "functionSelector": "d505accf",
+ "id": 1173,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "permit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1171,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1158,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 1173,
+ "src": "1388:13:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1157,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1388:7:16",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1160,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1173,
+ "src": "1411:15:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1159,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1411:7:16",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1162,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 1173,
+ "src": "1436:13:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1161,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1436:7:16",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1164,
+ "mutability": "mutable",
+ "name": "deadline",
+ "nodeType": "VariableDeclaration",
+ "scope": 1173,
+ "src": "1459:16:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1163,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1459:7:16",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1166,
+ "mutability": "mutable",
+ "name": "v",
+ "nodeType": "VariableDeclaration",
+ "scope": 1173,
+ "src": "1485:7:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 1165,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "1485:5:16",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1168,
+ "mutability": "mutable",
+ "name": "r",
+ "nodeType": "VariableDeclaration",
+ "scope": 1173,
+ "src": "1502:9:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1167,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1502:7:16",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1170,
+ "mutability": "mutable",
+ "name": "s",
+ "nodeType": "VariableDeclaration",
+ "scope": 1173,
+ "src": "1521:9:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1169,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1521:7:16",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1378:158:16"
+ },
+ "returnParameters": {
+ "id": 1172,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1545:0:16"
+ },
+ "scope": 1188,
+ "src": "1363:183:16",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1174,
+ "nodeType": "StructuredDocumentation",
+ "src": "1552:294:16",
+ "text": " @dev Returns the current nonce for `owner`. This value must be\n included whenever a signature is generated for {permit}.\n Every successful call to {permit} increases ``owner``'s nonce by one. This\n prevents a signature from being used multiple times."
+ },
+ "functionSelector": "7ecebe00",
+ "id": 1181,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "nonces",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1177,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1176,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 1181,
+ "src": "1867:13:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1175,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1867:7:16",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1866:15:16"
+ },
+ "returnParameters": {
+ "id": 1180,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1179,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1181,
+ "src": "1905:7:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1178,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1905:7:16",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1904:9:16"
+ },
+ "scope": 1188,
+ "src": "1851:63:16",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1182,
+ "nodeType": "StructuredDocumentation",
+ "src": "1920:128:16",
+ "text": " @dev Returns the domain separator used in the encoding of the signature for `permit`, as defined by {EIP712}."
+ },
+ "functionSelector": "3644e515",
+ "id": 1187,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "DOMAIN_SEPARATOR",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1183,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2131:2:16"
+ },
+ "returnParameters": {
+ "id": 1186,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1185,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1187,
+ "src": "2157:7:16",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1184,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2157:7:16",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2156:9:16"
+ },
+ "scope": 1188,
+ "src": "2106:60:16",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1189,
+ "src": "541:1627:16"
+ }
+ ],
+ "src": "33:2136:16"
+ },
+ "id": 16
+ },
+ "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol",
+ "exportedSymbols": {
+ "IProtocolFeePercentagesProvider": [
+ 1269
+ ],
+ "ProtocolFeeType": [
+ 1282
+ ]
+ },
+ "id": 1283,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1190,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:17"
+ },
+ {
+ "id": 1191,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:17"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1192,
+ "nodeType": "StructuredDocumentation",
+ "src": "747:271:17",
+ "text": " @dev Source of truth for all Protocol Fee percentages, that is, how much the protocol charges certain actions. Some\n of these values may also be retrievable from other places (such as the swap fee percentage), but this is the\n preferred source nonetheless."
+ },
+ "fullyImplemented": false,
+ "id": 1269,
+ "linearizedBaseContracts": [
+ 1269
+ ],
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "anonymous": false,
+ "id": 1200,
+ "name": "ProtocolFeeTypeRegistered",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1199,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1194,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1200,
+ "src": "1248:23:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1193,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1248:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1196,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "name",
+ "nodeType": "VariableDeclaration",
+ "scope": 1200,
+ "src": "1273:11:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 1195,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1273:6:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1198,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "maximumPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1200,
+ "src": "1286:25:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1197,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1286:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1247:65:17"
+ },
+ "src": "1216:97:17"
+ },
+ {
+ "anonymous": false,
+ "id": 1206,
+ "name": "ProtocolFeePercentageChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1205,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1202,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1206,
+ "src": "1787:23:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1201,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1787:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1204,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "percentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1206,
+ "src": "1812:18:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1203,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1812:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1786:45:17"
+ },
+ "src": "1752:80:17"
+ },
+ {
+ "documentation": {
+ "id": 1207,
+ "nodeType": "StructuredDocumentation",
+ "src": "1838:363:17",
+ "text": " @dev Registers a new fee type in the system, making it queryable via `getFeeTypePercentage` and `getFeeTypeName`,\n as well as configurable via `setFeeTypePercentage`.\n `feeType` can be any arbitrary value (that is not in use).\n It is not possible to de-register fee types, nor change their name or maximum value."
+ },
+ "functionSelector": "7268d6ce",
+ "id": 1218,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "registerFeeType",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1216,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1209,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1218,
+ "src": "2240:15:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1208,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2240:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1211,
+ "mutability": "mutable",
+ "name": "name",
+ "nodeType": "VariableDeclaration",
+ "scope": 1218,
+ "src": "2265:18:17",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 1210,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2265:6:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1213,
+ "mutability": "mutable",
+ "name": "maximumValue",
+ "nodeType": "VariableDeclaration",
+ "scope": 1218,
+ "src": "2293:20:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1212,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2293:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1215,
+ "mutability": "mutable",
+ "name": "initialValue",
+ "nodeType": "VariableDeclaration",
+ "scope": 1218,
+ "src": "2323:20:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1214,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2323:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2230:119:17"
+ },
+ "returnParameters": {
+ "id": 1217,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2358:0:17"
+ },
+ "scope": 1269,
+ "src": "2206:153:17",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1219,
+ "nodeType": "StructuredDocumentation",
+ "src": "2365:89:17",
+ "text": " @dev Returns true if `feeType` has been registered and can be queried."
+ },
+ "functionSelector": "868897a0",
+ "id": 1226,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "isValidFeeType",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1222,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1221,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1226,
+ "src": "2483:15:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1220,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2483:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2482:17:17"
+ },
+ "returnParameters": {
+ "id": 1225,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1224,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1226,
+ "src": "2523:4:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1223,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2523:4:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2522:6:17"
+ },
+ "scope": 1269,
+ "src": "2459:70:17",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1227,
+ "nodeType": "StructuredDocumentation",
+ "src": "2535:90:17",
+ "text": " @dev Returns true if `value` is a valid percentage value for `feeType`."
+ },
+ "functionSelector": "74735e0b",
+ "id": 1236,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "isValidFeeTypePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1232,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1229,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1236,
+ "src": "2664:15:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1228,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2664:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1231,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 1236,
+ "src": "2681:13:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1230,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2681:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2663:32:17"
+ },
+ "returnParameters": {
+ "id": 1235,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1234,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1236,
+ "src": "2719:4:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1233,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2719:4:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2718:6:17"
+ },
+ "scope": 1269,
+ "src": "2630:95:17",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1237,
+ "nodeType": "StructuredDocumentation",
+ "src": "2731:570:17",
+ "text": " @dev Sets the percentage value for `feeType` to `newValue`.\n IMPORTANT: it is possible for a third party to modify the SWAP and FLASH_LOAN fee type values directly in the\n ProtocolFeesCollector, without invoking this function. This will result in the `ProtocolFeePercentageChanged`\n event not being emitted despite their value changing. Such usage of the ProtocolFeesCollector is however\n discouraged: only this contract should be granted permission to call `setSwapFeePercentage` and\n `setFlashLoanFeePercentage`."
+ },
+ "functionSelector": "4d44f0e9",
+ "id": 1244,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setFeeTypePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1242,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1239,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1244,
+ "src": "3336:15:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1238,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3336:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1241,
+ "mutability": "mutable",
+ "name": "newValue",
+ "nodeType": "VariableDeclaration",
+ "scope": 1244,
+ "src": "3353:16:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1240,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3353:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3335:35:17"
+ },
+ "returnParameters": {
+ "id": 1243,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3379:0:17"
+ },
+ "scope": 1269,
+ "src": "3306:74:17",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1245,
+ "nodeType": "StructuredDocumentation",
+ "src": "3386:224:17",
+ "text": " @dev Returns the current percentage value for `feeType`. This is the preferred mechanism for querying these -\n whenever possible, use this fucntion instead of e.g. querying the ProtocolFeesCollector."
+ },
+ "functionSelector": "1a7c3263",
+ "id": 1252,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getFeeTypePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1248,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1247,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1252,
+ "src": "3645:15:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1246,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3645:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3644:17:17"
+ },
+ "returnParameters": {
+ "id": 1251,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1250,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1252,
+ "src": "3685:7:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1249,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3685:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3684:9:17"
+ },
+ "scope": 1269,
+ "src": "3615:79:17",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1253,
+ "nodeType": "StructuredDocumentation",
+ "src": "3700:58:17",
+ "text": " @dev Returns `feeType`'s maximum value."
+ },
+ "functionSelector": "5e2cae4c",
+ "id": 1260,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getFeeTypeMaximumPercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1256,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1255,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1260,
+ "src": "3800:15:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1254,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3800:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3799:17:17"
+ },
+ "returnParameters": {
+ "id": 1259,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1258,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1260,
+ "src": "3840:7:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1257,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3840:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3839:9:17"
+ },
+ "scope": 1269,
+ "src": "3763:86:17",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1261,
+ "nodeType": "StructuredDocumentation",
+ "src": "3855:49:17",
+ "text": " @dev Returns `feeType`'s name."
+ },
+ "functionSelector": "b661eda1",
+ "id": 1268,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getFeeTypeName",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1264,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1263,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 1268,
+ "src": "3933:15:17",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1262,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3933:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3932:17:17"
+ },
+ "returnParameters": {
+ "id": 1267,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1266,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1268,
+ "src": "3973:13:17",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 1265,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "3973:6:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3972:15:17"
+ },
+ "scope": 1269,
+ "src": "3909:79:17",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1283,
+ "src": "1019:2971:17"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 1282,
+ "linearizedBaseContracts": [
+ 1282
+ ],
+ "name": "ProtocolFeeType",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 1272,
+ "mutability": "constant",
+ "name": "SWAP",
+ "nodeType": "VariableDeclaration",
+ "scope": 1282,
+ "src": "4326:34:17",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1270,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4326:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "30",
+ "id": 1271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4359:1:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 1275,
+ "mutability": "constant",
+ "name": "FLASH_LOAN",
+ "nodeType": "VariableDeclaration",
+ "scope": 1282,
+ "src": "4366:40:17",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1273,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4366:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "31",
+ "id": 1274,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4405:1:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 1278,
+ "mutability": "constant",
+ "name": "YIELD",
+ "nodeType": "VariableDeclaration",
+ "scope": 1282,
+ "src": "4412:35:17",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1276,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4412:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "32",
+ "id": 1277,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4446:1:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 1281,
+ "mutability": "constant",
+ "name": "AUM",
+ "nodeType": "VariableDeclaration",
+ "scope": 1282,
+ "src": "4453:33:17",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1279,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4453:7:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "33",
+ "id": 1280,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4485:1:17",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "visibility": "internal"
+ }
+ ],
+ "scope": 1283,
+ "src": "3992:551:17"
+ }
+ ],
+ "src": "688:3856:17"
+ },
+ "id": 17
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol",
+ "exportedSymbols": {
+ "IAsset": [
+ 1286
+ ]
+ },
+ "id": 1287,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1284,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:18"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1285,
+ "nodeType": "StructuredDocumentation",
+ "src": "713:309:18",
+ "text": " @dev This is an empty interface used to represent either ERC20-conforming token contracts or ETH (using the zero\n address sentinel value). We're just relying on the fact that `interface` can be used to declare new address-like\n types.\n This concept is unrelated to a Pool's Asset Managers."
+ },
+ "fullyImplemented": true,
+ "id": 1286,
+ "linearizedBaseContracts": [
+ 1286
+ ],
+ "name": "IAsset",
+ "nodeType": "ContractDefinition",
+ "nodes": [],
+ "scope": 1287,
+ "src": "1023:73:18"
+ }
+ ],
+ "src": "688:409:18"
+ },
+ "id": 18
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol",
+ "exportedSymbols": {
+ "IAuthorizer": [
+ 1301
+ ]
+ },
+ "id": 1302,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1288,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:19"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 1301,
+ "linearizedBaseContracts": [
+ 1301
+ ],
+ "name": "IAuthorizer",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1289,
+ "nodeType": "StructuredDocumentation",
+ "src": "741:121:19",
+ "text": " @dev Returns true if `account` can perform the action described by `actionId` in the contract `where`."
+ },
+ "functionSelector": "9be2a884",
+ "id": 1300,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "canPerform",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1296,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1291,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1300,
+ "src": "896:16:19",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1290,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "896:7:19",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1293,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 1300,
+ "src": "922:15:19",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1292,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "922:7:19",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1295,
+ "mutability": "mutable",
+ "name": "where",
+ "nodeType": "VariableDeclaration",
+ "scope": 1300,
+ "src": "947:13:19",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1294,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "947:7:19",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "886:80:19"
+ },
+ "returnParameters": {
+ "id": 1299,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1298,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1300,
+ "src": "990:4:19",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1297,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "990:4:19",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "989:6:19"
+ },
+ "scope": 1301,
+ "src": "867:129:19",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1302,
+ "src": "713:285:19"
+ }
+ ],
+ "src": "688:311:19"
+ },
+ "id": 19
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol",
+ "exportedSymbols": {
+ "IBasePool": [
+ 1425
+ ]
+ },
+ "id": 1426,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1303,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:20"
+ },
+ {
+ "id": 1304,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:20"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "./IVault.sol",
+ "id": 1305,
+ "nodeType": "ImportDirective",
+ "scope": 1426,
+ "sourceUnit": 2022,
+ "src": "747:22:20",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol",
+ "file": "./IPoolSwapStructs.sol",
+ "id": 1306,
+ "nodeType": "ImportDirective",
+ "scope": 1426,
+ "sourceUnit": 1492,
+ "src": "770:32:20",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 1308,
+ "name": "IPoolSwapStructs",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1491,
+ "src": "1112:16:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IPoolSwapStructs_$1491",
+ "typeString": "contract IPoolSwapStructs"
+ }
+ },
+ "id": 1309,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1112:16:20"
+ }
+ ],
+ "contractDependencies": [
+ 1491
+ ],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1307,
+ "nodeType": "StructuredDocumentation",
+ "src": "804:284:20",
+ "text": " @dev Interface for adding and removing liquidity that all Pool contracts should implement. Note that this is not\n the complete Pool contract interface, as it is missing the swap hooks. Pool contracts should also inherit from\n either IGeneralPool or IMinimalSwapInfoPool"
+ },
+ "fullyImplemented": false,
+ "id": 1425,
+ "linearizedBaseContracts": [
+ 1425,
+ 1491
+ ],
+ "name": "IBasePool",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1310,
+ "nodeType": "StructuredDocumentation",
+ "src": "1135:1490:20",
+ "text": " @dev Called by the Vault when a user calls `IVault.joinPool` to add liquidity to this Pool. Returns how many of\n each registered token the user should provide, as well as the amount of protocol fees the Pool owes to the Vault.\n The Vault will then take tokens from `sender` and add them to the Pool's balances, as well as collect\n the reported amount in protocol fees, which the pool should calculate based on `protocolSwapFeePercentage`.\n Protocol fees are reported and charged on join events so that the Pool is free of debt whenever new users join.\n `sender` is the account performing the join (from which tokens will be withdrawn), and `recipient` is the account\n designated to receive any benefits (typically pool shares). `balances` contains the total balances\n for each token the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return.\n `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total\n balance.\n `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of\n join (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.)\n Contracts implementing this function should check that the caller is indeed the Vault before performing any\n state-changing operations, such as minting pool shares."
+ },
+ "functionSelector": "d5c096c4",
+ "id": 1334,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "onJoinPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1326,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1312,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2659:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1311,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2659:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1314,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2683:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1313,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2683:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1316,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2707:17:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1315,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2707:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1319,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2734:25:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1317,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2734:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1318,
+ "nodeType": "ArrayTypeName",
+ "src": "2734:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1321,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2769:23:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1320,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2769:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1323,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2802:33:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1322,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2802:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1325,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2845:21:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1324,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2845:5:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2649:223:20"
+ },
+ "returnParameters": {
+ "id": 1333,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1329,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2891:26:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1327,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2891:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1328,
+ "nodeType": "ArrayTypeName",
+ "src": "2891:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1332,
+ "mutability": "mutable",
+ "name": "dueProtocolFeeAmounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1334,
+ "src": "2919:38:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1330,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2919:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1331,
+ "nodeType": "ArrayTypeName",
+ "src": "2919:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2890:68:20"
+ },
+ "scope": 1425,
+ "src": "2630:329:20",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1335,
+ "nodeType": "StructuredDocumentation",
+ "src": "2965:1490:20",
+ "text": " @dev Called by the Vault when a user calls `IVault.exitPool` to remove liquidity from this Pool. Returns how many\n tokens the Vault should deduct from the Pool's balances, as well as the amount of protocol fees the Pool owes\n to the Vault. The Vault will then take tokens from the Pool's balances and send them to `recipient`,\n as well as collect the reported amount in protocol fees, which the Pool should calculate based on\n `protocolSwapFeePercentage`.\n Protocol fees are charged on exit events to guarantee that users exiting the Pool have paid their share.\n `sender` is the account performing the exit (typically the pool shareholder), and `recipient` is the account\n to which the Vault will send the proceeds. `balances` contains the total token balances for each token\n the Pool registered in the Vault, in the same order that `IVault.getPoolTokens` would return.\n `lastChangeBlock` is the last block in which *any* of the Pool's registered tokens last changed its total\n balance.\n `userData` contains any pool-specific instructions needed to perform the calculations, such as the type of\n exit (e.g., proportional given an amount of pool shares, single-asset, multi-asset, etc.)\n Contracts implementing this function should check that the caller is indeed the Vault before performing any\n state-changing operations, such as burning pool shares."
+ },
+ "functionSelector": "74f3b009",
+ "id": 1359,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "onExitPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1351,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1337,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4489:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1336,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4489:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1339,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4513:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1338,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4513:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1341,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4537:17:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1340,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4537:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1344,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4564:25:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1342,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4564:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1343,
+ "nodeType": "ArrayTypeName",
+ "src": "4564:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1346,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4599:23:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1345,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4599:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1348,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4632:33:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1347,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4632:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1350,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4675:21:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1349,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "4675:5:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4479:223:20"
+ },
+ "returnParameters": {
+ "id": 1358,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1354,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4721:27:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1352,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4721:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1353,
+ "nodeType": "ArrayTypeName",
+ "src": "4721:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1357,
+ "mutability": "mutable",
+ "name": "dueProtocolFeeAmounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1359,
+ "src": "4750:38:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1355,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4750:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1356,
+ "nodeType": "ArrayTypeName",
+ "src": "4750:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4720:69:20"
+ },
+ "scope": 1425,
+ "src": "4460:330:20",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1360,
+ "nodeType": "StructuredDocumentation",
+ "src": "4796:125:20",
+ "text": " @dev Returns this Pool's ID, used when interacting with the Vault (to e.g. join the Pool or swap with it)."
+ },
+ "functionSelector": "38fff2d0",
+ "id": 1365,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPoolId",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1361,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4944:2:20"
+ },
+ "returnParameters": {
+ "id": 1364,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1363,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1365,
+ "src": "4970:7:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1362,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4970:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4969:9:20"
+ },
+ "scope": 1425,
+ "src": "4926:53:20",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1366,
+ "nodeType": "StructuredDocumentation",
+ "src": "4985:150:20",
+ "text": " @dev Returns the current swap fee percentage as a 18 decimal fixed point number, so e.g. 1e17 corresponds to a\n 10% swap fee."
+ },
+ "functionSelector": "55c67628",
+ "id": 1371,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1367,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5169:2:20"
+ },
+ "returnParameters": {
+ "id": 1370,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1369,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1371,
+ "src": "5195:7:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1368,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5195:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5194:9:20"
+ },
+ "scope": 1425,
+ "src": "5140:64:20",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1372,
+ "nodeType": "StructuredDocumentation",
+ "src": "5210:224:20",
+ "text": " @dev Returns the scaling factors of each of the Pool's tokens. This is an implementation detail that is typically\n not relevant for outside parties, but which might be useful for some types of Pools."
+ },
+ "functionSelector": "1dd746ea",
+ "id": 1378,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getScalingFactors",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1373,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5465:2:20"
+ },
+ "returnParameters": {
+ "id": 1377,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1376,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1378,
+ "src": "5491:16:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1374,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5491:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1375,
+ "nodeType": "ArrayTypeName",
+ "src": "5491:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5490:18:20"
+ },
+ "scope": 1425,
+ "src": "5439:70:20",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "87ec6817",
+ "id": 1401,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "queryJoin",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1394,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1380,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5543:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1379,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "5543:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1382,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5567:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1381,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5567:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1384,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5591:17:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1383,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5591:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1387,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5618:25:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1385,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5618:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1386,
+ "nodeType": "ArrayTypeName",
+ "src": "5618:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1389,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5653:23:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1388,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5653:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1391,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5686:33:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1390,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5686:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1393,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5729:21:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1392,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "5729:5:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5533:223:20"
+ },
+ "returnParameters": {
+ "id": 1400,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1396,
+ "mutability": "mutable",
+ "name": "bptOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5775:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1395,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5775:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1399,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1401,
+ "src": "5791:26:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1397,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5791:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1398,
+ "nodeType": "ArrayTypeName",
+ "src": "5791:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5774:44:20"
+ },
+ "scope": 1425,
+ "src": "5515:304:20",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "6028bfd4",
+ "id": 1424,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "queryExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1417,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1403,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "5853:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1402,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "5853:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1405,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "5877:14:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1404,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5877:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1407,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "5901:17:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1406,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5901:7:20",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1410,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "5928:25:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1408,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5928:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1409,
+ "nodeType": "ArrayTypeName",
+ "src": "5928:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1412,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "5963:23:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1411,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5963:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1414,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "5996:33:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1413,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5996:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1416,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "6039:21:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1415,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "6039:5:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5843:223:20"
+ },
+ "returnParameters": {
+ "id": 1423,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1419,
+ "mutability": "mutable",
+ "name": "bptIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "6085:13:20",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1418,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6085:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1422,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1424,
+ "src": "6100:27:20",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1420,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6100:7:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1421,
+ "nodeType": "ArrayTypeName",
+ "src": "6100:9:20",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6084:44:20"
+ },
+ "scope": 1425,
+ "src": "5825:304:20",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1426,
+ "src": "1089:5042:20"
+ }
+ ],
+ "src": "688:5444:20"
+ },
+ "id": 20
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol",
+ "exportedSymbols": {
+ "IFlashLoanRecipient": [
+ 1444
+ ]
+ },
+ "id": 1445,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1427,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:21"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "../solidity-utils/openzeppelin/IERC20.sol",
+ "id": 1428,
+ "nodeType": "ImportDirective",
+ "scope": 1445,
+ "sourceUnit": 1153,
+ "src": "765:51:21",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 1444,
+ "linearizedBaseContracts": [
+ 1444
+ ],
+ "name": "IFlashLoanRecipient",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1429,
+ "nodeType": "StructuredDocumentation",
+ "src": "854:496:21",
+ "text": " @dev When `flashLoan` is called on the Vault, it invokes the `receiveFlashLoan` hook on the recipient.\n At the time of the call, the Vault will have transferred `amounts` for `tokens` to the recipient. Before this\n call returns, the recipient must have transferred `amounts` plus `feeAmounts` for each token back to the\n Vault, or else the entire flash loan will revert.\n `userData` is the same value passed in the `IVault.flashLoan` call."
+ },
+ "functionSelector": "f04f2707",
+ "id": 1443,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "receiveFlashLoan",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1441,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1432,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1443,
+ "src": "1390:22:21",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1430,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1390:6:21",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1431,
+ "nodeType": "ArrayTypeName",
+ "src": "1390:8:21",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1435,
+ "mutability": "mutable",
+ "name": "amounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1443,
+ "src": "1422:24:21",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1433,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1422:7:21",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1434,
+ "nodeType": "ArrayTypeName",
+ "src": "1422:9:21",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1438,
+ "mutability": "mutable",
+ "name": "feeAmounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1443,
+ "src": "1456:27:21",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1436,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1456:7:21",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1437,
+ "nodeType": "ArrayTypeName",
+ "src": "1456:9:21",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1440,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1443,
+ "src": "1493:21:21",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1439,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1493:5:21",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1380:140:21"
+ },
+ "returnParameters": {
+ "id": 1442,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1529:0:21"
+ },
+ "scope": 1444,
+ "src": "1355:175:21",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1445,
+ "src": "818:714:21"
+ }
+ ],
+ "src": "688:845:21"
+ },
+ "id": 21
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol",
+ "exportedSymbols": {
+ "IGeneralPool": [
+ 1466
+ ]
+ },
+ "id": 1467,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1446,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:22"
+ },
+ {
+ "id": 1447,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:22"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol",
+ "file": "./IBasePool.sol",
+ "id": 1448,
+ "nodeType": "ImportDirective",
+ "scope": 1467,
+ "sourceUnit": 1426,
+ "src": "747:25:22",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 1450,
+ "name": "IBasePool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1425,
+ "src": "1407:9:22",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IBasePool_$1425",
+ "typeString": "contract IBasePool"
+ }
+ },
+ "id": 1451,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1407:9:22"
+ }
+ ],
+ "contractDependencies": [
+ 1425,
+ 1491
+ ],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1449,
+ "nodeType": "StructuredDocumentation",
+ "src": "774:606:22",
+ "text": " @dev IPools with the General specialization setting should implement this interface.\n This is called by the Vault when a user calls `IVault.swap` or `IVault.batchSwap` to swap with this Pool.\n Returns the number of tokens the Pool will grant to the user in a 'given in' swap, or that the user will\n grant to the pool in a 'given out' swap.\n This can often be implemented by a `view` function, since many pricing algorithms don't need to track state\n changes in swaps. However, contracts implementing this in non-view functions should check that the caller is\n indeed the Vault."
+ },
+ "fullyImplemented": false,
+ "id": 1466,
+ "linearizedBaseContracts": [
+ 1466,
+ 1425,
+ 1491
+ ],
+ "name": "IGeneralPool",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "functionSelector": "01ec954a",
+ "id": 1465,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "onSwap",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1461,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1453,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 1465,
+ "src": "1448:30:22",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 1452,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "1448:11:22",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1456,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 1465,
+ "src": "1488:25:22",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1454,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1488:7:22",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1455,
+ "nodeType": "ArrayTypeName",
+ "src": "1488:9:22",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1458,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1465,
+ "src": "1523:15:22",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1457,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1523:7:22",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1460,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1465,
+ "src": "1548:16:22",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1459,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1548:7:22",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1438:132:22"
+ },
+ "returnParameters": {
+ "id": 1464,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1463,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1465,
+ "src": "1589:14:22",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1462,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1589:7:22",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1588:16:22"
+ },
+ "scope": 1466,
+ "src": "1423:182:22",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1467,
+ "src": "1381:226:22"
+ }
+ ],
+ "src": "688:920:22"
+ },
+ "id": 22
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IPoolSwapStructs.sol",
+ "exportedSymbols": {
+ "IPoolSwapStructs": [
+ 1491
+ ]
+ },
+ "id": 1492,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1468,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:23"
+ },
+ {
+ "id": 1469,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:23"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "../solidity-utils/openzeppelin/IERC20.sol",
+ "id": 1470,
+ "nodeType": "ImportDirective",
+ "scope": 1492,
+ "sourceUnit": 1153,
+ "src": "747:51:23",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "./IVault.sol",
+ "id": 1471,
+ "nodeType": "ImportDirective",
+ "scope": 1492,
+ "sourceUnit": 2022,
+ "src": "800:22:23",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": true,
+ "id": 1491,
+ "linearizedBaseContracts": [
+ 1491
+ ],
+ "name": "IPoolSwapStructs",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "canonicalName": "IPoolSwapStructs.SwapRequest",
+ "id": 1490,
+ "members": [
+ {
+ "constant": false,
+ "id": 1473,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2357:20:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ },
+ "typeName": {
+ "id": 1472,
+ "name": "IVault.SwapKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1845,
+ "src": "2357:15:23",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1475,
+ "mutability": "mutable",
+ "name": "tokenIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2387:14:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1474,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2387:6:23",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1477,
+ "mutability": "mutable",
+ "name": "tokenOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2411:15:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1476,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2411:6:23",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1479,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2436:14:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1478,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2436:7:23",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1481,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2481:14:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1480,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2481:7:23",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1483,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2505:23:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1482,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2505:7:23",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1485,
+ "mutability": "mutable",
+ "name": "from",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2538:12:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1484,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2538:7:23",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1487,
+ "mutability": "mutable",
+ "name": "to",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2560:10:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1486,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2560:7:23",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1489,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1490,
+ "src": "2580:14:23",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1488,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2580:5:23",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "SwapRequest",
+ "nodeType": "StructDefinition",
+ "scope": 1491,
+ "src": "2328:273:23",
+ "visibility": "public"
+ }
+ ],
+ "scope": 1492,
+ "src": "824:1779:23"
+ }
+ ],
+ "src": "688:1916:23"
+ },
+ "id": 23
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol",
+ "exportedSymbols": {
+ "IProtocolFeesCollector": [
+ 1556
+ ]
+ },
+ "id": 1557,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1493,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:24"
+ },
+ {
+ "id": 1494,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:24"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "../solidity-utils/openzeppelin/IERC20.sol",
+ "id": 1495,
+ "nodeType": "ImportDirective",
+ "scope": 1557,
+ "sourceUnit": 1153,
+ "src": "747:51:24",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "./IVault.sol",
+ "id": 1496,
+ "nodeType": "ImportDirective",
+ "scope": 1557,
+ "sourceUnit": 2022,
+ "src": "800:22:24",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol",
+ "file": "./IAuthorizer.sol",
+ "id": 1497,
+ "nodeType": "ImportDirective",
+ "scope": 1557,
+ "sourceUnit": 1302,
+ "src": "823:27:24",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "interface",
+ "fullyImplemented": false,
+ "id": 1556,
+ "linearizedBaseContracts": [
+ 1556
+ ],
+ "name": "IProtocolFeesCollector",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "anonymous": false,
+ "id": 1501,
+ "name": "SwapFeePercentageChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1500,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1499,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "newSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1501,
+ "src": "922:28:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1498,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "922:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "921:30:24"
+ },
+ "src": "891:61:24"
+ },
+ {
+ "anonymous": false,
+ "id": 1505,
+ "name": "FlashLoanFeePercentageChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1504,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1503,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "newFlashLoanFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1505,
+ "src": "993:33:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1502,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "993:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "992:35:24"
+ },
+ "src": "957:71:24"
+ },
+ {
+ "functionSelector": "6daefab6",
+ "id": 1516,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "withdrawCollectedFees",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1514,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1508,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1516,
+ "src": "1074:24:24",
+ "stateVariable": false,
+ "storageLocation": "calldata",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_calldata_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1506,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1074:6:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1507,
+ "nodeType": "ArrayTypeName",
+ "src": "1074:8:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1511,
+ "mutability": "mutable",
+ "name": "amounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1516,
+ "src": "1108:26:24",
+ "stateVariable": false,
+ "storageLocation": "calldata",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_calldata_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1509,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1108:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1510,
+ "nodeType": "ArrayTypeName",
+ "src": "1108:9:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1513,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1516,
+ "src": "1144:17:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1512,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1144:7:24",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1064:103:24"
+ },
+ "returnParameters": {
+ "id": 1515,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1176:0:24"
+ },
+ "scope": 1556,
+ "src": "1034:143:24",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "38e9922e",
+ "id": 1521,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1519,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1518,
+ "mutability": "mutable",
+ "name": "newSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1521,
+ "src": "1213:28:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1517,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1213:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1212:30:24"
+ },
+ "returnParameters": {
+ "id": 1520,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1251:0:24"
+ },
+ "scope": 1556,
+ "src": "1183:69:24",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "6b6b9f69",
+ "id": 1526,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setFlashLoanFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1524,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1523,
+ "mutability": "mutable",
+ "name": "newFlashLoanFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 1526,
+ "src": "1293:33:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1522,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1293:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1292:35:24"
+ },
+ "returnParameters": {
+ "id": 1525,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1336:0:24"
+ },
+ "scope": 1556,
+ "src": "1258:79:24",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "55c67628",
+ "id": 1531,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1527,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1372:2:24"
+ },
+ "returnParameters": {
+ "id": 1530,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1529,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1531,
+ "src": "1398:7:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1528,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1398:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1397:9:24"
+ },
+ "scope": 1556,
+ "src": "1343:64:24",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "d877845c",
+ "id": 1536,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getFlashLoanFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1532,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1447:2:24"
+ },
+ "returnParameters": {
+ "id": 1535,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1534,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1536,
+ "src": "1473:7:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1533,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1473:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1472:9:24"
+ },
+ "scope": 1556,
+ "src": "1413:69:24",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "e42abf35",
+ "id": 1545,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getCollectedFeeAmounts",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1540,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1539,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1545,
+ "src": "1520:22:24",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1537,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1520:6:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1538,
+ "nodeType": "ArrayTypeName",
+ "src": "1520:8:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1519:24:24"
+ },
+ "returnParameters": {
+ "id": 1544,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1543,
+ "mutability": "mutable",
+ "name": "feeAmounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1545,
+ "src": "1567:27:24",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1541,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1567:7:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1542,
+ "nodeType": "ArrayTypeName",
+ "src": "1567:9:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1566:29:24"
+ },
+ "scope": 1556,
+ "src": "1488:108:24",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "aaabadc5",
+ "id": 1550,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1546,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1624:2:24"
+ },
+ "returnParameters": {
+ "id": 1549,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1548,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1550,
+ "src": "1650:11:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 1547,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "1650:11:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1649:13:24"
+ },
+ "scope": 1556,
+ "src": "1602:61:24",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "functionSelector": "fbfa77cf",
+ "id": 1555,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "vault",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1551,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1683:2:24"
+ },
+ "returnParameters": {
+ "id": 1554,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1553,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1555,
+ "src": "1709:6:24",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 1552,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "1709:6:24",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1708:8:24"
+ },
+ "scope": 1556,
+ "src": "1669:48:24",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 1557,
+ "src": "852:867:24"
+ }
+ ],
+ "src": "688:1032:24"
+ },
+ "id": 24
+ },
+ "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "exportedSymbols": {
+ "IVault": [
+ 2021
+ ]
+ },
+ "id": 2022,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 1558,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:33:25"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "../solidity-utils/openzeppelin/IERC20.sol",
+ "id": 1559,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1153,
+ "src": "723:51:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol",
+ "file": "../solidity-utils/helpers/IAuthentication.sol",
+ "id": 1560,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1023,
+ "src": "775:55:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol",
+ "file": "../solidity-utils/helpers/ISignaturesValidator.sol",
+ "id": 1561,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1041,
+ "src": "831:60:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol",
+ "file": "../solidity-utils/helpers/ITemporarilyPausable.sol",
+ "id": 1562,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1060,
+ "src": "892:60:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/misc/IWETH.sol",
+ "file": "../solidity-utils/misc/IWETH.sol",
+ "id": 1563,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1075,
+ "src": "953:42:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol",
+ "file": "./IAsset.sol",
+ "id": 1564,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1287,
+ "src": "997:22:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol",
+ "file": "./IAuthorizer.sol",
+ "id": 1565,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1302,
+ "src": "1020:27:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IFlashLoanRecipient.sol",
+ "file": "./IFlashLoanRecipient.sol",
+ "id": 1566,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1445,
+ "src": "1048:35:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IProtocolFeesCollector.sol",
+ "file": "./IProtocolFeesCollector.sol",
+ "id": 1567,
+ "nodeType": "ImportDirective",
+ "scope": 2022,
+ "sourceUnit": 1557,
+ "src": "1084:38:25",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "id": 1568,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "1124:23:25"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 1570,
+ "name": "ISignaturesValidator",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1040,
+ "src": "1341:20:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ISignaturesValidator_$1040",
+ "typeString": "contract ISignaturesValidator"
+ }
+ },
+ "id": 1571,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1341:20:25"
+ },
+ {
+ "baseName": {
+ "id": 1572,
+ "name": "ITemporarilyPausable",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1059,
+ "src": "1363:20:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ITemporarilyPausable_$1059",
+ "typeString": "contract ITemporarilyPausable"
+ }
+ },
+ "id": 1573,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1363:20:25"
+ },
+ {
+ "baseName": {
+ "id": 1574,
+ "name": "IAuthentication",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1022,
+ "src": "1385:15:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthentication_$1022",
+ "typeString": "contract IAuthentication"
+ }
+ },
+ "id": 1575,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1385:15:25"
+ }
+ ],
+ "contractDependencies": [
+ 1022,
+ 1040,
+ 1059
+ ],
+ "contractKind": "interface",
+ "documentation": {
+ "id": 1569,
+ "nodeType": "StructuredDocumentation",
+ "src": "1149:171:25",
+ "text": " @dev Full external interface for the Vault core contract - no external or public methods exist in the contract that\n don't override one of these declarations."
+ },
+ "fullyImplemented": false,
+ "id": 2021,
+ "linearizedBaseContracts": [
+ 2021,
+ 1022,
+ 1059,
+ 1040
+ ],
+ "name": "IVault",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "documentation": {
+ "id": 1576,
+ "nodeType": "StructuredDocumentation",
+ "src": "2898:55:25",
+ "text": " @dev Returns the Vault's Authorizer."
+ },
+ "functionSelector": "aaabadc5",
+ "id": 1581,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1577,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2980:2:25"
+ },
+ "returnParameters": {
+ "id": 1580,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1579,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1581,
+ "src": "3006:11:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 1578,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "3006:11:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3005:13:25"
+ },
+ "scope": 2021,
+ "src": "2958:61:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1582,
+ "nodeType": "StructuredDocumentation",
+ "src": "3025:175:25",
+ "text": " @dev Sets a new Authorizer for the Vault. The caller must be allowed by the current Authorizer to do this.\n Emits an `AuthorizerChanged` event."
+ },
+ "functionSelector": "058a628f",
+ "id": 1587,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1585,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1584,
+ "mutability": "mutable",
+ "name": "newAuthorizer",
+ "nodeType": "VariableDeclaration",
+ "scope": 1587,
+ "src": "3228:25:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 1583,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "3228:11:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3227:27:25"
+ },
+ "returnParameters": {
+ "id": 1586,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3263:0:25"
+ },
+ "scope": 2021,
+ "src": "3205:59:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1588,
+ "nodeType": "StructuredDocumentation",
+ "src": "3270:80:25",
+ "text": " @dev Emitted when a new authorizer is set by `setAuthorizer`."
+ },
+ "id": 1592,
+ "name": "AuthorizerChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1591,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1590,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "newAuthorizer",
+ "nodeType": "VariableDeclaration",
+ "scope": 1592,
+ "src": "3379:33:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 1589,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "3379:11:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3378:35:25"
+ },
+ "src": "3355:59:25"
+ },
+ {
+ "documentation": {
+ "id": 1593,
+ "nodeType": "StructuredDocumentation",
+ "src": "4510:99:25",
+ "text": " @dev Returns true if `user` has approved `relayer` to act as a relayer for them."
+ },
+ "functionSelector": "fec90d72",
+ "id": 1602,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "hasApprovedRelayer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1598,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1595,
+ "mutability": "mutable",
+ "name": "user",
+ "nodeType": "VariableDeclaration",
+ "scope": 1602,
+ "src": "4642:12:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1594,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4642:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1597,
+ "mutability": "mutable",
+ "name": "relayer",
+ "nodeType": "VariableDeclaration",
+ "scope": 1602,
+ "src": "4656:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1596,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4656:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4641:31:25"
+ },
+ "returnParameters": {
+ "id": 1601,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1600,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1602,
+ "src": "4696:4:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1599,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "4696:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4695:6:25"
+ },
+ "scope": 2021,
+ "src": "4614:88:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1603,
+ "nodeType": "StructuredDocumentation",
+ "src": "4708:178:25",
+ "text": " @dev Allows `relayer` to act as a relayer for `sender` if `approved` is true, and disallows it otherwise.\n Emits a `RelayerApprovalChanged` event."
+ },
+ "functionSelector": "fa6e671d",
+ "id": 1612,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setRelayerApproval",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1610,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1605,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1612,
+ "src": "4928:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1604,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4928:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1607,
+ "mutability": "mutable",
+ "name": "relayer",
+ "nodeType": "VariableDeclaration",
+ "scope": 1612,
+ "src": "4952:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1606,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4952:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1609,
+ "mutability": "mutable",
+ "name": "approved",
+ "nodeType": "VariableDeclaration",
+ "scope": 1612,
+ "src": "4977:13:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1608,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "4977:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4918:78:25"
+ },
+ "returnParameters": {
+ "id": 1611,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5005:0:25"
+ },
+ "scope": 2021,
+ "src": "4891:115:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1613,
+ "nodeType": "StructuredDocumentation",
+ "src": "5012:104:25",
+ "text": " @dev Emitted every time a relayer is approved or disapproved by `setRelayerApproval`."
+ },
+ "id": 1621,
+ "name": "RelayerApprovalChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1620,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1615,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "relayer",
+ "nodeType": "VariableDeclaration",
+ "scope": 1621,
+ "src": "5150:23:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1614,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5150:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1617,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1621,
+ "src": "5175:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1616,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5175:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1619,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "approved",
+ "nodeType": "VariableDeclaration",
+ "scope": 1621,
+ "src": "5199:13:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1618,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "5199:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5149:64:25"
+ },
+ "src": "5121:93:25"
+ },
+ {
+ "documentation": {
+ "id": 1622,
+ "nodeType": "StructuredDocumentation",
+ "src": "5922:78:25",
+ "text": " @dev Returns `user`'s Internal Balance for a set of tokens."
+ },
+ "functionSelector": "0f5a6efa",
+ "id": 1633,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getInternalBalance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1628,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1624,
+ "mutability": "mutable",
+ "name": "user",
+ "nodeType": "VariableDeclaration",
+ "scope": 1633,
+ "src": "6033:12:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1623,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "6033:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1627,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1633,
+ "src": "6047:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1625,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "6047:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1626,
+ "nodeType": "ArrayTypeName",
+ "src": "6047:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6032:38:25"
+ },
+ "returnParameters": {
+ "id": 1632,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1631,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1633,
+ "src": "6094:16:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1629,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6094:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1630,
+ "nodeType": "ArrayTypeName",
+ "src": "6094:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6093:18:25"
+ },
+ "scope": 2021,
+ "src": "6005:107:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1634,
+ "nodeType": "StructuredDocumentation",
+ "src": "6118:416:25",
+ "text": " @dev Performs a set of user balance operations, which involve Internal Balance (deposit, withdraw or transfer)\n and plain ERC20 transfers using the Vault's allowance. This last feature is particularly useful for relayers, as\n it lets integrators reuse a user's Vault allowance.\n For each operation, if the caller is not `sender`, it must be an authorized relayer for them."
+ },
+ "functionSelector": "0e8e3e84",
+ "id": 1640,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "manageUserBalance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1638,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1637,
+ "mutability": "mutable",
+ "name": "ops",
+ "nodeType": "VariableDeclaration",
+ "scope": 1640,
+ "src": "6566:26:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.UserBalanceOp[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1635,
+ "name": "UserBalanceOp",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1651,
+ "src": "6566:13:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_UserBalanceOp_$1651_storage_ptr",
+ "typeString": "struct IVault.UserBalanceOp"
+ }
+ },
+ "id": 1636,
+ "nodeType": "ArrayTypeName",
+ "src": "6566:15:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_storage_$dyn_storage_ptr",
+ "typeString": "struct IVault.UserBalanceOp[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6565:28:25"
+ },
+ "returnParameters": {
+ "id": 1639,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "6610:0:25"
+ },
+ "scope": 2021,
+ "src": "6539:72:25",
+ "stateMutability": "payable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "canonicalName": "IVault.UserBalanceOp",
+ "id": 1651,
+ "members": [
+ {
+ "constant": false,
+ "id": 1642,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 1651,
+ "src": "6828:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_UserBalanceOpKind_$1656",
+ "typeString": "enum IVault.UserBalanceOpKind"
+ },
+ "typeName": {
+ "id": 1641,
+ "name": "UserBalanceOpKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1656,
+ "src": "6828:17:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_UserBalanceOpKind_$1656",
+ "typeString": "enum IVault.UserBalanceOpKind"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1644,
+ "mutability": "mutable",
+ "name": "asset",
+ "nodeType": "VariableDeclaration",
+ "scope": 1651,
+ "src": "6860:12:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ },
+ "typeName": {
+ "id": 1643,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "6860:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1646,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1651,
+ "src": "6882:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1645,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6882:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1648,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1651,
+ "src": "6906:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1647,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "6906:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1650,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1651,
+ "src": "6930:25:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ "typeName": {
+ "id": 1649,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "6930:15:25",
+ "stateMutability": "payable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "UserBalanceOp",
+ "nodeType": "StructDefinition",
+ "scope": 2021,
+ "src": "6797:165:25",
+ "visibility": "public"
+ },
+ {
+ "canonicalName": "IVault.UserBalanceOpKind",
+ "id": 1656,
+ "members": [
+ {
+ "id": 1652,
+ "name": "DEPOSIT_INTERNAL",
+ "nodeType": "EnumValue",
+ "src": "8600:16:25"
+ },
+ {
+ "id": 1653,
+ "name": "WITHDRAW_INTERNAL",
+ "nodeType": "EnumValue",
+ "src": "8618:17:25"
+ },
+ {
+ "id": 1654,
+ "name": "TRANSFER_INTERNAL",
+ "nodeType": "EnumValue",
+ "src": "8637:17:25"
+ },
+ {
+ "id": 1655,
+ "name": "TRANSFER_EXTERNAL",
+ "nodeType": "EnumValue",
+ "src": "8656:17:25"
+ }
+ ],
+ "name": "UserBalanceOpKind",
+ "nodeType": "EnumDefinition",
+ "src": "8575:100:25"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1657,
+ "nodeType": "StructuredDocumentation",
+ "src": "8681:317:25",
+ "text": " @dev Emitted when a user's Internal Balance changes, either from calls to `manageUserBalance`, or through\n interacting with Pools using Internal Balance.\n Because Internal Balance works exclusively with ERC20 tokens, ETH deposits and withdrawals will use the WETH\n address."
+ },
+ "id": 1665,
+ "name": "InternalBalanceChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1664,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1659,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "user",
+ "nodeType": "VariableDeclaration",
+ "scope": 1665,
+ "src": "9032:20:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1658,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9032:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1661,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 1665,
+ "src": "9054:20:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1660,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "9054:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1663,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "delta",
+ "nodeType": "VariableDeclaration",
+ "scope": 1665,
+ "src": "9076:12:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 1662,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9076:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9031:58:25"
+ },
+ "src": "9003:87:25"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1666,
+ "nodeType": "StructuredDocumentation",
+ "src": "9096:131:25",
+ "text": " @dev Emitted when a user's Vault ERC20 allowance is used by the Vault to transfer tokens to an external account."
+ },
+ "id": 1676,
+ "name": "ExternalBalanceTransfer",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1675,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1668,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 1676,
+ "src": "9262:20:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1667,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "9262:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1670,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1676,
+ "src": "9284:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1669,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9284:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1672,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1676,
+ "src": "9308:17:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1671,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9308:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1674,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1676,
+ "src": "9327:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1673,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9327:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9261:81:25"
+ },
+ "src": "9232:111:25"
+ },
+ {
+ "canonicalName": "IVault.PoolSpecialization",
+ "id": 1680,
+ "members": [
+ {
+ "id": 1677,
+ "name": "GENERAL",
+ "nodeType": "EnumValue",
+ "src": "10449:7:25"
+ },
+ {
+ "id": 1678,
+ "name": "MINIMAL_SWAP_INFO",
+ "nodeType": "EnumValue",
+ "src": "10458:17:25"
+ },
+ {
+ "id": 1679,
+ "name": "TWO_TOKEN",
+ "nodeType": "EnumValue",
+ "src": "10477:9:25"
+ }
+ ],
+ "name": "PoolSpecialization",
+ "nodeType": "EnumDefinition",
+ "src": "10423:65:25"
+ },
+ {
+ "documentation": {
+ "id": 1681,
+ "nodeType": "StructuredDocumentation",
+ "src": "10494:702:25",
+ "text": " @dev Registers the caller account as a Pool with a given specialization setting. Returns the Pool's ID, which\n is used in all Pool-related functions. Pools cannot be deregistered, nor can the Pool's specialization be\n changed.\n The caller is expected to be a smart contract that implements either `IGeneralPool` or `IMinimalSwapInfoPool`,\n depending on the chosen specialization setting. This contract is known as the Pool's contract.\n Note that the same contract may register itself as multiple Pools with unique Pool IDs, or in other words,\n multiple Pools may share the same contract.\n Emits a `PoolRegistered` event."
+ },
+ "functionSelector": "09b2760f",
+ "id": 1688,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "registerPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1684,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1683,
+ "mutability": "mutable",
+ "name": "specialization",
+ "nodeType": "VariableDeclaration",
+ "scope": 1688,
+ "src": "11223:33:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ },
+ "typeName": {
+ "id": 1682,
+ "name": "PoolSpecialization",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1680,
+ "src": "11223:18:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11222:35:25"
+ },
+ "returnParameters": {
+ "id": 1687,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1686,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1688,
+ "src": "11276:7:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1685,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "11276:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11275:9:25"
+ },
+ "scope": 2021,
+ "src": "11201:84:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1689,
+ "nodeType": "StructuredDocumentation",
+ "src": "11291:84:25",
+ "text": " @dev Emitted when a Pool is registered by calling `registerPool`."
+ },
+ "id": 1697,
+ "name": "PoolRegistered",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1696,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1691,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1697,
+ "src": "11401:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1690,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "11401:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1693,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "poolAddress",
+ "nodeType": "VariableDeclaration",
+ "scope": 1697,
+ "src": "11425:27:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1692,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "11425:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1695,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "specialization",
+ "nodeType": "VariableDeclaration",
+ "scope": 1697,
+ "src": "11454:33:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ },
+ "typeName": {
+ "id": 1694,
+ "name": "PoolSpecialization",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1680,
+ "src": "11454:18:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11400:88:25"
+ },
+ "src": "11380:109:25"
+ },
+ {
+ "documentation": {
+ "id": 1698,
+ "nodeType": "StructuredDocumentation",
+ "src": "11495:85:25",
+ "text": " @dev Returns a Pool's contract address and specialization setting."
+ },
+ "functionSelector": "f6c00927",
+ "id": 1707,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1701,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1700,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1707,
+ "src": "11602:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1699,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "11602:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11601:16:25"
+ },
+ "returnParameters": {
+ "id": 1706,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1703,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1707,
+ "src": "11641:7:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1702,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "11641:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1705,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1707,
+ "src": "11650:18:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ },
+ "typeName": {
+ "id": 1704,
+ "name": "PoolSpecialization",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1680,
+ "src": "11650:18:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11640:29:25"
+ },
+ "scope": 2021,
+ "src": "11585:85:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1708,
+ "nodeType": "StructuredDocumentation",
+ "src": "11676:1422:25",
+ "text": " @dev Registers `tokens` for the `poolId` Pool. Must be called by the Pool's contract.\n Pools can only interact with tokens they have registered. Users join a Pool by transferring registered tokens,\n exit by receiving registered tokens, and can only swap registered tokens.\n Each token can only be registered once. For Pools with the Two Token specialization, `tokens` must have a length\n of two, that is, both tokens must be registered in the same `registerTokens` call, and they must be sorted in\n ascending order.\n The `tokens` and `assetManagers` arrays must have the same length, and each entry in these indicates the Asset\n Manager for the corresponding token. Asset Managers can manage a Pool's tokens via `managePoolBalance`,\n depositing and withdrawing them directly, and can even set their balance to arbitrary amounts. They are therefore\n expected to be highly secured smart contracts with sound design principles, and the decision to register an\n Asset Manager should not be made lightly.\n Pools can choose not to assign an Asset Manager to a given token by passing in the zero address. Once an Asset\n Manager is set, it cannot be changed except by deregistering the associated token and registering again with a\n different Asset Manager.\n Emits a `TokensRegistered` event."
+ },
+ "functionSelector": "66a9c7d2",
+ "id": 1719,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "registerTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1717,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1710,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1719,
+ "src": "13136:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1709,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "13136:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1713,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1719,
+ "src": "13160:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1711,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "13160:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1712,
+ "nodeType": "ArrayTypeName",
+ "src": "13160:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1716,
+ "mutability": "mutable",
+ "name": "assetManagers",
+ "nodeType": "VariableDeclaration",
+ "scope": 1719,
+ "src": "13192:30:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1714,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "13192:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 1715,
+ "nodeType": "ArrayTypeName",
+ "src": "13192:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
+ "typeString": "address[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13126:102:25"
+ },
+ "returnParameters": {
+ "id": 1718,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "13237:0:25"
+ },
+ "scope": 2021,
+ "src": "13103:135:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1720,
+ "nodeType": "StructuredDocumentation",
+ "src": "13244:89:25",
+ "text": " @dev Emitted when a Pool registers tokens by calling `registerTokens`."
+ },
+ "id": 1730,
+ "name": "TokensRegistered",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1729,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1722,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1730,
+ "src": "13361:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1721,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "13361:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1725,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1730,
+ "src": "13385:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1723,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "13385:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1724,
+ "nodeType": "ArrayTypeName",
+ "src": "13385:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1728,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "assetManagers",
+ "nodeType": "VariableDeclaration",
+ "scope": 1730,
+ "src": "13402:23:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1726,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "13402:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 1727,
+ "nodeType": "ArrayTypeName",
+ "src": "13402:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
+ "typeString": "address[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13360:66:25"
+ },
+ "src": "13338:89:25"
+ },
+ {
+ "documentation": {
+ "id": 1731,
+ "nodeType": "StructuredDocumentation",
+ "src": "13433:567:25",
+ "text": " @dev Deregisters `tokens` for the `poolId` Pool. Must be called by the Pool's contract.\n Only registered tokens (via `registerTokens`) can be deregistered. Additionally, they must have zero total\n balance. For Pools with the Two Token specialization, `tokens` must have a length of two, that is, both tokens\n must be deregistered in the same `deregisterTokens` call.\n A deregistered token can be re-registered later on, possibly with a different Asset Manager.\n Emits a `TokensDeregistered` event."
+ },
+ "functionSelector": "7d3aeb96",
+ "id": 1739,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "deregisterTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1737,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1733,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1739,
+ "src": "14031:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1732,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "14031:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1736,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1739,
+ "src": "14047:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1734,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "14047:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1735,
+ "nodeType": "ArrayTypeName",
+ "src": "14047:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "14030:40:25"
+ },
+ "returnParameters": {
+ "id": 1738,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "14079:0:25"
+ },
+ "scope": 2021,
+ "src": "14005:75:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1740,
+ "nodeType": "StructuredDocumentation",
+ "src": "14086:93:25",
+ "text": " @dev Emitted when a Pool deregisters tokens by calling `deregisterTokens`."
+ },
+ "id": 1747,
+ "name": "TokensDeregistered",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1746,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1742,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1747,
+ "src": "14209:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1741,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "14209:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1745,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1747,
+ "src": "14233:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1743,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "14233:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1744,
+ "nodeType": "ArrayTypeName",
+ "src": "14233:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "14208:41:25"
+ },
+ "src": "14184:66:25"
+ },
+ {
+ "documentation": {
+ "id": 1748,
+ "nodeType": "StructuredDocumentation",
+ "src": "14256:1043:25",
+ "text": " @dev Returns detailed information for a Pool's registered token.\n `cash` is the number of tokens the Vault currently holds for the Pool. `managed` is the number of tokens\n withdrawn and held outside the Vault by the Pool's token Asset Manager. The Pool's total balance for `token`\n equals the sum of `cash` and `managed`.\n Internally, `cash` and `managed` are stored using 112 bits. No action can ever cause a Pool's token `cash`,\n `managed` or `total` balance to be greater than 2^112 - 1.\n `lastChangeBlock` is the number of the block in which `token`'s total balance was last modified (via either a\n join, exit, swap, or Asset Manager update). This value is useful to avoid so-called 'sandwich attacks', for\n example when developing price oracles. A change of zero (e.g. caused by a swap with amount zero) is considered a\n change for this purpose, and will update `lastChangeBlock`.\n `assetManager` is the Pool's token Asset Manager."
+ },
+ "functionSelector": "b05f8e48",
+ "id": 1763,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPoolTokenInfo",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1753,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1750,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1763,
+ "src": "15330:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1749,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "15330:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1752,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 1763,
+ "src": "15346:12:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1751,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "15346:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "15329:30:25"
+ },
+ "returnParameters": {
+ "id": 1762,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1755,
+ "mutability": "mutable",
+ "name": "cash",
+ "nodeType": "VariableDeclaration",
+ "scope": 1763,
+ "src": "15420:12:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1754,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15420:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1757,
+ "mutability": "mutable",
+ "name": "managed",
+ "nodeType": "VariableDeclaration",
+ "scope": 1763,
+ "src": "15446:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1756,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15446:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1759,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 1763,
+ "src": "15475:23:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1758,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15475:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1761,
+ "mutability": "mutable",
+ "name": "assetManager",
+ "nodeType": "VariableDeclaration",
+ "scope": 1763,
+ "src": "15512:20:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1760,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "15512:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "15406:136:25"
+ },
+ "scope": 2021,
+ "src": "15304:239:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1764,
+ "nodeType": "StructuredDocumentation",
+ "src": "15549:828:25",
+ "text": " @dev Returns a Pool's registered tokens, the total balance for each, and the latest block when *any* of\n the tokens' `balances` changed.\n The order of the `tokens` array is the same order that will be used in `joinPool`, `exitPool`, as well as in all\n Pool hooks (where applicable). Calls to `registerTokens` and `deregisterTokens` may change this order.\n If a Pool only registers tokens once, and these are sorted in ascending order, they will be stored in the same\n order as passed to `registerTokens`.\n Total balances include both tokens held by the Vault and those withdrawn by the Pool's Asset Managers. These are\n the amounts used by joins, exits and swaps. For a detailed breakdown of token balances, use `getPoolTokenInfo`\n instead."
+ },
+ "functionSelector": "f94d4668",
+ "id": 1777,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPoolTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1767,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1766,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1777,
+ "src": "16405:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1765,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "16405:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "16404:16:25"
+ },
+ "returnParameters": {
+ "id": 1776,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1770,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1777,
+ "src": "16481:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1768,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "16481:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1769,
+ "nodeType": "ArrayTypeName",
+ "src": "16481:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1773,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 1777,
+ "src": "16517:25:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1771,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16517:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1772,
+ "nodeType": "ArrayTypeName",
+ "src": "16517:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1775,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 1777,
+ "src": "16556:23:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1774,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16556:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "16467:122:25"
+ },
+ "scope": 2021,
+ "src": "16382:208:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1778,
+ "nodeType": "StructuredDocumentation",
+ "src": "16596:2304:25",
+ "text": " @dev Called by users to join a Pool, which transfers tokens from `sender` into the Pool's balance. This will\n trigger custom Pool behavior, which will typically grant something in return to `recipient` - often tokenized\n Pool shares.\n If the caller is not `sender`, it must be an authorized relayer for them.\n The `assets` and `maxAmountsIn` arrays must have the same length, and each entry indicates the maximum amount\n to send for each asset. The amounts to send are decided by the Pool and not the Vault: it just enforces\n these maximums.\n If joining a Pool that holds WETH, it is possible to send ETH directly: the Vault will do the wrapping. To enable\n this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead of the\n WETH address. Note that it is not possible to combine ETH and WETH in the same join. Any excess ETH will be sent\n back to the caller (not the sender, which is important for relayers).\n `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when\n interacting with Pools that register and deregister tokens frequently. If sending ETH however, the array must be\n sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the final\n `assets` array might not be sorted. Pools with no registered tokens cannot be joined.\n If `fromInternalBalance` is true, the caller's Internal Balance will be preferred: ERC20 transfers will only\n be made for the difference between the requested amount and Internal Balance (if any). Note that ETH cannot be\n withdrawn from Internal Balance: attempting to do so will trigger a revert.\n This causes the Vault to call the `IBasePool.onJoinPool` hook on the Pool's contract, where Pools implement\n their own custom logic. This typically requires additional information from the user (such as the expected number\n of Pool shares). This can be encoded in the `userData` argument, which is ignored by the Vault and passed\n directly to the Pool's contract, as is `recipient`.\n Emits a `PoolBalanceChanged` event."
+ },
+ "functionSelector": "b95cac28",
+ "id": 1789,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "joinPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1787,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1780,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1789,
+ "src": "18932:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1779,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "18932:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1782,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1789,
+ "src": "18956:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1781,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "18956:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1784,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1789,
+ "src": "18980:17:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1783,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "18980:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1786,
+ "mutability": "mutable",
+ "name": "request",
+ "nodeType": "VariableDeclaration",
+ "scope": 1789,
+ "src": "19007:30:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_JoinPoolRequest_$1800_memory_ptr",
+ "typeString": "struct IVault.JoinPoolRequest"
+ },
+ "typeName": {
+ "id": 1785,
+ "name": "JoinPoolRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1800,
+ "src": "19007:15:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_JoinPoolRequest_$1800_storage_ptr",
+ "typeString": "struct IVault.JoinPoolRequest"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "18922:121:25"
+ },
+ "returnParameters": {
+ "id": 1788,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "19060:0:25"
+ },
+ "scope": 2021,
+ "src": "18905:156:25",
+ "stateMutability": "payable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "canonicalName": "IVault.JoinPoolRequest",
+ "id": 1800,
+ "members": [
+ {
+ "constant": false,
+ "id": 1792,
+ "mutability": "mutable",
+ "name": "assets",
+ "nodeType": "VariableDeclaration",
+ "scope": 1800,
+ "src": "19100:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_storage_ptr",
+ "typeString": "contract IAsset[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1790,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "19100:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "id": 1791,
+ "nodeType": "ArrayTypeName",
+ "src": "19100:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_storage_ptr",
+ "typeString": "contract IAsset[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1795,
+ "mutability": "mutable",
+ "name": "maxAmountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1800,
+ "src": "19125:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1793,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19125:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1794,
+ "nodeType": "ArrayTypeName",
+ "src": "19125:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1797,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1800,
+ "src": "19157:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1796,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "19157:5:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1799,
+ "mutability": "mutable",
+ "name": "fromInternalBalance",
+ "nodeType": "VariableDeclaration",
+ "scope": 1800,
+ "src": "19181:24:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1798,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "19181:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "JoinPoolRequest",
+ "nodeType": "StructDefinition",
+ "scope": 2021,
+ "src": "19067:145:25",
+ "visibility": "public"
+ },
+ {
+ "documentation": {
+ "id": 1801,
+ "nodeType": "StructuredDocumentation",
+ "src": "19218:2489:25",
+ "text": " @dev Called by users to exit a Pool, which transfers tokens from the Pool's balance to `recipient`. This will\n trigger custom Pool behavior, which will typically ask for something in return from `sender` - often tokenized\n Pool shares. The amount of tokens that can be withdrawn is limited by the Pool's `cash` balance (see\n `getPoolTokenInfo`).\n If the caller is not `sender`, it must be an authorized relayer for them.\n The `tokens` and `minAmountsOut` arrays must have the same length, and each entry in these indicates the minimum\n token amount to receive for each token contract. The amounts to send are decided by the Pool and not the Vault:\n it just enforces these minimums.\n If exiting a Pool that holds WETH, it is possible to receive ETH directly: the Vault will do the unwrapping. To\n enable this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead\n of the WETH address. Note that it is not possible to combine ETH and WETH in the same exit.\n `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when\n interacting with Pools that register and deregister tokens frequently. If receiving ETH however, the array must\n be sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the\n final `assets` array might not be sorted. Pools with no registered tokens cannot be exited.\n If `toInternalBalance` is true, the tokens will be deposited to `recipient`'s Internal Balance. Otherwise,\n an ERC20 transfer will be performed. Note that ETH cannot be deposited to Internal Balance: attempting to\n do so will trigger a revert.\n `minAmountsOut` is the minimum amount of tokens the user expects to get out of the Pool, for each token in the\n `tokens` array. This array must match the Pool's registered tokens.\n This causes the Vault to call the `IBasePool.onExitPool` hook on the Pool's contract, where Pools implement\n their own custom logic. This typically requires additional information from the user (such as the expected number\n of Pool shares to return). This can be encoded in the `userData` argument, which is ignored by the Vault and\n passed directly to the Pool's contract.\n Emits a `PoolBalanceChanged` event."
+ },
+ "functionSelector": "8bdb3913",
+ "id": 1812,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "exitPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1810,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1803,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1812,
+ "src": "21739:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1802,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "21739:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1805,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1812,
+ "src": "21763:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1804,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "21763:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1807,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1812,
+ "src": "21787:25:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ "typeName": {
+ "id": 1806,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "21787:15:25",
+ "stateMutability": "payable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1809,
+ "mutability": "mutable",
+ "name": "request",
+ "nodeType": "VariableDeclaration",
+ "scope": 1812,
+ "src": "21822:30:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_ExitPoolRequest_$1823_memory_ptr",
+ "typeString": "struct IVault.ExitPoolRequest"
+ },
+ "typeName": {
+ "id": 1808,
+ "name": "ExitPoolRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1823,
+ "src": "21822:15:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_ExitPoolRequest_$1823_storage_ptr",
+ "typeString": "struct IVault.ExitPoolRequest"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "21729:129:25"
+ },
+ "returnParameters": {
+ "id": 1811,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "21867:0:25"
+ },
+ "scope": 2021,
+ "src": "21712:156:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "canonicalName": "IVault.ExitPoolRequest",
+ "id": 1823,
+ "members": [
+ {
+ "constant": false,
+ "id": 1815,
+ "mutability": "mutable",
+ "name": "assets",
+ "nodeType": "VariableDeclaration",
+ "scope": 1823,
+ "src": "21907:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_storage_ptr",
+ "typeString": "contract IAsset[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1813,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "21907:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "id": 1814,
+ "nodeType": "ArrayTypeName",
+ "src": "21907:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_storage_ptr",
+ "typeString": "contract IAsset[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1818,
+ "mutability": "mutable",
+ "name": "minAmountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1823,
+ "src": "21932:23:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1816,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21932:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1817,
+ "nodeType": "ArrayTypeName",
+ "src": "21932:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1820,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1823,
+ "src": "21965:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1819,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "21965:5:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1822,
+ "mutability": "mutable",
+ "name": "toInternalBalance",
+ "nodeType": "VariableDeclaration",
+ "scope": 1823,
+ "src": "21989:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1821,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "21989:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "ExitPoolRequest",
+ "nodeType": "StructDefinition",
+ "scope": 2021,
+ "src": "21874:144:25",
+ "visibility": "public"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1824,
+ "nodeType": "StructuredDocumentation",
+ "src": "22024:116:25",
+ "text": " @dev Emitted when a user joins or exits a Pool by calling `joinPool` or `exitPool`, respectively."
+ },
+ "id": 1839,
+ "name": "PoolBalanceChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1838,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1826,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1839,
+ "src": "22179:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1825,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "22179:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1828,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "liquidityProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 1839,
+ "src": "22211:33:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1827,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "22211:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1831,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1839,
+ "src": "22254:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1829,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "22254:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1830,
+ "nodeType": "ArrayTypeName",
+ "src": "22254:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1834,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "deltas",
+ "nodeType": "VariableDeclaration",
+ "scope": 1839,
+ "src": "22279:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
+ "typeString": "int256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1832,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22279:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 1833,
+ "nodeType": "ArrayTypeName",
+ "src": "22279:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_storage_ptr",
+ "typeString": "int256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1837,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "protocolFeeAmounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1839,
+ "src": "22304:28:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1835,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22304:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1836,
+ "nodeType": "ArrayTypeName",
+ "src": "22304:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "22169:169:25"
+ },
+ "src": "22145:194:25"
+ },
+ {
+ "canonicalName": "IVault.PoolBalanceChangeKind",
+ "id": 1842,
+ "members": [
+ {
+ "id": 1840,
+ "name": "JOIN",
+ "nodeType": "EnumValue",
+ "src": "22374:4:25"
+ },
+ {
+ "id": 1841,
+ "name": "EXIT",
+ "nodeType": "EnumValue",
+ "src": "22380:4:25"
+ }
+ ],
+ "name": "PoolBalanceChangeKind",
+ "nodeType": "EnumDefinition",
+ "src": "22345:41:25"
+ },
+ {
+ "canonicalName": "IVault.SwapKind",
+ "id": 1845,
+ "members": [
+ {
+ "id": 1843,
+ "name": "GIVEN_IN",
+ "nodeType": "EnumValue",
+ "src": "25987:8:25"
+ },
+ {
+ "id": 1844,
+ "name": "GIVEN_OUT",
+ "nodeType": "EnumValue",
+ "src": "25997:9:25"
+ }
+ ],
+ "name": "SwapKind",
+ "nodeType": "EnumDefinition",
+ "src": "25971:37:25"
+ },
+ {
+ "documentation": {
+ "id": 1846,
+ "nodeType": "StructuredDocumentation",
+ "src": "26014:587:25",
+ "text": " @dev Performs a swap with a single Pool.\n If the swap is 'given in' (the number of tokens to send to the Pool is known), it returns the amount of tokens\n taken from the Pool, which must be greater than or equal to `limit`.\n If the swap is 'given out' (the number of tokens to take from the Pool is known), it returns the amount of tokens\n sent to the Pool, which must be less than or equal to `limit`.\n Internal Balance usage and the recipient are determined by the `funds` struct.\n Emits a `Swap` event."
+ },
+ "functionSelector": "52bbbe29",
+ "id": 1859,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "swap",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1855,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1848,
+ "mutability": "mutable",
+ "name": "singleSwap",
+ "nodeType": "VariableDeclaration",
+ "scope": 1859,
+ "src": "26629:28:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SingleSwap_$1872_memory_ptr",
+ "typeString": "struct IVault.SingleSwap"
+ },
+ "typeName": {
+ "id": 1847,
+ "name": "SingleSwap",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1872,
+ "src": "26629:10:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SingleSwap_$1872_storage_ptr",
+ "typeString": "struct IVault.SingleSwap"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1850,
+ "mutability": "mutable",
+ "name": "funds",
+ "nodeType": "VariableDeclaration",
+ "scope": 1859,
+ "src": "26667:27:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FundManagement_$1927_memory_ptr",
+ "typeString": "struct IVault.FundManagement"
+ },
+ "typeName": {
+ "id": 1849,
+ "name": "FundManagement",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1927,
+ "src": "26667:14:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FundManagement_$1927_storage_ptr",
+ "typeString": "struct IVault.FundManagement"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1852,
+ "mutability": "mutable",
+ "name": "limit",
+ "nodeType": "VariableDeclaration",
+ "scope": 1859,
+ "src": "26704:13:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1851,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26704:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1854,
+ "mutability": "mutable",
+ "name": "deadline",
+ "nodeType": "VariableDeclaration",
+ "scope": 1859,
+ "src": "26727:16:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1853,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26727:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26619:130:25"
+ },
+ "returnParameters": {
+ "id": 1858,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1857,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1859,
+ "src": "26776:7:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1856,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26776:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26775:9:25"
+ },
+ "scope": 2021,
+ "src": "26606:179:25",
+ "stateMutability": "payable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "canonicalName": "IVault.SingleSwap",
+ "id": 1872,
+ "members": [
+ {
+ "constant": false,
+ "id": 1861,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1872,
+ "src": "27369:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1860,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "27369:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1863,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 1872,
+ "src": "27393:13:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ },
+ "typeName": {
+ "id": 1862,
+ "name": "SwapKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1845,
+ "src": "27393:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1865,
+ "mutability": "mutable",
+ "name": "assetIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1872,
+ "src": "27416:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ },
+ "typeName": {
+ "id": 1864,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "27416:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1867,
+ "mutability": "mutable",
+ "name": "assetOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1872,
+ "src": "27440:15:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ },
+ "typeName": {
+ "id": 1866,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "27440:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1869,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1872,
+ "src": "27465:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1868,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27465:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1871,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1872,
+ "src": "27489:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1870,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "27489:5:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "SingleSwap",
+ "nodeType": "StructDefinition",
+ "scope": 2021,
+ "src": "27341:169:25",
+ "visibility": "public"
+ },
+ {
+ "documentation": {
+ "id": 1873,
+ "nodeType": "StructuredDocumentation",
+ "src": "27516:1980:25",
+ "text": " @dev Performs a series of swaps with one or multiple Pools. In each individual swap, the caller determines either\n the amount of tokens sent to or received from the Pool, depending on the `kind` value.\n Returns an array with the net Vault asset balance deltas. Positive amounts represent tokens (or ETH) sent to the\n Vault, and negative amounts represent tokens (or ETH) sent by the Vault. Each delta corresponds to the asset at\n the same index in the `assets` array.\n Swaps are executed sequentially, in the order specified by the `swaps` array. Each array element describes a\n Pool, the token to be sent to this Pool, the token to receive from it, and an amount that is either `amountIn` or\n `amountOut` depending on the swap kind.\n Multihop swaps can be executed by passing an `amount` value of zero for a swap. This will cause the amount in/out\n of the previous swap to be used as the amount in for the current one. In a 'given in' swap, 'tokenIn' must equal\n the previous swap's `tokenOut`. For a 'given out' swap, `tokenOut` must equal the previous swap's `tokenIn`.\n The `assets` array contains the addresses of all assets involved in the swaps. These are either token addresses,\n or the IAsset sentinel value for ETH (the zero address). Each entry in the `swaps` array specifies tokens in and\n out by referencing an index in `assets`. Note that Pools never interact with ETH directly: it will be wrapped to\n or unwrapped from WETH by the Vault.\n Internal Balance usage, sender, and recipient are determined by the `funds` struct. The `limits` array specifies\n the minimum or maximum amount of each token the vault is allowed to transfer.\n `batchSwap` can be used to make a single swap, like `swap` does, but doing so requires more gas than the\n equivalent `swap` call.\n Emits `Swap` events."
+ },
+ "functionSelector": "945bcec9",
+ "id": 1894,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "batchSwap",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1889,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1875,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 1894,
+ "src": "29529:13:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ },
+ "typeName": {
+ "id": 1874,
+ "name": "SwapKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1845,
+ "src": "29529:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1878,
+ "mutability": "mutable",
+ "name": "swaps",
+ "nodeType": "VariableDeclaration",
+ "scope": 1894,
+ "src": "29552:28:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_BatchSwapStep_$1905_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.BatchSwapStep[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1876,
+ "name": "BatchSwapStep",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1905,
+ "src": "29552:13:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_BatchSwapStep_$1905_storage_ptr",
+ "typeString": "struct IVault.BatchSwapStep"
+ }
+ },
+ "id": 1877,
+ "nodeType": "ArrayTypeName",
+ "src": "29552:15:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_BatchSwapStep_$1905_storage_$dyn_storage_ptr",
+ "typeString": "struct IVault.BatchSwapStep[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1881,
+ "mutability": "mutable",
+ "name": "assets",
+ "nodeType": "VariableDeclaration",
+ "scope": 1894,
+ "src": "29590:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_memory_ptr",
+ "typeString": "contract IAsset[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1879,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "29590:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "id": 1880,
+ "nodeType": "ArrayTypeName",
+ "src": "29590:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_storage_ptr",
+ "typeString": "contract IAsset[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1883,
+ "mutability": "mutable",
+ "name": "funds",
+ "nodeType": "VariableDeclaration",
+ "scope": 1894,
+ "src": "29622:27:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FundManagement_$1927_memory_ptr",
+ "typeString": "struct IVault.FundManagement"
+ },
+ "typeName": {
+ "id": 1882,
+ "name": "FundManagement",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1927,
+ "src": "29622:14:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FundManagement_$1927_storage_ptr",
+ "typeString": "struct IVault.FundManagement"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1886,
+ "mutability": "mutable",
+ "name": "limits",
+ "nodeType": "VariableDeclaration",
+ "scope": 1894,
+ "src": "29659:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
+ "typeString": "int256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1884,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29659:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 1885,
+ "nodeType": "ArrayTypeName",
+ "src": "29659:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_storage_ptr",
+ "typeString": "int256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1888,
+ "mutability": "mutable",
+ "name": "deadline",
+ "nodeType": "VariableDeclaration",
+ "scope": 1894,
+ "src": "29691:16:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1887,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29691:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29519:194:25"
+ },
+ "returnParameters": {
+ "id": 1893,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1892,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 1894,
+ "src": "29740:15:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
+ "typeString": "int256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1890,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29740:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 1891,
+ "nodeType": "ArrayTypeName",
+ "src": "29740:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_storage_ptr",
+ "typeString": "int256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29739:17:25"
+ },
+ "scope": 2021,
+ "src": "29501:256:25",
+ "stateMutability": "payable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "canonicalName": "IVault.BatchSwapStep",
+ "id": 1905,
+ "members": [
+ {
+ "constant": false,
+ "id": 1896,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1905,
+ "src": "30350:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1895,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "30350:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1898,
+ "mutability": "mutable",
+ "name": "assetInIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 1905,
+ "src": "30374:20:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1897,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30374:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1900,
+ "mutability": "mutable",
+ "name": "assetOutIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 1905,
+ "src": "30404:21:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1899,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30404:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1902,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1905,
+ "src": "30435:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1901,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30435:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1904,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1905,
+ "src": "30459:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1903,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "30459:5:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "BatchSwapStep",
+ "nodeType": "StructDefinition",
+ "scope": 2021,
+ "src": "30319:161:25",
+ "visibility": "public"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1906,
+ "nodeType": "StructuredDocumentation",
+ "src": "30486:92:25",
+ "text": " @dev Emitted for each individual swap performed by `swap` or `batchSwap`."
+ },
+ "id": 1918,
+ "name": "Swap",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1917,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1908,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1918,
+ "src": "30603:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1907,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "30603:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1910,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "tokenIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1918,
+ "src": "30635:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1909,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "30635:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1912,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "tokenOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1918,
+ "src": "30667:23:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1911,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "30667:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1914,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "amountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 1918,
+ "src": "30700:16:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1913,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30700:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1916,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "amountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 1918,
+ "src": "30726:17:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1915,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30726:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "30593:156:25"
+ },
+ "src": "30583:167:25"
+ },
+ {
+ "canonicalName": "IVault.FundManagement",
+ "id": 1927,
+ "members": [
+ {
+ "constant": false,
+ "id": 1920,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 1927,
+ "src": "31713:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1919,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "31713:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1922,
+ "mutability": "mutable",
+ "name": "fromInternalBalance",
+ "nodeType": "VariableDeclaration",
+ "scope": 1927,
+ "src": "31737:24:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1921,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "31737:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1924,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1927,
+ "src": "31771:25:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ "typeName": {
+ "id": 1923,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "31771:15:25",
+ "stateMutability": "payable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1926,
+ "mutability": "mutable",
+ "name": "toInternalBalance",
+ "nodeType": "VariableDeclaration",
+ "scope": 1927,
+ "src": "31806:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 1925,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "31806:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "FundManagement",
+ "nodeType": "StructDefinition",
+ "scope": 2021,
+ "src": "31681:154:25",
+ "visibility": "public"
+ },
+ {
+ "documentation": {
+ "id": 1928,
+ "nodeType": "StructuredDocumentation",
+ "src": "31841:1027:25",
+ "text": " @dev Simulates a call to `batchSwap`, returning an array of Vault asset deltas. Calls to `swap` cannot be\n simulated directly, but an equivalent `batchSwap` call can and will yield the exact same result.\n Each element in the array corresponds to the asset at the same index, and indicates the number of tokens (or ETH)\n the Vault would take from the sender (if positive) or send to the recipient (if negative). The arguments it\n receives are the same that an equivalent `batchSwap` call would receive.\n Unlike `batchSwap`, this function performs no checks on the sender or recipient field in the `funds` struct.\n This makes it suitable to be called by off-chain applications via eth_call without needing to hold tokens,\n approve them for the Vault, or even know a user's address.\n Note that this function is not 'view' (due to implementation details): the client code must explicitly execute\n eth_call instead of eth_sendTransaction."
+ },
+ "functionSelector": "f84d066e",
+ "id": 1944,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "queryBatchSwap",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1939,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1930,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 1944,
+ "src": "32906:13:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ },
+ "typeName": {
+ "id": 1929,
+ "name": "SwapKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1845,
+ "src": "32906:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1933,
+ "mutability": "mutable",
+ "name": "swaps",
+ "nodeType": "VariableDeclaration",
+ "scope": 1944,
+ "src": "32929:28:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_BatchSwapStep_$1905_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.BatchSwapStep[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1931,
+ "name": "BatchSwapStep",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1905,
+ "src": "32929:13:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_BatchSwapStep_$1905_storage_ptr",
+ "typeString": "struct IVault.BatchSwapStep"
+ }
+ },
+ "id": 1932,
+ "nodeType": "ArrayTypeName",
+ "src": "32929:15:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_BatchSwapStep_$1905_storage_$dyn_storage_ptr",
+ "typeString": "struct IVault.BatchSwapStep[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1936,
+ "mutability": "mutable",
+ "name": "assets",
+ "nodeType": "VariableDeclaration",
+ "scope": 1944,
+ "src": "32967:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_memory_ptr",
+ "typeString": "contract IAsset[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1934,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "32967:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "id": 1935,
+ "nodeType": "ArrayTypeName",
+ "src": "32967:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_storage_ptr",
+ "typeString": "contract IAsset[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1938,
+ "mutability": "mutable",
+ "name": "funds",
+ "nodeType": "VariableDeclaration",
+ "scope": 1944,
+ "src": "32999:27:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FundManagement_$1927_memory_ptr",
+ "typeString": "struct IVault.FundManagement"
+ },
+ "typeName": {
+ "id": 1937,
+ "name": "FundManagement",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1927,
+ "src": "32999:14:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FundManagement_$1927_storage_ptr",
+ "typeString": "struct IVault.FundManagement"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "32896:136:25"
+ },
+ "returnParameters": {
+ "id": 1943,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1942,
+ "mutability": "mutable",
+ "name": "assetDeltas",
+ "nodeType": "VariableDeclaration",
+ "scope": 1944,
+ "src": "33051:27:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_memory_ptr",
+ "typeString": "int256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1940,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33051:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 1941,
+ "nodeType": "ArrayTypeName",
+ "src": "33051:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_int256_$dyn_storage_ptr",
+ "typeString": "int256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33050:29:25"
+ },
+ "scope": 2021,
+ "src": "32873:207:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 1945,
+ "nodeType": "StructuredDocumentation",
+ "src": "33106:604:25",
+ "text": " @dev Performs a 'flash loan', sending tokens to `recipient`, executing the `receiveFlashLoan` hook on it,\n and then reverting unless the tokens plus a proportional protocol fee have been returned.\n The `tokens` and `amounts` arrays must have the same length, and each entry in these indicates the loan amount\n for each token contract. `tokens` must be sorted in ascending order.\n The 'userData' field is ignored by the Vault, and forwarded as-is to `recipient` as part of the\n `receiveFlashLoan` call.\n Emits `FlashLoan` events."
+ },
+ "functionSelector": "5c38449e",
+ "id": 1958,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "flashLoan",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1956,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1947,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1958,
+ "src": "33743:29:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IFlashLoanRecipient_$1444",
+ "typeString": "contract IFlashLoanRecipient"
+ },
+ "typeName": {
+ "id": 1946,
+ "name": "IFlashLoanRecipient",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1444,
+ "src": "33743:19:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IFlashLoanRecipient_$1444",
+ "typeString": "contract IFlashLoanRecipient"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1950,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 1958,
+ "src": "33782:22:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1948,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "33782:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 1949,
+ "nodeType": "ArrayTypeName",
+ "src": "33782:8:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1953,
+ "mutability": "mutable",
+ "name": "amounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 1958,
+ "src": "33814:24:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1951,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33814:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 1952,
+ "nodeType": "ArrayTypeName",
+ "src": "33814:9:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1955,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 1958,
+ "src": "33848:21:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 1954,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "33848:5:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33733:142:25"
+ },
+ "returnParameters": {
+ "id": 1957,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "33884:0:25"
+ },
+ "scope": 2021,
+ "src": "33715:170:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1959,
+ "nodeType": "StructuredDocumentation",
+ "src": "33891:88:25",
+ "text": " @dev Emitted for each individual flash loan performed by `flashLoan`."
+ },
+ "id": 1969,
+ "name": "FlashLoan",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 1968,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1961,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 1969,
+ "src": "34000:37:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IFlashLoanRecipient_$1444",
+ "typeString": "contract IFlashLoanRecipient"
+ },
+ "typeName": {
+ "id": 1960,
+ "name": "IFlashLoanRecipient",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1444,
+ "src": "34000:19:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IFlashLoanRecipient_$1444",
+ "typeString": "contract IFlashLoanRecipient"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1963,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 1969,
+ "src": "34039:20:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1962,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "34039:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1965,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1969,
+ "src": "34061:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1964,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "34061:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1967,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "feeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1969,
+ "src": "34077:17:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1966,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "34077:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33999:96:25"
+ },
+ "src": "33984:112:25"
+ },
+ {
+ "documentation": {
+ "id": 1970,
+ "nodeType": "StructuredDocumentation",
+ "src": "35092:434:25",
+ "text": " @dev Performs a set of Pool balance operations, which may be either withdrawals, deposits or updates.\n Pool Balance management features batching, which means a single contract call can be used to perform multiple\n operations of different kinds, with different Pools and tokens, at once.\n For each operation, the caller must be registered as the Asset Manager for `token` in `poolId`."
+ },
+ "functionSelector": "e6c46092",
+ "id": 1976,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "managePoolBalance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 1974,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1973,
+ "mutability": "mutable",
+ "name": "ops",
+ "nodeType": "VariableDeclaration",
+ "scope": 1976,
+ "src": "35558:26:25",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_PoolBalanceOp_$1985_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.PoolBalanceOp[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 1971,
+ "name": "PoolBalanceOp",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1985,
+ "src": "35558:13:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_PoolBalanceOp_$1985_storage_ptr",
+ "typeString": "struct IVault.PoolBalanceOp"
+ }
+ },
+ "id": 1972,
+ "nodeType": "ArrayTypeName",
+ "src": "35558:15:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_PoolBalanceOp_$1985_storage_$dyn_storage_ptr",
+ "typeString": "struct IVault.PoolBalanceOp[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "35557:28:25"
+ },
+ "returnParameters": {
+ "id": 1975,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "35594:0:25"
+ },
+ "scope": 2021,
+ "src": "35531:64:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "canonicalName": "IVault.PoolBalanceOp",
+ "id": 1985,
+ "members": [
+ {
+ "constant": false,
+ "id": 1978,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 1985,
+ "src": "35632:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolBalanceOpKind_$1989",
+ "typeString": "enum IVault.PoolBalanceOpKind"
+ },
+ "typeName": {
+ "id": 1977,
+ "name": "PoolBalanceOpKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1989,
+ "src": "35632:17:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolBalanceOpKind_$1989",
+ "typeString": "enum IVault.PoolBalanceOpKind"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1980,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 1985,
+ "src": "35664:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1979,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "35664:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1982,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 1985,
+ "src": "35688:12:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1981,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "35688:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1984,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 1985,
+ "src": "35710:14:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 1983,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35710:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "PoolBalanceOp",
+ "nodeType": "StructDefinition",
+ "scope": 2021,
+ "src": "35601:130:25",
+ "visibility": "public"
+ },
+ {
+ "canonicalName": "IVault.PoolBalanceOpKind",
+ "id": 1989,
+ "members": [
+ {
+ "id": 1986,
+ "name": "WITHDRAW",
+ "nodeType": "EnumValue",
+ "src": "36253:8:25"
+ },
+ {
+ "id": 1987,
+ "name": "DEPOSIT",
+ "nodeType": "EnumValue",
+ "src": "36263:7:25"
+ },
+ {
+ "id": 1988,
+ "name": "UPDATE",
+ "nodeType": "EnumValue",
+ "src": "36272:6:25"
+ }
+ ],
+ "name": "PoolBalanceOpKind",
+ "nodeType": "EnumDefinition",
+ "src": "36228:52:25"
+ },
+ {
+ "anonymous": false,
+ "documentation": {
+ "id": 1990,
+ "nodeType": "StructuredDocumentation",
+ "src": "36286:109:25",
+ "text": " @dev Emitted when a Pool's token Asset Manager alters its balance via `managePoolBalance`."
+ },
+ "id": 2002,
+ "name": "PoolBalanceManaged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 2001,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 1992,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 2002,
+ "src": "36434:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 1991,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "36434:7:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1994,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "assetManager",
+ "nodeType": "VariableDeclaration",
+ "scope": 2002,
+ "src": "36466:28:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 1993,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "36466:7:25",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1996,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 2002,
+ "src": "36504:20:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 1995,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "36504:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 1998,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "cashDelta",
+ "nodeType": "VariableDeclaration",
+ "scope": 2002,
+ "src": "36534:16:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 1997,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36534:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2000,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "managedDelta",
+ "nodeType": "VariableDeclaration",
+ "scope": 2002,
+ "src": "36560:19:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 1999,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36560:6:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "36424:161:25"
+ },
+ "src": "36400:186:25"
+ },
+ {
+ "documentation": {
+ "id": 2003,
+ "nodeType": "StructuredDocumentation",
+ "src": "37463:64:25",
+ "text": " @dev Returns the current protocol fee module."
+ },
+ "functionSelector": "d2946c2b",
+ "id": 2008,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getProtocolFeesCollector",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2004,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "37565:2:25"
+ },
+ "returnParameters": {
+ "id": 2007,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2006,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2008,
+ "src": "37591:22:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ },
+ "typeName": {
+ "id": 2005,
+ "name": "IProtocolFeesCollector",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1556,
+ "src": "37591:22:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "37590:24:25"
+ },
+ "scope": 2021,
+ "src": "37532:83:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 2009,
+ "nodeType": "StructuredDocumentation",
+ "src": "37621:635:25",
+ "text": " @dev Safety mechanism to pause most Vault operations in the event of an emergency - typically detection of an\n error in some part of the system.\n The Vault can only be paused during an initial time period, after which pausing is forever disabled.\n While the contract is paused, the following features are disabled:\n - depositing and transferring internal balance\n - transferring external balance (using the Vault's allowance)\n - swaps\n - joining Pools\n - Asset Manager interactions\n Internal Balance can still be withdrawn, and Pools exited."
+ },
+ "functionSelector": "16c38b3c",
+ "id": 2014,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "setPaused",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2012,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2011,
+ "mutability": "mutable",
+ "name": "paused",
+ "nodeType": "VariableDeclaration",
+ "scope": 2014,
+ "src": "38280:11:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 2010,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "38280:4:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "38279:13:25"
+ },
+ "returnParameters": {
+ "id": 2013,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "38301:0:25"
+ },
+ "scope": 2021,
+ "src": "38261:41:25",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 2015,
+ "nodeType": "StructuredDocumentation",
+ "src": "38308:58:25",
+ "text": " @dev Returns the Vault's WETH instance."
+ },
+ "functionSelector": "ad5c4648",
+ "id": 2020,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "WETH",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2016,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "38384:2:25"
+ },
+ "returnParameters": {
+ "id": 2019,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2018,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2020,
+ "src": "38410:5:25",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IWETH_$1074",
+ "typeString": "contract IWETH"
+ },
+ "typeName": {
+ "id": 2017,
+ "name": "IWETH",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1074,
+ "src": "38410:5:25",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IWETH_$1074",
+ "typeString": "contract IWETH"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "38409:7:25"
+ },
+ "scope": 2021,
+ "src": "38371:46:25",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 2022,
+ "src": "1321:37155:25"
+ }
+ ],
+ "src": "688:37789:25"
+ },
+ "id": 25
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol",
+ "exportedSymbols": {
+ "BalancerPoolToken": [
+ 2230
+ ]
+ },
+ "id": 2231,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 2023,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:26"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "id": 2024,
+ "nodeType": "ImportDirective",
+ "scope": 2231,
+ "sourceUnit": 2022,
+ "src": "713:65:26",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol",
+ "id": 2025,
+ "nodeType": "ImportDirective",
+ "scope": 2231,
+ "sourceUnit": 9462,
+ "src": "780:81:26",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 2027,
+ "name": "ERC20Permit",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 9461,
+ "src": "1543:11:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ERC20Permit_$9461",
+ "typeString": "contract ERC20Permit"
+ }
+ },
+ "id": 2028,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1543:11:26"
+ }
+ ],
+ "contractDependencies": [
+ 1040,
+ 1152,
+ 1188,
+ 5478,
+ 8861,
+ 9352,
+ 9461
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 2026,
+ "nodeType": "StructuredDocumentation",
+ "src": "863:649:26",
+ "text": " @title Highly opinionated token implementation\n @author Balancer Labs\n @dev\n - Includes functions to increase and decrease allowance as a workaround\n for the well-known issue with `approve`:\n https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n - Allows for 'infinite allowance', where an allowance of 0xff..ff is not\n decreased by calls to transferFrom\n - Lets a token holder use `transferFrom` to send their own tokens,\n without first setting allowance\n - Emits 'Approval' events whenever allowance is changed by `transferFrom`\n - Assigns infinite allowance for all token holders to the Vault"
+ },
+ "fullyImplemented": true,
+ "id": 2230,
+ "linearizedBaseContracts": [
+ 2230,
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152
+ ],
+ "name": "BalancerPoolToken",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 2030,
+ "mutability": "immutable",
+ "name": "_vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 2230,
+ "src": "1561:31:26",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 2029,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "1561:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 2050,
+ "nodeType": "Block",
+ "src": "1760:31:26",
+ "statements": [
+ {
+ "expression": {
+ "id": 2048,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 2046,
+ "name": "_vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2030,
+ "src": "1770:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 2047,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2036,
+ "src": "1779:5:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "src": "1770:14:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 2049,
+ "nodeType": "ExpressionStatement",
+ "src": "1770:14:26"
+ }
+ ]
+ },
+ "id": 2051,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "id": 2039,
+ "name": "tokenName",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2032,
+ "src": "1713:9:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "id": 2040,
+ "name": "tokenSymbol",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2034,
+ "src": "1724:11:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ }
+ ],
+ "id": 2041,
+ "modifierName": {
+ "id": 2038,
+ "name": "ERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9352,
+ "src": "1707:5:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ERC20_$9352_$",
+ "typeString": "type(contract ERC20)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "1707:29:26"
+ },
+ {
+ "arguments": [
+ {
+ "id": 2043,
+ "name": "tokenName",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2032,
+ "src": "1749:9:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ }
+ ],
+ "id": 2044,
+ "modifierName": {
+ "id": 2042,
+ "name": "ERC20Permit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9461,
+ "src": "1737:11:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ERC20Permit_$9461_$",
+ "typeString": "type(contract ERC20Permit)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "1737:22:26"
+ }
+ ],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2037,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2032,
+ "mutability": "mutable",
+ "name": "tokenName",
+ "nodeType": "VariableDeclaration",
+ "scope": 2051,
+ "src": "1620:23:26",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 2031,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1620:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2034,
+ "mutability": "mutable",
+ "name": "tokenSymbol",
+ "nodeType": "VariableDeclaration",
+ "scope": 2051,
+ "src": "1653:25:26",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 2033,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1653:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2036,
+ "mutability": "mutable",
+ "name": "vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 2051,
+ "src": "1688:12:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 2035,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "1688:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1610:96:26"
+ },
+ "returnParameters": {
+ "id": 2045,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1760:0:26"
+ },
+ "scope": 2230,
+ "src": "1599:192:26",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 2058,
+ "nodeType": "Block",
+ "src": "1846:30:26",
+ "statements": [
+ {
+ "expression": {
+ "id": 2056,
+ "name": "_vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2030,
+ "src": "1863:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "functionReturnParameters": 2055,
+ "id": 2057,
+ "nodeType": "Return",
+ "src": "1856:13:26"
+ }
+ ]
+ },
+ "functionSelector": "8d928af8",
+ "id": 2059,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getVault",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2052,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1814:2:26"
+ },
+ "returnParameters": {
+ "id": 2055,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2054,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2059,
+ "src": "1838:6:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 2053,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "1838:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1837:8:26"
+ },
+ "scope": 2230,
+ "src": "1797:79:26",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 9012
+ ],
+ "body": {
+ "id": 2092,
+ "nodeType": "Block",
+ "src": "2268:164:26",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 2076,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2070,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2064,
+ "src": "2282:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2073,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2059,
+ "src": "2301:8:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 2074,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2301:10:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ ],
+ "id": 2072,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2293:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 2071,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2293:7:26",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 2075,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2293:19:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "2282:30:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 2090,
+ "nodeType": "Block",
+ "src": "2363:63:26",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2086,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2062,
+ "src": "2400:5:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 2087,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2064,
+ "src": "2407:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "expression": {
+ "id": 2084,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "2384:5:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_BalancerPoolToken_$2230",
+ "typeString": "contract super BalancerPoolToken"
+ }
+ },
+ "id": 2085,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "allowance",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9012,
+ "src": "2384:15:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_uint256_$",
+ "typeString": "function (address,address) view returns (uint256)"
+ }
+ },
+ "id": 2088,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2384:31:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2069,
+ "id": 2089,
+ "nodeType": "Return",
+ "src": "2377:38:26"
+ }
+ ]
+ },
+ "id": 2091,
+ "nodeType": "IfStatement",
+ "src": "2278:148:26",
+ "trueBody": {
+ "id": 2083,
+ "nodeType": "Block",
+ "src": "2314:43:26",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2080,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "-",
+ "prefix": true,
+ "src": "2343:2:26",
+ "subExpression": {
+ "hexValue": "31",
+ "id": 2079,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2344:1:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_minus_1_by_1",
+ "typeString": "int_const -1"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_minus_1_by_1",
+ "typeString": "int_const -1"
+ }
+ ],
+ "id": 2078,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2335:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 2077,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2335:7:26",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 2081,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2335:11:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2069,
+ "id": 2082,
+ "nodeType": "Return",
+ "src": "2328:18:26"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2060,
+ "nodeType": "StructuredDocumentation",
+ "src": "1900:273:26",
+ "text": " @dev Override to grant the Vault infinite allowance, causing for Pool Tokens to not require approval.\n This is sound as the Vault already provides authorization mechanisms when initiation token transfers, which this\n contract inherits."
+ },
+ "functionSelector": "dd62ed3e",
+ "id": 2093,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "allowance",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2066,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2241:8:26"
+ },
+ "parameters": {
+ "id": 2065,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2062,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 2093,
+ "src": "2197:13:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2061,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2197:7:26",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2064,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 2093,
+ "src": "2212:15:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2063,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2212:7:26",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2196:32:26"
+ },
+ "returnParameters": {
+ "id": 2069,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2068,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2093,
+ "src": "2259:7:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2067,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2259:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2258:9:26"
+ },
+ "scope": 2230,
+ "src": "2178:254:26",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 9072
+ ],
+ "body": {
+ "id": 2158,
+ "nodeType": "Block",
+ "src": "2709:521:26",
+ "statements": [
+ {
+ "assignments": [
+ 2107
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2107,
+ "mutability": "mutable",
+ "name": "currentAllowance",
+ "nodeType": "VariableDeclaration",
+ "scope": 2158,
+ "src": "2719:24:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2106,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2719:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2113,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 2109,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2096,
+ "src": "2756:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "expression": {
+ "id": 2110,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "2764:3:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2111,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "2764:10:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ ],
+ "id": 2108,
+ "name": "allowance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 2093
+ ],
+ "referencedDeclaration": 2093,
+ "src": "2746:9:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_uint256_$",
+ "typeString": "function (address,address) view returns (uint256)"
+ }
+ },
+ "id": 2112,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2746:29:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2719:56:26"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 2122,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 2118,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 2115,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "2794:3:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2116,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "2794:10:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 2117,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2096,
+ "src": "2808:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "2794:20:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2121,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2119,
+ "name": "currentAllowance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2107,
+ "src": "2818:16:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 2120,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2100,
+ "src": "2838:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2818:26:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "2794:50:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2123,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2846:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2124,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_TRANSFER_EXCEEDS_ALLOWANCE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 818,
+ "src": "2846:39:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2114,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2785:8:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2125,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2785:101:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2126,
+ "nodeType": "ExpressionStatement",
+ "src": "2785:101:26"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2128,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2096,
+ "src": "2907:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 2129,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2098,
+ "src": "2915:9:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 2130,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2100,
+ "src": "2926:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2127,
+ "name": "_transfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9199,
+ "src": "2897:9:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 2131,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2897:36:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2132,
+ "nodeType": "ExpressionStatement",
+ "src": "2897:36:26"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 2144,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 2136,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 2133,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "2948:3:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2134,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "2948:10:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "id": 2135,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2096,
+ "src": "2962:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "2948:20:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2143,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2137,
+ "name": "currentAllowance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2107,
+ "src": "2972:16:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 2141,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "-",
+ "prefix": true,
+ "src": "3000:2:26",
+ "subExpression": {
+ "hexValue": "31",
+ "id": 2140,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3001:1:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_minus_1_by_1",
+ "typeString": "int_const -1"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_minus_1_by_1",
+ "typeString": "int_const -1"
+ }
+ ],
+ "id": 2139,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2992:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 2138,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2992:7:26",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 2142,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2992:11:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2972:31:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "2948:55:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 2155,
+ "nodeType": "IfStatement",
+ "src": "2944:258:26",
+ "trueBody": {
+ "id": 2154,
+ "nodeType": "Block",
+ "src": "3005:197:26",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2146,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2096,
+ "src": "3145:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "expression": {
+ "id": 2147,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "3153:3:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2148,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "3153:10:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2151,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2149,
+ "name": "currentAllowance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2107,
+ "src": "3165:16:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 2150,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2100,
+ "src": "3184:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3165:25:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2145,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "3136:8:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 2152,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3136:55:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2153,
+ "nodeType": "ExpressionStatement",
+ "src": "3136:55:26"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "hexValue": "74727565",
+ "id": 2156,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3219:4:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "functionReturnParameters": 2105,
+ "id": 2157,
+ "nodeType": "Return",
+ "src": "3212:11:26"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2094,
+ "nodeType": "StructuredDocumentation",
+ "src": "2438:132:26",
+ "text": " @dev Override to allow for 'infinite allowance' and let the token owner use `transferFrom` with no self-allowance"
+ },
+ "functionSelector": "23b872dd",
+ "id": 2159,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "transferFrom",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2102,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2685:8:26"
+ },
+ "parameters": {
+ "id": 2101,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2096,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 2159,
+ "src": "2606:14:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2095,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2606:7:26",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2098,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 2159,
+ "src": "2630:17:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2097,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2630:7:26",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2100,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 2159,
+ "src": "2657:14:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2099,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2657:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2596:81:26"
+ },
+ "returnParameters": {
+ "id": 2105,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2104,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2159,
+ "src": "2703:4:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 2103,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2703:4:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2702:6:26"
+ },
+ "scope": 2230,
+ "src": "2575:655:26",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 9130
+ ],
+ "body": {
+ "id": 2202,
+ "nodeType": "Block",
+ "src": "3447:338:26",
+ "statements": [
+ {
+ "assignments": [
+ 2171
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2171,
+ "mutability": "mutable",
+ "name": "currentAllowance",
+ "nodeType": "VariableDeclaration",
+ "scope": 2202,
+ "src": "3457:24:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2170,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3457:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2177,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2173,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "3494:3:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2174,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "3494:10:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 2175,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2162,
+ "src": "3506:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 2172,
+ "name": "allowance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 2093
+ ],
+ "referencedDeclaration": 2093,
+ "src": "3484:9:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_address_$_t_address_$returns$_t_uint256_$",
+ "typeString": "function (address,address) view returns (uint256)"
+ }
+ },
+ "id": 2176,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3484:30:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3457:57:26"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2180,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2178,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2164,
+ "src": "3529:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 2179,
+ "name": "currentAllowance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2171,
+ "src": "3539:16:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3529:26:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 2198,
+ "nodeType": "Block",
+ "src": "3620:137:26",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2190,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "3699:3:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2191,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "3699:10:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 2192,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2162,
+ "src": "3711:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2195,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2193,
+ "name": "currentAllowance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2171,
+ "src": "3720:16:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 2194,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2164,
+ "src": "3739:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3720:25:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2189,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "3690:8:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 2196,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3690:56:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2197,
+ "nodeType": "ExpressionStatement",
+ "src": "3690:56:26"
+ }
+ ]
+ },
+ "id": 2199,
+ "nodeType": "IfStatement",
+ "src": "3525:232:26",
+ "trueBody": {
+ "id": 2188,
+ "nodeType": "Block",
+ "src": "3557:57:26",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2182,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "3580:3:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2183,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "3580:10:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 2184,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2162,
+ "src": "3592:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "hexValue": "30",
+ "id": 2185,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3601:1:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 2181,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "3571:8:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 2186,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3571:32:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2187,
+ "nodeType": "ExpressionStatement",
+ "src": "3571:32:26"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "hexValue": "74727565",
+ "id": 2200,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3774:4:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "functionReturnParameters": 2169,
+ "id": 2201,
+ "nodeType": "Return",
+ "src": "3767:11:26"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2160,
+ "nodeType": "StructuredDocumentation",
+ "src": "3236:115:26",
+ "text": " @dev Override to allow decreasing allowance by more than the current amount (setting it to zero)"
+ },
+ "functionSelector": "a457c2d7",
+ "id": 2203,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "decreaseAllowance",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2166,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "3423:8:26"
+ },
+ "parameters": {
+ "id": 2165,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2162,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 2203,
+ "src": "3383:15:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2161,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3383:7:26",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2164,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 2203,
+ "src": "3400:14:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2163,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3400:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3382:33:26"
+ },
+ "returnParameters": {
+ "id": 2169,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2168,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2203,
+ "src": "3441:4:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 2167,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3441:4:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3440:6:26"
+ },
+ "scope": 2230,
+ "src": "3356:429:26",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 2215,
+ "nodeType": "Block",
+ "src": "3887:41:26",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2211,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2205,
+ "src": "3903:9:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 2212,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2207,
+ "src": "3914:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2210,
+ "name": "_mint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9245,
+ "src": "3897:5:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 2213,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3897:24:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2214,
+ "nodeType": "ExpressionStatement",
+ "src": "3897:24:26"
+ }
+ ]
+ },
+ "id": 2216,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_mintPoolTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2208,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2205,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 2216,
+ "src": "3843:17:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2204,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3843:7:26",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2207,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 2216,
+ "src": "3862:14:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2206,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3862:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3842:35:26"
+ },
+ "returnParameters": {
+ "id": 2209,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3887:0:26"
+ },
+ "scope": 2230,
+ "src": "3818:110:26",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2228,
+ "nodeType": "Block",
+ "src": "4000:38:26",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2224,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2218,
+ "src": "4016:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 2225,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2220,
+ "src": "4024:6:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2223,
+ "name": "_burn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9304,
+ "src": "4010:5:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 2226,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4010:21:26",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2227,
+ "nodeType": "ExpressionStatement",
+ "src": "4010:21:26"
+ }
+ ]
+ },
+ "id": 2229,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_burnPoolTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2221,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2218,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 2229,
+ "src": "3959:14:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2217,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3959:7:26",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2220,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 2229,
+ "src": "3975:14:26",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2219,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3975:7:26",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3958:32:26"
+ },
+ "returnParameters": {
+ "id": 2222,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4000:0:26"
+ },
+ "scope": 2230,
+ "src": "3934:104:26",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 2231,
+ "src": "1513:2527:26"
+ }
+ ],
+ "src": "688:3353:26"
+ },
+ "id": 26
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol",
+ "exportedSymbols": {
+ "BaseGeneralPool": [
+ 2468
+ ]
+ },
+ "id": 2469,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 2232,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:27"
+ },
+ {
+ "id": 2233,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:27"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IGeneralPool.sol",
+ "id": 2234,
+ "nodeType": "ImportDirective",
+ "scope": 2469,
+ "sourceUnit": 1467,
+ "src": "747:71:27",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BasePool.sol",
+ "file": "./BasePool.sol",
+ "id": 2235,
+ "nodeType": "ImportDirective",
+ "scope": 2469,
+ "sourceUnit": 3861,
+ "src": "820:24:27",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 2237,
+ "name": "IGeneralPool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1466,
+ "src": "1226:12:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IGeneralPool_$1466",
+ "typeString": "contract IGeneralPool"
+ }
+ },
+ "id": 2238,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1226:12:27"
+ },
+ {
+ "baseName": {
+ "id": 2239,
+ "name": "BasePool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 3860,
+ "src": "1240:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ },
+ "id": 2240,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1240:8:27"
+ }
+ ],
+ "contractDependencies": [
+ 409,
+ 451,
+ 1022,
+ 1040,
+ 1059,
+ 1152,
+ 1188,
+ 1425,
+ 1466,
+ 1491,
+ 2230,
+ 3860,
+ 3955,
+ 4136,
+ 5041,
+ 5478,
+ 6208,
+ 8861,
+ 9352,
+ 9461
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 2236,
+ "nodeType": "StructuredDocumentation",
+ "src": "846:342:27",
+ "text": " @dev Extension of `BasePool`, adding a handler for `IGeneralPool.onSwap`.\n Derived contracts must call `BasePool`'s constructor, and implement `_onSwapGivenIn` and `_onSwapGivenOut` along with\n `BasePool`'s virtual functions. Inheriting from this contract lets derived contracts choose the General\n specialization setting."
+ },
+ "fullyImplemented": false,
+ "id": 2468,
+ "linearizedBaseContracts": [
+ 2468,
+ 3860,
+ 4136,
+ 6208,
+ 1059,
+ 2230,
+ 3955,
+ 5041,
+ 1022,
+ 451,
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152,
+ 409,
+ 1466,
+ 1425,
+ 1491
+ ],
+ "name": "BaseGeneralPool",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "baseFunctions": [
+ 1465
+ ],
+ "body": {
+ "id": 2299,
+ "nodeType": "Block",
+ "src": "1488:417:27",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2259,
+ "name": "_beforeSwapJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3400,
+ "src": "1498:19:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 2260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1498:21:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2261,
+ "nodeType": "ExpressionStatement",
+ "src": "1498:21:27"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2263,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2247,
+ "src": "1547:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2264,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2249,
+ "src": "1556:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2265,
+ "name": "_getTotalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2654,
+ "src": "1566:15:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 2266,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1566:17:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2262,
+ "name": "_validateIndexes",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2467,
+ "src": "1530:16:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256,uint256) pure"
+ }
+ },
+ "id": 2267,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1530:54:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2268,
+ "nodeType": "ExpressionStatement",
+ "src": "1530:54:27"
+ },
+ {
+ "assignments": [
+ 2273
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2273,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 2299,
+ "src": "1594:31:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2271,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1594:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2272,
+ "nodeType": "ArrayTypeName",
+ "src": "1594:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2276,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2274,
+ "name": "_scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3519,
+ "src": "1628:15:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function () view returns (uint256[] memory)"
+ }
+ },
+ "id": 2275,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1628:17:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1594:51:27"
+ },
+ {
+ "expression": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ },
+ "id": 2282,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 2277,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2242,
+ "src": "1675:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2278,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "kind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1473,
+ "src": "1675:16:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 2279,
+ "name": "IVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2021,
+ "src": "1695:6:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IVault_$2021_$",
+ "typeString": "type(contract IVault)"
+ }
+ },
+ "id": 2280,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SwapKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1845,
+ "src": "1695:15:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_SwapKind_$1845_$",
+ "typeString": "type(enum IVault.SwapKind)"
+ }
+ },
+ "id": 2281,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "GIVEN_IN",
+ "nodeType": "MemberAccess",
+ "src": "1695:24:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "src": "1675:44:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 2291,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2242,
+ "src": "1841:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 2292,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2245,
+ "src": "1854:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 2293,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2247,
+ "src": "1864:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2294,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2249,
+ "src": "1873:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2295,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2273,
+ "src": "1883:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 2290,
+ "name": "_swapGivenOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2417,
+ "src": "1827:13:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256,uint256[] memory) returns (uint256)"
+ }
+ },
+ "id": 2296,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1827:71:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2297,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "1675:223:27",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 2284,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2242,
+ "src": "1751:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 2285,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2245,
+ "src": "1764:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 2286,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2247,
+ "src": "1774:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2287,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2249,
+ "src": "1783:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2288,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2273,
+ "src": "1793:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 2283,
+ "name": "_swapGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2360,
+ "src": "1738:12:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256,uint256[] memory) returns (uint256)"
+ }
+ },
+ "id": 2289,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1738:70:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2258,
+ "id": 2298,
+ "nodeType": "Return",
+ "src": "1656:242:27"
+ }
+ ]
+ },
+ "functionSelector": "01ec954a",
+ "id": 2300,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2253,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2242,
+ "src": "1450:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2254,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "poolId",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1481,
+ "src": "1450:18:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "id": 2255,
+ "modifierName": {
+ "id": 2252,
+ "name": "onlyVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2958,
+ "src": "1440:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$_t_bytes32_$",
+ "typeString": "modifier (bytes32)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "1440:29:27"
+ }
+ ],
+ "name": "onSwap",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2251,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "1431:8:27"
+ },
+ "parameters": {
+ "id": 2250,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2242,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 2300,
+ "src": "1299:30:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 2241,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "1299:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2245,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 2300,
+ "src": "1339:25:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2243,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1339:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2244,
+ "nodeType": "ArrayTypeName",
+ "src": "1339:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2247,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 2300,
+ "src": "1374:15:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2246,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1374:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2249,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 2300,
+ "src": "1399:16:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2248,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1399:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1289:132:27"
+ },
+ "returnParameters": {
+ "id": 2258,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2257,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2300,
+ "src": "1479:7:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2256,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1479:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1478:9:27"
+ },
+ "scope": 2468,
+ "src": "1274:631:27",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 2359,
+ "nodeType": "Block",
+ "src": "2141:546:27",
+ "statements": [
+ {
+ "expression": {
+ "id": 2324,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "expression": {
+ "id": 2317,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2302,
+ "src": "2259:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2319,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "2259:18:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2321,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2302,
+ "src": "2303:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2322,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "2303:18:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2320,
+ "name": "_subtractSwapFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3455,
+ "src": "2280:22:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 2323,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2280:42:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2259:63:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2325,
+ "nodeType": "ExpressionStatement",
+ "src": "2259:63:27"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2327,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2305,
+ "src": "2347:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 2328,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2312,
+ "src": "2357:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 2326,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "2333:13:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 2329,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2333:39:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2330,
+ "nodeType": "ExpressionStatement",
+ "src": "2333:39:27"
+ },
+ {
+ "expression": {
+ "id": 2341,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "expression": {
+ "id": 2331,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2302,
+ "src": "2382:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2333,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "2382:18:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2335,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2302,
+ "src": "2412:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2336,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "2412:18:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 2337,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2312,
+ "src": "2432:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 2339,
+ "indexExpression": {
+ "id": 2338,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2307,
+ "src": "2447:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "2432:23:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2334,
+ "name": "_upscale",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3547,
+ "src": "2403:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 2340,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2403:53:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2382:74:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2342,
+ "nodeType": "ExpressionStatement",
+ "src": "2382:74:27"
+ },
+ {
+ "assignments": [
+ 2344
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2344,
+ "mutability": "mutable",
+ "name": "amountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 2359,
+ "src": "2467:17:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2343,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2467:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2351,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 2346,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2302,
+ "src": "2502:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 2347,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2305,
+ "src": "2515:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 2348,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2307,
+ "src": "2525:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2349,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2309,
+ "src": "2534:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2345,
+ "name": "_onSwapGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2431,
+ "src": "2487:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256) returns (uint256)"
+ }
+ },
+ "id": 2350,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2487:56:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2467:76:27"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2353,
+ "name": "amountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2344,
+ "src": "2644:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 2354,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2312,
+ "src": "2655:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 2356,
+ "indexExpression": {
+ "id": 2355,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2309,
+ "src": "2670:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "2655:24:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2352,
+ "name": "_downscaleDown",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3614,
+ "src": "2629:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 2357,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2629:51:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2316,
+ "id": 2358,
+ "nodeType": "Return",
+ "src": "2622:58:27"
+ }
+ ]
+ },
+ "id": 2360,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_swapGivenIn",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2313,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2302,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 2360,
+ "src": "1942:30:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 2301,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "1942:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2305,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 2360,
+ "src": "1982:25:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2303,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1982:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2304,
+ "nodeType": "ArrayTypeName",
+ "src": "1982:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2307,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 2360,
+ "src": "2017:15:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2306,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2017:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2309,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 2360,
+ "src": "2042:16:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2308,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2042:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2312,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 2360,
+ "src": "2068:31:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2310,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2068:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2311,
+ "nodeType": "ArrayTypeName",
+ "src": "2068:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1932:173:27"
+ },
+ "returnParameters": {
+ "id": 2316,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2315,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2360,
+ "src": "2132:7:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2314,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2132:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2131:9:27"
+ },
+ "scope": 2468,
+ "src": "1911:776:27",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2416,
+ "nodeType": "Block",
+ "src": "2924:518:27",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2378,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2365,
+ "src": "2948:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 2379,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2372,
+ "src": "2958:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 2377,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "2934:13:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 2380,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2934:39:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2381,
+ "nodeType": "ExpressionStatement",
+ "src": "2934:39:27"
+ },
+ {
+ "expression": {
+ "id": 2392,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "expression": {
+ "id": 2382,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2362,
+ "src": "2983:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2384,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "2983:18:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2386,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2362,
+ "src": "3013:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 2387,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "3013:18:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 2388,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2372,
+ "src": "3033:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 2390,
+ "indexExpression": {
+ "id": 2389,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2369,
+ "src": "3048:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "3033:24:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2385,
+ "name": "_upscale",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3547,
+ "src": "3004:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 2391,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3004:54:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2983:75:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2393,
+ "nodeType": "ExpressionStatement",
+ "src": "2983:75:27"
+ },
+ {
+ "assignments": [
+ 2395
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2395,
+ "mutability": "mutable",
+ "name": "amountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 2416,
+ "src": "3069:16:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2394,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3069:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2402,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 2397,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2362,
+ "src": "3104:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 2398,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2365,
+ "src": "3117:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 2399,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2367,
+ "src": "3127:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2400,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2369,
+ "src": "3136:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2396,
+ "name": "_onSwapGivenOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2445,
+ "src": "3088:15:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256) returns (uint256)"
+ }
+ },
+ "id": 2401,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3088:57:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3069:76:27"
+ },
+ {
+ "expression": {
+ "id": 2410,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 2403,
+ "name": "amountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2395,
+ "src": "3222:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 2405,
+ "name": "amountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2395,
+ "src": "3246:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 2406,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2372,
+ "src": "3256:14:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 2408,
+ "indexExpression": {
+ "id": 2407,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2367,
+ "src": "3271:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "3256:23:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2404,
+ "name": "_downscaleUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3681,
+ "src": "3233:12:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 2409,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3233:47:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3222:58:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2411,
+ "nodeType": "ExpressionStatement",
+ "src": "3222:58:27"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2413,
+ "name": "amountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2395,
+ "src": "3426:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2412,
+ "name": "_addSwapFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3433,
+ "src": "3408:17:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 2414,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3408:27:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2376,
+ "id": 2415,
+ "nodeType": "Return",
+ "src": "3401:34:27"
+ }
+ ]
+ },
+ "id": 2417,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_swapGivenOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2373,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2362,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 2417,
+ "src": "2725:30:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 2361,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "2725:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2365,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 2417,
+ "src": "2765:25:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2363,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2765:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2364,
+ "nodeType": "ArrayTypeName",
+ "src": "2765:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2367,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 2417,
+ "src": "2800:15:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2366,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2800:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2369,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 2417,
+ "src": "2825:16:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2368,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2825:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2372,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 2417,
+ "src": "2851:31:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2370,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2851:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2371,
+ "nodeType": "ArrayTypeName",
+ "src": "2851:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2715:173:27"
+ },
+ "returnParameters": {
+ "id": 2376,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2375,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2417,
+ "src": "2915:7:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2374,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2915:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2914:9:27"
+ },
+ "scope": 2468,
+ "src": "2693:749:27",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "id": 2431,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onSwapGivenIn",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2427,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2419,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 2431,
+ "src": "3980:30:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 2418,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "3980:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2422,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 2431,
+ "src": "4020:25:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2420,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4020:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2421,
+ "nodeType": "ArrayTypeName",
+ "src": "4020:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2424,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 2431,
+ "src": "4055:15:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2423,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4055:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2426,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 2431,
+ "src": "4080:16:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2425,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4080:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3970:132:27"
+ },
+ "returnParameters": {
+ "id": 2430,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2429,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2431,
+ "src": "4129:7:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2428,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4129:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4128:9:27"
+ },
+ "scope": 2468,
+ "src": "3947:191:27",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "id": 2445,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onSwapGivenOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2441,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2433,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 2445,
+ "src": "4627:30:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 2432,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "4627:11:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2436,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 2445,
+ "src": "4667:25:27",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2434,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4667:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2435,
+ "nodeType": "ArrayTypeName",
+ "src": "4667:9:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2438,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 2445,
+ "src": "4702:15:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2437,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4702:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2440,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 2445,
+ "src": "4727:16:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2439,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4727:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4617:132:27"
+ },
+ "returnParameters": {
+ "id": 2444,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2443,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2445,
+ "src": "4776:7:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2442,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4776:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4775:9:27"
+ },
+ "scope": 2468,
+ "src": "4593:192:27",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2466,
+ "nodeType": "Block",
+ "src": "4910:84:27",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 2461,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2457,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2455,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2447,
+ "src": "4929:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 2456,
+ "name": "limit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2451,
+ "src": "4939:5:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4929:15:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2460,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2458,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2449,
+ "src": "4948:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 2459,
+ "name": "limit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2451,
+ "src": "4959:5:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4948:16:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "4929:35:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2462,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4966:6:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2463,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "4966:20:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2454,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "4920:8:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2464,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4920:67:27",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2465,
+ "nodeType": "ExpressionStatement",
+ "src": "4920:67:27"
+ }
+ ]
+ },
+ "id": 2467,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_validateIndexes",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2452,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2447,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 2467,
+ "src": "4826:15:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2446,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4826:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2449,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 2467,
+ "src": "4851:16:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2448,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4851:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2451,
+ "mutability": "mutable",
+ "name": "limit",
+ "nodeType": "VariableDeclaration",
+ "scope": 2467,
+ "src": "4877:13:27",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2450,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4877:7:27",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4816:80:27"
+ },
+ "returnParameters": {
+ "id": 2453,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4910:0:27"
+ },
+ "scope": 2468,
+ "src": "4791:203:27",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 2469,
+ "src": "1189:3807:27"
+ }
+ ],
+ "src": "688:4309:27"
+ },
+ "id": 27
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BasePool.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BasePool.sol",
+ "exportedSymbols": {
+ "BasePool": [
+ 3860
+ ]
+ },
+ "id": 3861,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 2470,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:28"
+ },
+ {
+ "id": 2471,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:28"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IAssetManager.sol",
+ "id": 2472,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 369,
+ "src": "747:77:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IControlledPool.sol",
+ "id": 2473,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 410,
+ "src": "825:79:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "id": 2474,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 2022,
+ "src": "905:65:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IBasePool.sol",
+ "id": 2475,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 1426,
+ "src": "971:68:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol",
+ "id": 2476,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 5921,
+ "src": "1041:77:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol",
+ "id": 2477,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 6737,
+ "src": "1119:74:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol",
+ "id": 2478,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 6209,
+ "src": "1194:84:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol",
+ "id": 2479,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 9353,
+ "src": "1279:75:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "id": 2480,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 7159,
+ "src": "1355:72:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "id": 2481,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 8769,
+ "src": "1428:66:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BalancerPoolToken.sol",
+ "file": "./BalancerPoolToken.sol",
+ "id": 2482,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 2231,
+ "src": "1496:33:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol",
+ "file": "./BasePoolAuthorization.sol",
+ "id": 2483,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 3956,
+ "src": "1530:37:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol",
+ "file": "./RecoveryMode.sol",
+ "id": 2484,
+ "nodeType": "ImportDirective",
+ "scope": 3861,
+ "sourceUnit": 4137,
+ "src": "1568:28:28",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 2486,
+ "name": "IBasePool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1425,
+ "src": "2926:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IBasePool_$1425",
+ "typeString": "contract IBasePool"
+ }
+ },
+ "id": 2487,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2926:9:28"
+ },
+ {
+ "baseName": {
+ "id": 2488,
+ "name": "IControlledPool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 409,
+ "src": "2941:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IControlledPool_$409",
+ "typeString": "contract IControlledPool"
+ }
+ },
+ "id": 2489,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2941:15:28"
+ },
+ {
+ "baseName": {
+ "id": 2490,
+ "name": "BasePoolAuthorization",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 3955,
+ "src": "2962:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolAuthorization_$3955",
+ "typeString": "contract BasePoolAuthorization"
+ }
+ },
+ "id": 2491,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2962:21:28"
+ },
+ {
+ "baseName": {
+ "id": 2492,
+ "name": "BalancerPoolToken",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2230,
+ "src": "2989:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BalancerPoolToken_$2230",
+ "typeString": "contract BalancerPoolToken"
+ }
+ },
+ "id": 2493,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2989:17:28"
+ },
+ {
+ "baseName": {
+ "id": 2494,
+ "name": "TemporarilyPausable",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 6208,
+ "src": "3012:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_TemporarilyPausable_$6208",
+ "typeString": "contract TemporarilyPausable"
+ }
+ },
+ "id": 2495,
+ "nodeType": "InheritanceSpecifier",
+ "src": "3012:19:28"
+ },
+ {
+ "baseName": {
+ "id": 2496,
+ "name": "RecoveryMode",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4136,
+ "src": "3037:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_RecoveryMode_$4136",
+ "typeString": "contract RecoveryMode"
+ }
+ },
+ "id": 2497,
+ "nodeType": "InheritanceSpecifier",
+ "src": "3037:12:28"
+ }
+ ],
+ "contractDependencies": [
+ 409,
+ 451,
+ 1022,
+ 1040,
+ 1059,
+ 1152,
+ 1188,
+ 1425,
+ 1491,
+ 2230,
+ 3955,
+ 4136,
+ 5041,
+ 5478,
+ 6208,
+ 8861,
+ 9352,
+ 9461
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 2485,
+ "nodeType": "StructuredDocumentation",
+ "src": "1635:1256:28",
+ "text": " @notice Reference implementation for the base layer of a Pool contract.\n @dev Reference implementation for the base layer of a Pool contract that manages a single Pool with optional\n Asset Managers, an admin-controlled swap fee percentage, and an emergency pause mechanism.\n This Pool pays protocol fees by minting BPT directly to the ProtocolFeeCollector instead of using the\n `dueProtocolFees` return value. This results in the underlying tokens continuing to provide liquidity\n for traders, while still keeping gas usage to a minimum since only a single token (the BPT) is transferred.\n Note that neither swap fees nor the pause mechanism are used by this contract. They are passed through so that\n derived contracts can use them via the `_addSwapFeeAmount` and `_subtractSwapFeeAmount` functions, and the\n `whenNotPaused` modifier.\n No admin permissions are checked here: instead, this contract delegates that to the Vault's own Authorizer.\n Because this contract doesn't implement the swap hooks, derived contracts should generally inherit from\n BaseGeneralPool or BaseMinimalSwapInfoPool. Otherwise, subclasses must inherit from the corresponding interfaces\n and implement the swap callbacks themselves."
+ },
+ "fullyImplemented": false,
+ "id": 3860,
+ "linearizedBaseContracts": [
+ 3860,
+ 4136,
+ 6208,
+ 1059,
+ 2230,
+ 3955,
+ 5041,
+ 1022,
+ 451,
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152,
+ 409,
+ 1425,
+ 1491
+ ],
+ "name": "BasePool",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 2500,
+ "libraryName": {
+ "id": 2498,
+ "name": "WordCodec",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 6736,
+ "src": "3062:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_WordCodec_$6736",
+ "typeString": "library WordCodec"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "3056:28:28",
+ "typeName": {
+ "id": 2499,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3076:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ },
+ {
+ "id": 2503,
+ "libraryName": {
+ "id": 2501,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "3095:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "3089:29:28",
+ "typeName": {
+ "id": 2502,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3110:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "id": 2506,
+ "libraryName": {
+ "id": 2504,
+ "name": "BasePoolUserData",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 286,
+ "src": "3129:16:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolUserData_$286",
+ "typeString": "library BasePoolUserData"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "3123:33:28",
+ "typeName": {
+ "id": 2505,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3150:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ }
+ },
+ {
+ "constant": true,
+ "id": 2509,
+ "mutability": "constant",
+ "name": "_MIN_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "3162:40:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2507,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3162:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "32",
+ "id": 2508,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3201:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 2512,
+ "mutability": "constant",
+ "name": "_DEFAULT_MINIMUM_BPT",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "3209:51:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2510,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3209:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "316536",
+ "id": 2511,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3257:3:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1000000_by_1",
+ "typeString": "int_const 1000000"
+ },
+ "value": "1e6"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 2515,
+ "mutability": "constant",
+ "name": "_MIN_SWAP_FEE_PERCENTAGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "3313:56:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2513,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3313:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "31653132",
+ "id": 2514,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3365:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1000000000000_by_1",
+ "typeString": "int_const 1000000000000"
+ },
+ "value": "1e12"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 2518,
+ "mutability": "constant",
+ "name": "_MAX_SWAP_FEE_PERCENTAGE",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "3386:56:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2516,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3386:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "31653137",
+ "id": 2517,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3438:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100000000000000000_by_1",
+ "typeString": "int_const 100000000000000000"
+ },
+ "value": "1e17"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 2520,
+ "mutability": "mutable",
+ "name": "_miscData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "4239:25:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2519,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4239:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 2523,
+ "mutability": "constant",
+ "name": "_SWAP_FEE_PERCENTAGE_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "4271:58:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2521,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4271:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "313932",
+ "id": 2522,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4326:3:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_192_by_1",
+ "typeString": "int_const 192"
+ },
+ "value": "192"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 2526,
+ "mutability": "constant",
+ "name": "_RECOVERY_MODE_BIT_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "4335:56:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2524,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4335:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323535",
+ "id": 2525,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4388:3:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ "value": "255"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 2529,
+ "mutability": "constant",
+ "name": "_SWAP_FEE_PERCENTAGE_BIT_LENGTH",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "4502:61:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2527,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4502:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3633",
+ "id": 2528,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4561:2:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_63_by_1",
+ "typeString": "int_const 63"
+ },
+ "value": "63"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 2531,
+ "mutability": "immutable",
+ "name": "_poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "4570:33:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2530,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4570:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 2533,
+ "mutability": "immutable",
+ "name": "_protocolFeesCollector",
+ "nodeType": "VariableDeclaration",
+ "scope": 3860,
+ "src": "4711:63:28",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ },
+ "typeName": {
+ "id": 2532,
+ "name": "IProtocolFeesCollector",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1556,
+ "src": "4711:22:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "anonymous": false,
+ "id": 2537,
+ "name": "SwapFeePercentageChanged",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 2536,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2535,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "swapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 2537,
+ "src": "4812:25:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2534,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4812:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4811:27:28"
+ },
+ "src": "4781:58:28"
+ },
+ {
+ "body": {
+ "id": 2638,
+ "nodeType": "Block",
+ "src": "5940:1091:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2588,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 2585,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2548,
+ "src": "5959:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 2586,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "5959:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 2587,
+ "name": "_MIN_TOKENS",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2509,
+ "src": "5976:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5959:28:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2589,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "5989:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2590,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MIN_TOKENS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 578,
+ "src": "5989:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2584,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "5950:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2591,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5950:57:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2592,
+ "nodeType": "ExpressionStatement",
+ "src": "5950:57:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2598,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 2594,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2548,
+ "src": "6026:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 2595,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "6026:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2596,
+ "name": "_getMaxTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2659,
+ "src": "6043:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
+ "typeString": "function () pure returns (uint256)"
+ }
+ },
+ "id": 2597,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6043:15:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6026:32:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2599,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "6060:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2600,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MAX_TOKENS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 581,
+ "src": "6060:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2593,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "6017:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2601,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6017:61:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2602,
+ "nodeType": "ExpressionStatement",
+ "src": "6017:61:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2606,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2548,
+ "src": "6659:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ ],
+ "expression": {
+ "id": 2603,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "6626:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 2605,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureArrayIsSorted",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5868,
+ "src": "6626:32:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (contract IERC20[] memory) pure"
+ }
+ },
+ "id": 2607,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6626:40:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2608,
+ "nodeType": "ExpressionStatement",
+ "src": "6626:40:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2610,
+ "name": "swapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2553,
+ "src": "6699:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2609,
+ "name": "_setSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2744,
+ "src": "6677:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 2611,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6677:40:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2612,
+ "nodeType": "ExpressionStatement",
+ "src": "6677:40:28"
+ },
+ {
+ "assignments": [
+ 2614
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2614,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 2638,
+ "src": "6728:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2613,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6728:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2619,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 2617,
+ "name": "specialization",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2541,
+ "src": "6764:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ }
+ ],
+ "expression": {
+ "id": 2615,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2539,
+ "src": "6745:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 2616,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registerPool",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1688,
+ "src": "6745:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_nonpayable$_t_enum$_PoolSpecialization_$1680_$returns$_t_bytes32_$",
+ "typeString": "function (enum IVault.PoolSpecialization) external returns (bytes32)"
+ }
+ },
+ "id": 2618,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6745:34:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6728:51:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2623,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2614,
+ "src": "6811:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 2624,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2548,
+ "src": "6819:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "id": 2625,
+ "name": "assetManagers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2551,
+ "src": "6827:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ ],
+ "expression": {
+ "id": 2620,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2539,
+ "src": "6790:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 2622,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registerTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1719,
+ "src": "6790:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_array$_t_address_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (bytes32,contract IERC20[] memory,address[] memory) external"
+ }
+ },
+ "id": 2626,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6790:51:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2627,
+ "nodeType": "ExpressionStatement",
+ "src": "6790:51:28"
+ },
+ {
+ "expression": {
+ "id": 2630,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 2628,
+ "name": "_poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2531,
+ "src": "6941:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 2629,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2614,
+ "src": "6951:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "6941:16:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2631,
+ "nodeType": "ExpressionStatement",
+ "src": "6941:16:28"
+ },
+ {
+ "expression": {
+ "id": 2636,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 2632,
+ "name": "_protocolFeesCollector",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2533,
+ "src": "6967:22:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 2633,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2539,
+ "src": "6992:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 2634,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getProtocolFeesCollector",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 2008,
+ "src": "6992:30:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$__$returns$_t_contract$_IProtocolFeesCollector_$1556_$",
+ "typeString": "function () view external returns (contract IProtocolFeesCollector)"
+ }
+ },
+ "id": 2635,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6992:32:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ },
+ "src": "6967:57:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ },
+ "id": 2637,
+ "nodeType": "ExpressionStatement",
+ "src": "6967:57:28"
+ }
+ ]
+ },
+ "id": 2639,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 2566,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "5767:3:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2567,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "5767:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ ],
+ "id": 2565,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5759:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 2564,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5759:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 2568,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5759:19:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2563,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5751:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 2562,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "5751:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 2569,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5751:28:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "id": 2570,
+ "modifierName": {
+ "id": 2561,
+ "name": "Authentication",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5041,
+ "src": "5736:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Authentication_$5041_$",
+ "typeString": "type(contract Authentication)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "5736:44:28"
+ },
+ {
+ "arguments": [
+ {
+ "id": 2572,
+ "name": "name",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2543,
+ "src": "5807:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "id": 2573,
+ "name": "symbol",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2545,
+ "src": "5813:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "id": 2574,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2539,
+ "src": "5821:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ }
+ ],
+ "id": 2575,
+ "modifierName": {
+ "id": 2571,
+ "name": "BalancerPoolToken",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2230,
+ "src": "5789:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_BalancerPoolToken_$2230_$",
+ "typeString": "type(contract BalancerPoolToken)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "5789:38:28"
+ },
+ {
+ "arguments": [
+ {
+ "id": 2577,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2559,
+ "src": "5858:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "id": 2578,
+ "modifierName": {
+ "id": 2576,
+ "name": "BasePoolAuthorization",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3955,
+ "src": "5836:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_BasePoolAuthorization_$3955_$",
+ "typeString": "type(contract BasePoolAuthorization)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "5836:28:28"
+ },
+ {
+ "arguments": [
+ {
+ "id": 2580,
+ "name": "pauseWindowDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2555,
+ "src": "5893:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2581,
+ "name": "bufferPeriodDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2557,
+ "src": "5914:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 2582,
+ "modifierName": {
+ "id": 2579,
+ "name": "TemporarilyPausable",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6208,
+ "src": "5873:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_TemporarilyPausable_$6208_$",
+ "typeString": "type(contract TemporarilyPausable)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "5873:62:28"
+ }
+ ],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2560,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2539,
+ "mutability": "mutable",
+ "name": "vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "4866:12:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 2538,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "4866:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2541,
+ "mutability": "mutable",
+ "name": "specialization",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "4888:40:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ },
+ "typeName": {
+ "id": 2540,
+ "name": "IVault.PoolSpecialization",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1680,
+ "src": "4888:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2543,
+ "mutability": "mutable",
+ "name": "name",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "4938:18:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 2542,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "4938:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2545,
+ "mutability": "mutable",
+ "name": "symbol",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "4966:20:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 2544,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "4966:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2548,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "4996:22:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2546,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "4996:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 2547,
+ "nodeType": "ArrayTypeName",
+ "src": "4996:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2551,
+ "mutability": "mutable",
+ "name": "assetManagers",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "5028:30:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2549,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5028:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 2550,
+ "nodeType": "ArrayTypeName",
+ "src": "5028:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
+ "typeString": "address[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2553,
+ "mutability": "mutable",
+ "name": "swapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "5068:25:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2552,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5068:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2555,
+ "mutability": "mutable",
+ "name": "pauseWindowDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "5103:27:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2554,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5103:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2557,
+ "mutability": "mutable",
+ "name": "bufferPeriodDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "5140:28:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2556,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5140:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2559,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 2639,
+ "src": "5178:13:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2558,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5178:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4856:341:28"
+ },
+ "returnParameters": {
+ "id": 2583,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5940:0:28"
+ },
+ "scope": 3860,
+ "src": "4845:2186:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1365
+ ],
+ "body": {
+ "id": 2648,
+ "nodeType": "Block",
+ "src": "7174:31:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2646,
+ "name": "_poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2531,
+ "src": "7191:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 2645,
+ "id": 2647,
+ "nodeType": "Return",
+ "src": "7184:14:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2640,
+ "nodeType": "StructuredDocumentation",
+ "src": "7063:46:28",
+ "text": " @notice Return the pool id."
+ },
+ "functionSelector": "38fff2d0",
+ "id": 2649,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPoolId",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2642,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "7147:8:28"
+ },
+ "parameters": {
+ "id": 2641,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7132:2:28"
+ },
+ "returnParameters": {
+ "id": 2645,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2644,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2649,
+ "src": "7165:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2643,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "7165:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7164:9:28"
+ },
+ "scope": 3860,
+ "src": "7114:91:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "id": 2654,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getTotalTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2650,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7235:2:28"
+ },
+ "returnParameters": {
+ "id": 2653,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2652,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2654,
+ "src": "7269:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2651,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7269:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7268:9:28"
+ },
+ "scope": 3860,
+ "src": "7211:67:28",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "id": 2659,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getMaxTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2655,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7306:2:28"
+ },
+ "returnParameters": {
+ "id": 2658,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2657,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2659,
+ "src": "7340:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2656,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7340:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7339:9:28"
+ },
+ "scope": 3860,
+ "src": "7284:65:28",
+ "stateMutability": "pure",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2667,
+ "nodeType": "Block",
+ "src": "7749:44:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2665,
+ "name": "_DEFAULT_MINIMUM_BPT",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2512,
+ "src": "7766:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2664,
+ "id": 2666,
+ "nodeType": "Return",
+ "src": "7759:27:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2660,
+ "nodeType": "StructuredDocumentation",
+ "src": "7355:323:28",
+ "text": " @dev Returns the minimum BPT supply. This amount is minted to the zero address during initialization, effectively\n locking it.\n This is useful to make sure Pool initialization happens only once, but derived Pools can change this value (even\n to zero) by overriding this function."
+ },
+ "id": 2668,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getMinimumBpt",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2661,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7706:2:28"
+ },
+ "returnParameters": {
+ "id": 2664,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2663,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2668,
+ "src": "7740:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2662,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7740:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7739:9:28"
+ },
+ "scope": 3860,
+ "src": "7683:110:28",
+ "stateMutability": "pure",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1371
+ ],
+ "body": {
+ "id": 2681,
+ "nodeType": "Block",
+ "src": "8005:106:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2677,
+ "name": "_SWAP_FEE_PERCENTAGE_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2523,
+ "src": "8043:27:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2678,
+ "name": "_SWAP_FEE_PERCENTAGE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2529,
+ "src": "8072:31:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 2675,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "8022:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2676,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6440,
+ "src": "8022:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 2679,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8022:82:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2674,
+ "id": 2680,
+ "nodeType": "Return",
+ "src": "8015:89:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2669,
+ "nodeType": "StructuredDocumentation",
+ "src": "7799:122:28",
+ "text": " @notice Return the current value of the swap fee percentage.\n @dev This is stored in `_miscData`."
+ },
+ "functionSelector": "55c67628",
+ "id": 2682,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2671,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "7978:8:28"
+ },
+ "parameters": {
+ "id": 2670,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7955:2:28"
+ },
+ "returnParameters": {
+ "id": 2674,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2673,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2682,
+ "src": "7996:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2672,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7996:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7995:9:28"
+ },
+ "scope": 3860,
+ "src": "7926:185:28",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 2690,
+ "nodeType": "Block",
+ "src": "8386:46:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2688,
+ "name": "_protocolFeesCollector",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2533,
+ "src": "8403:22:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ },
+ "functionReturnParameters": 2687,
+ "id": 2689,
+ "nodeType": "Return",
+ "src": "8396:29:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2683,
+ "nodeType": "StructuredDocumentation",
+ "src": "8117:183:28",
+ "text": " @notice Return the ProtocolFeesCollector contract.\n @dev This is immutable, and retrieved from the Vault on construction. (It is also immutable in the Vault.)"
+ },
+ "functionSelector": "d2946c2b",
+ "id": 2691,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getProtocolFeesCollector",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2684,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "8338:2:28"
+ },
+ "returnParameters": {
+ "id": 2687,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2686,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2691,
+ "src": "8362:22:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ },
+ "typeName": {
+ "id": 2685,
+ "name": "IProtocolFeesCollector",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1556,
+ "src": "8362:22:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8361:24:28"
+ },
+ "scope": 3860,
+ "src": "8305:127:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 401
+ ],
+ "body": {
+ "id": 2706,
+ "nodeType": "Block",
+ "src": "8831:57:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2703,
+ "name": "swapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2694,
+ "src": "8863:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2702,
+ "name": "_setSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2744,
+ "src": "8841:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 2704,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8841:40:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2705,
+ "nodeType": "ExpressionStatement",
+ "src": "8841:40:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2692,
+ "nodeType": "StructuredDocumentation",
+ "src": "8438:280:28",
+ "text": " @notice Set the swap fee percentage.\n @dev This is a permissioned function, and disabled if the pool is paused. The swap fee must be within the\n bounds set by MIN_SWAP_FEE_PERCENTAGE/MAX_SWAP_FEE_PERCENTAGE. Emits the SwapFeePercentageChanged event."
+ },
+ "functionSelector": "38e9922e",
+ "id": 2707,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 2698,
+ "modifierName": {
+ "id": 2697,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "8804:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "8804:12:28"
+ },
+ {
+ "id": 2700,
+ "modifierName": {
+ "id": 2699,
+ "name": "whenNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6083,
+ "src": "8817:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "8817:13:28"
+ }
+ ],
+ "name": "setSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2696,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "8795:8:28"
+ },
+ "parameters": {
+ "id": 2695,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2694,
+ "mutability": "mutable",
+ "name": "swapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 2707,
+ "src": "8753:25:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2693,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8753:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8752:27:28"
+ },
+ "returnParameters": {
+ "id": 2701,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "8831:0:28"
+ },
+ "scope": 3860,
+ "src": "8723:165:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 2743,
+ "nodeType": "Block",
+ "src": "8969:434:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2716,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2713,
+ "name": "swapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2709,
+ "src": "8988:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2714,
+ "name": "_getMinSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2752,
+ "src": "9009:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
+ "typeString": "function () pure returns (uint256)"
+ }
+ },
+ "id": 2715,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9009:26:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8988:47:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2717,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "9037:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2718,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MIN_SWAP_FEE_PERCENTAGE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 587,
+ "src": "9037:30:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2712,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "8979:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2719,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8979:89:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2720,
+ "nodeType": "ExpressionStatement",
+ "src": "8979:89:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 2725,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2722,
+ "name": "swapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2709,
+ "src": "9087:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2723,
+ "name": "_getMaxSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2760,
+ "src": "9108:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
+ "typeString": "function () pure returns (uint256)"
+ }
+ },
+ "id": 2724,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9108:26:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "9087:47:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2726,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "9136:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2727,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MAX_SWAP_FEE_PERCENTAGE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 584,
+ "src": "9136:30:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2721,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "9078:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2728,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9078:89:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2729,
+ "nodeType": "ExpressionStatement",
+ "src": "9078:89:28"
+ },
+ {
+ "expression": {
+ "id": 2737,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 2730,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "9178:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 2733,
+ "name": "swapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2709,
+ "src": "9224:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2734,
+ "name": "_SWAP_FEE_PERCENTAGE_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2523,
+ "src": "9255:27:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 2735,
+ "name": "_SWAP_FEE_PERCENTAGE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2529,
+ "src": "9296:31:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 2731,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "9190:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2732,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "9190:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 2736,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9190:147:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "9178:159:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2738,
+ "nodeType": "ExpressionStatement",
+ "src": "9178:159:28"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 2740,
+ "name": "swapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2709,
+ "src": "9378:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2739,
+ "name": "SwapFeePercentageChanged",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2537,
+ "src": "9353:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 2741,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9353:43:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2742,
+ "nodeType": "EmitStatement",
+ "src": "9348:48:28"
+ }
+ ]
+ },
+ "id": 2744,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2710,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2709,
+ "mutability": "mutable",
+ "name": "swapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 2744,
+ "src": "8925:25:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2708,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8925:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8924:27:28"
+ },
+ "returnParameters": {
+ "id": 2711,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "8969:0:28"
+ },
+ "scope": 3860,
+ "src": "8894:509:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2751,
+ "nodeType": "Block",
+ "src": "9485:48:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2749,
+ "name": "_MIN_SWAP_FEE_PERCENTAGE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2515,
+ "src": "9502:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2748,
+ "id": 2750,
+ "nodeType": "Return",
+ "src": "9495:31:28"
+ }
+ ]
+ },
+ "id": 2752,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getMinSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2745,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "9442:2:28"
+ },
+ "returnParameters": {
+ "id": 2748,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2747,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2752,
+ "src": "9476:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2746,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9476:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9475:9:28"
+ },
+ "scope": 3860,
+ "src": "9409:124:28",
+ "stateMutability": "pure",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2759,
+ "nodeType": "Block",
+ "src": "9615:48:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2757,
+ "name": "_MAX_SWAP_FEE_PERCENTAGE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2518,
+ "src": "9632:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 2756,
+ "id": 2758,
+ "nodeType": "Return",
+ "src": "9625:31:28"
+ }
+ ]
+ },
+ "id": 2760,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getMaxSwapFeePercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2753,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "9572:2:28"
+ },
+ "returnParameters": {
+ "id": 2756,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2755,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2760,
+ "src": "9606:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2754,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9606:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9605:9:28"
+ },
+ "scope": 3860,
+ "src": "9539:124:28",
+ "stateMutability": "pure",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 4012
+ ],
+ "body": {
+ "id": 2772,
+ "nodeType": "Block",
+ "src": "9808:71:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2769,
+ "name": "_RECOVERY_MODE_BIT_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2526,
+ "src": "9846:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 2767,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "9825:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2768,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeBool",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6528,
+ "src": "9825:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$returns$_t_bool_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256) pure returns (bool)"
+ }
+ },
+ "id": 2770,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9825:47:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 2766,
+ "id": 2771,
+ "nodeType": "Return",
+ "src": "9818:54:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2761,
+ "nodeType": "StructuredDocumentation",
+ "src": "9669:72:28",
+ "text": " @notice Returns whether the pool is in Recovery Mode."
+ },
+ "functionSelector": "b35056b8",
+ "id": 2773,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "inRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2763,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "9784:8:28"
+ },
+ "parameters": {
+ "id": 2762,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "9769:2:28"
+ },
+ "returnParameters": {
+ "id": 2766,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2765,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2773,
+ "src": "9802:4:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 2764,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "9802:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9801:6:28"
+ },
+ "scope": 3860,
+ "src": "9746:133:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 4018
+ ],
+ "body": {
+ "id": 2798,
+ "nodeType": "Block",
+ "src": "10043:422:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2786,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 2780,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "10053:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 2783,
+ "name": "enabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2776,
+ "src": "10086:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "id": 2784,
+ "name": "_RECOVERY_MODE_BIT_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2526,
+ "src": "10095:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 2781,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "10065:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2782,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertBool",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6616,
+ "src": "10065:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_bool_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,bool,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 2785,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10065:56:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "10053:68:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2787,
+ "nodeType": "ExpressionStatement",
+ "src": "10053:68:28"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 2789,
+ "name": "enabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2776,
+ "src": "10162:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ ],
+ "id": 2788,
+ "name": "RecoveryModeStateChanged",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 436,
+ "src": "10137:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_bool_$returns$__$",
+ "typeString": "function (bool)"
+ }
+ },
+ "id": 2790,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10137:33:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2791,
+ "nodeType": "EmitStatement",
+ "src": "10132:38:28"
+ },
+ {
+ "condition": {
+ "id": 2793,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "10424:8:28",
+ "subExpression": {
+ "id": 2792,
+ "name": "enabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2776,
+ "src": "10425:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 2797,
+ "nodeType": "IfStatement",
+ "src": "10420:38:28",
+ "trueBody": {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2794,
+ "name": "_onDisableRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2804,
+ "src": "10434:22:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 2795,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10434:24:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2796,
+ "nodeType": "ExpressionStatement",
+ "src": "10434:24:28"
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2774,
+ "nodeType": "StructuredDocumentation",
+ "src": "9885:87:28",
+ "text": " @dev Sets the recoveryMode state, and emits the corresponding event."
+ },
+ "id": 2799,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2778,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "10034:8:28"
+ },
+ "parameters": {
+ "id": 2777,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2776,
+ "mutability": "mutable",
+ "name": "enabled",
+ "nodeType": "VariableDeclaration",
+ "scope": 2799,
+ "src": "10003:12:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 2775,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "10003:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "10002:14:28"
+ },
+ "returnParameters": {
+ "id": 2779,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10043:0:28"
+ },
+ "scope": 3860,
+ "src": "9977:488:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2803,
+ "nodeType": "Block",
+ "src": "10731:2:28",
+ "statements": []
+ },
+ "documentation": {
+ "id": 2800,
+ "nodeType": "StructuredDocumentation",
+ "src": "10471:204:28",
+ "text": " @dev Performs any necessary actions on the disabling of Recovery Mode.\n This is usually to reset any fee collection mechanisms to ensure that they operate correctly going forward."
+ },
+ "id": 2804,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onDisableRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2801,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10711:2:28"
+ },
+ "returnParameters": {
+ "id": 2802,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10731:0:28"
+ },
+ "scope": 3860,
+ "src": "10680:53:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 408
+ ],
+ "body": {
+ "id": 2822,
+ "nodeType": "Block",
+ "src": "11203:62:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2818,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2807,
+ "src": "11240:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ {
+ "id": 2819,
+ "name": "poolConfig",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2809,
+ "src": "11247:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 2817,
+ "name": "_setAssetManagerPoolConfig",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2853,
+ "src": "11213:26:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IERC20_$1152_$_t_bytes_memory_ptr_$returns$__$",
+ "typeString": "function (contract IERC20,bytes memory)"
+ }
+ },
+ "id": 2820,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11213:45:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2821,
+ "nodeType": "ExpressionStatement",
+ "src": "11213:45:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2805,
+ "nodeType": "StructuredDocumentation",
+ "src": "10739:290:28",
+ "text": " @notice Set the asset manager parameters for the given token.\n @dev This is a permissioned function, unavailable when the pool is paused.\n The details of the configuration data are set by each Asset Manager. (For an example, see\n `RewardsAssetManager`.)"
+ },
+ "functionSelector": "50dd6ed9",
+ "id": 2823,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 2813,
+ "modifierName": {
+ "id": 2812,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "11164:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "11164:12:28"
+ },
+ {
+ "id": 2815,
+ "modifierName": {
+ "id": 2814,
+ "name": "whenNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6083,
+ "src": "11185:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "11185:13:28"
+ }
+ ],
+ "name": "setAssetManagerPoolConfig",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2811,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "11147:8:28"
+ },
+ "parameters": {
+ "id": 2810,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2807,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 2823,
+ "src": "11069:12:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 2806,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "11069:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2809,
+ "mutability": "mutable",
+ "name": "poolConfig",
+ "nodeType": "VariableDeclaration",
+ "scope": 2823,
+ "src": "11083:23:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 2808,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "11083:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11068:39:28"
+ },
+ "returnParameters": {
+ "id": 2816,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "11203:0:28"
+ },
+ "scope": 3860,
+ "src": "11034:231:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 2852,
+ "nodeType": "Block",
+ "src": "11354:196:28",
+ "statements": [
+ {
+ "assignments": [
+ 2831
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2831,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 2852,
+ "src": "11364:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2830,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "11364:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2834,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2832,
+ "name": "getPoolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2649,
+ "src": "11381:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
+ "typeString": "function () view returns (bytes32)"
+ }
+ },
+ "id": 2833,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11381:11:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "11364:28:28"
+ },
+ {
+ "assignments": [
+ null,
+ null,
+ null,
+ 2836
+ ],
+ "declarations": [
+ null,
+ null,
+ null,
+ {
+ "constant": false,
+ "id": 2836,
+ "mutability": "mutable",
+ "name": "assetManager",
+ "nodeType": "VariableDeclaration",
+ "scope": 2852,
+ "src": "11409:20:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2835,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "11409:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2843,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 2840,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2831,
+ "src": "11461:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 2841,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2825,
+ "src": "11469:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2837,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2059,
+ "src": "11433:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 2838,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11433:10:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 2839,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getPoolTokenInfo",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1763,
+ "src": "11433:27:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_contract$_IERC20_$1152_$returns$_t_uint256_$_t_uint256_$_t_uint256_$_t_address_$",
+ "typeString": "function (bytes32,contract IERC20) view external returns (uint256,uint256,uint256,address)"
+ }
+ },
+ "id": 2842,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11433:42:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$_t_address_$",
+ "typeString": "tuple(uint256,uint256,uint256,address)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "11402:73:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 2848,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2831,
+ "src": "11524:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 2849,
+ "name": "poolConfig",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2827,
+ "src": "11532:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 2845,
+ "name": "assetManager",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2836,
+ "src": "11500:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 2844,
+ "name": "IAssetManager",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 368,
+ "src": "11486:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IAssetManager_$368_$",
+ "typeString": "type(contract IAssetManager)"
+ }
+ },
+ "id": 2846,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11486:27:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAssetManager_$368",
+ "typeString": "contract IAssetManager"
+ }
+ },
+ "id": 2847,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "setConfig",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 303,
+ "src": "11486:37:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$returns$__$",
+ "typeString": "function (bytes32,bytes memory) external"
+ }
+ },
+ "id": 2850,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11486:57:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2851,
+ "nodeType": "ExpressionStatement",
+ "src": "11486:57:28"
+ }
+ ]
+ },
+ "id": 2853,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setAssetManagerPoolConfig",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2828,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2825,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 2853,
+ "src": "11307:12:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 2824,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "11307:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2827,
+ "mutability": "mutable",
+ "name": "poolConfig",
+ "nodeType": "VariableDeclaration",
+ "scope": 2853,
+ "src": "11321:23:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 2826,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "11321:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11306:39:28"
+ },
+ "returnParameters": {
+ "id": 2829,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "11354:0:28"
+ },
+ "scope": 3860,
+ "src": "11271:279:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 2863,
+ "nodeType": "Block",
+ "src": "11856:33:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "74727565",
+ "id": 2860,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11877:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ ],
+ "id": 2859,
+ "name": "_setPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6150,
+ "src": "11866:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bool_$returns$__$",
+ "typeString": "function (bool)"
+ }
+ },
+ "id": 2861,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11866:16:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2862,
+ "nodeType": "ExpressionStatement",
+ "src": "11866:16:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2854,
+ "nodeType": "StructuredDocumentation",
+ "src": "11556:256:28",
+ "text": " @notice Pause the pool: an emergency action which disables all pool functions.\n @dev This is a permissioned function that will only work during the Pause Window set during pool factory\n deployment (see `TemporarilyPausable`)."
+ },
+ "functionSelector": "8456cb59",
+ "id": 2864,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 2857,
+ "modifierName": {
+ "id": 2856,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "11843:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "11843:12:28"
+ }
+ ],
+ "name": "pause",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2855,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "11831:2:28"
+ },
+ "returnParameters": {
+ "id": 2858,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "11856:0:28"
+ },
+ "scope": 3860,
+ "src": "11817:72:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 2874,
+ "nodeType": "Block",
+ "src": "12311:34:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "66616c7365",
+ "id": 2871,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12332:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "false"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ ],
+ "id": 2870,
+ "name": "_setPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6150,
+ "src": "12321:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bool_$returns$__$",
+ "typeString": "function (bool)"
+ }
+ },
+ "id": 2872,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12321:17:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2873,
+ "nodeType": "ExpressionStatement",
+ "src": "12321:17:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2865,
+ "nodeType": "StructuredDocumentation",
+ "src": "11895:370:28",
+ "text": " @notice Reverse a `pause` operation, and restore a pool to normal functionality.\n @dev This is a permissioned function that will only work on a paused pool within the Buffer Period set during\n pool factory deployment (see `TemporarilyPausable`). Note that any paused pools will automatically unpause\n after the Buffer Period expires."
+ },
+ "functionSelector": "3f4ba83a",
+ "id": 2875,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 2868,
+ "modifierName": {
+ "id": 2867,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "12298:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "12298:12:28"
+ }
+ ],
+ "name": "unpause",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2866,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "12286:2:28"
+ },
+ "returnParameters": {
+ "id": 2869,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "12311:0:28"
+ },
+ "scope": 3860,
+ "src": "12270:75:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 3949
+ ],
+ "body": {
+ "id": 2906,
+ "nodeType": "Block",
+ "src": "12443:229:28",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 2904,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 2899,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 2889,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2883,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2877,
+ "src": "12473:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "expression": {
+ "expression": {
+ "id": 2885,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "12497:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ },
+ "id": 2886,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "setSwapFeePercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 2707,
+ "src": "12497:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256) external"
+ }
+ },
+ "id": 2887,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "selector",
+ "nodeType": "MemberAccess",
+ "src": "12497:34:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ ],
+ "id": 2884,
+ "name": "getActionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5031,
+ "src": "12485:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes4_$returns$_t_bytes32_$",
+ "typeString": "function (bytes4) view returns (bytes32)"
+ }
+ },
+ "id": 2888,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12485:47:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "12473:59:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 2890,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12472:61:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 2897,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2891,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2877,
+ "src": "12550:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "expression": {
+ "expression": {
+ "id": 2893,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "12574:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ },
+ "id": 2894,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "setAssetManagerPoolConfig",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 2823,
+ "src": "12574:30:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$1152_$_t_bytes_memory_ptr_$returns$__$",
+ "typeString": "function (contract IERC20,bytes memory) external"
+ }
+ },
+ "id": 2895,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "selector",
+ "nodeType": "MemberAccess",
+ "src": "12574:39:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ ],
+ "id": 2892,
+ "name": "getActionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5031,
+ "src": "12562:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes4_$returns$_t_bytes32_$",
+ "typeString": "function (bytes4) view returns (bytes32)"
+ }
+ },
+ "id": 2896,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12562:52:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "12550:64:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 2898,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12549:66:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "12472:143:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 2902,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2877,
+ "src": "12656:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "id": 2900,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "12631:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_BasePool_$3860",
+ "typeString": "contract super BasePool"
+ }
+ },
+ "id": 2901,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_isOwnerOnlyAction",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 3949,
+ "src": "12631:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
+ "typeString": "function (bytes32) view returns (bool)"
+ }
+ },
+ "id": 2903,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12631:34:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "12472:193:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 2882,
+ "id": 2905,
+ "nodeType": "Return",
+ "src": "12453:212:28"
+ }
+ ]
+ },
+ "id": 2907,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_isOwnerOnlyAction",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2879,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "12419:8:28"
+ },
+ "parameters": {
+ "id": 2878,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2877,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 2907,
+ "src": "12379:16:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2876,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "12379:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12378:18:28"
+ },
+ "returnParameters": {
+ "id": 2882,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2881,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2907,
+ "src": "12437:4:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 2880,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "12437:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12436:6:28"
+ },
+ "scope": 3860,
+ "src": "12351:321:28",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2914,
+ "nodeType": "Block",
+ "src": "12734:33:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2912,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "12751:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 2911,
+ "id": 2913,
+ "nodeType": "Return",
+ "src": "12744:16:28"
+ }
+ ]
+ },
+ "id": 2915,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getMiscData",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2908,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "12699:2:28"
+ },
+ "returnParameters": {
+ "id": 2911,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2910,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 2915,
+ "src": "12725:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2909,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "12725:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12724:9:28"
+ },
+ "scope": 3860,
+ "src": "12678:89:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2929,
+ "nodeType": "Block",
+ "src": "13031:64:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 2927,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 2921,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "13041:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 2924,
+ "name": "newData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2918,
+ "src": "13077:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "hexValue": "30",
+ "id": 2925,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13086:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "expression": {
+ "id": 2922,
+ "name": "_miscData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2520,
+ "src": "13053:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2923,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertBits192",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6572,
+ "src": "13053:23:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_bytes32_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,bytes32,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 2926,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13053:35:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "13041:47:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 2928,
+ "nodeType": "ExpressionStatement",
+ "src": "13041:47:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2916,
+ "nodeType": "StructuredDocumentation",
+ "src": "12773:205:28",
+ "text": " @dev Inserts data into the least-significant 192 bits of the misc data storage slot.\n Note that the remaining 64 bits are used for the swap fee percentage and cannot be overloaded."
+ },
+ "id": 2930,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setMiscData",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 2919,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2918,
+ "mutability": "mutable",
+ "name": "newData",
+ "nodeType": "VariableDeclaration",
+ "scope": 2930,
+ "src": "13005:15:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2917,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "13005:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13004:17:28"
+ },
+ "returnParameters": {
+ "id": 2920,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "13031:0:28"
+ },
+ "scope": 3860,
+ "src": "12983:112:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 2957,
+ "nodeType": "Block",
+ "src": "13162:161:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 2942,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 2935,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "13181:3:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 2936,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "13181:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2939,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2059,
+ "src": "13203:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 2940,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13203:10:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ ],
+ "id": 2938,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "13195:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 2937,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "13195:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 2941,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13195:19:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "13181:33:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2943,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "13216:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2944,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "CALLER_NOT_VAULT",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 593,
+ "src": "13216:23:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2934,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "13172:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2945,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13172:68:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2946,
+ "nodeType": "ExpressionStatement",
+ "src": "13172:68:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 2951,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 2948,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2932,
+ "src": "13259:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2949,
+ "name": "getPoolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2649,
+ "src": "13269:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
+ "typeString": "function () view returns (bytes32)"
+ }
+ },
+ "id": 2950,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13269:11:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "13259:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 2952,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "13282:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 2953,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "INVALID_POOL_ID",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 908,
+ "src": "13282:22:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 2947,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "13250:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 2954,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13250:55:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2955,
+ "nodeType": "ExpressionStatement",
+ "src": "13250:55:28"
+ },
+ {
+ "id": 2956,
+ "nodeType": "PlaceholderStatement",
+ "src": "13315:1:28"
+ }
+ ]
+ },
+ "id": 2958,
+ "name": "onlyVault",
+ "nodeType": "ModifierDefinition",
+ "parameters": {
+ "id": 2933,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2932,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 2958,
+ "src": "13146:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2931,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "13146:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13145:16:28"
+ },
+ "src": "13127:196:28",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1334
+ ],
+ "body": {
+ "id": 3102,
+ "nodeType": "Block",
+ "src": "13857:1997:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2987,
+ "name": "_beforeSwapJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3400,
+ "src": "13867:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 2988,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13867:21:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 2989,
+ "nodeType": "ExpressionStatement",
+ "src": "13867:21:28"
+ },
+ {
+ "assignments": [
+ 2994
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 2994,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3102,
+ "src": "13899:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2992,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13899:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2993,
+ "nodeType": "ArrayTypeName",
+ "src": "13899:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 2997,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2995,
+ "name": "_scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3519,
+ "src": "13933:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function () view returns (uint256[] memory)"
+ }
+ },
+ "id": 2996,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13933:17:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13899:51:28"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3001,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 2998,
+ "name": "totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8948,
+ "src": "13965:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 2999,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13965:13:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 3000,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13982:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "13965:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 3100,
+ "nodeType": "Block",
+ "src": "14922:926:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3057,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2968,
+ "src": "14950:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3058,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2994,
+ "src": "14960:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 3056,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "14936:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 3059,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14936:39:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3060,
+ "nodeType": "ExpressionStatement",
+ "src": "14936:39:28"
+ },
+ {
+ "assignments": [
+ 3062,
+ 3065
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3062,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3100,
+ "src": "14990:20:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3061,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14990:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3065,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3100,
+ "src": "15012:26:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3063,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15012:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3064,
+ "nodeType": "ArrayTypeName",
+ "src": "15012:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3080,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 3067,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2961,
+ "src": "15071:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 3068,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2963,
+ "src": "15095:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3069,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2965,
+ "src": "15119:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3070,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2968,
+ "src": "15146:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3071,
+ "name": "lastChangeBlock",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2970,
+ "src": "15172:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "condition": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3072,
+ "name": "inRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 2773
+ ],
+ "referencedDeclaration": 2773,
+ "src": "15205:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 3073,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15205:16:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 3075,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2972,
+ "src": "15228:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3076,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "15205:48:28",
+ "trueExpression": {
+ "hexValue": "30",
+ "id": 3074,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "15224:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3077,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2994,
+ "src": "15324:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3078,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2974,
+ "src": "15356:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 3066,
+ "name": "_onJoinPool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3365,
+ "src": "15042:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 3079,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15042:336:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "14989:389:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3082,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2965,
+ "src": "15508:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3083,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3062,
+ "src": "15519:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3081,
+ "name": "_mintPoolTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2216,
+ "src": "15492:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 3084,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15492:40:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3085,
+ "nodeType": "ExpressionStatement",
+ "src": "15492:40:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3087,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3065,
+ "src": "15637:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3088,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2994,
+ "src": "15648:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 3086,
+ "name": "_downscaleUpArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3731,
+ "src": "15619:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 3089,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15619:44:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3090,
+ "nodeType": "ExpressionStatement",
+ "src": "15619:44:28"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 3091,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3065,
+ "src": "15795:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 3095,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2968,
+ "src": "15820:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3096,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "15820:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3094,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "15806:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3092,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15810:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3093,
+ "nodeType": "ArrayTypeName",
+ "src": "15810:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 3097,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15806:30:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 3098,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "15794:43:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256[] memory,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 2986,
+ "id": 3099,
+ "nodeType": "Return",
+ "src": "15787:50:28"
+ }
+ ]
+ },
+ "id": 3101,
+ "nodeType": "IfStatement",
+ "src": "13961:1887:28",
+ "trueBody": {
+ "id": 3055,
+ "nodeType": "Block",
+ "src": "13985:931:28",
+ "statements": [
+ {
+ "assignments": [
+ 3003,
+ 3006
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3003,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3055,
+ "src": "14000:20:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3002,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14000:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3006,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3055,
+ "src": "14022:26:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3004,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14022:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3005,
+ "nodeType": "ArrayTypeName",
+ "src": "14022:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3014,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 3008,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2961,
+ "src": "14087:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 3009,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2963,
+ "src": "14111:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3010,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2965,
+ "src": "14135:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3011,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2994,
+ "src": "14162:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3012,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2974,
+ "src": "14194:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 3007,
+ "name": "_onInitializePool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3338,
+ "src": "14052:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 3013,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14052:164:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13999:217:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3019,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 3016,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3003,
+ "src": "14524:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3017,
+ "name": "_getMinimumBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2668,
+ "src": "14540:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
+ "typeString": "function () pure returns (uint256)"
+ }
+ },
+ "id": 3018,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14540:16:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "14524:32:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 3020,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "14558:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 3021,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MINIMUM_BPT",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 590,
+ "src": "14558:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3015,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "14515:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 3022,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14515:62:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3023,
+ "nodeType": "ExpressionStatement",
+ "src": "14515:62:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 3027,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "14615:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 3026,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "14607:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3025,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "14607:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3028,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14607:10:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3029,
+ "name": "_getMinimumBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2668,
+ "src": "14619:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
+ "typeString": "function () pure returns (uint256)"
+ }
+ },
+ "id": 3030,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14619:16:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3024,
+ "name": "_mintPoolTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2216,
+ "src": "14591:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 3031,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14591:45:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3032,
+ "nodeType": "ExpressionStatement",
+ "src": "14591:45:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3034,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2965,
+ "src": "14666:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3038,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 3035,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3003,
+ "src": "14677:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3036,
+ "name": "_getMinimumBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2668,
+ "src": "14692:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
+ "typeString": "function () pure returns (uint256)"
+ }
+ },
+ "id": 3037,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14692:16:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "14677:31:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3033,
+ "name": "_mintPoolTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2216,
+ "src": "14650:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 3039,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14650:59:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3040,
+ "nodeType": "ExpressionStatement",
+ "src": "14650:59:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3042,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3006,
+ "src": "14814:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3043,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2994,
+ "src": "14825:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 3041,
+ "name": "_downscaleUpArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3731,
+ "src": "14796:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 3044,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14796:44:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3045,
+ "nodeType": "ExpressionStatement",
+ "src": "14796:44:28"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 3046,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3006,
+ "src": "14863:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 3050,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2968,
+ "src": "14888:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3051,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "14888:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3049,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "14874:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3047,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14878:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3048,
+ "nodeType": "ArrayTypeName",
+ "src": "14878:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 3052,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14874:30:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 3053,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "14862:43:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256[] memory,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 2986,
+ "id": 3054,
+ "nodeType": "Return",
+ "src": "14855:50:28"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 2959,
+ "nodeType": "StructuredDocumentation",
+ "src": "13329:199:28",
+ "text": " @notice Vault hook for adding liquidity to a pool (including the first time, \"initializing\" the pool).\n @dev This function can only be called from the Vault, from `joinPool`."
+ },
+ "functionSelector": "d5c096c4",
+ "id": 3103,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "id": 2978,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2961,
+ "src": "13804:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "id": 2979,
+ "modifierName": {
+ "id": 2977,
+ "name": "onlyVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2958,
+ "src": "13794:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$_t_bytes32_$",
+ "typeString": "modifier (bytes32)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "13794:17:28"
+ }
+ ],
+ "name": "onJoinPool",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 2976,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "13785:8:28"
+ },
+ "parameters": {
+ "id": 2975,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2961,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13562:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 2960,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "13562:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2963,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13586:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2962,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "13586:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2965,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13610:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 2964,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "13610:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2968,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13637:25:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2966,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13637:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2967,
+ "nodeType": "ArrayTypeName",
+ "src": "13637:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2970,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13672:23:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2969,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13672:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2972,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13705:33:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 2971,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13705:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2974,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13748:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 2973,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "13748:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13552:223:28"
+ },
+ "returnParameters": {
+ "id": 2986,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 2982,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13821:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2980,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13821:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2981,
+ "nodeType": "ArrayTypeName",
+ "src": "13821:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 2985,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3103,
+ "src": "13839:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 2983,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13839:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 2984,
+ "nodeType": "ArrayTypeName",
+ "src": "13839:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13820:36:28"
+ },
+ "scope": 3860,
+ "src": "13533:2321:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 1359
+ ],
+ "body": {
+ "id": 3215,
+ "nodeType": "Block",
+ "src": "16340:1987:28",
+ "statements": [
+ {
+ "assignments": [
+ 3136
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3136,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3215,
+ "src": "16350:27:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3134,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16350:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3135,
+ "nodeType": "ArrayTypeName",
+ "src": "16350:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3137,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "16350:27:28"
+ },
+ {
+ "assignments": [
+ 3139
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3139,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3215,
+ "src": "16387:19:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3138,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16387:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3140,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "16387:19:28"
+ },
+ {
+ "condition": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 3141,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3119,
+ "src": "16841:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 3142,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "isRecoveryModeExitKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 264,
+ "src": "16841:31:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_bool_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (bool)"
+ }
+ },
+ "id": 3143,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "16841:33:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 3199,
+ "nodeType": "Block",
+ "src": "17251:761:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3159,
+ "name": "_beforeSwapJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3400,
+ "src": "17346:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 3160,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17346:21:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3161,
+ "nodeType": "ExpressionStatement",
+ "src": "17346:21:28"
+ },
+ {
+ "assignments": [
+ 3166
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3166,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3199,
+ "src": "17382:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3164,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17382:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3165,
+ "nodeType": "ArrayTypeName",
+ "src": "17382:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3169,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3167,
+ "name": "_scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3519,
+ "src": "17416:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function () view returns (uint256[] memory)"
+ }
+ },
+ "id": 3168,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17416:17:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17382:51:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3171,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3113,
+ "src": "17461:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3172,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3166,
+ "src": "17471:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 3170,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "17447:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 3173,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17447:39:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3174,
+ "nodeType": "ExpressionStatement",
+ "src": "17447:39:28"
+ },
+ {
+ "expression": {
+ "id": 3192,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ {
+ "id": 3175,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3139,
+ "src": "17502:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3176,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3136,
+ "src": "17515:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 3177,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "17501:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 3179,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3106,
+ "src": "17558:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 3180,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3108,
+ "src": "17582:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3181,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3110,
+ "src": "17606:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3182,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3113,
+ "src": "17633:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3183,
+ "name": "lastChangeBlock",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3115,
+ "src": "17659:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "condition": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3184,
+ "name": "inRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 2773
+ ],
+ "referencedDeclaration": 2773,
+ "src": "17692:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 3185,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17692:16:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 3187,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3117,
+ "src": "17715:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3188,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "17692:48:28",
+ "trueExpression": {
+ "hexValue": "30",
+ "id": 3186,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "17711:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3189,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3166,
+ "src": "17811:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3190,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3119,
+ "src": "17843:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 3178,
+ "name": "_onExitPool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3392,
+ "src": "17529:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 3191,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17529:336:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "src": "17501:364:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3193,
+ "nodeType": "ExpressionStatement",
+ "src": "17501:364:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3195,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3136,
+ "src": "17974:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3196,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3166,
+ "src": "17986:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 3194,
+ "name": "_downscaleDownArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3664,
+ "src": "17954:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 3197,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17954:47:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3198,
+ "nodeType": "ExpressionStatement",
+ "src": "17954:47:28"
+ }
+ ]
+ },
+ "id": 3200,
+ "nodeType": "IfStatement",
+ "src": "16837:1175:28",
+ "trueBody": {
+ "id": 3158,
+ "nodeType": "Block",
+ "src": "16876:369:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3144,
+ "name": "_ensureInRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4030,
+ "src": "16956:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 3145,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "16956:23:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3146,
+ "nodeType": "ExpressionStatement",
+ "src": "16956:23:28"
+ },
+ {
+ "expression": {
+ "id": 3156,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ {
+ "id": 3147,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3139,
+ "src": "17153:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3148,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3136,
+ "src": "17166:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 3149,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "17152:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 3151,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3113,
+ "src": "17200:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3152,
+ "name": "totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8948,
+ "src": "17210:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 3153,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17210:13:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3154,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3119,
+ "src": "17225:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 3150,
+ "name": "_doRecoveryModeExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4081,
+ "src": "17180:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 3155,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17180:54:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "src": "17152:82:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3157,
+ "nodeType": "ExpressionStatement",
+ "src": "17152:82:28"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3202,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3108,
+ "src": "18133:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3203,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3139,
+ "src": "18141:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3201,
+ "name": "_burnPoolTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2229,
+ "src": "18117:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 3204,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18117:36:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3205,
+ "nodeType": "ExpressionStatement",
+ "src": "18117:36:28"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 3206,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3136,
+ "src": "18277:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 3210,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3113,
+ "src": "18303:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3211,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "18303:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3209,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "18289:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3207,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18293:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3208,
+ "nodeType": "ArrayTypeName",
+ "src": "18293:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 3212,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18289:30:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 3213,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18276:44:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256[] memory,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 3131,
+ "id": 3214,
+ "nodeType": "Return",
+ "src": "18269:51:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3104,
+ "nodeType": "StructuredDocumentation",
+ "src": "15860:151:28",
+ "text": " @notice Vault hook for removing liquidity from a pool.\n @dev This function can only be called from the Vault, from `exitPool`."
+ },
+ "functionSelector": "74f3b009",
+ "id": 3216,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "id": 3123,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3106,
+ "src": "16287:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "id": 3124,
+ "modifierName": {
+ "id": 3122,
+ "name": "onlyVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2958,
+ "src": "16277:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$_t_bytes32_$",
+ "typeString": "modifier (bytes32)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "16277:17:28"
+ }
+ ],
+ "name": "onExitPool",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3121,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "16268:8:28"
+ },
+ "parameters": {
+ "id": 3120,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3106,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16045:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3105,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "16045:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3108,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16069:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3107,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "16069:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3110,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16093:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3109,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "16093:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3113,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16120:25:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3111,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16120:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3112,
+ "nodeType": "ArrayTypeName",
+ "src": "16120:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3115,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16155:23:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3114,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16155:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3117,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16188:33:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3116,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16188:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3119,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16231:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3118,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "16231:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "16035:223:28"
+ },
+ "returnParameters": {
+ "id": 3131,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3127,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16304:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3125,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16304:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3126,
+ "nodeType": "ArrayTypeName",
+ "src": "16304:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3130,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3216,
+ "src": "16322:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3128,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16322:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3129,
+ "nodeType": "ArrayTypeName",
+ "src": "16322:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "16303:36:28"
+ },
+ "scope": 3860,
+ "src": "16016:2311:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 1401
+ ],
+ "body": {
+ "id": 3266,
+ "nodeType": "Block",
+ "src": "19332:598:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 3244,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3226,
+ "src": "19378:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3245,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "19378:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3246,
+ "name": "_getTotalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2654,
+ "src": "19395:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 3247,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19395:17:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3241,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "19342:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 3243,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "19342:35:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 3248,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19342:71:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3249,
+ "nodeType": "ExpressionStatement",
+ "src": "19342:71:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3251,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3219,
+ "src": "19450:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 3252,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3221,
+ "src": "19470:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3253,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3223,
+ "src": "19490:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3254,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3226,
+ "src": "19513:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3255,
+ "name": "lastChangeBlock",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3228,
+ "src": "19535:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3256,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3230,
+ "src": "19564:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3257,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3232,
+ "src": "19603:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "id": 3258,
+ "name": "_onJoinPool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3365,
+ "src": "19625:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ {
+ "id": 3259,
+ "name": "_downscaleUpArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3731,
+ "src": "19650:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ },
+ {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ ],
+ "id": 3250,
+ "name": "_queryAction",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3859,
+ "src": "19424:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$_t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_$_t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$_$returns$__$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,bytes memory,function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory),function (uint256[] memory,uint256[] memory) view)"
+ }
+ },
+ "id": 3260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19424:253:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3261,
+ "nodeType": "ExpressionStatement",
+ "src": "19424:253:28"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 3262,
+ "name": "bptOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3236,
+ "src": "19905:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3263,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3239,
+ "src": "19913:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 3264,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "19904:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 3240,
+ "id": 3265,
+ "nodeType": "Return",
+ "src": "19897:26:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3217,
+ "nodeType": "StructuredDocumentation",
+ "src": "18357:657:28",
+ "text": " @notice \"Dry run\" `onJoinPool`.\n @dev Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the\n Vault with the same arguments, along with the number of tokens `sender` would have to supply.\n This function is not meant to be called directly, but rather from a helper contract that fetches current Vault\n data, such as the protocol swap fee percentage and Pool balances.\n Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must\n explicitly use eth_call instead of eth_sendTransaction."
+ },
+ "functionSelector": "87ec6817",
+ "id": 3267,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "queryJoin",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3234,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "19270:8:28"
+ },
+ "parameters": {
+ "id": 3233,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3219,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19047:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3218,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "19047:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3221,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19071:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3220,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "19071:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3223,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19095:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3222,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "19095:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3226,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19122:25:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3224,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19122:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3225,
+ "nodeType": "ArrayTypeName",
+ "src": "19122:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3228,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19157:23:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3227,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19157:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3230,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19190:33:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3229,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19190:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3232,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19233:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3231,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "19233:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "19037:223:28"
+ },
+ "returnParameters": {
+ "id": 3240,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3236,
+ "mutability": "mutable",
+ "name": "bptOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19288:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3235,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19288:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3239,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3267,
+ "src": "19304:26:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3237,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19304:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3238,
+ "nodeType": "ArrayTypeName",
+ "src": "19304:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "19287:44:28"
+ },
+ "scope": 3860,
+ "src": "19019:911:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 1424
+ ],
+ "body": {
+ "id": 3317,
+ "nodeType": "Block",
+ "src": "20905:600:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 3295,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3277,
+ "src": "20951:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3296,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "20951:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3297,
+ "name": "_getTotalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2654,
+ "src": "20968:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 3298,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20968:17:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3292,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "20915:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 3294,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "20915:35:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 3299,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20915:71:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3300,
+ "nodeType": "ExpressionStatement",
+ "src": "20915:71:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3302,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3270,
+ "src": "21023:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 3303,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3272,
+ "src": "21043:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3304,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3274,
+ "src": "21063:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3305,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3277,
+ "src": "21086:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3306,
+ "name": "lastChangeBlock",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3279,
+ "src": "21108:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3307,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3281,
+ "src": "21137:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3308,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3283,
+ "src": "21176:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "id": 3309,
+ "name": "_onExitPool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3392,
+ "src": "21198:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ {
+ "id": 3310,
+ "name": "_downscaleDownArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3664,
+ "src": "21223:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ },
+ {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ ],
+ "id": 3301,
+ "name": "_queryAction",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3859,
+ "src": "20997:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$_t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_$_t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$_$returns$__$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,bytes memory,function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory),function (uint256[] memory,uint256[] memory) view)"
+ }
+ },
+ "id": 3311,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20997:255:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3312,
+ "nodeType": "ExpressionStatement",
+ "src": "20997:255:28"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 3313,
+ "name": "bptIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3287,
+ "src": "21480:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3314,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3290,
+ "src": "21487:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 3315,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "21479:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 3291,
+ "id": 3316,
+ "nodeType": "Return",
+ "src": "21472:26:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3268,
+ "nodeType": "StructuredDocumentation",
+ "src": "19936:651:28",
+ "text": " @notice \"Dry run\" `onExitPool`.\n @dev Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the\n Vault with the same arguments, along with the number of tokens `recipient` would receive.\n This function is not meant to be called directly, but rather from a helper contract that fetches current Vault\n data, such as the protocol swap fee percentage and Pool balances.\n Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must\n explicitly use eth_call instead of eth_sendTransaction."
+ },
+ "functionSelector": "6028bfd4",
+ "id": 3318,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "queryExit",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3285,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "20843:8:28"
+ },
+ "parameters": {
+ "id": 3284,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3270,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20620:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3269,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "20620:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3272,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20644:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3271,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "20644:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3274,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20668:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3273,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "20668:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3277,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20695:25:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3275,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20695:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3276,
+ "nodeType": "ArrayTypeName",
+ "src": "20695:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3279,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20730:23:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3278,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20730:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3281,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20763:33:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3280,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20763:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3283,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20806:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3282,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "20806:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "20610:223:28"
+ },
+ "returnParameters": {
+ "id": 3291,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3287,
+ "mutability": "mutable",
+ "name": "bptIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20861:13:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3286,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20861:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3290,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3318,
+ "src": "20876:27:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3288,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20876:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3289,
+ "nodeType": "ArrayTypeName",
+ "src": "20876:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "20860:44:28"
+ },
+ "scope": 3860,
+ "src": "20592:913:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "documentation": {
+ "id": 3319,
+ "nodeType": "StructuredDocumentation",
+ "src": "21646:805:28",
+ "text": " @dev Called when the Pool is joined for the first time; that is, when the BPT total supply is zero.\n Returns the amount of BPT to mint, and the token amounts the Pool will receive in return.\n Minted BPT will be sent to `recipient`, except for _getMinimumBpt(), which will be deducted from this amount and\n sent to the zero address instead. This will cause that BPT to remain forever locked there, preventing total BTP\n from ever dropping below that value, and ensuring `_onInitializePool` can only be called once in the entire\n Pool's lifetime.\n The tokens granted to the Pool will be transferred from `sender`. These amounts are considered upscaled and will\n be downscaled (rounding up) before being returned to the Vault."
+ },
+ "id": 3338,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onInitializePool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3331,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3321,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3338,
+ "src": "22492:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3320,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "22492:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3323,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3338,
+ "src": "22516:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3322,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "22516:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3325,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3338,
+ "src": "22540:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3324,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "22540:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3328,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3338,
+ "src": "22567:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3326,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22567:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3327,
+ "nodeType": "ArrayTypeName",
+ "src": "22567:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3330,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3338,
+ "src": "22608:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3329,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "22608:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "22482:153:28"
+ },
+ "returnParameters": {
+ "id": 3337,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3333,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3338,
+ "src": "22662:20:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3332,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22662:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3336,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3338,
+ "src": "22684:26:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3334,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22684:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3335,
+ "nodeType": "ArrayTypeName",
+ "src": "22684:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "22661:50:28"
+ },
+ "scope": 3860,
+ "src": "22456:256:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "documentation": {
+ "id": 3339,
+ "nodeType": "StructuredDocumentation",
+ "src": "22718:1005:28",
+ "text": " @dev Called whenever the Pool is joined after the first initialization join (see `_onInitializePool`).\n Returns the amount of BPT to mint, the token amounts that the Pool will receive in return, and the number of\n tokens to pay in protocol swap fees.\n Implementations of this function might choose to mutate the `balances` array to save gas (e.g. when\n performing intermediate calculations, such as subtraction of due protocol fees). This can be done safely.\n Minted BPT will be sent to `recipient`.\n The tokens granted to the Pool will be transferred from `sender`. These amounts are considered upscaled and will\n be downscaled (rounding up) before being returned to the Vault.\n Due protocol swap fees will be taken from the Pool's balance in the Vault (see `IBasePool.onJoinPool`). These\n amounts are considered upscaled and will be downscaled (rounding down) before being returned to the Vault."
+ },
+ "id": 3365,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onJoinPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3358,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3341,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23758:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3340,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "23758:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3343,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23782:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3342,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "23782:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3345,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23806:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3344,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "23806:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3348,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23833:25:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3346,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23833:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3347,
+ "nodeType": "ArrayTypeName",
+ "src": "23833:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3350,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23868:23:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3349,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23868:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3352,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23901:33:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3351,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23901:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3355,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23944:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3353,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23944:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3354,
+ "nodeType": "ArrayTypeName",
+ "src": "23944:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3357,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "23985:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3356,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "23985:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "23748:264:28"
+ },
+ "returnParameters": {
+ "id": 3364,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3360,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "24039:20:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3359,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24039:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3363,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3365,
+ "src": "24061:26:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3361,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24061:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3362,
+ "nodeType": "ArrayTypeName",
+ "src": "24061:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "24038:50:28"
+ },
+ "scope": 3860,
+ "src": "23728:361:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "documentation": {
+ "id": 3366,
+ "nodeType": "StructuredDocumentation",
+ "src": "24095:933:28",
+ "text": " @dev Called whenever the Pool is exited.\n Returns the amount of BPT to burn, the token amounts for each Pool token that the Pool will grant in return, and\n the number of tokens to pay in protocol swap fees.\n Implementations of this function might choose to mutate the `balances` array to save gas (e.g. when\n performing intermediate calculations, such as subtraction of due protocol fees). This can be done safely.\n BPT will be burnt from `sender`.\n The Pool will grant tokens to `recipient`. These amounts are considered upscaled and will be downscaled\n (rounding down) before being returned to the Vault.\n Due protocol swap fees will be taken from the Pool's balance in the Vault (see `IBasePool.onExitPool`). These\n amounts are considered upscaled and will be downscaled (rounding down) before being returned to the Vault."
+ },
+ "id": 3392,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onExitPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3385,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3368,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25063:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3367,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "25063:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3370,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25087:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3369,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "25087:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3372,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25111:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3371,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "25111:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3375,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25138:25:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3373,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25138:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3374,
+ "nodeType": "ArrayTypeName",
+ "src": "25138:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3377,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25173:23:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3376,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25173:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3379,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25206:33:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3378,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25206:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3382,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25249:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3380,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25249:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3381,
+ "nodeType": "ArrayTypeName",
+ "src": "25249:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3384,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25290:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3383,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "25290:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "25053:264:28"
+ },
+ "returnParameters": {
+ "id": 3391,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3387,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25344:19:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3386,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25344:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3390,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 3392,
+ "src": "25365:27:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3388,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25365:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3389,
+ "nodeType": "ArrayTypeName",
+ "src": "25365:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "25343:50:28"
+ },
+ "scope": 3860,
+ "src": "25033:361:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3399,
+ "nodeType": "Block",
+ "src": "26142:116:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3396,
+ "name": "_ensureNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6162,
+ "src": "26233:16:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 3397,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26233:18:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3398,
+ "nodeType": "ExpressionStatement",
+ "src": "26233:18:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3393,
+ "nodeType": "StructuredDocumentation",
+ "src": "25400:689:28",
+ "text": " @dev Called at the very beginning of swaps, joins and exits, even before the scaling factors are read. Derived\n contracts can extend this implementation to perform any state-changing operations they might need (including e.g.\n updating the scaling factors),\n The only scenario in which this function is not called is during a recovery mode exit. This makes it safe to\n perform non-trivial computations or interact with external dependencies here, as recovery mode will not be\n affected.\n Since this contract does not implement swaps, derived contracts must also make sure this function is called on\n swap handlers."
+ },
+ "id": 3400,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_beforeSwapJoinExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3394,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "26122:2:28"
+ },
+ "returnParameters": {
+ "id": 3395,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "26142:0:28"
+ },
+ "scope": 3860,
+ "src": "26094:164:28",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3415,
+ "nodeType": "Block",
+ "src": "26446:80:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3409,
+ "name": "getProtocolFeesCollector",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2691,
+ "src": "26480:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IProtocolFeesCollector_$1556_$",
+ "typeString": "function () view returns (contract IProtocolFeesCollector)"
+ }
+ },
+ "id": 3410,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26480:26:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeesCollector_$1556",
+ "typeString": "contract IProtocolFeesCollector"
+ }
+ ],
+ "id": 3408,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "26472:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3407,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "26472:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3411,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26472:35:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3412,
+ "name": "bptAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3403,
+ "src": "26509:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 3406,
+ "name": "_mintPoolTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2216,
+ "src": "26456:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 3413,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26456:63:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3414,
+ "nodeType": "ExpressionStatement",
+ "src": "26456:63:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3401,
+ "nodeType": "StructuredDocumentation",
+ "src": "26291:96:28",
+ "text": " @dev Pays protocol fees by minting `bptAmount` to the Protocol Fee Collector."
+ },
+ "id": 3416,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_payProtocolFees",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3404,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3403,
+ "mutability": "mutable",
+ "name": "bptAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3416,
+ "src": "26418:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3402,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26418:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26417:19:28"
+ },
+ "returnParameters": {
+ "id": 3405,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "26446:0:28"
+ },
+ "scope": 3860,
+ "src": "26392:134:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3432,
+ "nodeType": "Block",
+ "src": "26695:165:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3426,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "26817:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 3427,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26817:22:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3428,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "complement",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 7157,
+ "src": "26817:33:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3429,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26817:35:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3424,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3419,
+ "src": "26804:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3425,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divUp",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6991,
+ "src": "26804:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3430,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26804:49:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 3423,
+ "id": 3431,
+ "nodeType": "Return",
+ "src": "26797:56:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3417,
+ "nodeType": "StructuredDocumentation",
+ "src": "26532:83:28",
+ "text": " @dev Adds swap fee amount to `amount`, returning a higher value."
+ },
+ "id": 3433,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_addSwapFeeAmount",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3420,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3419,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3433,
+ "src": "26647:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3418,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26647:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26646:16:28"
+ },
+ "returnParameters": {
+ "id": 3423,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3422,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3433,
+ "src": "26686:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3421,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26686:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26685:9:28"
+ },
+ "scope": 3860,
+ "src": "26620:240:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3454,
+ "nodeType": "Block",
+ "src": "27040:203:28",
+ "statements": [
+ {
+ "assignments": [
+ 3442
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3442,
+ "mutability": "mutable",
+ "name": "feeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3454,
+ "src": "27142:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3441,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27142:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3448,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3445,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "27175:20:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 3446,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27175:22:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3443,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3436,
+ "src": "27162:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3444,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulUp",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6893,
+ "src": "27162:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3447,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27162:36:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "27142:56:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3451,
+ "name": "feeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3442,
+ "src": "27226:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3449,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3436,
+ "src": "27215:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3450,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6811,
+ "src": "27215:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3452,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27215:21:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 3440,
+ "id": 3453,
+ "nodeType": "Return",
+ "src": "27208:28:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3434,
+ "nodeType": "StructuredDocumentation",
+ "src": "26866:89:28",
+ "text": " @dev Subtracts swap fee amount from `amount`, returning a lower value."
+ },
+ "id": 3455,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_subtractSwapFeeAmount",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3437,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3436,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3455,
+ "src": "26992:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3435,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26992:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26991:16:28"
+ },
+ "returnParameters": {
+ "id": 3440,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3439,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3455,
+ "src": "27031:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3438,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27031:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "27030:9:28"
+ },
+ "scope": 3860,
+ "src": "26960:283:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3503,
+ "nodeType": "Block",
+ "src": "27504:433:28",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 3471,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 3465,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3458,
+ "src": "27526:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 3464,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "27518:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3463,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "27518:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3466,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27518:14:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 3469,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "27544:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ ],
+ "id": 3468,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "27536:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3467,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "27536:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3470,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27536:13:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "27518:31:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 3476,
+ "nodeType": "IfStatement",
+ "src": "27514:83:28",
+ "trueBody": {
+ "id": 3475,
+ "nodeType": "Block",
+ "src": "27551:46:28",
+ "statements": [
+ {
+ "expression": {
+ "expression": {
+ "id": 3472,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "27572:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3473,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ONE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6743,
+ "src": "27572:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 3462,
+ "id": 3474,
+ "nodeType": "Return",
+ "src": "27565:21:28"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 3478
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3478,
+ "mutability": "mutable",
+ "name": "tokenDecimals",
+ "nodeType": "VariableDeclaration",
+ "scope": 3503,
+ "src": "27687:21:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3477,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27687:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3487,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 3482,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3458,
+ "src": "27725:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 3481,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "27717:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3480,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "27717:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3483,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27717:14:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 3479,
+ "name": "ERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9352,
+ "src": "27711:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ERC20_$9352_$",
+ "typeString": "type(contract ERC20)"
+ }
+ },
+ "id": 3484,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27711:21:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ERC20_$9352",
+ "typeString": "contract ERC20"
+ }
+ },
+ "id": 3485,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decimals",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8938,
+ "src": "27711:30:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$__$returns$_t_uint8_$",
+ "typeString": "function () view external returns (uint8)"
+ }
+ },
+ "id": 3486,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27711:32:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "27687:56:28"
+ },
+ {
+ "assignments": [
+ 3489
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3489,
+ "mutability": "mutable",
+ "name": "decimalsDifference",
+ "nodeType": "VariableDeclaration",
+ "scope": 3503,
+ "src": "27818:26:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3488,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27818:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3495,
+ "initialValue": {
+ "arguments": [
+ {
+ "hexValue": "3138",
+ "id": 3492,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "27856:2:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_18_by_1",
+ "typeString": "int_const 18"
+ },
+ "value": "18"
+ },
+ {
+ "id": 3493,
+ "name": "tokenDecimals",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3478,
+ "src": "27860:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_18_by_1",
+ "typeString": "int_const 18"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3490,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "27847:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 3491,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8578,
+ "src": "27847:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3494,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27847:27:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "27818:56:28"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3501,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 3496,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "27891:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3497,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ONE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6743,
+ "src": "27891:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3500,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "3130",
+ "id": 3498,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "27908:2:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_10_by_1",
+ "typeString": "int_const 10"
+ },
+ "value": "10"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "**",
+ "rightExpression": {
+ "id": 3499,
+ "name": "decimalsDifference",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3489,
+ "src": "27912:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "27908:22:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "27891:39:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 3462,
+ "id": 3502,
+ "nodeType": "Return",
+ "src": "27884:46:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3456,
+ "nodeType": "StructuredDocumentation",
+ "src": "27265:157:28",
+ "text": " @dev Returns a scaling factor that, when multiplied to a token amount for `token`, normalizes its balance as if\n it had 18 decimals."
+ },
+ "id": 3504,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_computeScalingFactor",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3459,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3458,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 3504,
+ "src": "27458:12:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 3457,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "27458:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "27457:14:28"
+ },
+ "returnParameters": {
+ "id": 3462,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3461,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3504,
+ "src": "27495:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3460,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27495:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "27494:9:28"
+ },
+ "scope": 3860,
+ "src": "27427:510:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "documentation": {
+ "id": 3505,
+ "nodeType": "StructuredDocumentation",
+ "src": "27943:750:28",
+ "text": " @dev Returns the scaling factor for one of the Pool's tokens. Reverts if `token` is not a token registered by the\n Pool.\n All scaling factors are fixed-point values with 18 decimals, to allow for this function to be overridden by\n derived contracts that need to apply further scaling, making these factors potentially non-integer.\n The largest 'base' scaling factor (i.e. in tokens with less than 18 decimals) is 10**18, which in fixed-point is\n 10**36. This value can be multiplied with a 112 bit Vault balance with no overflow by a factor of ~1e7, making\n even relatively 'large' factors safe to use.\n The 1e7 figure is the result of 2**256 / (1e18 * 1e18 * 2**112)."
+ },
+ "id": 3512,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_scalingFactor",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3508,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3507,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 3512,
+ "src": "28722:12:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 3506,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "28722:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "28721:14:28"
+ },
+ "returnParameters": {
+ "id": 3511,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3510,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3512,
+ "src": "28767:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3509,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28767:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "28766:9:28"
+ },
+ "scope": 3860,
+ "src": "28698:78:28",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "documentation": {
+ "id": 3513,
+ "nodeType": "StructuredDocumentation",
+ "src": "28782:212:28",
+ "text": " @dev Same as `_scalingFactor()`, except for all registered tokens (in the same order as registered). The Vault\n will always pass balances in this order when calling any of the Pool hooks."
+ },
+ "id": 3519,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_scalingFactors",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3514,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "29023:2:28"
+ },
+ "returnParameters": {
+ "id": 3518,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3517,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3519,
+ "src": "29057:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3515,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29057:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3516,
+ "nodeType": "ArrayTypeName",
+ "src": "29057:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29056:18:28"
+ },
+ "scope": 3860,
+ "src": "28999:76:28",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1378
+ ],
+ "body": {
+ "id": 3529,
+ "nodeType": "Block",
+ "src": "29160:41:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3526,
+ "name": "_scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3519,
+ "src": "29177:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function () view returns (uint256[] memory)"
+ }
+ },
+ "id": 3527,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "29177:17:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "functionReturnParameters": 3525,
+ "id": 3528,
+ "nodeType": "Return",
+ "src": "29170:24:28"
+ }
+ ]
+ },
+ "functionSelector": "1dd746ea",
+ "id": 3530,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getScalingFactors",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3521,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "29124:8:28"
+ },
+ "parameters": {
+ "id": 3520,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "29107:2:28"
+ },
+ "returnParameters": {
+ "id": 3525,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3524,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3530,
+ "src": "29142:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3522,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29142:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3523,
+ "nodeType": "ArrayTypeName",
+ "src": "29142:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29141:18:28"
+ },
+ "scope": 3860,
+ "src": "29081:120:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 3546,
+ "nodeType": "Block",
+ "src": "29452:490:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3542,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3533,
+ "src": "29913:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3543,
+ "name": "scalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3535,
+ "src": "29921:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3540,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "29894:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3541,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "29894:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3544,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "29894:41:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 3539,
+ "id": 3545,
+ "nodeType": "Return",
+ "src": "29887:48:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3531,
+ "nodeType": "StructuredDocumentation",
+ "src": "29207:151:28",
+ "text": " @dev Applies `scalingFactor` to `amount`, resulting in a larger or equal value depending on whether it needed\n scaling or not."
+ },
+ "id": 3547,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_upscale",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3536,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3533,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3547,
+ "src": "29381:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3532,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29381:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3535,
+ "mutability": "mutable",
+ "name": "scalingFactor",
+ "nodeType": "VariableDeclaration",
+ "scope": 3547,
+ "src": "29397:21:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3534,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29397:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29380:39:28"
+ },
+ "returnParameters": {
+ "id": 3539,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3538,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3547,
+ "src": "29443:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3537,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29443:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29442:9:28"
+ },
+ "scope": 3860,
+ "src": "29363:579:28",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3596,
+ "nodeType": "Block",
+ "src": "30207:258:28",
+ "statements": [
+ {
+ "assignments": [
+ 3558
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3558,
+ "mutability": "mutable",
+ "name": "length",
+ "nodeType": "VariableDeclaration",
+ "scope": 3596,
+ "src": "30217:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3557,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30217:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3561,
+ "initialValue": {
+ "expression": {
+ "id": 3559,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3551,
+ "src": "30234:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3560,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "30234:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "30217:31:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3565,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3558,
+ "src": "30294:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 3566,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3554,
+ "src": "30302:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3567,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "30302:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3562,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "30258:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 3564,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "30258:35:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 3568,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "30258:66:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3569,
+ "nodeType": "ExpressionStatement",
+ "src": "30258:66:28"
+ },
+ {
+ "body": {
+ "id": 3594,
+ "nodeType": "Block",
+ "src": "30372:87:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 3592,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 3580,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3551,
+ "src": "30386:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3582,
+ "indexExpression": {
+ "id": 3581,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3571,
+ "src": "30394:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "30386:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "id": 3585,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3551,
+ "src": "30418:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3587,
+ "indexExpression": {
+ "id": 3586,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3571,
+ "src": "30426:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "30418:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 3588,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3554,
+ "src": "30430:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3590,
+ "indexExpression": {
+ "id": 3589,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3571,
+ "src": "30445:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "30430:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3583,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "30399:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3584,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "30399:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3591,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "30399:49:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "30386:62:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3593,
+ "nodeType": "ExpressionStatement",
+ "src": "30386:62:28"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3576,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 3574,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3571,
+ "src": "30355:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 3575,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3558,
+ "src": "30359:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "30355:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 3595,
+ "initializationExpression": {
+ "assignments": [
+ 3571
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3571,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 3595,
+ "src": "30340:9:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3570,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30340:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3573,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 3572,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "30352:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "30340:13:28"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 3578,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "30367:3:28",
+ "subExpression": {
+ "id": 3577,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3571,
+ "src": "30369:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3579,
+ "nodeType": "ExpressionStatement",
+ "src": "30367:3:28"
+ },
+ "nodeType": "ForStatement",
+ "src": "30335:124:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3548,
+ "nodeType": "StructuredDocumentation",
+ "src": "29948:158:28",
+ "text": " @dev Same as `_upscale`, but for an entire array. This function does not return anything, but instead *mutates*\n the `amounts` array."
+ },
+ "id": 3597,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_upscaleArray",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3555,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3551,
+ "mutability": "mutable",
+ "name": "amounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 3597,
+ "src": "30134:24:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3549,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30134:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3550,
+ "nodeType": "ArrayTypeName",
+ "src": "30134:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3554,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3597,
+ "src": "30160:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3552,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30160:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3553,
+ "nodeType": "ArrayTypeName",
+ "src": "30160:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "30133:59:28"
+ },
+ "returnParameters": {
+ "id": 3556,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "30207:0:28"
+ },
+ "scope": 3860,
+ "src": "30111:354:28",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3613,
+ "nodeType": "Block",
+ "src": "30764:65:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3609,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3600,
+ "src": "30800:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3610,
+ "name": "scalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3602,
+ "src": "30808:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3607,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "30781:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3608,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "30781:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3611,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "30781:41:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 3606,
+ "id": 3612,
+ "nodeType": "Return",
+ "src": "30774:48:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3598,
+ "nodeType": "StructuredDocumentation",
+ "src": "30471:193:28",
+ "text": " @dev Reverses the `scalingFactor` applied to `amount`, resulting in a smaller or equal value depending on\n whether it needed scaling or not. The result is rounded down."
+ },
+ "id": 3614,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_downscaleDown",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3603,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3600,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3614,
+ "src": "30693:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3599,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30693:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3602,
+ "mutability": "mutable",
+ "name": "scalingFactor",
+ "nodeType": "VariableDeclaration",
+ "scope": 3614,
+ "src": "30709:21:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3601,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30709:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "30692:39:28"
+ },
+ "returnParameters": {
+ "id": 3606,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3605,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3614,
+ "src": "30755:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3604,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30755:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "30754:9:28"
+ },
+ "scope": 3860,
+ "src": "30669:160:28",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3663,
+ "nodeType": "Block",
+ "src": "31106:258:28",
+ "statements": [
+ {
+ "assignments": [
+ 3625
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3625,
+ "mutability": "mutable",
+ "name": "length",
+ "nodeType": "VariableDeclaration",
+ "scope": 3663,
+ "src": "31116:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3624,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31116:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3628,
+ "initialValue": {
+ "expression": {
+ "id": 3626,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3618,
+ "src": "31133:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3627,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "31133:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "31116:31:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3632,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3625,
+ "src": "31193:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 3633,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3621,
+ "src": "31201:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3634,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "31201:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3629,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "31157:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 3631,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "31157:35:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 3635,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31157:66:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3636,
+ "nodeType": "ExpressionStatement",
+ "src": "31157:66:28"
+ },
+ {
+ "body": {
+ "id": 3661,
+ "nodeType": "Block",
+ "src": "31271:87:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 3659,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 3647,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3618,
+ "src": "31285:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3649,
+ "indexExpression": {
+ "id": 3648,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3638,
+ "src": "31293:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "31285:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "id": 3652,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3618,
+ "src": "31317:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3654,
+ "indexExpression": {
+ "id": 3653,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3638,
+ "src": "31325:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "31317:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 3655,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3621,
+ "src": "31329:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3657,
+ "indexExpression": {
+ "id": 3656,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3638,
+ "src": "31344:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "31329:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3650,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "31298:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3651,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "31298:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3658,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31298:49:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "31285:62:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3660,
+ "nodeType": "ExpressionStatement",
+ "src": "31285:62:28"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3643,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 3641,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3638,
+ "src": "31254:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 3642,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3625,
+ "src": "31258:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "31254:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 3662,
+ "initializationExpression": {
+ "assignments": [
+ 3638
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3638,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 3662,
+ "src": "31239:9:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3637,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31239:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3640,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 3639,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "31251:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "31239:13:28"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 3645,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "31266:3:28",
+ "subExpression": {
+ "id": 3644,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3638,
+ "src": "31268:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3646,
+ "nodeType": "ExpressionStatement",
+ "src": "31266:3:28"
+ },
+ "nodeType": "ForStatement",
+ "src": "31234:124:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3615,
+ "nodeType": "StructuredDocumentation",
+ "src": "30835:164:28",
+ "text": " @dev Same as `_downscaleDown`, but for an entire array. This function does not return anything, but instead\n *mutates* the `amounts` array."
+ },
+ "id": 3664,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_downscaleDownArray",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3622,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3618,
+ "mutability": "mutable",
+ "name": "amounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 3664,
+ "src": "31033:24:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3616,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31033:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3617,
+ "nodeType": "ArrayTypeName",
+ "src": "31033:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3621,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3664,
+ "src": "31059:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3619,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31059:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3620,
+ "nodeType": "ArrayTypeName",
+ "src": "31059:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "31032:59:28"
+ },
+ "returnParameters": {
+ "id": 3623,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "31106:0:28"
+ },
+ "scope": 3860,
+ "src": "31004:360:28",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3680,
+ "nodeType": "Block",
+ "src": "31659:63:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3676,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3667,
+ "src": "31693:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3677,
+ "name": "scalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3669,
+ "src": "31701:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3674,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "31676:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3675,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divUp",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6991,
+ "src": "31676:16:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3678,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31676:39:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 3673,
+ "id": 3679,
+ "nodeType": "Return",
+ "src": "31669:46:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3665,
+ "nodeType": "StructuredDocumentation",
+ "src": "31370:191:28",
+ "text": " @dev Reverses the `scalingFactor` applied to `amount`, resulting in a smaller or equal value depending on\n whether it needed scaling or not. The result is rounded up."
+ },
+ "id": 3681,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_downscaleUp",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3670,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3667,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3681,
+ "src": "31588:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3666,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31588:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3669,
+ "mutability": "mutable",
+ "name": "scalingFactor",
+ "nodeType": "VariableDeclaration",
+ "scope": 3681,
+ "src": "31604:21:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3668,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31604:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "31587:39:28"
+ },
+ "returnParameters": {
+ "id": 3673,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3672,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3681,
+ "src": "31650:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3671,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31650:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "31649:9:28"
+ },
+ "scope": 3860,
+ "src": "31566:156:28",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3730,
+ "nodeType": "Block",
+ "src": "31995:256:28",
+ "statements": [
+ {
+ "assignments": [
+ 3692
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3692,
+ "mutability": "mutable",
+ "name": "length",
+ "nodeType": "VariableDeclaration",
+ "scope": 3730,
+ "src": "32005:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3691,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32005:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3695,
+ "initialValue": {
+ "expression": {
+ "id": 3693,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3685,
+ "src": "32022:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3694,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "32022:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "32005:31:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3699,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3692,
+ "src": "32082:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 3700,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3688,
+ "src": "32090:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3701,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "32090:21:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3696,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "32046:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 3698,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "32046:35:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 3702,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32046:66:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3703,
+ "nodeType": "ExpressionStatement",
+ "src": "32046:66:28"
+ },
+ {
+ "body": {
+ "id": 3728,
+ "nodeType": "Block",
+ "src": "32160:85:28",
+ "statements": [
+ {
+ "expression": {
+ "id": 3726,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 3714,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3685,
+ "src": "32174:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3716,
+ "indexExpression": {
+ "id": 3715,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3705,
+ "src": "32182:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "32174:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "id": 3719,
+ "name": "amounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3685,
+ "src": "32204:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3721,
+ "indexExpression": {
+ "id": 3720,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3705,
+ "src": "32212:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "32204:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 3722,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3688,
+ "src": "32216:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 3724,
+ "indexExpression": {
+ "id": 3723,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3705,
+ "src": "32231:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "32216:17:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 3717,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "32187:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 3718,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divUp",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6991,
+ "src": "32187:16:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 3725,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32187:47:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "32174:60:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3727,
+ "nodeType": "ExpressionStatement",
+ "src": "32174:60:28"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 3710,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 3708,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3705,
+ "src": "32143:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 3709,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3692,
+ "src": "32147:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "32143:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 3729,
+ "initializationExpression": {
+ "assignments": [
+ 3705
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3705,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 3729,
+ "src": "32128:9:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3704,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32128:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3707,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 3706,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "32140:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "32128:13:28"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 3712,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "32155:3:28",
+ "subExpression": {
+ "id": 3711,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3705,
+ "src": "32157:1:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3713,
+ "nodeType": "ExpressionStatement",
+ "src": "32155:3:28"
+ },
+ "nodeType": "ForStatement",
+ "src": "32123:122:28"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3682,
+ "nodeType": "StructuredDocumentation",
+ "src": "31728:162:28",
+ "text": " @dev Same as `_downscaleUp`, but for an entire array. This function does not return anything, but instead\n *mutates* the `amounts` array."
+ },
+ "id": 3731,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_downscaleUpArray",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3689,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3685,
+ "mutability": "mutable",
+ "name": "amounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 3731,
+ "src": "31922:24:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3683,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31922:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3684,
+ "nodeType": "ArrayTypeName",
+ "src": "31922:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3688,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3731,
+ "src": "31948:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3686,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31948:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3687,
+ "nodeType": "ArrayTypeName",
+ "src": "31948:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "31921:59:28"
+ },
+ "returnParameters": {
+ "id": 3690,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "31995:0:28"
+ },
+ "scope": 3860,
+ "src": "31895:356:28",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 3954
+ ],
+ "body": {
+ "id": 3742,
+ "nodeType": "Block",
+ "src": "32328:417:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3737,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2059,
+ "src": "32712:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 3738,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32712:10:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 3739,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getAuthorizer",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1581,
+ "src": "32712:24:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$__$returns$_t_contract$_IAuthorizer_$1301_$",
+ "typeString": "function () view external returns (contract IAuthorizer)"
+ }
+ },
+ "id": 3740,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32712:26:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "functionReturnParameters": 3736,
+ "id": 3741,
+ "nodeType": "Return",
+ "src": "32705:33:28"
+ }
+ ]
+ },
+ "id": 3743,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3733,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "32297:8:28"
+ },
+ "parameters": {
+ "id": 3732,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "32280:2:28"
+ },
+ "returnParameters": {
+ "id": 3736,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3735,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3743,
+ "src": "32315:11:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 3734,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "32315:11:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "32314:13:28"
+ },
+ "scope": 3860,
+ "src": "32257:488:28",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3858,
+ "nodeType": "Block",
+ "src": "33278:6599:28",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 3804,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 3798,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "33432:3:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 3799,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "33432:10:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 3802,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "33454:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ ],
+ "id": 3801,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "33446:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3800,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "33446:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3803,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "33446:13:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "33432:27:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 3856,
+ "nodeType": "Block",
+ "src": "37577:2294:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3818,
+ "name": "_beforeSwapJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3400,
+ "src": "37816:19:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 3819,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "37816:21:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3820,
+ "nodeType": "ExpressionStatement",
+ "src": "37816:21:28"
+ },
+ {
+ "assignments": [
+ 3825
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3825,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 3856,
+ "src": "37852:31:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3823,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37852:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3824,
+ "nodeType": "ArrayTypeName",
+ "src": "37852:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3828,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3826,
+ "name": "_scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3519,
+ "src": "37886:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function () view returns (uint256[] memory)"
+ }
+ },
+ "id": 3827,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "37886:17:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "37852:51:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3830,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3752,
+ "src": "37931:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3831,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3825,
+ "src": "37941:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 3829,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "37917:13:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 3832,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "37917:39:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3833,
+ "nodeType": "ExpressionStatement",
+ "src": "37917:39:28"
+ },
+ {
+ "assignments": [
+ 3835,
+ 3838
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3835,
+ "mutability": "mutable",
+ "name": "bptAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 3856,
+ "src": "37972:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3834,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37972:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3838,
+ "mutability": "mutable",
+ "name": "tokenAmounts",
+ "nodeType": "VariableDeclaration",
+ "scope": 3856,
+ "src": "37991:29:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3836,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37991:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3837,
+ "nodeType": "ArrayTypeName",
+ "src": "37991:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 3849,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 3840,
+ "name": "poolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3745,
+ "src": "38049:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 3841,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3747,
+ "src": "38073:6:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3842,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3749,
+ "src": "38097:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 3843,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3752,
+ "src": "38124:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3844,
+ "name": "lastChangeBlock",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3754,
+ "src": "38150:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3845,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3756,
+ "src": "38183:25:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 3846,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3825,
+ "src": "38226:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3847,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3758,
+ "src": "38258:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 3839,
+ "name": "_action",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3785,
+ "src": "38024:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[] memory,uint256,uint256,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 3848,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "38024:256:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "37971:309:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3851,
+ "name": "tokenAmounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3838,
+ "src": "38311:12:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 3852,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3825,
+ "src": "38325:14:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 3850,
+ "name": "_downscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3795,
+ "src": "38295:15:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) view"
+ }
+ },
+ "id": 3853,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "38295:45:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3854,
+ "nodeType": "ExpressionStatement",
+ "src": "38295:45:28"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "38424:1437:28",
+ "statements": [
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "38805:40:28",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "tokenAmounts",
+ "nodeType": "YulIdentifier",
+ "src": "38827:12:28"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "38821:5:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "38821:19:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "38842:2:28",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "mul",
+ "nodeType": "YulIdentifier",
+ "src": "38817:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "38817:28:28"
+ },
+ "variables": [
+ {
+ "name": "size",
+ "nodeType": "YulTypedName",
+ "src": "38809:4:28",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "39195:36:28",
+ "value": {
+ "arguments": [
+ {
+ "name": "tokenAmounts",
+ "nodeType": "YulIdentifier",
+ "src": "39212:12:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "39226:4:28",
+ "type": "",
+ "value": "0x20"
+ }
+ ],
+ "functionName": {
+ "name": "sub",
+ "nodeType": "YulIdentifier",
+ "src": "39208:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "39208:23:28"
+ },
+ "variables": [
+ {
+ "name": "start",
+ "nodeType": "YulTypedName",
+ "src": "39199:5:28",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "start",
+ "nodeType": "YulIdentifier",
+ "src": "39255:5:28"
+ },
+ {
+ "name": "bptAmount",
+ "nodeType": "YulIdentifier",
+ "src": "39262:9:28"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "39248:6:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "39248:24:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "39248:24:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "start",
+ "nodeType": "YulIdentifier",
+ "src": "39480:5:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "39487:4:28",
+ "type": "",
+ "value": "0x20"
+ }
+ ],
+ "functionName": {
+ "name": "sub",
+ "nodeType": "YulIdentifier",
+ "src": "39476:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "39476:16:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "39494:66:28",
+ "type": "",
+ "value": "0x0000000000000000000000000000000000000000000000000000000043adbafb"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "39469:6:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "39469:92:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "39469:92:28"
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "39578:25:28",
+ "value": {
+ "arguments": [
+ {
+ "name": "start",
+ "nodeType": "YulIdentifier",
+ "src": "39591:5:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "39598:4:28",
+ "type": "",
+ "value": "0x04"
+ }
+ ],
+ "functionName": {
+ "name": "sub",
+ "nodeType": "YulIdentifier",
+ "src": "39587:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "39587:16:28"
+ },
+ "variableNames": [
+ {
+ "name": "start",
+ "nodeType": "YulIdentifier",
+ "src": "39578:5:28"
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "start",
+ "nodeType": "YulIdentifier",
+ "src": "39826:5:28"
+ },
+ {
+ "arguments": [
+ {
+ "name": "size",
+ "nodeType": "YulIdentifier",
+ "src": "39837:4:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "39843:2:28",
+ "type": "",
+ "value": "68"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "39833:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "39833:13:28"
+ }
+ ],
+ "functionName": {
+ "name": "revert",
+ "nodeType": "YulIdentifier",
+ "src": "39819:6:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "39819:28:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "39819:28:28"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 3835,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "39262:9:28",
+ "valueSize": 1
+ },
+ {
+ "declaration": 3838,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "38827:12:28",
+ "valueSize": 1
+ },
+ {
+ "declaration": 3838,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "39212:12:28",
+ "valueSize": 1
+ }
+ ],
+ "id": 3855,
+ "nodeType": "InlineAssembly",
+ "src": "38415:1446:28"
+ }
+ ]
+ },
+ "id": 3857,
+ "nodeType": "IfStatement",
+ "src": "33428:6443:28",
+ "trueBody": {
+ "id": 3817,
+ "nodeType": "Block",
+ "src": "33461:4110:28",
+ "statements": [
+ {
+ "assignments": [
+ 3806,
+ null
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 3806,
+ "mutability": "mutable",
+ "name": "success",
+ "nodeType": "VariableDeclaration",
+ "scope": 3817,
+ "src": "33728:12:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 3805,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "33728:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 3815,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 3812,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "33765:3:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 3813,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "data",
+ "nodeType": "MemberAccess",
+ "src": "33765:8:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_calldata_ptr",
+ "typeString": "bytes calldata"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_calldata_ptr",
+ "typeString": "bytes calldata"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 3809,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "33754:4:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ ],
+ "id": 3808,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "33746:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3807,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "33746:7:28",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3810,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "33746:13:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 3811,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "call",
+ "nodeType": "MemberAccess",
+ "src": "33746:18:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) payable returns (bool,bytes memory)"
+ }
+ },
+ "id": 3814,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "33746:28:28",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
+ "typeString": "tuple(bool,bytes memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "33727:47:28"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "33858:3703:28",
+ "statements": [
+ {
+ "cases": [
+ {
+ "body": {
+ "nodeType": "YulBlock",
+ "src": "34027:3329:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34490:1:28",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34493:1:28",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34496:4:28",
+ "type": "",
+ "value": "0x04"
+ }
+ ],
+ "functionName": {
+ "name": "returndatacopy",
+ "nodeType": "YulIdentifier",
+ "src": "34475:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34475:26:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "34475:26:28"
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "34526:94:28",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34549:1:28",
+ "type": "",
+ "value": "0"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "34543:5:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34543:8:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34553:66:28",
+ "type": "",
+ "value": "0xffffffff00000000000000000000000000000000000000000000000000000000"
+ }
+ ],
+ "functionName": {
+ "name": "and",
+ "nodeType": "YulIdentifier",
+ "src": "34539:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34539:81:28"
+ },
+ "variables": [
+ {
+ "name": "error",
+ "nodeType": "YulTypedName",
+ "src": "34530:5:28",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "body": {
+ "nodeType": "YulBlock",
+ "src": "34853:150:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34898:1:28",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34901:1:28",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "arguments": [],
+ "functionName": {
+ "name": "returndatasize",
+ "nodeType": "YulIdentifier",
+ "src": "34904:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34904:16:28"
+ }
+ ],
+ "functionName": {
+ "name": "returndatacopy",
+ "nodeType": "YulIdentifier",
+ "src": "34883:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34883:38:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "34883:38:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34957:1:28",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "arguments": [],
+ "functionName": {
+ "name": "returndatasize",
+ "nodeType": "YulIdentifier",
+ "src": "34960:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34960:16:28"
+ }
+ ],
+ "functionName": {
+ "name": "revert",
+ "nodeType": "YulIdentifier",
+ "src": "34950:6:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34950:27:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "34950:27:28"
+ }
+ ]
+ },
+ "condition": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "error",
+ "nodeType": "YulIdentifier",
+ "src": "34774:5:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34781:66:28",
+ "type": "",
+ "value": "0x43adbafb00000000000000000000000000000000000000000000000000000000"
+ }
+ ],
+ "functionName": {
+ "name": "eq",
+ "nodeType": "YulIdentifier",
+ "src": "34771:2:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34771:77:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34850:1:28",
+ "type": "",
+ "value": "0"
+ }
+ ],
+ "functionName": {
+ "name": "eq",
+ "nodeType": "YulIdentifier",
+ "src": "34768:2:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "34768:84:28"
+ },
+ "nodeType": "YulIf",
+ "src": "34765:2:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36362:1:28",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36365:4:28",
+ "type": "",
+ "value": "0x04"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36371:2:28",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "returndatacopy",
+ "nodeType": "YulIdentifier",
+ "src": "36347:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "36347:27:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "36347:27:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36562:4:28",
+ "type": "",
+ "value": "0x20"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36568:2:28",
+ "type": "",
+ "value": "64"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "36555:6:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "36555:16:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "36555:16:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36958:4:28",
+ "type": "",
+ "value": "0x40"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36964:4:28",
+ "type": "",
+ "value": "0x24"
+ },
+ {
+ "arguments": [
+ {
+ "arguments": [],
+ "functionName": {
+ "name": "returndatasize",
+ "nodeType": "YulIdentifier",
+ "src": "36974:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "36974:16:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "36992:2:28",
+ "type": "",
+ "value": "36"
+ }
+ ],
+ "functionName": {
+ "name": "sub",
+ "nodeType": "YulIdentifier",
+ "src": "36970:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "36970:25:28"
+ }
+ ],
+ "functionName": {
+ "name": "returndatacopy",
+ "nodeType": "YulIdentifier",
+ "src": "36943:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "36943:53:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "36943:53:28"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "37305:1:28",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "arguments": [
+ {
+ "arguments": [],
+ "functionName": {
+ "name": "returndatasize",
+ "nodeType": "YulIdentifier",
+ "src": "37312:14:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "37312:16:28"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "37330:2:28",
+ "type": "",
+ "value": "28"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "37308:3:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "37308:25:28"
+ }
+ ],
+ "functionName": {
+ "name": "return",
+ "nodeType": "YulIdentifier",
+ "src": "37298:6:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "37298:36:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "37298:36:28"
+ }
+ ]
+ },
+ "nodeType": "YulCase",
+ "src": "34020:3336:28",
+ "value": {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "34025:1:28",
+ "type": "",
+ "value": "0"
+ }
+ },
+ {
+ "body": {
+ "nodeType": "YulBlock",
+ "src": "37385:162:28",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "functionName": {
+ "name": "invalid",
+ "nodeType": "YulIdentifier",
+ "src": "37516:7:28"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "37516:9:28"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "37516:9:28"
+ }
+ ]
+ },
+ "nodeType": "YulCase",
+ "src": "37377:170:28",
+ "value": "default"
+ }
+ ],
+ "expression": {
+ "name": "success",
+ "nodeType": "YulIdentifier",
+ "src": "33992:7:28"
+ },
+ "nodeType": "YulSwitch",
+ "src": "33985:3562:28"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 3806,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "33992:7:28",
+ "valueSize": 1
+ }
+ ],
+ "id": 3816,
+ "nodeType": "InlineAssembly",
+ "src": "33849:3712:28"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 3859,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_queryAction",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3796,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3745,
+ "mutability": "mutable",
+ "name": "poolId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32782:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3744,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "32782:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3747,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32806:14:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3746,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "32806:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3749,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32830:17:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3748,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "32830:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3752,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32857:25:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3750,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32857:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3751,
+ "nodeType": "ArrayTypeName",
+ "src": "32857:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3754,
+ "mutability": "mutable",
+ "name": "lastChangeBlock",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32892:23:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3753,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32892:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3756,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32925:33:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3755,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32925:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3758,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32968:21:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3757,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "32968:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3785,
+ "mutability": "mutable",
+ "name": "_action",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "32999:180:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[],uint256,uint256,uint256[],bytes) returns (uint256,uint256[])"
+ },
+ "typeName": {
+ "id": 3784,
+ "nodeType": "FunctionTypeName",
+ "parameterTypes": {
+ "id": 3777,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3760,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33008:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3759,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "33008:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3762,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33017:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3761,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "33017:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3764,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33026:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3763,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "33026:7:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3767,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33035:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3765,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33035:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3766,
+ "nodeType": "ArrayTypeName",
+ "src": "33035:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3769,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33053:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3768,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33053:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3771,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33062:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3770,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33062:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3774,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33071:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3772,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33071:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3773,
+ "nodeType": "ArrayTypeName",
+ "src": "33071:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3776,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33089:12:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 3775,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "33089:5:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33007:95:28"
+ },
+ "returnParameterTypes": {
+ "id": 3783,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3779,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33145:7:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 3778,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33145:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3782,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3784,
+ "src": "33154:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3780,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33154:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3781,
+ "nodeType": "ArrayTypeName",
+ "src": "33154:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33144:27:28"
+ },
+ "src": "32999:180:28",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bytes32,address,address,uint256[],uint256,uint256,uint256[],bytes) returns (uint256,uint256[])"
+ },
+ "visibility": "internal"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3795,
+ "mutability": "mutable",
+ "name": "_downscaleArray",
+ "nodeType": "VariableDeclaration",
+ "scope": 3859,
+ "src": "33189:74:28",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[],uint256[]) view"
+ },
+ "typeName": {
+ "id": 3794,
+ "nodeType": "FunctionTypeName",
+ "parameterTypes": {
+ "id": 3792,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3788,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3794,
+ "src": "33198:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3786,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33198:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3787,
+ "nodeType": "ArrayTypeName",
+ "src": "33198:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3791,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3794,
+ "src": "33216:16:28",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 3789,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33216:7:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 3790,
+ "nodeType": "ArrayTypeName",
+ "src": "33216:9:28",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33197:36:28"
+ },
+ "returnParameterTypes": {
+ "id": 3793,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "33248:0:28"
+ },
+ "src": "33189:74:28",
+ "stateMutability": "view",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[],uint256[]) view"
+ },
+ "visibility": "internal"
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "32772:497:28"
+ },
+ "returnParameters": {
+ "id": 3797,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "33278:0:28"
+ },
+ "scope": 3860,
+ "src": "32751:7126:28",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 3861,
+ "src": "2892:36987:28"
+ }
+ ],
+ "src": "688:39192:28"
+ },
+ "id": 28
+ },
+ "@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol",
+ "exportedSymbols": {
+ "BasePoolAuthorization": [
+ 3955
+ ]
+ },
+ "id": 3956,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 3862,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:29"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IAuthorizer.sol",
+ "id": 3863,
+ "nodeType": "ImportDirective",
+ "scope": 3956,
+ "sourceUnit": 1302,
+ "src": "713:70:29",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol",
+ "id": 3864,
+ "nodeType": "ImportDirective",
+ "scope": 3956,
+ "sourceUnit": 5042,
+ "src": "785:79:29",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 3866,
+ "name": "Authentication",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 5041,
+ "src": "1535:14:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_Authentication_$5041",
+ "typeString": "contract Authentication"
+ }
+ },
+ "id": 3867,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1535:14:29"
+ }
+ ],
+ "contractDependencies": [
+ 1022,
+ 5041
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 3865,
+ "nodeType": "StructuredDocumentation",
+ "src": "866:625:29",
+ "text": " @dev Base authorization layer implementation for Pools.\n The owner account can call some of the permissioned functions - access control of the rest is delegated to the\n Authorizer. Note that this owner is immutable: more sophisticated permission schemes, such as multiple ownership,\n granular roles, etc., could be built on top of this by making the owner a smart contract.\n Access control of all other permissioned functions is delegated to an Authorizer. It is also possible to delegate\n control of *all* permissioned functions to the Authorizer by setting the owner address to `_DELEGATE_OWNER`."
+ },
+ "fullyImplemented": false,
+ "id": 3955,
+ "linearizedBaseContracts": [
+ 3955,
+ 5041,
+ 1022
+ ],
+ "name": "BasePoolAuthorization",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 3869,
+ "mutability": "immutable",
+ "name": "_owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 3955,
+ "src": "1556:32:29",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3868,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1556:7:29",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 3872,
+ "mutability": "constant",
+ "name": "_DELEGATE_OWNER",
+ "nodeType": "VariableDeclaration",
+ "scope": 3955,
+ "src": "1595:85:29",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3870,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1595:7:29",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "value": {
+ "hexValue": "307842413142413162613142413162413162413142613142413162613142413162413162613162613142",
+ "id": 3871,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1638:42:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ "value": "0xBA1BA1ba1BA1bA1bA1Ba1BA1ba1BA1bA1ba1ba1B"
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 3881,
+ "nodeType": "Block",
+ "src": "1714:31:29",
+ "statements": [
+ {
+ "expression": {
+ "id": 3879,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 3877,
+ "name": "_owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3869,
+ "src": "1724:6:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 3878,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3874,
+ "src": "1733:5:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "1724:14:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 3880,
+ "nodeType": "ExpressionStatement",
+ "src": "1724:14:29"
+ }
+ ]
+ },
+ "id": 3882,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3875,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3874,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 3882,
+ "src": "1699:13:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3873,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1699:7:29",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1698:15:29"
+ },
+ "returnParameters": {
+ "id": 3876,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1714:0:29"
+ },
+ "scope": 3955,
+ "src": "1687:58:29",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3889,
+ "nodeType": "Block",
+ "src": "1801:30:29",
+ "statements": [
+ {
+ "expression": {
+ "id": 3887,
+ "name": "_owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3869,
+ "src": "1818:6:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "functionReturnParameters": 3886,
+ "id": 3888,
+ "nodeType": "Return",
+ "src": "1811:13:29"
+ }
+ ]
+ },
+ "functionSelector": "893d20e8",
+ "id": 3890,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getOwner",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3883,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1768:2:29"
+ },
+ "returnParameters": {
+ "id": 3886,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3885,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3890,
+ "src": "1792:7:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3884,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1792:7:29",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1791:9:29"
+ },
+ "scope": 3955,
+ "src": "1751:80:29",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 3898,
+ "nodeType": "Block",
+ "src": "1898:40:29",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3895,
+ "name": "_getAuthorizer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3954,
+ "src": "1915:14:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IAuthorizer_$1301_$",
+ "typeString": "function () view returns (contract IAuthorizer)"
+ }
+ },
+ "id": 3896,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1915:16:29",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "functionReturnParameters": 3894,
+ "id": 3897,
+ "nodeType": "Return",
+ "src": "1908:23:29"
+ }
+ ]
+ },
+ "functionSelector": "aaabadc5",
+ "id": 3899,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3891,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1859:2:29"
+ },
+ "returnParameters": {
+ "id": 3894,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3893,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3899,
+ "src": "1885:11:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 3892,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "1885:11:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1884:13:29"
+ },
+ "scope": 3955,
+ "src": "1837:101:29",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 5040
+ ],
+ "body": {
+ "id": 3938,
+ "nodeType": "Block",
+ "src": "2038:450:29",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 3917,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 3912,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3909,
+ "name": "getOwner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3890,
+ "src": "2053:8:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
+ "typeString": "function () view returns (address)"
+ }
+ },
+ "id": 3910,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2053:10:29",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "id": 3911,
+ "name": "_DELEGATE_OWNER",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3872,
+ "src": "2067:15:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "2053:29:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 3913,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2052:31:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 3915,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3901,
+ "src": "2106:8:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 3914,
+ "name": "_isOwnerOnlyAction",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3949,
+ "src": "2087:18:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
+ "typeString": "function (bytes32) view returns (bool)"
+ }
+ },
+ "id": 3916,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2087:28:29",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "2052:63:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 3936,
+ "nodeType": "Block",
+ "src": "2274:208:29",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 3928,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3901,
+ "src": "2438:8:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 3929,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3903,
+ "src": "2448:7:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 3932,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "2465:4:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolAuthorization_$3955",
+ "typeString": "contract BasePoolAuthorization"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_BasePoolAuthorization_$3955",
+ "typeString": "contract BasePoolAuthorization"
+ }
+ ],
+ "id": 3931,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2457:7:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 3930,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2457:7:29",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 3933,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2457:13:29",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3925,
+ "name": "_getAuthorizer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3954,
+ "src": "2410:14:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IAuthorizer_$1301_$",
+ "typeString": "function () view returns (contract IAuthorizer)"
+ }
+ },
+ "id": 3926,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2410:16:29",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "id": 3927,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "canPerform",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1300,
+ "src": "2410:27:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_address_$_t_address_$returns$_t_bool_$",
+ "typeString": "function (bytes32,address,address) view external returns (bool)"
+ }
+ },
+ "id": 3934,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2410:61:29",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 3908,
+ "id": 3935,
+ "nodeType": "Return",
+ "src": "2403:68:29"
+ }
+ ]
+ },
+ "id": 3937,
+ "nodeType": "IfStatement",
+ "src": "2048:434:29",
+ "trueBody": {
+ "id": 3924,
+ "nodeType": "Block",
+ "src": "2117:151:29",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 3922,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 3918,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "2233:3:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 3919,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "2233:10:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3920,
+ "name": "getOwner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3890,
+ "src": "2247:8:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
+ "typeString": "function () view returns (address)"
+ }
+ },
+ "id": 3921,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2247:10:29",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "2233:24:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 3908,
+ "id": 3923,
+ "nodeType": "Return",
+ "src": "2226:31:29"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 3939,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_canPerform",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3905,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2014:8:29"
+ },
+ "parameters": {
+ "id": 3904,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3901,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 3939,
+ "src": "1965:16:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3900,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1965:7:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 3903,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 3939,
+ "src": "1983:15:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 3902,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1983:7:29",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1964:35:29"
+ },
+ "returnParameters": {
+ "id": 3908,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3907,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3939,
+ "src": "2032:4:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 3906,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2032:4:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2031:6:29"
+ },
+ "scope": 3955,
+ "src": "1944:544:29",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 3948,
+ "nodeType": "Block",
+ "src": "2568:29:29",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "66616c7365",
+ "id": 3946,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2585:5:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "false"
+ },
+ "functionReturnParameters": 3945,
+ "id": 3947,
+ "nodeType": "Return",
+ "src": "2578:12:29"
+ }
+ ]
+ },
+ "id": 3949,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_isOwnerOnlyAction",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3942,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3941,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3949,
+ "src": "2522:7:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 3940,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2522:7:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2521:9:29"
+ },
+ "returnParameters": {
+ "id": 3945,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3944,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3949,
+ "src": "2562:4:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 3943,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2562:4:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2561:6:29"
+ },
+ "scope": 3955,
+ "src": "2494:103:29",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "id": 3954,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 3950,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2626:2:29"
+ },
+ "returnParameters": {
+ "id": 3953,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 3952,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 3954,
+ "src": "2660:11:29",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 3951,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "2660:11:29",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2659:13:29"
+ },
+ "scope": 3955,
+ "src": "2603:70:29",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 3956,
+ "src": "1492:1183:29"
+ }
+ ],
+ "src": "688:1988:29"
+ },
+ "id": 29
+ },
+ "@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol",
+ "exportedSymbols": {
+ "RecoveryMode": [
+ 4136
+ ]
+ },
+ "id": 4137,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 3957,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:30"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 3958,
+ "nodeType": "ImportDirective",
+ "scope": 4137,
+ "sourceUnit": 1012,
+ "src": "713:90:30",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/BasePoolUserData.sol",
+ "id": 3959,
+ "nodeType": "ImportDirective",
+ "scope": 4137,
+ "sourceUnit": 287,
+ "src": "804:80:30",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRecoveryMode.sol",
+ "id": 3960,
+ "nodeType": "ImportDirective",
+ "scope": 4137,
+ "sourceUnit": 452,
+ "src": "885:77:30",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "id": 3961,
+ "nodeType": "ImportDirective",
+ "scope": 4137,
+ "sourceUnit": 7159,
+ "src": "964:72:30",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BasePoolAuthorization.sol",
+ "file": "./BasePoolAuthorization.sol",
+ "id": 3962,
+ "nodeType": "ImportDirective",
+ "scope": 4137,
+ "sourceUnit": 3956,
+ "src": "1038:37:30",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 3964,
+ "name": "IRecoveryMode",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 451,
+ "src": "2624:13:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRecoveryMode_$451",
+ "typeString": "contract IRecoveryMode"
+ }
+ },
+ "id": 3965,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2624:13:30"
+ },
+ {
+ "baseName": {
+ "id": 3966,
+ "name": "BasePoolAuthorization",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 3955,
+ "src": "2639:21:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolAuthorization_$3955",
+ "typeString": "contract BasePoolAuthorization"
+ }
+ },
+ "id": 3967,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2639:21:30"
+ }
+ ],
+ "contractDependencies": [
+ 451,
+ 1022,
+ 3955,
+ 5041
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 3963,
+ "nodeType": "StructuredDocumentation",
+ "src": "1077:1512:30",
+ "text": " @notice Handle storage and state changes for pools that support \"Recovery Mode\".\n @dev This is intended to provide a safe way to exit any pool during some kind of emergency, to avoid locking funds\n in the event the pool enters a non-functional state (i.e., some code that normally runs during exits is causing\n them to revert).\n Recovery Mode is *not* the same as pausing the pool. The pause function is only available during a short window\n after factory deployment. Pausing can only be intentionally reversed during a buffer period, and the contract\n will permanently unpause itself thereafter. Paused pools are completely disabled, in a kind of suspended animation,\n until they are voluntarily or involuntarily unpaused.\n By contrast, a privileged account - typically a governance multisig - can place a pool in Recovery Mode at any\n time, and it is always reversible. The pool is *not* disabled while in this mode: though of course whatever\n condition prompted the transition to Recovery Mode has likely effectively disabled some functions. Rather,\n a special \"clean\" exit is enabled, which runs the absolute minimum code necessary to exit proportionally.\n In particular, stable pools do not attempt to compute the invariant (which is a complex, iterative calculation\n that can fail in extreme circumstances), and no protocol fees are collected.\n It is critical to ensure that turning on Recovery Mode would do no harm, if activated maliciously or in error."
+ },
+ "fullyImplemented": false,
+ "id": 4136,
+ "linearizedBaseContracts": [
+ 4136,
+ 3955,
+ 5041,
+ 1022,
+ 451
+ ],
+ "name": "RecoveryMode",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 3970,
+ "libraryName": {
+ "id": 3968,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "2673:10:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "2667:29:30",
+ "typeName": {
+ "id": 3969,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2688:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "id": 3973,
+ "libraryName": {
+ "id": 3971,
+ "name": "BasePoolUserData",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 286,
+ "src": "2707:16:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolUserData_$286",
+ "typeString": "library BasePoolUserData"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "2701:33:30",
+ "typeName": {
+ "id": 3972,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2728:5:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ }
+ },
+ {
+ "body": {
+ "id": 3980,
+ "nodeType": "Block",
+ "src": "2846:54:30",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 3976,
+ "name": "_ensureNotInRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4043,
+ "src": "2856:24:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 3977,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2856:26:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3978,
+ "nodeType": "ExpressionStatement",
+ "src": "2856:26:30"
+ },
+ {
+ "id": 3979,
+ "nodeType": "PlaceholderStatement",
+ "src": "2892:1:30"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3974,
+ "nodeType": "StructuredDocumentation",
+ "src": "2740:68:30",
+ "text": " @dev Reverts if the contract is in Recovery Mode."
+ },
+ "id": 3981,
+ "name": "whenNotInRecoveryMode",
+ "nodeType": "ModifierDefinition",
+ "parameters": {
+ "id": 3975,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2843:2:30"
+ },
+ "src": "2813:87:30",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 440
+ ],
+ "body": {
+ "id": 3992,
+ "nodeType": "Block",
+ "src": "3493:39:30",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "74727565",
+ "id": 3989,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3520:4:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ ],
+ "id": 3988,
+ "name": "_setRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4018,
+ "src": "3503:16:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bool_$returns$__$",
+ "typeString": "function (bool)"
+ }
+ },
+ "id": 3990,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3503:22:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 3991,
+ "nodeType": "ExpressionStatement",
+ "src": "3503:22:30"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3982,
+ "nodeType": "StructuredDocumentation",
+ "src": "2906:521:30",
+ "text": " @notice Enable recovery mode, which enables a special safe exit path for LPs.\n @dev Does not otherwise affect pool operations (beyond deferring payment of protocol fees), though some pools may\n perform certain operations in a \"safer\" manner that is less likely to fail, in an attempt to keep the pool\n running, even in a pathological state. Unlike the Pause operation, which is only available during a short window\n after factory deployment, Recovery Mode can always be enabled."
+ },
+ "functionSelector": "54a844ba",
+ "id": 3993,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 3986,
+ "modifierName": {
+ "id": 3985,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "3480:12:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "3480:12:30"
+ }
+ ],
+ "name": "enableRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3984,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "3471:8:30"
+ },
+ "parameters": {
+ "id": 3983,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3459:2:30"
+ },
+ "returnParameters": {
+ "id": 3987,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3493:0:30"
+ },
+ "scope": 4136,
+ "src": "3432:100:30",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 444
+ ],
+ "body": {
+ "id": 4004,
+ "nodeType": "Block",
+ "src": "4435:40:30",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "66616c7365",
+ "id": 4001,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4462:5:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "false"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ ],
+ "id": 4000,
+ "name": "_setRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4018,
+ "src": "4445:16:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bool_$returns$__$",
+ "typeString": "function (bool)"
+ }
+ },
+ "id": 4002,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4445:23:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4003,
+ "nodeType": "ExpressionStatement",
+ "src": "4445:23:30"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 3994,
+ "nodeType": "StructuredDocumentation",
+ "src": "3538:830:30",
+ "text": " @notice Disable recovery mode, which disables the special safe exit path for LPs.\n @dev Protocol fees are not paid while in Recovery Mode, so it should only remain active for as long as strictly\n necessary.\n This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n an exit, because the state of the pool could be out of sync with the state of the Vault.\n `_onDisableRecoveryMode` will revert when called from such a context for composable stable pools, effectively\n protecting this function.\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference."
+ },
+ "functionSelector": "b7b814fc",
+ "id": 4005,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 3998,
+ "modifierName": {
+ "id": 3997,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "4422:12:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "4422:12:30"
+ }
+ ],
+ "name": "disableRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 3996,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "4413:8:30"
+ },
+ "parameters": {
+ "id": 3995,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4401:2:30"
+ },
+ "returnParameters": {
+ "id": 3999,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4435:0:30"
+ },
+ "scope": 4136,
+ "src": "4373:102:30",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 450
+ ],
+ "documentation": {
+ "id": 4006,
+ "nodeType": "StructuredDocumentation",
+ "src": "4545:100:30",
+ "text": " @notice Override to check storage and return whether the pool is in Recovery Mode"
+ },
+ "functionSelector": "b35056b8",
+ "id": 4012,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "inRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 4008,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "4696:8:30"
+ },
+ "parameters": {
+ "id": 4007,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4673:2:30"
+ },
+ "returnParameters": {
+ "id": 4011,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4010,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4012,
+ "src": "4714:4:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4009,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "4714:4:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4713:6:30"
+ },
+ "scope": 4136,
+ "src": "4650:70:30",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "documentation": {
+ "id": 4013,
+ "nodeType": "StructuredDocumentation",
+ "src": "4726:253:30",
+ "text": " @dev Override to update storage and emit the event\n No complex code or external calls that could fail should be placed in the implementations,\n which could jeopardize the ability to enable and disable Recovery Mode."
+ },
+ "id": 4018,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4016,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4015,
+ "mutability": "mutable",
+ "name": "enabled",
+ "nodeType": "VariableDeclaration",
+ "scope": 4018,
+ "src": "5010:12:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4014,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "5010:4:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5009:14:30"
+ },
+ "returnParameters": {
+ "id": 4017,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5040:0:30"
+ },
+ "scope": 4136,
+ "src": "4984:57:30",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4029,
+ "nodeType": "Block",
+ "src": "5171:72:30",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4023,
+ "name": "inRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4012,
+ "src": "5190:14:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 4024,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5190:16:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 4025,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "5208:6:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4026,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "NOT_IN_RECOVERY_MODE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 890,
+ "src": "5208:27:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4022,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "5181:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 4027,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5181:55:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4028,
+ "nodeType": "ExpressionStatement",
+ "src": "5181:55:30"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4019,
+ "nodeType": "StructuredDocumentation",
+ "src": "5047:72:30",
+ "text": " @dev Reverts if the contract is not in Recovery Mode."
+ },
+ "id": 4030,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensureInRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4020,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5154:2:30"
+ },
+ "returnParameters": {
+ "id": 4021,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5171:0:30"
+ },
+ "scope": 4136,
+ "src": "5124:119:30",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4042,
+ "nodeType": "Block",
+ "src": "5372:69:30",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4037,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "5391:17:30",
+ "subExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4035,
+ "name": "inRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4012,
+ "src": "5392:14:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 4036,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5392:16:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 4038,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "5410:6:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4039,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "IN_RECOVERY_MODE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 887,
+ "src": "5410:23:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4034,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "5382:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 4040,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5382:52:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4041,
+ "nodeType": "ExpressionStatement",
+ "src": "5382:52:30"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4031,
+ "nodeType": "StructuredDocumentation",
+ "src": "5249:68:30",
+ "text": " @dev Reverts if the contract is in Recovery Mode."
+ },
+ "id": 4043,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensureNotInRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4032,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5355:2:30"
+ },
+ "returnParameters": {
+ "id": 4033,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5372:0:30"
+ },
+ "scope": 4136,
+ "src": "5322:119:30",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4080,
+ "nodeType": "Block",
+ "src": "6044:216:30",
+ "statements": [
+ {
+ "assignments": [
+ 4060
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4060,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 4080,
+ "src": "6054:19:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4059,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6054:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4064,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 4061,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4051,
+ "src": "6076:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 4062,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "recoveryModeExit",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 285,
+ "src": "6076:25:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_uint256_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256)"
+ }
+ },
+ "id": 4063,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6076:27:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6054:49:30"
+ },
+ {
+ "assignments": [
+ 4069
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4069,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 4080,
+ "src": "6114:27:30",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 4067,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6114:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4068,
+ "nodeType": "ArrayTypeName",
+ "src": "6114:9:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4075,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 4071,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4047,
+ "src": "6175:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 4072,
+ "name": "totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4049,
+ "src": "6185:11:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4073,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4060,
+ "src": "6198:11:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4070,
+ "name": "_computeProportionalAmountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4135,
+ "src": "6144:30:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256) pure returns (uint256[] memory)"
+ }
+ },
+ "id": 4074,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6144:66:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6114:96:30"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 4076,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4060,
+ "src": "6229:11:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4077,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4069,
+ "src": "6242:10:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 4078,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6228:25:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 4058,
+ "id": 4079,
+ "nodeType": "Return",
+ "src": "6221:32:30"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4044,
+ "nodeType": "StructuredDocumentation",
+ "src": "5447:409:30",
+ "text": " @dev A minimal proportional exit, suitable as is for most pools: though not for pools with preminted BPT\n or other special considerations. Designed to be overridden if a pool needs to do extra processing,\n such as scaling a stored invariant, or caching the new total supply.\n No complex code or external calls should be made in derived contracts that override this!"
+ },
+ "id": 4081,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_doRecoveryModeExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4052,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4047,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 4081,
+ "src": "5899:25:30",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 4045,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5899:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4046,
+ "nodeType": "ArrayTypeName",
+ "src": "5899:9:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4049,
+ "mutability": "mutable",
+ "name": "totalSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 4081,
+ "src": "5934:19:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4048,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5934:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4051,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 4081,
+ "src": "5963:21:30",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 4050,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "5963:5:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5889:101:30"
+ },
+ "returnParameters": {
+ "id": 4058,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4054,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4081,
+ "src": "6017:7:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4053,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6017:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4057,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4081,
+ "src": "6026:16:30",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 4055,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6026:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4056,
+ "nodeType": "ArrayTypeName",
+ "src": "6026:9:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6016:27:30"
+ },
+ "scope": 4136,
+ "src": "5861:399:30",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4134,
+ "nodeType": "Block",
+ "src": "6457:1229:30",
+ "statements": [
+ {
+ "assignments": [
+ 4095
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4095,
+ "mutability": "mutable",
+ "name": "bptRatio",
+ "nodeType": "VariableDeclaration",
+ "scope": 4134,
+ "src": "7449:16:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4094,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7449:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4100,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 4098,
+ "name": "totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4086,
+ "src": "7488:11:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4096,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4088,
+ "src": "7468:11:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4097,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "7468:19:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4099,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7468:32:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "7449:51:30"
+ },
+ {
+ "expression": {
+ "id": 4108,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4101,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4092,
+ "src": "7511:10:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 4105,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4084,
+ "src": "7538:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 4106,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "7538:15:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4104,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "7524:13:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 4102,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7528:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4103,
+ "nodeType": "ArrayTypeName",
+ "src": "7528:9:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 4107,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7524:30:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "src": "7511:43:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 4109,
+ "nodeType": "ExpressionStatement",
+ "src": "7511:43:30"
+ },
+ {
+ "body": {
+ "id": 4132,
+ "nodeType": "Block",
+ "src": "7610:70:30",
+ "statements": [
+ {
+ "expression": {
+ "id": 4130,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 4121,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4092,
+ "src": "7624:10:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 4123,
+ "indexExpression": {
+ "id": 4122,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4111,
+ "src": "7635:1:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "7624:13:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 4128,
+ "name": "bptRatio",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4095,
+ "src": "7660:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 4124,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4084,
+ "src": "7640:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 4126,
+ "indexExpression": {
+ "id": 4125,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4111,
+ "src": "7649:1:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "7640:11:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4127,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "7640:19:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4129,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7640:29:30",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7624:45:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4131,
+ "nodeType": "ExpressionStatement",
+ "src": "7624:45:30"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4117,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4114,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4111,
+ "src": "7584:1:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "expression": {
+ "id": 4115,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4084,
+ "src": "7588:8:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 4116,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "7588:15:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7584:19:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 4133,
+ "initializationExpression": {
+ "assignments": [
+ 4111
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4111,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 4133,
+ "src": "7569:9:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4110,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7569:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4113,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 4112,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7581:1:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "7569:13:30"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 4119,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": false,
+ "src": "7605:3:30",
+ "subExpression": {
+ "id": 4118,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4111,
+ "src": "7605:1:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4120,
+ "nodeType": "ExpressionStatement",
+ "src": "7605:3:30"
+ },
+ "nodeType": "ForStatement",
+ "src": "7564:116:30"
+ }
+ ]
+ },
+ "id": 4135,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_computeProportionalAmountsOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4089,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4084,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 4135,
+ "src": "6315:25:30",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 4082,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6315:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4083,
+ "nodeType": "ArrayTypeName",
+ "src": "6315:9:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4086,
+ "mutability": "mutable",
+ "name": "totalSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 4135,
+ "src": "6350:19:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4085,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6350:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4088,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 4135,
+ "src": "6379:19:30",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4087,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6379:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6305:99:30"
+ },
+ "returnParameters": {
+ "id": 4093,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4092,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 4135,
+ "src": "6428:27:30",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 4090,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6428:7:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4091,
+ "nodeType": "ArrayTypeName",
+ "src": "6428:9:30",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6427:29:30"
+ },
+ "scope": 4136,
+ "src": "6266:1420:30",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 4137,
+ "src": "2590:5098:30"
+ }
+ ],
+ "src": "688:7001:30"
+ },
+ "id": 30
+ },
+ "@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol",
+ "exportedSymbols": {
+ "BasePoolFactory": [
+ 4279
+ ]
+ },
+ "id": 4280,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 4138,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:31"
+ },
+ {
+ "id": 4139,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:31"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "id": 4140,
+ "nodeType": "ImportDirective",
+ "scope": 4280,
+ "sourceUnit": 2022,
+ "src": "747:65:31",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol",
+ "id": 4141,
+ "nodeType": "ImportDirective",
+ "scope": 4280,
+ "sourceUnit": 1283,
+ "src": "813:101:31",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IBasePoolFactory.sol",
+ "id": 4142,
+ "nodeType": "ImportDirective",
+ "scope": 4280,
+ "sourceUnit": 394,
+ "src": "915:80:31",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol",
+ "id": 4143,
+ "nodeType": "ImportDirective",
+ "scope": 4280,
+ "sourceUnit": 5266,
+ "src": "996:85:31",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol",
+ "id": 4144,
+ "nodeType": "ImportDirective",
+ "scope": 4280,
+ "sourceUnit": 6016,
+ "src": "1082:88:31",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 4146,
+ "name": "IBasePoolFactory",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 393,
+ "src": "1989:16:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IBasePoolFactory_$393",
+ "typeString": "contract IBasePoolFactory"
+ }
+ },
+ "id": 4147,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1989:16:31"
+ },
+ {
+ "baseName": {
+ "id": 4148,
+ "name": "BaseSplitCodeFactory",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 5265,
+ "src": "2007:20:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BaseSplitCodeFactory_$5265",
+ "typeString": "contract BaseSplitCodeFactory"
+ }
+ },
+ "id": 4149,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2007:20:31"
+ },
+ {
+ "baseName": {
+ "id": 4150,
+ "name": "SingletonAuthentication",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 6015,
+ "src": "2029:23:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_SingletonAuthentication_$6015",
+ "typeString": "contract SingletonAuthentication"
+ }
+ },
+ "id": 4151,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2029:23:31"
+ }
+ ],
+ "contractDependencies": [
+ 393,
+ 1022,
+ 5041,
+ 5265,
+ 6015
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 4145,
+ "nodeType": "StructuredDocumentation",
+ "src": "1172:779:31",
+ "text": " @notice Base contract for Pool factories.\n Pools are deployed from factories to allow third parties to reason about them. Unknown Pools may have arbitrary\n logic: being able to assert that a Pool's behavior follows certain rules (those imposed by the contracts created by\n the factory) is very powerful.\n @dev By using the split code mechanism, we can deploy Pools with creation code so large that a regular factory\n contract would not be able to store it.\n Since we expect to release new versions of pool types regularly - and the blockchain is forever - versioning will\n become increasingly important. Governance can deprecate a factory by calling `disable`, which will permanently\n prevent the creation of any future pools from the factory."
+ },
+ "fullyImplemented": true,
+ "id": 4279,
+ "linearizedBaseContracts": [
+ 4279,
+ 6015,
+ 5041,
+ 5265,
+ 393,
+ 1022
+ ],
+ "name": "BasePoolFactory",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 4153,
+ "mutability": "immutable",
+ "name": "_protocolFeeProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 4279,
+ "src": "2059:70:31",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 4152,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "2059:31:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 4157,
+ "mutability": "mutable",
+ "name": "_isPoolFromFactory",
+ "nodeType": "VariableDeclaration",
+ "scope": 4279,
+ "src": "2136:51:31",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
+ "typeString": "mapping(address => bool)"
+ },
+ "typeName": {
+ "id": 4156,
+ "keyType": {
+ "id": 4154,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2144:7:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Mapping",
+ "src": "2136:24:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
+ "typeString": "mapping(address => bool)"
+ },
+ "valueType": {
+ "id": 4155,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2155:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 4159,
+ "mutability": "mutable",
+ "name": "_disabled",
+ "nodeType": "VariableDeclaration",
+ "scope": 4279,
+ "src": "2193:22:31",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4158,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2193:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "anonymous": false,
+ "id": 4163,
+ "name": "PoolCreated",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 4162,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4161,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "pool",
+ "nodeType": "VariableDeclaration",
+ "scope": 4163,
+ "src": "2240:20:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 4160,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2240:7:31",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2239:22:31"
+ },
+ "src": "2222:40:31"
+ },
+ {
+ "anonymous": false,
+ "id": 4165,
+ "name": "FactoryDisabled",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 4164,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2288:2:31"
+ },
+ "src": "2267:24:31"
+ },
+ {
+ "body": {
+ "id": 4184,
+ "nodeType": "Block",
+ "src": "2499:59:31",
+ "statements": [
+ {
+ "expression": {
+ "id": 4182,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4180,
+ "name": "_protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4153,
+ "src": "2509:20:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 4181,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4169,
+ "src": "2532:19:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "src": "2509:42:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "id": 4183,
+ "nodeType": "ExpressionStatement",
+ "src": "2509:42:31"
+ }
+ ]
+ },
+ "id": 4185,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "id": 4174,
+ "name": "creationCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4171,
+ "src": "2454:12:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "id": 4175,
+ "modifierName": {
+ "id": 4173,
+ "name": "BaseSplitCodeFactory",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5265,
+ "src": "2433:20:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_BaseSplitCodeFactory_$5265_$",
+ "typeString": "type(contract BaseSplitCodeFactory)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "2433:34:31"
+ },
+ {
+ "arguments": [
+ {
+ "id": 4177,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4167,
+ "src": "2492:5:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ }
+ ],
+ "id": 4178,
+ "modifierName": {
+ "id": 4176,
+ "name": "SingletonAuthentication",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6015,
+ "src": "2468:23:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_SingletonAuthentication_$6015_$",
+ "typeString": "type(contract SingletonAuthentication)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "2468:30:31"
+ }
+ ],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4172,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4167,
+ "mutability": "mutable",
+ "name": "vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 4185,
+ "src": "2318:12:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 4166,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "2318:6:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4169,
+ "mutability": "mutable",
+ "name": "protocolFeeProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 4185,
+ "src": "2340:51:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 4168,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "2340:31:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4171,
+ "mutability": "mutable",
+ "name": "creationCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 4185,
+ "src": "2401:25:31",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 4170,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2401:5:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2308:124:31"
+ },
+ "returnParameters": {
+ "id": 4179,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2499:0:31"
+ },
+ "scope": 4279,
+ "src": "2297:261:31",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 382
+ ],
+ "body": {
+ "id": 4197,
+ "nodeType": "Block",
+ "src": "2643:48:31",
+ "statements": [
+ {
+ "expression": {
+ "baseExpression": {
+ "id": 4193,
+ "name": "_isPoolFromFactory",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4157,
+ "src": "2660:18:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
+ "typeString": "mapping(address => bool)"
+ }
+ },
+ "id": 4195,
+ "indexExpression": {
+ "id": 4194,
+ "name": "pool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4187,
+ "src": "2679:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "2660:24:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 4192,
+ "id": 4196,
+ "nodeType": "Return",
+ "src": "2653:31:31"
+ }
+ ]
+ },
+ "functionSelector": "6634b753",
+ "id": 4198,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "isPoolFromFactory",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 4189,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2619:8:31"
+ },
+ "parameters": {
+ "id": 4188,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4187,
+ "mutability": "mutable",
+ "name": "pool",
+ "nodeType": "VariableDeclaration",
+ "scope": 4198,
+ "src": "2591:12:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 4186,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2591:7:31",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2590:14:31"
+ },
+ "returnParameters": {
+ "id": 4192,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4191,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4198,
+ "src": "2637:4:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4190,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2637:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2636:6:31"
+ },
+ "scope": 4279,
+ "src": "2564:127:31",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 388
+ ],
+ "body": {
+ "id": 4206,
+ "nodeType": "Block",
+ "src": "2755:33:31",
+ "statements": [
+ {
+ "expression": {
+ "id": 4204,
+ "name": "_disabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4159,
+ "src": "2772:9:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 4203,
+ "id": 4205,
+ "nodeType": "Return",
+ "src": "2765:16:31"
+ }
+ ]
+ },
+ "functionSelector": "6c57f5a9",
+ "id": 4207,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "isDisabled",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 4200,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2731:8:31"
+ },
+ "parameters": {
+ "id": 4199,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2716:2:31"
+ },
+ "returnParameters": {
+ "id": 4203,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4202,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4207,
+ "src": "2749:4:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4201,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2749:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2748:6:31"
+ },
+ "scope": 4279,
+ "src": "2697:91:31",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 392
+ ],
+ "body": {
+ "id": 4223,
+ "nodeType": "Block",
+ "src": "2844:93:31",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4213,
+ "name": "_ensureEnabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4236,
+ "src": "2854:14:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 4214,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2854:16:31",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4215,
+ "nodeType": "ExpressionStatement",
+ "src": "2854:16:31"
+ },
+ {
+ "expression": {
+ "id": 4218,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4216,
+ "name": "_disabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4159,
+ "src": "2881:9:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "hexValue": "74727565",
+ "id": 4217,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2893:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "src": "2881:16:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 4219,
+ "nodeType": "ExpressionStatement",
+ "src": "2881:16:31"
+ },
+ {
+ "eventCall": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4220,
+ "name": "FactoryDisabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4165,
+ "src": "2913:15:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 4221,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2913:17:31",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4222,
+ "nodeType": "EmitStatement",
+ "src": "2908:22:31"
+ }
+ ]
+ },
+ "functionSelector": "2f2770db",
+ "id": 4224,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 4211,
+ "modifierName": {
+ "id": 4210,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "2831:12:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "2831:12:31"
+ }
+ ],
+ "name": "disable",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 4209,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2822:8:31"
+ },
+ "parameters": {
+ "id": 4208,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2810:2:31"
+ },
+ "returnParameters": {
+ "id": 4212,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2844:0:31"
+ },
+ "scope": 4279,
+ "src": "2794:143:31",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 4235,
+ "nodeType": "Block",
+ "src": "2983:57:31",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4230,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "3002:13:31",
+ "subExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4228,
+ "name": "isDisabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4207,
+ "src": "3003:10:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 4229,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3003:12:31",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 4231,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "3017:6:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4232,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "DISABLED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 611,
+ "src": "3017:15:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4227,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2993:8:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 4233,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2993:40:31",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4234,
+ "nodeType": "ExpressionStatement",
+ "src": "2993:40:31"
+ }
+ ]
+ },
+ "id": 4236,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensureEnabled",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4225,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2966:2:31"
+ },
+ "returnParameters": {
+ "id": 4226,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2983:0:31"
+ },
+ "scope": 4279,
+ "src": "2943:97:31",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4243,
+ "nodeType": "Block",
+ "src": "3145:44:31",
+ "statements": [
+ {
+ "expression": {
+ "id": 4241,
+ "name": "_protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4153,
+ "src": "3162:20:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "functionReturnParameters": 4240,
+ "id": 4242,
+ "nodeType": "Return",
+ "src": "3155:27:31"
+ }
+ ]
+ },
+ "functionSelector": "739238d6",
+ "id": 4244,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getProtocolFeePercentagesProvider",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4237,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3088:2:31"
+ },
+ "returnParameters": {
+ "id": 4240,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4239,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4244,
+ "src": "3112:31:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 4238,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "3112:31:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3111:33:31"
+ },
+ "scope": 4279,
+ "src": "3046:143:31",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 5224
+ ],
+ "body": {
+ "id": 4277,
+ "nodeType": "Block",
+ "src": "3300:192:31",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4254,
+ "name": "_ensureEnabled",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4236,
+ "src": "3310:14:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 4255,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3310:16:31",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4256,
+ "nodeType": "ExpressionStatement",
+ "src": "3310:16:31"
+ },
+ {
+ "assignments": [
+ 4258
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4258,
+ "mutability": "mutable",
+ "name": "pool",
+ "nodeType": "VariableDeclaration",
+ "scope": 4277,
+ "src": "3337:12:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 4257,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3337:7:31",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4264,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 4261,
+ "name": "constructorArgs",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4246,
+ "src": "3366:15:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "id": 4262,
+ "name": "salt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4248,
+ "src": "3383:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "id": 4259,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "3352:5:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_BasePoolFactory_$4279",
+ "typeString": "contract super BasePoolFactory"
+ }
+ },
+ "id": 4260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_create",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5224,
+ "src": "3352:13:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$_t_bytes32_$returns$_t_address_$",
+ "typeString": "function (bytes memory,bytes32) returns (address)"
+ }
+ },
+ "id": 4263,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3352:36:31",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3337:51:31"
+ },
+ {
+ "expression": {
+ "id": 4269,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 4265,
+ "name": "_isPoolFromFactory",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4157,
+ "src": "3399:18:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
+ "typeString": "mapping(address => bool)"
+ }
+ },
+ "id": 4267,
+ "indexExpression": {
+ "id": 4266,
+ "name": "pool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4258,
+ "src": "3418:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "3399:24:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "hexValue": "74727565",
+ "id": 4268,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3426:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "src": "3399:31:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 4270,
+ "nodeType": "ExpressionStatement",
+ "src": "3399:31:31"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 4272,
+ "name": "pool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4258,
+ "src": "3458:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 4271,
+ "name": "PoolCreated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4163,
+ "src": "3446:11:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
+ "typeString": "function (address)"
+ }
+ },
+ "id": 4273,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3446:17:31",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4274,
+ "nodeType": "EmitStatement",
+ "src": "3441:22:31"
+ },
+ {
+ "expression": {
+ "id": 4275,
+ "name": "pool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4258,
+ "src": "3481:4:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "functionReturnParameters": 4253,
+ "id": 4276,
+ "nodeType": "Return",
+ "src": "3474:11:31"
+ }
+ ]
+ },
+ "id": 4278,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_create",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 4250,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "3273:8:31"
+ },
+ "parameters": {
+ "id": 4249,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4246,
+ "mutability": "mutable",
+ "name": "constructorArgs",
+ "nodeType": "VariableDeclaration",
+ "scope": 4278,
+ "src": "3212:28:31",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 4245,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3212:5:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4248,
+ "mutability": "mutable",
+ "name": "salt",
+ "nodeType": "VariableDeclaration",
+ "scope": 4278,
+ "src": "3242:12:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4247,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3242:7:31",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3211:44:31"
+ },
+ "returnParameters": {
+ "id": 4253,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4252,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4278,
+ "src": "3291:7:31",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 4251,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3291:7:31",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3290:9:31"
+ },
+ "scope": 4279,
+ "src": "3195:297:31",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 4280,
+ "src": "1952:1542:31"
+ }
+ ],
+ "src": "688:2807:31"
+ },
+ "id": 31
+ },
+ "@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol",
+ "exportedSymbols": {
+ "FactoryWidePauseWindow": [
+ 4341
+ ]
+ },
+ "id": 4342,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 4281,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:32"
+ },
+ {
+ "id": 4282,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:32"
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 4283,
+ "nodeType": "StructuredDocumentation",
+ "src": "747:337:32",
+ "text": " @dev Utility to create Pool factories for Pools that use the `TemporarilyPausable` contract.\n By calling `TemporarilyPausable`'s constructor with the result of `getPauseConfiguration`, all Pools created by this\n factory will share the same Pause Window end time, after which both old and new Pools will not be pausable."
+ },
+ "fullyImplemented": true,
+ "id": 4341,
+ "linearizedBaseContracts": [
+ 4341
+ ],
+ "name": "FactoryWidePauseWindow",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 4286,
+ "mutability": "constant",
+ "name": "_INITIAL_PAUSE_WINDOW_DURATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 4341,
+ "src": "1279:65:32",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4284,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1279:7:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3930",
+ "id": 4285,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1337:7:32",
+ "subdenomination": "days",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_7776000_by_1",
+ "typeString": "int_const 7776000"
+ },
+ "value": "90"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 4289,
+ "mutability": "constant",
+ "name": "_BUFFER_PERIOD_DURATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 4341,
+ "src": "1350:58:32",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4287,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1350:7:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3330",
+ "id": 4288,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1401:7:32",
+ "subdenomination": "days",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2592000_by_1",
+ "typeString": "int_const 2592000"
+ },
+ "value": "30"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 4291,
+ "mutability": "immutable",
+ "name": "_poolsPauseWindowEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 4341,
+ "src": "1544:50:32",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4290,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1544:7:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 4301,
+ "nodeType": "Block",
+ "src": "1615:92:32",
+ "statements": [
+ {
+ "expression": {
+ "id": 4299,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4294,
+ "name": "_poolsPauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4291,
+ "src": "1625:24:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4298,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 4295,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "1652:5:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 4296,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "1652:15:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 4297,
+ "name": "_INITIAL_PAUSE_WINDOW_DURATION",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4286,
+ "src": "1670:30:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1652:48:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1625:75:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4300,
+ "nodeType": "ExpressionStatement",
+ "src": "1625:75:32"
+ }
+ ]
+ },
+ "id": 4302,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4292,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1612:2:32"
+ },
+ "returnParameters": {
+ "id": 4293,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1615:0:32"
+ },
+ "scope": 4341,
+ "src": "1601:106:32",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 4339,
+ "nodeType": "Block",
+ "src": "2179:774:32",
+ "statements": [
+ {
+ "assignments": [
+ 4311
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4311,
+ "mutability": "mutable",
+ "name": "currentTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 4339,
+ "src": "2189:19:32",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4310,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2189:7:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4314,
+ "initialValue": {
+ "expression": {
+ "id": 4312,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "2211:5:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 4313,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "2211:15:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2189:37:32"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4317,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4315,
+ "name": "currentTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4311,
+ "src": "2240:11:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 4316,
+ "name": "_poolsPauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4291,
+ "src": "2254:24:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2240:38:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 4337,
+ "nodeType": "Block",
+ "src": "2700:247:32",
+ "statements": [
+ {
+ "expression": {
+ "id": 4331,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4329,
+ "name": "pauseWindowDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4306,
+ "src": "2875:19:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "hexValue": "30",
+ "id": 4330,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2897:1:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2875:23:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4332,
+ "nodeType": "ExpressionStatement",
+ "src": "2875:23:32"
+ },
+ {
+ "expression": {
+ "id": 4335,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4333,
+ "name": "bufferPeriodDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4308,
+ "src": "2912:20:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "hexValue": "30",
+ "id": 4334,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2935:1:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2912:24:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4336,
+ "nodeType": "ExpressionStatement",
+ "src": "2912:24:32"
+ }
+ ]
+ },
+ "id": 4338,
+ "nodeType": "IfStatement",
+ "src": "2236:711:32",
+ "trueBody": {
+ "id": 4328,
+ "nodeType": "Block",
+ "src": "2280:414:32",
+ "statements": [
+ {
+ "expression": {
+ "id": 4322,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4318,
+ "name": "pauseWindowDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4306,
+ "src": "2528:19:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4321,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4319,
+ "name": "_poolsPauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4291,
+ "src": "2550:24:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 4320,
+ "name": "currentTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4311,
+ "src": "2577:11:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2550:38:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2528:60:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4323,
+ "nodeType": "ExpressionStatement",
+ "src": "2528:60:32"
+ },
+ {
+ "expression": {
+ "id": 4326,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4324,
+ "name": "bufferPeriodDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4308,
+ "src": "2637:20:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 4325,
+ "name": "_BUFFER_PERIOD_DURATION",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4289,
+ "src": "2660:23:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2637:46:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4327,
+ "nodeType": "ExpressionStatement",
+ "src": "2637:46:32"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4303,
+ "nodeType": "StructuredDocumentation",
+ "src": "1713:348:32",
+ "text": " @dev Returns the current `TemporarilyPausable` configuration that will be applied to Pools created by this\n factory.\n `pauseWindowDuration` will decrease over time until it reaches zero, at which point both it and\n `bufferPeriodDuration` will be zero forever, meaning deployed Pools will not be pausable."
+ },
+ "functionSelector": "2da47c40",
+ "id": 4340,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPauseConfiguration",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4304,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2096:2:32"
+ },
+ "returnParameters": {
+ "id": 4309,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4306,
+ "mutability": "mutable",
+ "name": "pauseWindowDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 4340,
+ "src": "2120:27:32",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4305,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2120:7:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4308,
+ "mutability": "mutable",
+ "name": "bufferPeriodDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 4340,
+ "src": "2149:28:32",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4307,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2149:7:32",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2119:59:32"
+ },
+ "scope": 4341,
+ "src": "2066:887:32",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ }
+ ],
+ "scope": 4342,
+ "src": "1085:1870:32"
+ }
+ ],
+ "src": "688:2268:32"
+ },
+ "id": 32
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol",
+ "exportedSymbols": {
+ "InvariantGrowthProtocolSwapFees": [
+ 4420
+ ]
+ },
+ "id": 4421,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 4343,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:33"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "id": 4344,
+ "nodeType": "ImportDirective",
+ "scope": 4421,
+ "sourceUnit": 7159,
+ "src": "713:72:33",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "id": 4345,
+ "nodeType": "ImportDirective",
+ "scope": 4421,
+ "sourceUnit": 8769,
+ "src": "786:66:33",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol",
+ "file": "./ProtocolFees.sol",
+ "id": 4346,
+ "nodeType": "ImportDirective",
+ "scope": 4421,
+ "sourceUnit": 4726,
+ "src": "853:28:33",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 4420,
+ "linearizedBaseContracts": [
+ 4420
+ ],
+ "name": "InvariantGrowthProtocolSwapFees",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 4349,
+ "libraryName": {
+ "id": 4347,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "935:10:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "929:29:33",
+ "typeName": {
+ "id": 4348,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "950:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "body": {
+ "id": 4387,
+ "nodeType": "Block",
+ "src": "1158:3646:33",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 4368,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4362,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4360,
+ "name": "supplyGrowthRatio",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4353,
+ "src": "2568:17:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 4361,
+ "name": "invariantGrowthRatio",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4351,
+ "src": "2589:20:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2568:41:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 4363,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2567:43:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4366,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4364,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4355,
+ "src": "2615:25:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 4365,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2644:1:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2615:30:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 4367,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2614:32:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "2567:79:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 4371,
+ "nodeType": "IfStatement",
+ "src": "2563:93:33",
+ "trueBody": {
+ "expression": {
+ "hexValue": "30",
+ "id": 4369,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2655:1:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 4359,
+ "id": 4370,
+ "nodeType": "Return",
+ "src": "2648:8:33"
+ }
+ },
+ {
+ "assignments": [
+ 4373
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4373,
+ "mutability": "mutable",
+ "name": "swapFeesPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4387,
+ "src": "4465:26:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4372,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4465:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4381,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4380,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 4374,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "4494:10:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 4375,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ONE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6743,
+ "src": "4494:14:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 4378,
+ "name": "invariantGrowthRatio",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4351,
+ "src": "4537:20:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4376,
+ "name": "supplyGrowthRatio",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4353,
+ "src": "4511:17:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4377,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "4511:25:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4379,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4511:47:33",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4494:64:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4465:93:33"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4384,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4355,
+ "src": "4771:25:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4382,
+ "name": "swapFeesPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4373,
+ "src": "4744:18:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4383,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "4744:26:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4385,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4744:53:33",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 4359,
+ "id": 4386,
+ "nodeType": "Return",
+ "src": "4737:60:33"
+ }
+ ]
+ },
+ "id": 4388,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getProtocolOwnershipPercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4356,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4351,
+ "mutability": "mutable",
+ "name": "invariantGrowthRatio",
+ "nodeType": "VariableDeclaration",
+ "scope": 4388,
+ "src": "1013:28:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4350,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1013:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4353,
+ "mutability": "mutable",
+ "name": "supplyGrowthRatio",
+ "nodeType": "VariableDeclaration",
+ "scope": 4388,
+ "src": "1051:25:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4352,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1051:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4355,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4388,
+ "src": "1086:33:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4354,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1086:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1003:122:33"
+ },
+ "returnParameters": {
+ "id": 4359,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4358,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4388,
+ "src": "1149:7:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4357,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1149:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1148:9:33"
+ },
+ "scope": 4420,
+ "src": "964:3840:33",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4418,
+ "nodeType": "Block",
+ "src": "5021:323:33",
+ "statements": [
+ {
+ "assignments": [
+ 4402
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4402,
+ "mutability": "mutable",
+ "name": "protocolOwnershipPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4418,
+ "src": "5031:35:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4401,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5031:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4411,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 4404,
+ "name": "invariantGrowthRatio",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4390,
+ "src": "5113:20:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 4407,
+ "name": "previousSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4392,
+ "src": "5169:14:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4405,
+ "name": "currentSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4394,
+ "src": "5147:13:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4406,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "5147:21:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4408,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5147:37:33",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4409,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4396,
+ "src": "5198:25:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4403,
+ "name": "getProtocolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4388,
+ "src": "5069:30:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4410,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5069:164:33",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5031:202:33"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4414,
+ "name": "currentSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4394,
+ "src": "5294:13:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4415,
+ "name": "protocolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4402,
+ "src": "5309:27:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4412,
+ "name": "ProtocolFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4725,
+ "src": "5251:12:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFees_$4725_$",
+ "typeString": "type(library ProtocolFees)"
+ }
+ },
+ "id": 4413,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "bptForPoolOwnershipPercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4724,
+ "src": "5251:42:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4416,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5251:86:33",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 4400,
+ "id": 4417,
+ "nodeType": "Return",
+ "src": "5244:93:33"
+ }
+ ]
+ },
+ "id": 4419,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "calcDueProtocolFees",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4397,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4390,
+ "mutability": "mutable",
+ "name": "invariantGrowthRatio",
+ "nodeType": "VariableDeclaration",
+ "scope": 4419,
+ "src": "4848:28:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4389,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4848:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4392,
+ "mutability": "mutable",
+ "name": "previousSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 4419,
+ "src": "4886:22:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4391,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4886:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4394,
+ "mutability": "mutable",
+ "name": "currentSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 4419,
+ "src": "4918:21:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4393,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4918:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4396,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4419,
+ "src": "4949:33:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4395,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4949:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4838:150:33"
+ },
+ "returnParameters": {
+ "id": 4400,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4399,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4419,
+ "src": "5012:7:33",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4398,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5012:7:33",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5011:9:33"
+ },
+ "scope": 4420,
+ "src": "4810:534:33",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 4421,
+ "src": "883:4463:33"
+ }
+ ],
+ "src": "688:4659:33"
+ },
+ "id": 33
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol",
+ "exportedSymbols": {
+ "ProtocolFeeCache": [
+ 4694
+ ]
+ },
+ "id": 4695,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 4422,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:34"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 4423,
+ "nodeType": "ImportDirective",
+ "scope": 4695,
+ "sourceUnit": 1012,
+ "src": "713:90:34",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol",
+ "id": 4424,
+ "nodeType": "ImportDirective",
+ "scope": 4695,
+ "sourceUnit": 1283,
+ "src": "804:101:34",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol",
+ "id": 4425,
+ "nodeType": "ImportDirective",
+ "scope": 4695,
+ "sourceUnit": 9517,
+ "src": "907:78:34",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/RecoveryMode.sol",
+ "file": "../RecoveryMode.sol",
+ "id": 4426,
+ "nodeType": "ImportDirective",
+ "scope": 4695,
+ "sourceUnit": 4137,
+ "src": "987:29:34",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 4428,
+ "name": "RecoveryMode",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4136,
+ "src": "2188:12:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_RecoveryMode_$4136",
+ "typeString": "contract RecoveryMode"
+ }
+ },
+ "id": 4429,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2188:12:34"
+ }
+ ],
+ "contractDependencies": [
+ 451,
+ 1022,
+ 3955,
+ 4136,
+ 5041
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 4427,
+ "nodeType": "StructuredDocumentation",
+ "src": "1018:1131:34",
+ "text": " @dev The Vault does not provide the protocol swap fee percentage in swap hooks (as swaps don't typically need this\n value), so for swaps that need this value, we would have to to fetch it ourselves from the\n ProtocolFeePercentagesProvider. Additionally, other protocol fee types (such as Yield or AUM) can only be obtained\n by making said call.\n However, these values change so rarely that it doesn't make sense to perform the required calls to get the current\n values in every single user interaction. Instead, we keep a local copy that can be permissionlessly updated by anyone\n with the real value. We also pack these values together, performing a single storage read to get them all.\n When initialized with a special sentinel value, the swap fee is delegated, meaning the mutable protocol swap fee\n cache is set to the current value stored in the ProtocolFeePercentagesProvider, and can be updated by anyone with a\n call to `updateProtocolFeePercentageCache`. Any other value means the protocol swap fee is fixed, so it is instead\n stored in the immutable `_fixedProtocolSwapFeePercentage`."
+ },
+ "fullyImplemented": false,
+ "id": 4694,
+ "linearizedBaseContracts": [
+ 4694,
+ 4136,
+ 3955,
+ 5041,
+ 1022,
+ 451
+ ],
+ "name": "ProtocolFeeCache",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 4432,
+ "libraryName": {
+ "id": 4430,
+ "name": "SafeCast",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 9516,
+ "src": "2213:8:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_SafeCast_$9516",
+ "typeString": "library SafeCast"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "2207:27:34",
+ "typeName": {
+ "id": 4431,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2226:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "constant": false,
+ "id": 4434,
+ "mutability": "immutable",
+ "name": "_protocolFeeProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 4694,
+ "src": "2240:70:34",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 4433,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "2240:31:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "canonicalName": "ProtocolFeeCache.FeeTypeCache",
+ "id": 4441,
+ "members": [
+ {
+ "constant": false,
+ "id": 4436,
+ "mutability": "mutable",
+ "name": "swapFee",
+ "nodeType": "VariableDeclaration",
+ "scope": 4441,
+ "src": "2489:14:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ },
+ "typeName": {
+ "id": 4435,
+ "name": "uint64",
+ "nodeType": "ElementaryTypeName",
+ "src": "2489:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4438,
+ "mutability": "mutable",
+ "name": "yieldFee",
+ "nodeType": "VariableDeclaration",
+ "scope": 4441,
+ "src": "2513:15:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ },
+ "typeName": {
+ "id": 4437,
+ "name": "uint64",
+ "nodeType": "ElementaryTypeName",
+ "src": "2513:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4440,
+ "mutability": "mutable",
+ "name": "aumFee",
+ "nodeType": "VariableDeclaration",
+ "scope": 4441,
+ "src": "2538:13:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ },
+ "typeName": {
+ "id": 4439,
+ "name": "uint64",
+ "nodeType": "ElementaryTypeName",
+ "src": "2538:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "FeeTypeCache",
+ "nodeType": "StructDefinition",
+ "scope": 4694,
+ "src": "2459:99:34",
+ "visibility": "public"
+ },
+ {
+ "constant": false,
+ "id": 4443,
+ "mutability": "mutable",
+ "name": "_cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4694,
+ "src": "2564:27:34",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache"
+ },
+ "typeName": {
+ "id": 4442,
+ "name": "FeeTypeCache",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4441,
+ "src": "2564:12:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage_ptr",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "anonymous": false,
+ "id": 4449,
+ "name": "ProtocolFeePercentageCacheUpdated",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 4448,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4445,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 4449,
+ "src": "2638:23:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4444,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2638:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4447,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "protocolFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4449,
+ "src": "2663:29:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4446,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2663:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2637:56:34"
+ },
+ "src": "2598:96:34"
+ },
+ {
+ "constant": true,
+ "functionSelector": "ddf4627b",
+ "id": 4456,
+ "mutability": "constant",
+ "name": "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL",
+ "nodeType": "VariableDeclaration",
+ "scope": 4694,
+ "src": "2859:80:34",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4450,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2859:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4453,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2927:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 4452,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2927:7:34",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ }
+ ],
+ "id": 4451,
+ "name": "type",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -27,
+ "src": "2922:4:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 4454,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2922:13:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_meta_type_t_uint256",
+ "typeString": "type(uint256)"
+ }
+ },
+ "id": 4455,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "max",
+ "nodeType": "MemberAccess",
+ "src": "2922:17:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "public"
+ },
+ {
+ "constant": false,
+ "id": 4458,
+ "mutability": "immutable",
+ "name": "_delegatedProtocolSwapFees",
+ "nodeType": "VariableDeclaration",
+ "scope": 4694,
+ "src": "2946:49:34",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4457,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2946:4:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 4460,
+ "mutability": "immutable",
+ "name": "_fixedProtocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4694,
+ "src": "3063:57:34",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4459,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3063:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 4528,
+ "nodeType": "Block",
+ "src": "3227:1542:34",
+ "statements": [
+ {
+ "assignments": [
+ 4468
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4468,
+ "mutability": "mutable",
+ "name": "delegatedProtocolSwapFees",
+ "nodeType": "VariableDeclaration",
+ "scope": 4528,
+ "src": "3385:30:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4467,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3385:4:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4472,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4471,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4469,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4464,
+ "src": "3418:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 4470,
+ "name": "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4456,
+ "src": "3447:36:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3418:65:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3385:98:34"
+ },
+ {
+ "expression": {
+ "id": 4475,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4473,
+ "name": "_delegatedProtocolSwapFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4458,
+ "src": "3494:26:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 4474,
+ "name": "delegatedProtocolSwapFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4468,
+ "src": "3523:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "3494:54:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 4476,
+ "nodeType": "ExpressionStatement",
+ "src": "3494:54:34"
+ },
+ {
+ "expression": {
+ "id": 4479,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4477,
+ "name": "_protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4434,
+ "src": "3558:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 4478,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4462,
+ "src": "3581:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "src": "3558:42:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "id": 4480,
+ "nodeType": "ExpressionStatement",
+ "src": "3558:42:34"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4482,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4462,
+ "src": "3635:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "id": 4483,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "3656:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4484,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "YIELD",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1278,
+ "src": "3656:21:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4481,
+ "name": "_updateProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4693,
+ "src": "3611:23:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IProtocolFeePercentagesProvider_$1269_$_t_uint256_$returns$__$",
+ "typeString": "function (contract IProtocolFeePercentagesProvider,uint256)"
+ }
+ },
+ "id": 4485,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3611:67:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4486,
+ "nodeType": "ExpressionStatement",
+ "src": "3611:67:34"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4488,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4462,
+ "src": "3712:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "id": 4489,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "3733:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4490,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "AUM",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1281,
+ "src": "3733:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4487,
+ "name": "_updateProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4693,
+ "src": "3688:23:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IProtocolFeePercentagesProvider_$1269_$_t_uint256_$returns$__$",
+ "typeString": "function (contract IProtocolFeePercentagesProvider,uint256)"
+ }
+ },
+ "id": 4491,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3688:65:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4492,
+ "nodeType": "ExpressionStatement",
+ "src": "3688:65:34"
+ },
+ {
+ "condition": {
+ "id": 4493,
+ "name": "delegatedProtocolSwapFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4468,
+ "src": "3768:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 4519,
+ "nodeType": "Block",
+ "src": "3892:648:34",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4508,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4502,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4464,
+ "src": "3932:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 4505,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "4009:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4506,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "4009:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4503,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4462,
+ "src": "3961:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "id": 4504,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getFeeTypeMaximumPercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1260,
+ "src": "3961:47:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view external returns (uint256)"
+ }
+ },
+ "id": 4507,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3961:69:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3932:98:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 4509,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4048:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4510,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP_FEE_PERCENTAGE_TOO_HIGH",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 995,
+ "src": "4048:35:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4501,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "3906:8:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 4511,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3906:191:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4512,
+ "nodeType": "ExpressionStatement",
+ "src": "3906:191:34"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 4514,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "4481:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4515,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "4481:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4516,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4464,
+ "src": "4503:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4513,
+ "name": "ProtocolFeePercentageCacheUpdated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4449,
+ "src": "4447:33:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256)"
+ }
+ },
+ "id": 4517,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4447:82:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4518,
+ "nodeType": "EmitStatement",
+ "src": "4442:87:34"
+ }
+ ]
+ },
+ "id": 4520,
+ "nodeType": "IfStatement",
+ "src": "3764:776:34",
+ "trueBody": {
+ "id": 4500,
+ "nodeType": "Block",
+ "src": "3795:91:34",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4495,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4462,
+ "src": "3833:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "id": 4496,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "3854:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4497,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "3854:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4494,
+ "name": "_updateProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4693,
+ "src": "3809:23:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IProtocolFeePercentagesProvider_$1269_$_t_uint256_$returns$__$",
+ "typeString": "function (contract IProtocolFeePercentagesProvider,uint256)"
+ }
+ },
+ "id": 4498,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3809:66:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4499,
+ "nodeType": "ExpressionStatement",
+ "src": "3809:66:34"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "id": 4526,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4521,
+ "name": "_fixedProtocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4460,
+ "src": "4671:31:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "id": 4522,
+ "name": "delegatedProtocolSwapFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4468,
+ "src": "4705:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 4524,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4464,
+ "src": "4737:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4525,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "4705:57:34",
+ "trueExpression": {
+ "hexValue": "30",
+ "id": 4523,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4733:1:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4671:91:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4527,
+ "nodeType": "ExpressionStatement",
+ "src": "4671:91:34"
+ }
+ ]
+ },
+ "id": 4529,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4465,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4462,
+ "mutability": "mutable",
+ "name": "protocolFeeProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 4529,
+ "src": "3139:51:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 4461,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "3139:31:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4464,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4529,
+ "src": "3192:33:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4463,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3192:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3138:88:34"
+ },
+ "returnParameters": {
+ "id": 4466,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3227:0:34"
+ },
+ "scope": 4694,
+ "src": "3127:1642:34",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4580,
+ "nodeType": "Block",
+ "src": "5137:474:34",
+ "statements": [
+ {
+ "condition": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4537,
+ "name": "inRecoveryMode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4012,
+ "src": "5151:14:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 4538,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5151:16:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 4542,
+ "nodeType": "IfStatement",
+ "src": "5147:55:34",
+ "trueBody": {
+ "id": 4541,
+ "nodeType": "Block",
+ "src": "5169:33:34",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "30",
+ "id": 4539,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5190:1:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 4536,
+ "id": 4540,
+ "nodeType": "Return",
+ "src": "5183:8:34"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4546,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4543,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4532,
+ "src": "5216:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "id": 4544,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "5227:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4545,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "5227:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5216:31:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4558,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4555,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4532,
+ "src": "5372:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "id": 4556,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "5383:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4557,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "YIELD",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1278,
+ "src": "5383:21:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5372:32:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4566,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4563,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4532,
+ "src": "5463:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "id": 4564,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "5474:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4565,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "AUM",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1281,
+ "src": "5474:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5463:30:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 4576,
+ "nodeType": "Block",
+ "src": "5546:59:34",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 4572,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "5568:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4573,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "UNHANDLED_FEE_TYPE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 905,
+ "src": "5568:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4571,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 510,
+ "src": "5560:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$__$",
+ "typeString": "function (uint256) pure"
+ }
+ },
+ "id": 4574,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5560:34:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4575,
+ "nodeType": "ExpressionStatement",
+ "src": "5560:34:34"
+ }
+ ]
+ },
+ "id": 4577,
+ "nodeType": "IfStatement",
+ "src": "5459:146:34",
+ "trueBody": {
+ "id": 4570,
+ "nodeType": "Block",
+ "src": "5495:45:34",
+ "statements": [
+ {
+ "expression": {
+ "expression": {
+ "id": 4567,
+ "name": "_cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4443,
+ "src": "5516:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache storage ref"
+ }
+ },
+ "id": 4568,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "aumFee",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4440,
+ "src": "5516:13:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "functionReturnParameters": 4536,
+ "id": 4569,
+ "nodeType": "Return",
+ "src": "5509:20:34"
+ }
+ ]
+ }
+ },
+ "id": 4578,
+ "nodeType": "IfStatement",
+ "src": "5368:237:34",
+ "trueBody": {
+ "id": 4562,
+ "nodeType": "Block",
+ "src": "5406:47:34",
+ "statements": [
+ {
+ "expression": {
+ "expression": {
+ "id": 4559,
+ "name": "_cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4443,
+ "src": "5427:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache storage ref"
+ }
+ },
+ "id": 4560,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "yieldFee",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4438,
+ "src": "5427:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "functionReturnParameters": 4536,
+ "id": 4561,
+ "nodeType": "Return",
+ "src": "5420:22:34"
+ }
+ ]
+ }
+ },
+ "id": 4579,
+ "nodeType": "IfStatement",
+ "src": "5212:393:34",
+ "trueBody": {
+ "id": 4554,
+ "nodeType": "Block",
+ "src": "5249:113:34",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4547,
+ "name": "getProtocolSwapFeeDelegation",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4625,
+ "src": "5270:28:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 4548,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5270:30:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 4551,
+ "name": "_fixedProtocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4460,
+ "src": "5320:31:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4552,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5270:81:34",
+ "trueExpression": {
+ "expression": {
+ "id": 4549,
+ "name": "_cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4443,
+ "src": "5303:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache storage ref"
+ }
+ },
+ "id": 4550,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "swapFee",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4436,
+ "src": "5303:14:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 4536,
+ "id": 4553,
+ "nodeType": "Return",
+ "src": "5263:88:34"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4530,
+ "nodeType": "StructuredDocumentation",
+ "src": "4775:271:34",
+ "text": " @dev Returns the cached protocol fee percentage. If `getProtocolSwapFeeDelegation()` is false, this value is\n immutable for swap fee queries. Alternatively, it will track the global fee percentage set in the\n ProtocolFeePercentagesProvider."
+ },
+ "functionSelector": "70464016",
+ "id": 4581,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getProtocolFeePercentageCache",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4533,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4532,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 4581,
+ "src": "5090:15:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4531,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5090:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5089:17:34"
+ },
+ "returnParameters": {
+ "id": 4536,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4535,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4581,
+ "src": "5128:7:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4534,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5128:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5127:9:34"
+ },
+ "scope": 4694,
+ "src": "5051:560:34",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 4610,
+ "nodeType": "Block",
+ "src": "6466:341:34",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4585,
+ "name": "_beforeProtocolFeeCacheUpdate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4616,
+ "src": "6476:29:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 4586,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6476:31:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4587,
+ "nodeType": "ExpressionStatement",
+ "src": "6476:31:34"
+ },
+ {
+ "condition": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4588,
+ "name": "getProtocolSwapFeeDelegation",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4625,
+ "src": "6522:28:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 4589,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6522:30:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 4597,
+ "nodeType": "IfStatement",
+ "src": "6518:128:34",
+ "trueBody": {
+ "id": 4596,
+ "nodeType": "Block",
+ "src": "6554:92:34",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4591,
+ "name": "_protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4434,
+ "src": "6592:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "id": 4592,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "6614:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4593,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "6614:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4590,
+ "name": "_updateProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4693,
+ "src": "6568:23:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IProtocolFeePercentagesProvider_$1269_$_t_uint256_$returns$__$",
+ "typeString": "function (contract IProtocolFeePercentagesProvider,uint256)"
+ }
+ },
+ "id": 4594,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6568:67:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4595,
+ "nodeType": "ExpressionStatement",
+ "src": "6568:67:34"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4599,
+ "name": "_protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4434,
+ "src": "6680:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "id": 4600,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "6702:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4601,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "YIELD",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1278,
+ "src": "6702:21:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4598,
+ "name": "_updateProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4693,
+ "src": "6656:23:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IProtocolFeePercentagesProvider_$1269_$_t_uint256_$returns$__$",
+ "typeString": "function (contract IProtocolFeePercentagesProvider,uint256)"
+ }
+ },
+ "id": 4602,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6656:68:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4603,
+ "nodeType": "ExpressionStatement",
+ "src": "6656:68:34"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4605,
+ "name": "_protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4434,
+ "src": "6758:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "id": 4606,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "6780:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4607,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "AUM",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1281,
+ "src": "6780:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4604,
+ "name": "_updateProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4693,
+ "src": "6734:23:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_IProtocolFeePercentagesProvider_$1269_$_t_uint256_$returns$__$",
+ "typeString": "function (contract IProtocolFeePercentagesProvider,uint256)"
+ }
+ },
+ "id": 4608,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6734:66:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4609,
+ "nodeType": "ExpressionStatement",
+ "src": "6734:66:34"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4582,
+ "nodeType": "StructuredDocumentation",
+ "src": "5617:791:34",
+ "text": " @dev Can be called by anyone to update the cached fee percentages (swap fee is only updated when delegated).\n Updates the cache to the latest value set by governance.\n This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n an exit, because the state of the pool could be out of sync with the state of the Vault.\n `_beforeProtocolFeeCacheUpdate` will revert when called from such a context for composable stable pools,\n effectively protecting this function.\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference."
+ },
+ "functionSelector": "0da0669c",
+ "id": 4611,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "updateProtocolFeePercentageCache",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4583,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "6454:2:34"
+ },
+ "returnParameters": {
+ "id": 4584,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "6466:0:34"
+ },
+ "scope": 4694,
+ "src": "6413:394:34",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 4615,
+ "nodeType": "Block",
+ "src": "7186:2:34",
+ "statements": []
+ },
+ "documentation": {
+ "id": 4612,
+ "nodeType": "StructuredDocumentation",
+ "src": "6813:310:34",
+ "text": " @dev Override in derived contracts to perform some action before the cache is updated. This is typically relevant\n to Pools that incur protocol debt between operations. To avoid altering the amount due retroactively, this debt\n needs to be paid before the fee percentages change."
+ },
+ "id": 4616,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_beforeProtocolFeeCacheUpdate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4613,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7166:2:34"
+ },
+ "returnParameters": {
+ "id": 4614,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7186:0:34"
+ },
+ "scope": 4694,
+ "src": "7128:60:34",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4624,
+ "nodeType": "Block",
+ "src": "7388:50:34",
+ "statements": [
+ {
+ "expression": {
+ "id": 4622,
+ "name": "_delegatedProtocolSwapFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4458,
+ "src": "7405:26:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 4621,
+ "id": 4623,
+ "nodeType": "Return",
+ "src": "7398:33:34"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4617,
+ "nodeType": "StructuredDocumentation",
+ "src": "7194:122:34",
+ "text": " @dev Returns whether this Pool tracks protocol swap fee changes in the IProtocolFeePercentagesProvider."
+ },
+ "functionSelector": "15b0015b",
+ "id": 4625,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getProtocolSwapFeeDelegation",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4618,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7358:2:34"
+ },
+ "returnParameters": {
+ "id": 4621,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4620,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4625,
+ "src": "7382:4:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 4619,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "7382:4:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7381:6:34"
+ },
+ "scope": 4694,
+ "src": "7321:117:34",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 4692,
+ "nodeType": "Block",
+ "src": "7555:554:34",
+ "statements": [
+ {
+ "assignments": [
+ 4633
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4633,
+ "mutability": "mutable",
+ "name": "currentValue",
+ "nodeType": "VariableDeclaration",
+ "scope": 4692,
+ "src": "7565:20:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4632,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7565:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 4638,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 4636,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4629,
+ "src": "7629:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4634,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4627,
+ "src": "7588:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "id": 4635,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getFeeTypePercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1252,
+ "src": "7588:40:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view external returns (uint256)"
+ }
+ },
+ "id": 4637,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7588:49:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "7565:72:34"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4642,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4639,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4629,
+ "src": "7652:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "id": 4640,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "7663:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4641,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "7663:20:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7652:31:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4655,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4652,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4629,
+ "src": "7760:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "id": 4653,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "7771:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4654,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "YIELD",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1278,
+ "src": "7771:21:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7760:32:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4668,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4665,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4629,
+ "src": "7870:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "id": 4666,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "7881:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 4667,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "AUM",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1281,
+ "src": "7881:19:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7870:30:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 4683,
+ "nodeType": "Block",
+ "src": "7972:59:34",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 4679,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7994:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4680,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "UNHANDLED_FEE_TYPE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 905,
+ "src": "7994:25:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4678,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 510,
+ "src": "7986:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$__$",
+ "typeString": "function (uint256) pure"
+ }
+ },
+ "id": 4681,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7986:34:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4682,
+ "nodeType": "ExpressionStatement",
+ "src": "7986:34:34"
+ }
+ ]
+ },
+ "id": 4684,
+ "nodeType": "IfStatement",
+ "src": "7866:165:34",
+ "trueBody": {
+ "id": 4677,
+ "nodeType": "Block",
+ "src": "7902:64:34",
+ "statements": [
+ {
+ "expression": {
+ "id": 4675,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "expression": {
+ "id": 4669,
+ "name": "_cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4443,
+ "src": "7916:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache storage ref"
+ }
+ },
+ "id": 4671,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "memberName": "aumFee",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4440,
+ "src": "7916:13:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 4672,
+ "name": "currentValue",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4633,
+ "src": "7932:12:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4673,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "toUint64",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9515,
+ "src": "7932:21:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint64_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256) pure returns (uint64)"
+ }
+ },
+ "id": 4674,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7932:23:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "src": "7916:39:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "id": 4676,
+ "nodeType": "ExpressionStatement",
+ "src": "7916:39:34"
+ }
+ ]
+ }
+ },
+ "id": 4685,
+ "nodeType": "IfStatement",
+ "src": "7756:275:34",
+ "trueBody": {
+ "id": 4664,
+ "nodeType": "Block",
+ "src": "7794:66:34",
+ "statements": [
+ {
+ "expression": {
+ "id": 4662,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "expression": {
+ "id": 4656,
+ "name": "_cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4443,
+ "src": "7808:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache storage ref"
+ }
+ },
+ "id": 4658,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "memberName": "yieldFee",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4438,
+ "src": "7808:15:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 4659,
+ "name": "currentValue",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4633,
+ "src": "7826:12:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4660,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "toUint64",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9515,
+ "src": "7826:21:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint64_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256) pure returns (uint64)"
+ }
+ },
+ "id": 4661,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7826:23:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "src": "7808:41:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "id": 4663,
+ "nodeType": "ExpressionStatement",
+ "src": "7808:41:34"
+ }
+ ]
+ }
+ },
+ "id": 4686,
+ "nodeType": "IfStatement",
+ "src": "7648:383:34",
+ "trueBody": {
+ "id": 4651,
+ "nodeType": "Block",
+ "src": "7685:65:34",
+ "statements": [
+ {
+ "expression": {
+ "id": 4649,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "expression": {
+ "id": 4643,
+ "name": "_cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4443,
+ "src": "7699:6:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_FeeTypeCache_$4441_storage",
+ "typeString": "struct ProtocolFeeCache.FeeTypeCache storage ref"
+ }
+ },
+ "id": 4645,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "memberName": "swapFee",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4436,
+ "src": "7699:14:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 4646,
+ "name": "currentValue",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4633,
+ "src": "7716:12:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4647,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "toUint64",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9515,
+ "src": "7716:21:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint64_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256) pure returns (uint64)"
+ }
+ },
+ "id": 4648,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7716:23:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "src": "7699:40:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "id": 4650,
+ "nodeType": "ExpressionStatement",
+ "src": "7699:40:34"
+ }
+ ]
+ }
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 4688,
+ "name": "feeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4629,
+ "src": "8080:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4689,
+ "name": "currentValue",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4633,
+ "src": "8089:12:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4687,
+ "name": "ProtocolFeePercentageCacheUpdated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4449,
+ "src": "8046:33:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256)"
+ }
+ },
+ "id": 4690,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8046:56:34",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4691,
+ "nodeType": "EmitStatement",
+ "src": "8041:61:34"
+ }
+ ]
+ },
+ "id": 4693,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_updateProtocolFeeCache",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4630,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4627,
+ "mutability": "mutable",
+ "name": "protocolFeeProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 4693,
+ "src": "7477:51:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 4626,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "7477:31:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4629,
+ "mutability": "mutable",
+ "name": "feeType",
+ "nodeType": "VariableDeclaration",
+ "scope": 4693,
+ "src": "7530:15:34",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4628,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7530:7:34",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7476:70:34"
+ },
+ "returnParameters": {
+ "id": 4631,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7555:0:34"
+ },
+ "scope": 4694,
+ "src": "7444:665:34",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 4695,
+ "src": "2150:5961:34"
+ }
+ ],
+ "src": "688:7424:34"
+ },
+ "id": 34
+ },
+ "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFees.sol",
+ "exportedSymbols": {
+ "ProtocolFees": [
+ 4725
+ ]
+ },
+ "id": 4726,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 4696,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:35"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "id": 4697,
+ "nodeType": "ImportDirective",
+ "scope": 4726,
+ "sourceUnit": 7159,
+ "src": "713:72:35",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "id": 4698,
+ "nodeType": "ImportDirective",
+ "scope": 4726,
+ "sourceUnit": 8769,
+ "src": "786:66:35",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 4725,
+ "linearizedBaseContracts": [
+ 4725
+ ],
+ "name": "ProtocolFees",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 4701,
+ "libraryName": {
+ "id": 4699,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "887:10:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "881:29:35",
+ "typeName": {
+ "id": 4700,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "902:7:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "body": {
+ "id": 4723,
+ "nodeType": "Block",
+ "src": "1623:466:35",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 4715,
+ "name": "totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4704,
+ "src": "2006:11:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4716,
+ "name": "poolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4706,
+ "src": "2019:23:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4713,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "1997:4:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 4714,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mul",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8687,
+ "src": "1997:8:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4717,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1997:46:35",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 4718,
+ "name": "poolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4706,
+ "src": "2045:23:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4719,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "complement",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 7157,
+ "src": "2045:34:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4720,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2045:36:35",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4711,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "1984:4:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 4712,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8732,
+ "src": "1984:12:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4721,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1984:98:35",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 4710,
+ "id": 4722,
+ "nodeType": "Return",
+ "src": "1977:105:35"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4702,
+ "nodeType": "StructuredDocumentation",
+ "src": "916:549:35",
+ "text": " @dev Calculates the amount of BPT necessary to give ownership of a given percentage of the Pool.\n Note that this function reverts if `poolPercentage` >= 100%, it's expected that the caller will enforce this.\n @param totalSupply - The total supply of the pool prior to minting BPT.\n @param poolOwnershipPercentage - The desired ownership percentage of the pool to have as a result of minting BPT.\n @return bptAmount - The amount of BPT to mint such that it is `poolPercentage` of the resultant total supply."
+ },
+ "id": 4724,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "bptForPoolOwnershipPercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4707,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4704,
+ "mutability": "mutable",
+ "name": "totalSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 4724,
+ "src": "1509:19:35",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4703,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1509:7:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4706,
+ "mutability": "mutable",
+ "name": "poolOwnershipPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 4724,
+ "src": "1530:31:35",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4705,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1530:7:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1508:54:35"
+ },
+ "returnParameters": {
+ "id": 4710,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4709,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4724,
+ "src": "1610:7:35",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4708,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1610:7:35",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1609:9:35"
+ },
+ "scope": 4725,
+ "src": "1470:619:35",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 4726,
+ "src": "854:1237:35"
+ }
+ ],
+ "src": "688:1404:35"
+ },
+ "id": 35
+ },
+ "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol",
+ "exportedSymbols": {
+ "PriceRateCache": [
+ 4964
+ ]
+ },
+ "id": 4965,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 4727,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:36"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 4728,
+ "nodeType": "ImportDirective",
+ "scope": 4965,
+ "sourceUnit": 1012,
+ "src": "713:90:36",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol",
+ "id": 4729,
+ "nodeType": "ImportDirective",
+ "scope": 4965,
+ "sourceUnit": 6737,
+ "src": "805:74:36",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "documentation": {
+ "id": 4730,
+ "nodeType": "StructuredDocumentation",
+ "src": "881:647:36",
+ "text": " Price rate caches are used to avoid querying the price rate for a token every time we need to work with it. It is\n useful for slow changing rates, such as those that arise from interest-bearing tokens (e.g. waDAI into DAI).\n The cache data is packed into a single bytes32 value with the following structure:\n [ 32 bits | 32 bits | 96 bits | 96 bits ]\n [ expires | duration | old rate | current rate ]\n |MSB LSB|\n 'rate' is an 18 decimal fixed point number, supporting rates of up to ~3e10. 'expires' is a Unix timestamp, and\n 'duration' is expressed in seconds."
+ },
+ "fullyImplemented": true,
+ "id": 4964,
+ "linearizedBaseContracts": [
+ 4964
+ ],
+ "name": "PriceRateCache",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 4733,
+ "libraryName": {
+ "id": 4731,
+ "name": "WordCodec",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 6736,
+ "src": "1564:9:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_WordCodec_$6736",
+ "typeString": "library WordCodec"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1558:28:36",
+ "typeName": {
+ "id": 4732,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1578:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ },
+ {
+ "constant": true,
+ "id": 4736,
+ "mutability": "constant",
+ "name": "_CURRENT_PRICE_RATE_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 4964,
+ "src": "1592:55:36",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4734,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1592:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "30",
+ "id": 4735,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1646:1:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 4739,
+ "mutability": "constant",
+ "name": "_OLD_PRICE_RATE_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 4964,
+ "src": "1653:52:36",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4737,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1653:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3936",
+ "id": 4738,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1703:2:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_96_by_1",
+ "typeString": "int_const 96"
+ },
+ "value": "96"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 4742,
+ "mutability": "constant",
+ "name": "_PRICE_RATE_CACHE_DURATION_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 4964,
+ "src": "1711:64:36",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4740,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1711:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "313932",
+ "id": 4741,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1772:3:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_192_by_1",
+ "typeString": "int_const 192"
+ },
+ "value": "192"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 4745,
+ "mutability": "constant",
+ "name": "_PRICE_RATE_CACHE_EXPIRES_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 4964,
+ "src": "1781:63:36",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4743,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1781:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323234",
+ "id": 4744,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1841:3:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_224_by_1",
+ "typeString": "int_const 224"
+ },
+ "value": "224"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 4748,
+ "mutability": "constant",
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "VariableDeclaration",
+ "scope": 4964,
+ "src": "1851:46:36",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4746,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1851:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3936",
+ "id": 4747,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1895:2:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_96_by_1",
+ "typeString": "int_const 96"
+ },
+ "value": "96"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 4751,
+ "mutability": "constant",
+ "name": "_DURATION_BIT_LENGTH",
+ "nodeType": "VariableDeclaration",
+ "scope": 4964,
+ "src": "1903:50:36",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4749,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1903:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3332",
+ "id": 4750,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1951:2:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_32_by_1",
+ "typeString": "int_const 32"
+ },
+ "value": "32"
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 4765,
+ "nodeType": "Block",
+ "src": "2109:86:36",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4761,
+ "name": "_CURRENT_PRICE_RATE_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4736,
+ "src": "2143:26:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4762,
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4748,
+ "src": "2171:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4759,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4754,
+ "src": "2126:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4760,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6440,
+ "src": "2126:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4763,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2126:62:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 4758,
+ "id": 4764,
+ "nodeType": "Return",
+ "src": "2119:69:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4752,
+ "nodeType": "StructuredDocumentation",
+ "src": "1960:73:36",
+ "text": " @dev Returns the current rate in the price rate cache."
+ },
+ "id": 4766,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getCurrentRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4755,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4754,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4766,
+ "src": "2062:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4753,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2062:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2061:15:36"
+ },
+ "returnParameters": {
+ "id": 4758,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4757,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4766,
+ "src": "2100:7:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4756,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2100:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2099:9:36"
+ },
+ "scope": 4964,
+ "src": "2038:157:36",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4780,
+ "nodeType": "Block",
+ "src": "2342:82:36",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4776,
+ "name": "_OLD_PRICE_RATE_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4739,
+ "src": "2376:22:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4777,
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4748,
+ "src": "2400:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4774,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4769,
+ "src": "2359:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4775,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6440,
+ "src": "2359:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4778,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2359:58:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 4773,
+ "id": 4779,
+ "nodeType": "Return",
+ "src": "2352:65:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4767,
+ "nodeType": "StructuredDocumentation",
+ "src": "2201:69:36",
+ "text": " @dev Returns the old rate in the price rate cache."
+ },
+ "id": 4781,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getOldRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4770,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4769,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4781,
+ "src": "2295:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4768,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2295:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2294:15:36"
+ },
+ "returnParameters": {
+ "id": 4773,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4772,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4781,
+ "src": "2333:7:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4771,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2333:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2332:9:36"
+ },
+ "scope": 4964,
+ "src": "2275:149:36",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4798,
+ "nodeType": "Block",
+ "src": "2569:105:36",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 4792,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4784,
+ "src": "2618:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 4791,
+ "name": "getCurrentRate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4766,
+ "src": "2603:14:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 4793,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2603:21:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4794,
+ "name": "_OLD_PRICE_RATE_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4739,
+ "src": "2626:22:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4795,
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4748,
+ "src": "2650:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4789,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4784,
+ "src": "2586:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4790,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "2586:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 4796,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2586:81:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 4788,
+ "id": 4797,
+ "nodeType": "Return",
+ "src": "2579:88:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4782,
+ "nodeType": "StructuredDocumentation",
+ "src": "2430:64:36",
+ "text": " @dev Copies the current rate to the old rate."
+ },
+ "id": 4799,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "updateOldRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4785,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4784,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4799,
+ "src": "2522:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4783,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2522:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2521:15:36"
+ },
+ "returnParameters": {
+ "id": 4788,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4787,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4799,
+ "src": "2560:7:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4786,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2560:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2559:9:36"
+ },
+ "scope": 4964,
+ "src": "2499:175:36",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4813,
+ "nodeType": "Block",
+ "src": "2820:97:36",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4809,
+ "name": "_PRICE_RATE_CACHE_DURATION_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4742,
+ "src": "2854:33:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4810,
+ "name": "_DURATION_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4751,
+ "src": "2889:20:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4807,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4802,
+ "src": "2837:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4808,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6440,
+ "src": "2837:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4811,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2837:73:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 4806,
+ "id": 4812,
+ "nodeType": "Return",
+ "src": "2830:80:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4800,
+ "nodeType": "StructuredDocumentation",
+ "src": "2680:67:36",
+ "text": " @dev Returns the duration of a price rate cache."
+ },
+ "id": 4814,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getDuration",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4803,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4802,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4814,
+ "src": "2773:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4801,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2773:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2772:15:36"
+ },
+ "returnParameters": {
+ "id": 4806,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4805,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4814,
+ "src": "2811:7:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4804,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2811:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2810:9:36"
+ },
+ "scope": 4964,
+ "src": "2752:165:36",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4838,
+ "nodeType": "Block",
+ "src": "3111:138:36",
+ "statements": [
+ {
+ "expression": {
+ "id": 4828,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4824,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4820,
+ "src": "3121:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 4826,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4817,
+ "src": "3144:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 4825,
+ "name": "getDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4814,
+ "src": "3132:11:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 4827,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3132:18:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3121:29:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4829,
+ "nodeType": "ExpressionStatement",
+ "src": "3121:29:36"
+ },
+ {
+ "expression": {
+ "id": 4836,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4830,
+ "name": "expires",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4822,
+ "src": "3160:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 4833,
+ "name": "_PRICE_RATE_CACHE_EXPIRES_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4745,
+ "src": "3187:32:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4834,
+ "name": "_DURATION_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4751,
+ "src": "3221:20:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4831,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4817,
+ "src": "3170:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4832,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6440,
+ "src": "3170:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 4835,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3170:72:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3160:82:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4837,
+ "nodeType": "ExpressionStatement",
+ "src": "3160:82:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4815,
+ "nodeType": "StructuredDocumentation",
+ "src": "2923:87:36",
+ "text": " @dev Returns the duration and expiration time of a price rate cache."
+ },
+ "id": 4839,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getTimestamps",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4818,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4817,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4839,
+ "src": "3038:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4816,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3038:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3037:15:36"
+ },
+ "returnParameters": {
+ "id": 4823,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4820,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 4839,
+ "src": "3076:16:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4819,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3076:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4822,
+ "mutability": "mutable",
+ "name": "expires",
+ "nodeType": "VariableDeclaration",
+ "scope": 4839,
+ "src": "3094:15:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4821,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3094:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3075:35:36"
+ },
+ "scope": 4964,
+ "src": "3015:234:36",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4881,
+ "nodeType": "Block",
+ "src": "3560:450:36",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4856,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4854,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4852,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4844,
+ "src": "3579:4:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "id": 4853,
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4748,
+ "src": "3587:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3579:24:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 4855,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3607:1:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "3579:29:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 4857,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "3610:6:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4858,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "PRICE_RATE_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 701,
+ "src": "3610:26:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4851,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "3570:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 4859,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3570:67:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4860,
+ "nodeType": "ExpressionStatement",
+ "src": "3570:67:36"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4876,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 4873,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "3920:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 4874,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "3920:15:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 4875,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4846,
+ "src": "3938:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3920:26:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4877,
+ "name": "_PRICE_RATE_CACHE_EXPIRES_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4745,
+ "src": "3948:32:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4878,
+ "name": "_DURATION_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4751,
+ "src": "3982:20:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 4868,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4846,
+ "src": "3825:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4869,
+ "name": "_PRICE_RATE_CACHE_DURATION_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4742,
+ "src": "3835:33:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4870,
+ "name": "_DURATION_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4751,
+ "src": "3870:20:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 4863,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4844,
+ "src": "3745:4:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4864,
+ "name": "_CURRENT_PRICE_RATE_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4736,
+ "src": "3751:26:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4865,
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4748,
+ "src": "3779:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4861,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4842,
+ "src": "3711:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4862,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "3711:33:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 4866,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3711:85:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4867,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "3711:113:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 4871,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3711:180:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4872,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "3711:208:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 4879,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3711:292:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 4850,
+ "id": 4880,
+ "nodeType": "Return",
+ "src": "3692:311:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4840,
+ "nodeType": "StructuredDocumentation",
+ "src": "3255:160:36",
+ "text": " @dev Encodes rate and duration into a price rate cache. The expiration time is computed automatically, counting\n from the current time."
+ },
+ "id": 4882,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "updateRateAndDuration",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4847,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4842,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4882,
+ "src": "3460:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4841,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3460:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4844,
+ "mutability": "mutable",
+ "name": "rate",
+ "nodeType": "VariableDeclaration",
+ "scope": 4882,
+ "src": "3483:12:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4843,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3483:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4846,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 4882,
+ "src": "3505:16:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4845,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3505:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3450:77:36"
+ },
+ "returnParameters": {
+ "id": 4850,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4849,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4882,
+ "src": "3551:7:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4848,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3551:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3550:9:36"
+ },
+ "scope": 4964,
+ "src": "3420:590:36",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4909,
+ "nodeType": "Block",
+ "src": "4179:170:36",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4897,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4895,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 4893,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4887,
+ "src": "4198:4:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "id": 4894,
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4748,
+ "src": "4206:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4198:24:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 4896,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4226:1:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "4198:29:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 4898,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4229:6:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 4899,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "PRICE_RATE_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 701,
+ "src": "4229:26:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 4892,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "4189:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 4900,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4189:67:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4901,
+ "nodeType": "ExpressionStatement",
+ "src": "4189:67:36"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 4904,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4887,
+ "src": "4291:4:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4905,
+ "name": "_CURRENT_PRICE_RATE_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4736,
+ "src": "4297:26:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4906,
+ "name": "_RATE_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4748,
+ "src": "4325:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4902,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4885,
+ "src": "4274:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4903,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "4274:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 4907,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4274:68:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 4891,
+ "id": 4908,
+ "nodeType": "Return",
+ "src": "4267:75:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4883,
+ "nodeType": "StructuredDocumentation",
+ "src": "4016:70:36",
+ "text": " @dev Update the current rate in a price rate cache."
+ },
+ "id": 4910,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "updateCurrentRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4888,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4885,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4910,
+ "src": "4118:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4884,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4118:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4887,
+ "mutability": "mutable",
+ "name": "rate",
+ "nodeType": "VariableDeclaration",
+ "scope": 4910,
+ "src": "4133:12:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4886,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4133:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4117:29:36"
+ },
+ "returnParameters": {
+ "id": 4891,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4890,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4910,
+ "src": "4170:7:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4889,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4170:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4169:9:36"
+ },
+ "scope": 4964,
+ "src": "4091:258:36",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4935,
+ "nodeType": "Block",
+ "src": "4532:276:36",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 4930,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 4927,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "4673:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 4928,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "4673:15:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 4929,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4915,
+ "src": "4691:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4673:26:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4931,
+ "name": "_PRICE_RATE_CACHE_EXPIRES_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4745,
+ "src": "4717:32:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4932,
+ "name": "_DURATION_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4751,
+ "src": "4767:20:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 4922,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4915,
+ "src": "4578:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4923,
+ "name": "_PRICE_RATE_CACHE_DURATION_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4742,
+ "src": "4588:33:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4924,
+ "name": "_DURATION_BIT_LENGTH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4751,
+ "src": "4623:20:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 4920,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4913,
+ "src": "4561:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4921,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "4561:16:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 4925,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4561:83:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4926,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "insertUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6284,
+ "src": "4561:94:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 4933,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4561:240:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 4919,
+ "id": 4934,
+ "nodeType": "Return",
+ "src": "4542:259:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4911,
+ "nodeType": "StructuredDocumentation",
+ "src": "4355:83:36",
+ "text": " @dev Update the duration (and expiration) in a price rate cache."
+ },
+ "id": 4936,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "updateDuration",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4916,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4913,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4936,
+ "src": "4467:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4912,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4467:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4915,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 4936,
+ "src": "4482:16:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4914,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4482:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4466:33:36"
+ },
+ "returnParameters": {
+ "id": 4919,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4918,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 4936,
+ "src": "4523:7:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4917,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4523:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4522:9:36"
+ },
+ "scope": 4964,
+ "src": "4443:365:36",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4962,
+ "nodeType": "Block",
+ "src": "5085:97:36",
+ "statements": [
+ {
+ "expression": {
+ "id": 4952,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4948,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4942,
+ "src": "5095:4:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 4950,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4939,
+ "src": "5117:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 4949,
+ "name": "getCurrentRate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4766,
+ "src": "5102:14:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 4951,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5102:21:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5095:28:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 4953,
+ "nodeType": "ExpressionStatement",
+ "src": "5095:28:36"
+ },
+ {
+ "expression": {
+ "id": 4960,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ {
+ "id": 4954,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4944,
+ "src": "5134:8:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 4955,
+ "name": "expires",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4946,
+ "src": "5144:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 4956,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "5133:19:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 4958,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4939,
+ "src": "5169:5:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 4957,
+ "name": "getTimestamps",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4839,
+ "src": "5155:13:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (bytes32) pure returns (uint256,uint256)"
+ }
+ },
+ "id": 4959,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5155:20:36",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "src": "5133:42:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4961,
+ "nodeType": "ExpressionStatement",
+ "src": "5133:42:36"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4937,
+ "nodeType": "StructuredDocumentation",
+ "src": "4814:89:36",
+ "text": " @dev Returns rate, duration and expiration time of a price rate cache."
+ },
+ "id": 4963,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "decode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4940,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4939,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 4963,
+ "src": "4924:13:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4938,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4924:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4923:15:36"
+ },
+ "returnParameters": {
+ "id": 4947,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4942,
+ "mutability": "mutable",
+ "name": "rate",
+ "nodeType": "VariableDeclaration",
+ "scope": 4963,
+ "src": "4999:12:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4941,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4999:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4944,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 4963,
+ "src": "5025:16:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4943,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5025:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 4946,
+ "mutability": "mutable",
+ "name": "expires",
+ "nodeType": "VariableDeclaration",
+ "scope": 4963,
+ "src": "5055:15:36",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 4945,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5055:7:36",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4985:95:36"
+ },
+ "scope": 4964,
+ "src": "4908:274:36",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 4965,
+ "src": "1529:3655:36"
+ }
+ ],
+ "src": "688:4497:36"
+ },
+ "id": 36
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol",
+ "exportedSymbols": {
+ "Authentication": [
+ 5041
+ ]
+ },
+ "id": 5042,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 4966,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:37"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 4967,
+ "nodeType": "ImportDirective",
+ "scope": 5042,
+ "sourceUnit": 1012,
+ "src": "713:90:37",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/IAuthentication.sol",
+ "id": 4968,
+ "nodeType": "ImportDirective",
+ "scope": 5042,
+ "sourceUnit": 1023,
+ "src": "804:91:37",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 4970,
+ "name": "IAuthentication",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1022,
+ "src": "1327:15:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthentication_$1022",
+ "typeString": "contract IAuthentication"
+ }
+ },
+ "id": 4971,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1327:15:37"
+ }
+ ],
+ "contractDependencies": [
+ 1022
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 4969,
+ "nodeType": "StructuredDocumentation",
+ "src": "897:393:37",
+ "text": " @dev Building block for performing access control on external functions.\n This contract is used via the `authenticate` modifier (or the `_authenticateCaller` function), which can be applied\n to external functions to only make them callable by authorized accounts.\n Derived contracts must implement the `_canPerform` function, which holds the actual access control logic."
+ },
+ "fullyImplemented": false,
+ "id": 5041,
+ "linearizedBaseContracts": [
+ 5041,
+ 1022
+ ],
+ "name": "Authentication",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 4973,
+ "mutability": "immutable",
+ "name": "_actionIdDisambiguator",
+ "nodeType": "VariableDeclaration",
+ "scope": 5041,
+ "src": "1349:48:37",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4972,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1349:7:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 4983,
+ "nodeType": "Block",
+ "src": "2039:63:37",
+ "statements": [
+ {
+ "expression": {
+ "id": 4981,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 4979,
+ "name": "_actionIdDisambiguator",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4973,
+ "src": "2049:22:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 4980,
+ "name": "actionIdDisambiguator",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4976,
+ "src": "2074:21:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "2049:46:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 4982,
+ "nodeType": "ExpressionStatement",
+ "src": "2049:46:37"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4974,
+ "nodeType": "StructuredDocumentation",
+ "src": "1404:587:37",
+ "text": " @dev The main purpose of the `actionIdDisambiguator` is to prevent accidental function selector collisions in\n multi contract systems.\n There are two main uses for it:\n - if the contract is a singleton, any unique identifier can be used to make the associated action identifiers\n unique. The contract's own address is a good option.\n - if the contract belongs to a family that shares action identifiers for the same functions, an identifier\n shared by the entire family (and no other contract) should be used instead."
+ },
+ "id": 4984,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4977,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 4976,
+ "mutability": "mutable",
+ "name": "actionIdDisambiguator",
+ "nodeType": "VariableDeclaration",
+ "scope": 4984,
+ "src": "2008:29:37",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4975,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2008:7:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2007:31:37"
+ },
+ "returnParameters": {
+ "id": 4978,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2039:0:37"
+ },
+ "scope": 5041,
+ "src": "1996:106:37",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 4991,
+ "nodeType": "Block",
+ "src": "2266:49:37",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 4987,
+ "name": "_authenticateCaller",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5014,
+ "src": "2276:19:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 4988,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2276:21:37",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 4989,
+ "nodeType": "ExpressionStatement",
+ "src": "2276:21:37"
+ },
+ {
+ "id": 4990,
+ "nodeType": "PlaceholderStatement",
+ "src": "2307:1:37"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4985,
+ "nodeType": "StructuredDocumentation",
+ "src": "2108:129:37",
+ "text": " @dev Reverts unless the caller is allowed to call this function. Should only be applied to external functions."
+ },
+ "id": 4992,
+ "name": "authenticate",
+ "nodeType": "ModifierDefinition",
+ "parameters": {
+ "id": 4986,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2263:2:37"
+ },
+ "src": "2242:73:37",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5013,
+ "nodeType": "Block",
+ "src": "2465:136:37",
+ "statements": [
+ {
+ "assignments": [
+ 4997
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 4997,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 5013,
+ "src": "2475:16:37",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 4996,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2475:7:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5002,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 4999,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "2506:3:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 5000,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sig",
+ "nodeType": "MemberAccess",
+ "src": "2506:7:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ ],
+ "id": 4998,
+ "name": "getActionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5031,
+ "src": "2494:11:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes4_$returns$_t_bytes32_$",
+ "typeString": "function (bytes4) view returns (bytes32)"
+ }
+ },
+ "id": 5001,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2494:20:37",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2475:39:37"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 5005,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4997,
+ "src": "2545:8:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "expression": {
+ "id": 5006,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "2555:3:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 5007,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "2555:10:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ ],
+ "id": 5004,
+ "name": "_canPerform",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5040,
+ "src": "2533:11:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_address_$returns$_t_bool_$",
+ "typeString": "function (bytes32,address) view returns (bool)"
+ }
+ },
+ "id": 5008,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2533:33:37",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 5009,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2568:6:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5010,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SENDER_NOT_ALLOWED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 779,
+ "src": "2568:25:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5003,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2524:8:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5011,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2524:70:37",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5012,
+ "nodeType": "ExpressionStatement",
+ "src": "2524:70:37"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 4993,
+ "nodeType": "StructuredDocumentation",
+ "src": "2321:94:37",
+ "text": " @dev Reverts unless the caller is allowed to call the entry point function."
+ },
+ "id": 5014,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_authenticateCaller",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 4994,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2448:2:37"
+ },
+ "returnParameters": {
+ "id": 4995,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2465:0:37"
+ },
+ "scope": 5041,
+ "src": "2420:181:37",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1021
+ ],
+ "body": {
+ "id": 5030,
+ "nodeType": "Block",
+ "src": "2684:353:37",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 5025,
+ "name": "_actionIdDisambiguator",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4973,
+ "src": "2996:22:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 5026,
+ "name": "selector",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5016,
+ "src": "3020:8:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ ],
+ "expression": {
+ "id": 5023,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "2979:3:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 5024,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "encodePacked",
+ "nodeType": "MemberAccess",
+ "src": "2979:16:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function () pure returns (bytes memory)"
+ }
+ },
+ "id": 5027,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2979:50:37",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 5022,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "2969:9:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 5028,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2969:61:37",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 5021,
+ "id": 5029,
+ "nodeType": "Return",
+ "src": "2962:68:37"
+ }
+ ]
+ },
+ "functionSelector": "851c1bb3",
+ "id": 5031,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getActionId",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 5018,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2657:8:37"
+ },
+ "parameters": {
+ "id": 5017,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5016,
+ "mutability": "mutable",
+ "name": "selector",
+ "nodeType": "VariableDeclaration",
+ "scope": 5031,
+ "src": "2628:15:37",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ },
+ "typeName": {
+ "id": 5015,
+ "name": "bytes4",
+ "nodeType": "ElementaryTypeName",
+ "src": "2628:6:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2627:17:37"
+ },
+ "returnParameters": {
+ "id": 5021,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5020,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5031,
+ "src": "2675:7:37",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5019,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2675:7:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2674:9:37"
+ },
+ "scope": 5041,
+ "src": "2607:430:37",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "id": 5040,
+ "implemented": false,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_canPerform",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5036,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5033,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 5040,
+ "src": "3064:16:37",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5032,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3064:7:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5035,
+ "mutability": "mutable",
+ "name": "user",
+ "nodeType": "VariableDeclaration",
+ "scope": 5040,
+ "src": "3082:12:37",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5034,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3082:7:37",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3063:32:37"
+ },
+ "returnParameters": {
+ "id": 5039,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5038,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5040,
+ "src": "3127:4:37",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 5037,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3127:4:37",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3126:6:37"
+ },
+ "scope": 5041,
+ "src": "3043:90:37",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 5042,
+ "src": "1291:1844:37"
+ }
+ ],
+ "src": "688:2448:37"
+ },
+ "id": 37
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/BaseSplitCodeFactory.sol",
+ "exportedSymbols": {
+ "BaseSplitCodeFactory": [
+ 5265
+ ]
+ },
+ "id": 5266,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 5043,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:38"
+ },
+ {
+ "id": 5044,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:38"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol",
+ "file": "./CodeDeployer.sol",
+ "id": 5045,
+ "nodeType": "ImportDirective",
+ "scope": 5266,
+ "sourceUnit": 5299,
+ "src": "747:28:38",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 5046,
+ "nodeType": "StructuredDocumentation",
+ "src": "777:294:38",
+ "text": " @dev Base factory for contracts whose creation code is so large that the factory cannot hold it. This happens when\n the contract's creation code grows close to 24kB.\n Note that this factory cannot help with contracts that have a *runtime* (deployed) bytecode larger than 24kB."
+ },
+ "fullyImplemented": true,
+ "id": 5265,
+ "linearizedBaseContracts": [
+ 5265
+ ],
+ "name": "BaseSplitCodeFactory",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 5048,
+ "mutability": "immutable",
+ "name": "_creationCodeContractA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5265,
+ "src": "1529:48:38",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5047,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1529:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 5050,
+ "mutability": "immutable",
+ "name": "_creationCodeSizeA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5265,
+ "src": "1583:44:38",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5049,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1583:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 5052,
+ "mutability": "immutable",
+ "name": "_creationCodeContractB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5265,
+ "src": "1634:48:38",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5051,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1634:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 5054,
+ "mutability": "immutable",
+ "name": "_creationCodeSizeB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5265,
+ "src": "1688:44:38",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5053,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1688:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 5111,
+ "nodeType": "Block",
+ "src": "1905:2624:38",
+ "statements": [
+ {
+ "assignments": [
+ 5061
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5061,
+ "mutability": "mutable",
+ "name": "creationCodeSize",
+ "nodeType": "VariableDeclaration",
+ "scope": 5111,
+ "src": "1915:24:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5060,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1915:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5064,
+ "initialValue": {
+ "expression": {
+ "id": 5062,
+ "name": "creationCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5057,
+ "src": "1942:12:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 5063,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "1942:19:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1915:46:38"
+ },
+ {
+ "assignments": [
+ 5066
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5066,
+ "mutability": "mutable",
+ "name": "creationCodeSizeA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5111,
+ "src": "2289:25:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5065,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2289:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5070,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5069,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5067,
+ "name": "creationCodeSize",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5061,
+ "src": "2317:16:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "32",
+ "id": 5068,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2336:1:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "src": "2317:20:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2289:48:38"
+ },
+ {
+ "expression": {
+ "id": 5073,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5071,
+ "name": "_creationCodeSizeA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5050,
+ "src": "2347:18:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5072,
+ "name": "creationCodeSizeA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5066,
+ "src": "2368:17:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2347:38:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5074,
+ "nodeType": "ExpressionStatement",
+ "src": "2347:38:38"
+ },
+ {
+ "assignments": [
+ 5076
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5076,
+ "mutability": "mutable",
+ "name": "creationCodeSizeB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5111,
+ "src": "2396:25:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5075,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2396:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5080,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5079,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5077,
+ "name": "creationCodeSize",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5061,
+ "src": "2424:16:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 5078,
+ "name": "creationCodeSizeA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5066,
+ "src": "2443:17:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2424:36:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2396:64:38"
+ },
+ {
+ "expression": {
+ "id": 5083,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5081,
+ "name": "_creationCodeSizeB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5054,
+ "src": "2470:18:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5082,
+ "name": "creationCodeSizeB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5076,
+ "src": "2491:17:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2470:38:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5084,
+ "nodeType": "ExpressionStatement",
+ "src": "2470:38:38"
+ },
+ {
+ "assignments": [
+ 5086
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5086,
+ "mutability": "mutable",
+ "name": "creationCodeA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5111,
+ "src": "3071:26:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5085,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3071:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5087,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3071:26:38"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "3116:106:38",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "3130:29:38",
+ "value": {
+ "name": "creationCode",
+ "nodeType": "YulIdentifier",
+ "src": "3147:12:38"
+ },
+ "variableNames": [
+ {
+ "name": "creationCodeA",
+ "nodeType": "YulIdentifier",
+ "src": "3130:13:38"
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "creationCodeA",
+ "nodeType": "YulIdentifier",
+ "src": "3179:13:38"
+ },
+ {
+ "name": "creationCodeSizeA",
+ "nodeType": "YulIdentifier",
+ "src": "3194:17:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "3172:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3172:40:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "3172:40:38"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5057,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3147:12:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5086,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3130:13:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5086,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3179:13:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5066,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3194:17:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5088,
+ "nodeType": "InlineAssembly",
+ "src": "3107:115:38"
+ },
+ {
+ "expression": {
+ "id": 5094,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5089,
+ "name": "_creationCodeContractA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5048,
+ "src": "3322:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 5092,
+ "name": "creationCodeA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5086,
+ "src": "3367:13:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "expression": {
+ "id": 5090,
+ "name": "CodeDeployer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5298,
+ "src": "3347:12:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_CodeDeployer_$5298_$",
+ "typeString": "type(library CodeDeployer)"
+ }
+ },
+ "id": 5091,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "deploy",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5297,
+ "src": "3347:19:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$_t_address_$",
+ "typeString": "function (bytes memory) returns (address)"
+ }
+ },
+ "id": 5093,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3347:34:38",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "3322:59:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 5095,
+ "nodeType": "ExpressionStatement",
+ "src": "3322:59:38"
+ },
+ {
+ "assignments": [
+ 5097
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5097,
+ "mutability": "mutable",
+ "name": "creationCodeB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5111,
+ "src": "3669:26:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5096,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3669:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5098,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3669:26:38"
+ },
+ {
+ "assignments": [
+ 5100
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5100,
+ "mutability": "mutable",
+ "name": "lastByteA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5111,
+ "src": "3705:17:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5099,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3705:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5101,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3705:17:38"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "3742:323:38",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "3903:53:38",
+ "value": {
+ "arguments": [
+ {
+ "name": "creationCode",
+ "nodeType": "YulIdentifier",
+ "src": "3924:12:38"
+ },
+ {
+ "name": "creationCodeSizeA",
+ "nodeType": "YulIdentifier",
+ "src": "3938:17:38"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3920:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3920:36:38"
+ },
+ "variableNames": [
+ {
+ "name": "creationCodeB",
+ "nodeType": "YulIdentifier",
+ "src": "3903:13:38"
+ }
+ ]
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "3969:33:38",
+ "value": {
+ "arguments": [
+ {
+ "name": "creationCodeB",
+ "nodeType": "YulIdentifier",
+ "src": "3988:13:38"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "3982:5:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3982:20:38"
+ },
+ "variableNames": [
+ {
+ "name": "lastByteA",
+ "nodeType": "YulIdentifier",
+ "src": "3969:9:38"
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "creationCodeB",
+ "nodeType": "YulIdentifier",
+ "src": "4022:13:38"
+ },
+ {
+ "name": "creationCodeSizeB",
+ "nodeType": "YulIdentifier",
+ "src": "4037:17:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4015:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4015:40:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4015:40:38"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5057,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3924:12:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5097,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3903:13:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5097,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3988:13:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5097,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4022:13:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5066,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3938:17:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5076,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4037:17:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5100,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3969:9:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5102,
+ "nodeType": "InlineAssembly",
+ "src": "3733:332:38"
+ },
+ {
+ "expression": {
+ "id": 5108,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5103,
+ "name": "_creationCodeContractB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5052,
+ "src": "4215:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 5106,
+ "name": "creationCodeB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5097,
+ "src": "4260:13:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "expression": {
+ "id": 5104,
+ "name": "CodeDeployer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5298,
+ "src": "4240:12:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_CodeDeployer_$5298_$",
+ "typeString": "type(library CodeDeployer)"
+ }
+ },
+ "id": 5105,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "deploy",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5297,
+ "src": "4240:19:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$_t_address_$",
+ "typeString": "function (bytes memory) returns (address)"
+ }
+ },
+ "id": 5107,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4240:34:38",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "4215:59:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 5109,
+ "nodeType": "ExpressionStatement",
+ "src": "4215:59:38"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "4415:108:38",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "creationCodeA",
+ "nodeType": "YulIdentifier",
+ "src": "4436:13:38"
+ },
+ {
+ "name": "creationCodeSize",
+ "nodeType": "YulIdentifier",
+ "src": "4451:16:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4429:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4429:39:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4429:39:38"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "creationCodeB",
+ "nodeType": "YulIdentifier",
+ "src": "4488:13:38"
+ },
+ {
+ "name": "lastByteA",
+ "nodeType": "YulIdentifier",
+ "src": "4503:9:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4481:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4481:32:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4481:32:38"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5086,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4436:13:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5097,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4488:13:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5061,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4451:16:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5100,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4503:9:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5110,
+ "nodeType": "InlineAssembly",
+ "src": "4406:117:38"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5055,
+ "nodeType": "StructuredDocumentation",
+ "src": "1739:122:38",
+ "text": " @dev The creation code of a contract Foo can be obtained inside Solidity with `type(Foo).creationCode`."
+ },
+ "id": 5112,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5058,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5057,
+ "mutability": "mutable",
+ "name": "creationCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 5112,
+ "src": "1878:25:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5056,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1878:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1877:27:38"
+ },
+ "returnParameters": {
+ "id": 5059,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1905:0:38"
+ },
+ "scope": 5265,
+ "src": "1866:2663:38",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5124,
+ "nodeType": "Block",
+ "src": "4758:72:38",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 5120,
+ "name": "_creationCodeContractA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5048,
+ "src": "4776:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 5121,
+ "name": "_creationCodeContractB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5052,
+ "src": "4800:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "id": 5122,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "4775:48:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_address_$_t_address_$",
+ "typeString": "tuple(address,address)"
+ }
+ },
+ "functionReturnParameters": 5119,
+ "id": 5123,
+ "nodeType": "Return",
+ "src": "4768:55:38"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5113,
+ "nodeType": "StructuredDocumentation",
+ "src": "4535:123:38",
+ "text": " @dev Returns the two addresses where the creation code of the contract crated by this factory is stored."
+ },
+ "functionSelector": "174481fa",
+ "id": 5125,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getCreationCodeContracts",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5114,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4696:2:38"
+ },
+ "returnParameters": {
+ "id": 5119,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5116,
+ "mutability": "mutable",
+ "name": "contractA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5125,
+ "src": "4720:17:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5115,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4720:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5118,
+ "mutability": "mutable",
+ "name": "contractB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5125,
+ "src": "4739:17:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5117,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4739:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4719:38:38"
+ },
+ "scope": 5265,
+ "src": "4663:167:38",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 5135,
+ "nodeType": "Block",
+ "src": "4990:52:38",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "",
+ "id": 5132,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "string",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5032:2:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
+ "typeString": "literal_string \"\""
+ },
+ "value": ""
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
+ "typeString": "literal_string \"\""
+ }
+ ],
+ "id": 5131,
+ "name": "_getCreationCodeWithArgs",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5192,
+ "src": "5007:24:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes_memory_ptr_$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) view returns (bytes memory)"
+ }
+ },
+ "id": 5133,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5007:28:38",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "functionReturnParameters": 5130,
+ "id": 5134,
+ "nodeType": "Return",
+ "src": "5000:35:38"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5126,
+ "nodeType": "StructuredDocumentation",
+ "src": "4836:87:38",
+ "text": " @dev Returns the creation code of the contract this factory creates."
+ },
+ "functionSelector": "00c194db",
+ "id": 5136,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getCreationCode",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5127,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4952:2:38"
+ },
+ "returnParameters": {
+ "id": 5130,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5129,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5136,
+ "src": "4976:12:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5128,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "4976:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4975:14:38"
+ },
+ "scope": 5265,
+ "src": "4928:114:38",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 5191,
+ "nodeType": "Block",
+ "src": "5277:2587:38",
+ "statements": [
+ {
+ "assignments": [
+ 5145
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5145,
+ "mutability": "mutable",
+ "name": "creationCodeContractA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "6088:29:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5144,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "6088:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5147,
+ "initialValue": {
+ "id": 5146,
+ "name": "_creationCodeContractA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5048,
+ "src": "6120:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6088:54:38"
+ },
+ {
+ "assignments": [
+ 5149
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5149,
+ "mutability": "mutable",
+ "name": "creationCodeSizeA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "6152:25:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5148,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6152:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5151,
+ "initialValue": {
+ "id": 5150,
+ "name": "_creationCodeSizeA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5050,
+ "src": "6180:18:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6152:46:38"
+ },
+ {
+ "assignments": [
+ 5153
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5153,
+ "mutability": "mutable",
+ "name": "creationCodeContractB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "6208:29:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5152,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "6208:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5155,
+ "initialValue": {
+ "id": 5154,
+ "name": "_creationCodeContractB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5052,
+ "src": "6240:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6208:54:38"
+ },
+ {
+ "assignments": [
+ 5157
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5157,
+ "mutability": "mutable",
+ "name": "creationCodeSizeB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "6272:25:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5156,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6272:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5159,
+ "initialValue": {
+ "id": 5158,
+ "name": "_creationCodeSizeB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5054,
+ "src": "6300:18:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6272:46:38"
+ },
+ {
+ "assignments": [
+ 5161
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5161,
+ "mutability": "mutable",
+ "name": "creationCodeSize",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "6329:24:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5160,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6329:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5165,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5164,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5162,
+ "name": "creationCodeSizeA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5149,
+ "src": "6356:17:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 5163,
+ "name": "creationCodeSizeB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5157,
+ "src": "6376:17:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6356:37:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6329:64:38"
+ },
+ {
+ "assignments": [
+ 5167
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5167,
+ "mutability": "mutable",
+ "name": "constructorArgsSize",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "6403:27:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5166,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6403:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5170,
+ "initialValue": {
+ "expression": {
+ "id": 5168,
+ "name": "constructorArgs",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5139,
+ "src": "6433:15:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 5169,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "6433:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6403:52:38"
+ },
+ {
+ "assignments": [
+ 5172
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5172,
+ "mutability": "mutable",
+ "name": "codeSize",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "6466:16:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5171,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6466:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5176,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5175,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5173,
+ "name": "creationCodeSize",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5161,
+ "src": "6485:16:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 5174,
+ "name": "constructorArgsSize",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5167,
+ "src": "6504:19:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6485:38:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6466:57:38"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "6543:750:38",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "6793:19:38",
+ "value": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "6807:4:38",
+ "type": "",
+ "value": "0x40"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "6801:5:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "6801:11:38"
+ },
+ "variableNames": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "6793:4:38"
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "6832:4:38",
+ "type": "",
+ "value": "0x40"
+ },
+ {
+ "arguments": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "6842:4:38"
+ },
+ {
+ "arguments": [
+ {
+ "name": "codeSize",
+ "nodeType": "YulIdentifier",
+ "src": "6852:8:38"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "6862:2:38",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "6848:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "6848:17:38"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "6838:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "6838:28:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "6825:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "6825:42:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "6825:42:38"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "6967:4:38"
+ },
+ {
+ "name": "codeSize",
+ "nodeType": "YulIdentifier",
+ "src": "6973:8:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "6960:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "6960:22:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "6960:22:38"
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "7069:30:38",
+ "value": {
+ "arguments": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "7090:4:38"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "7096:2:38",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "7086:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "7086:13:38"
+ },
+ "variables": [
+ {
+ "name": "dataStart",
+ "nodeType": "YulTypedName",
+ "src": "7073:9:38",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "creationCodeContractA",
+ "nodeType": "YulIdentifier",
+ "src": "7124:21:38"
+ },
+ {
+ "name": "dataStart",
+ "nodeType": "YulIdentifier",
+ "src": "7147:9:38"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "7158:1:38",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "name": "creationCodeSizeA",
+ "nodeType": "YulIdentifier",
+ "src": "7161:17:38"
+ }
+ ],
+ "functionName": {
+ "name": "extcodecopy",
+ "nodeType": "YulIdentifier",
+ "src": "7112:11:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "7112:67:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "7112:67:38"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "creationCodeContractB",
+ "nodeType": "YulIdentifier",
+ "src": "7204:21:38"
+ },
+ {
+ "arguments": [
+ {
+ "name": "dataStart",
+ "nodeType": "YulIdentifier",
+ "src": "7231:9:38"
+ },
+ {
+ "name": "creationCodeSizeA",
+ "nodeType": "YulIdentifier",
+ "src": "7242:17:38"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "7227:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "7227:33:38"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "7262:1:38",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "name": "creationCodeSizeB",
+ "nodeType": "YulIdentifier",
+ "src": "7265:17:38"
+ }
+ ],
+ "functionName": {
+ "name": "extcodecopy",
+ "nodeType": "YulIdentifier",
+ "src": "7192:11:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "7192:91:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "7192:91:38"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5142,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "6793:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5142,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "6842:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5142,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "6967:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5142,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7090:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5172,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "6852:8:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5172,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "6973:8:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5145,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7124:21:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5153,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7204:21:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5149,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7161:17:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5149,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7242:17:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5157,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7265:17:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5177,
+ "nodeType": "InlineAssembly",
+ "src": "6534:759:38"
+ },
+ {
+ "assignments": [
+ 5179
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5179,
+ "mutability": "mutable",
+ "name": "constructorArgsDataPtr",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "7521:30:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5178,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7521:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5180,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "7521:30:38"
+ },
+ {
+ "assignments": [
+ 5182
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5182,
+ "mutability": "mutable",
+ "name": "constructorArgsCodeDataPtr",
+ "nodeType": "VariableDeclaration",
+ "scope": 5191,
+ "src": "7561:34:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5181,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7561:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5183,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "7561:34:38"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "7614:153:38",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "7628:50:38",
+ "value": {
+ "arguments": [
+ {
+ "name": "constructorArgs",
+ "nodeType": "YulIdentifier",
+ "src": "7658:15:38"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "7675:2:38",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "7654:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "7654:24:38"
+ },
+ "variableNames": [
+ {
+ "name": "constructorArgsDataPtr",
+ "nodeType": "YulIdentifier",
+ "src": "7628:22:38"
+ }
+ ]
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "7691:66:38",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "7729:4:38"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "7735:2:38",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "7725:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "7725:13:38"
+ },
+ {
+ "name": "creationCodeSize",
+ "nodeType": "YulIdentifier",
+ "src": "7740:16:38"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "7721:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "7721:36:38"
+ },
+ "variableNames": [
+ {
+ "name": "constructorArgsCodeDataPtr",
+ "nodeType": "YulIdentifier",
+ "src": "7691:26:38"
+ }
+ ]
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5142,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7729:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5139,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7658:15:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5182,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7691:26:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5179,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7628:22:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5161,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "7740:16:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5184,
+ "nodeType": "InlineAssembly",
+ "src": "7605:162:38"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 5186,
+ "name": "constructorArgsCodeDataPtr",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5182,
+ "src": "7785:26:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 5187,
+ "name": "constructorArgsDataPtr",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5179,
+ "src": "7813:22:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 5188,
+ "name": "constructorArgsSize",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5167,
+ "src": "7837:19:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5185,
+ "name": "_memcpy",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5264,
+ "src": "7777:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256,uint256) pure"
+ }
+ },
+ "id": 5189,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7777:80:38",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5190,
+ "nodeType": "ExpressionStatement",
+ "src": "7777:80:38"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5137,
+ "nodeType": "StructuredDocumentation",
+ "src": "5048:119:38",
+ "text": " @dev Returns the creation code that will result in a contract being deployed with `constructorArgs`."
+ },
+ "id": 5192,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getCreationCodeWithArgs",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5140,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5139,
+ "mutability": "mutable",
+ "name": "constructorArgs",
+ "nodeType": "VariableDeclaration",
+ "scope": 5192,
+ "src": "5206:28:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5138,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "5206:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5205:30:38"
+ },
+ "returnParameters": {
+ "id": 5143,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5142,
+ "mutability": "mutable",
+ "name": "code",
+ "nodeType": "VariableDeclaration",
+ "scope": 5192,
+ "src": "5258:17:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5141,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "5258:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5257:19:38"
+ },
+ "scope": 5265,
+ "src": "5172:2692:38",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 5223,
+ "nodeType": "Block",
+ "src": "8201:555:38",
+ "statements": [
+ {
+ "assignments": [
+ 5203
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5203,
+ "mutability": "mutable",
+ "name": "creationCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 5223,
+ "src": "8211:25:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5202,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "8211:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5207,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 5205,
+ "name": "constructorArgs",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5195,
+ "src": "8264:15:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 5204,
+ "name": "_getCreationCodeWithArgs",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5192,
+ "src": "8239:24:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes_memory_ptr_$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) view returns (bytes memory)"
+ }
+ },
+ "id": 5206,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8239:41:38",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "8211:69:38"
+ },
+ {
+ "assignments": [
+ 5209
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5209,
+ "mutability": "mutable",
+ "name": "destination",
+ "nodeType": "VariableDeclaration",
+ "scope": 5223,
+ "src": "8291:19:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5208,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8291:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5210,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "8291:19:38"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "8329:99:38",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "8343:75:38",
+ "value": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "8366:1:38",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "arguments": [
+ {
+ "name": "creationCode",
+ "nodeType": "YulIdentifier",
+ "src": "8373:12:38"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "8387:2:38",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "8369:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "8369:21:38"
+ },
+ {
+ "arguments": [
+ {
+ "name": "creationCode",
+ "nodeType": "YulIdentifier",
+ "src": "8398:12:38"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "8392:5:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "8392:19:38"
+ },
+ {
+ "name": "salt",
+ "nodeType": "YulIdentifier",
+ "src": "8413:4:38"
+ }
+ ],
+ "functionName": {
+ "name": "create2",
+ "nodeType": "YulIdentifier",
+ "src": "8358:7:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "8358:60:38"
+ },
+ "variableNames": [
+ {
+ "name": "destination",
+ "nodeType": "YulIdentifier",
+ "src": "8343:11:38"
+ }
+ ]
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5203,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "8373:12:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5203,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "8398:12:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5209,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "8343:11:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5197,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "8413:4:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5211,
+ "nodeType": "InlineAssembly",
+ "src": "8320:108:38"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 5217,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5212,
+ "name": "destination",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5209,
+ "src": "8442:11:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 5215,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8465:1:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 5214,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "8457:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 5213,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8457:7:38",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 5216,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8457:10:38",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "8442:25:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5220,
+ "nodeType": "IfStatement",
+ "src": "8438:283:38",
+ "trueBody": {
+ "id": 5219,
+ "nodeType": "Block",
+ "src": "8469:252:38",
+ "statements": [
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "8597:114:38",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "8630:1:38",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "8633:1:38",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "arguments": [],
+ "functionName": {
+ "name": "returndatasize",
+ "nodeType": "YulIdentifier",
+ "src": "8636:14:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "8636:16:38"
+ }
+ ],
+ "functionName": {
+ "name": "returndatacopy",
+ "nodeType": "YulIdentifier",
+ "src": "8615:14:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "8615:38:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "8615:38:38"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "8677:1:38",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "arguments": [],
+ "functionName": {
+ "name": "returndatasize",
+ "nodeType": "YulIdentifier",
+ "src": "8680:14:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "8680:16:38"
+ }
+ ],
+ "functionName": {
+ "name": "revert",
+ "nodeType": "YulIdentifier",
+ "src": "8670:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "8670:27:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "8670:27:38"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [],
+ "id": 5218,
+ "nodeType": "InlineAssembly",
+ "src": "8588:123:38"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "id": 5221,
+ "name": "destination",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5209,
+ "src": "8738:11:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "functionReturnParameters": 5201,
+ "id": 5222,
+ "nodeType": "Return",
+ "src": "8731:18:38"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5193,
+ "nodeType": "StructuredDocumentation",
+ "src": "7870:230:38",
+ "text": " @dev Deploys a contract with constructor arguments and a user-provided salt, using the create2 opcode.\n To create `constructorArgs`, call `abi.encode()` with the contract's constructor arguments, in order."
+ },
+ "id": 5224,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_create",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5198,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5195,
+ "mutability": "mutable",
+ "name": "constructorArgs",
+ "nodeType": "VariableDeclaration",
+ "scope": 5224,
+ "src": "8122:28:38",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5194,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "8122:5:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5197,
+ "mutability": "mutable",
+ "name": "salt",
+ "nodeType": "VariableDeclaration",
+ "scope": 5224,
+ "src": "8152:12:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5196,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "8152:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8121:44:38"
+ },
+ "returnParameters": {
+ "id": 5201,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5200,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5224,
+ "src": "8192:7:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5199,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8192:7:38",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8191:9:38"
+ },
+ "scope": 5265,
+ "src": "8105:651:38",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5263,
+ "nodeType": "Block",
+ "src": "8992:490:38",
+ "statements": [
+ {
+ "body": {
+ "id": 5249,
+ "nodeType": "Block",
+ "src": "9081:136:38",
+ "statements": [
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "9104:56:38",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "dest",
+ "nodeType": "YulIdentifier",
+ "src": "9129:4:38"
+ },
+ {
+ "arguments": [
+ {
+ "name": "src",
+ "nodeType": "YulIdentifier",
+ "src": "9141:3:38"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "9135:5:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9135:10:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "9122:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9122:24:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "9122:24:38"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5226,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "9129:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5228,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "9141:3:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5240,
+ "nodeType": "InlineAssembly",
+ "src": "9095:65:38"
+ },
+ {
+ "expression": {
+ "id": 5243,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5241,
+ "name": "dest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5226,
+ "src": "9173:4:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "hexValue": "3332",
+ "id": 5242,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9181:2:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_32_by_1",
+ "typeString": "int_const 32"
+ },
+ "value": "32"
+ },
+ "src": "9173:10:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5244,
+ "nodeType": "ExpressionStatement",
+ "src": "9173:10:38"
+ },
+ {
+ "expression": {
+ "id": 5247,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5245,
+ "name": "src",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5228,
+ "src": "9197:3:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "hexValue": "3332",
+ "id": 5246,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9204:2:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_32_by_1",
+ "typeString": "int_const 32"
+ },
+ "value": "32"
+ },
+ "src": "9197:9:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5248,
+ "nodeType": "ExpressionStatement",
+ "src": "9197:9:38"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5235,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5233,
+ "name": "len",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5230,
+ "src": "9059:3:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "hexValue": "3332",
+ "id": 5234,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9066:2:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_32_by_1",
+ "typeString": "int_const 32"
+ },
+ "value": "32"
+ },
+ "src": "9059:9:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5250,
+ "loopExpression": {
+ "expression": {
+ "id": 5238,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5236,
+ "name": "len",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5230,
+ "src": "9070:3:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "hexValue": "3332",
+ "id": 5237,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9077:2:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_32_by_1",
+ "typeString": "int_const 32"
+ },
+ "value": "32"
+ },
+ "src": "9070:9:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5239,
+ "nodeType": "ExpressionStatement",
+ "src": "9070:9:38"
+ },
+ "nodeType": "ForStatement",
+ "src": "9052:165:38"
+ },
+ {
+ "assignments": [
+ 5252
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5252,
+ "mutability": "mutable",
+ "name": "mask",
+ "nodeType": "VariableDeclaration",
+ "scope": 5263,
+ "src": "9259:12:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5251,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9259:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5261,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5258,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "323536",
+ "id": 5253,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9274:3:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_256_by_1",
+ "typeString": "int_const 256"
+ },
+ "value": "256"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "**",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5256,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "3332",
+ "id": 5254,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9280:2:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_32_by_1",
+ "typeString": "int_const 32"
+ },
+ "value": "32"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 5255,
+ "name": "len",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5230,
+ "src": "9285:3:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "9280:8:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 5257,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "9279:10:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "9274:15:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 5259,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9292:1:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "9274:19:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9259:34:38"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "9312:164:38",
+ "statements": [
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "9326:41:38",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "src",
+ "nodeType": "YulIdentifier",
+ "src": "9351:3:38"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "9345:5:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9345:10:38"
+ },
+ {
+ "arguments": [
+ {
+ "name": "mask",
+ "nodeType": "YulIdentifier",
+ "src": "9361:4:38"
+ }
+ ],
+ "functionName": {
+ "name": "not",
+ "nodeType": "YulIdentifier",
+ "src": "9357:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9357:9:38"
+ }
+ ],
+ "functionName": {
+ "name": "and",
+ "nodeType": "YulIdentifier",
+ "src": "9341:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9341:26:38"
+ },
+ "variables": [
+ {
+ "name": "srcpart",
+ "nodeType": "YulTypedName",
+ "src": "9330:7:38",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "9380:38:38",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "dest",
+ "nodeType": "YulIdentifier",
+ "src": "9406:4:38"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "9400:5:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9400:11:38"
+ },
+ {
+ "name": "mask",
+ "nodeType": "YulIdentifier",
+ "src": "9413:4:38"
+ }
+ ],
+ "functionName": {
+ "name": "and",
+ "nodeType": "YulIdentifier",
+ "src": "9396:3:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9396:22:38"
+ },
+ "variables": [
+ {
+ "name": "destpart",
+ "nodeType": "YulTypedName",
+ "src": "9384:8:38",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "dest",
+ "nodeType": "YulIdentifier",
+ "src": "9438:4:38"
+ },
+ {
+ "arguments": [
+ {
+ "name": "destpart",
+ "nodeType": "YulIdentifier",
+ "src": "9447:8:38"
+ },
+ {
+ "name": "srcpart",
+ "nodeType": "YulIdentifier",
+ "src": "9457:7:38"
+ }
+ ],
+ "functionName": {
+ "name": "or",
+ "nodeType": "YulIdentifier",
+ "src": "9444:2:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9444:21:38"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "9431:6:38"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "9431:35:38"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "9431:35:38"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5226,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "9406:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5226,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "9438:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5252,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "9361:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5252,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "9413:4:38",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5228,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "9351:3:38",
+ "valueSize": 1
+ }
+ ],
+ "id": 5262,
+ "nodeType": "InlineAssembly",
+ "src": "9303:173:38"
+ }
+ ]
+ },
+ "id": 5264,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_memcpy",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5231,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5226,
+ "mutability": "mutable",
+ "name": "dest",
+ "nodeType": "VariableDeclaration",
+ "scope": 5264,
+ "src": "8918:12:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5225,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8918:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5228,
+ "mutability": "mutable",
+ "name": "src",
+ "nodeType": "VariableDeclaration",
+ "scope": 5264,
+ "src": "8940:11:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5227,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8940:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5230,
+ "mutability": "mutable",
+ "name": "len",
+ "nodeType": "VariableDeclaration",
+ "scope": 5264,
+ "src": "8961:11:38",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5229,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8961:7:38",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8908:70:38"
+ },
+ "returnParameters": {
+ "id": 5232,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "8992:0:38"
+ },
+ "scope": 5265,
+ "src": "8892:590:38",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 5266,
+ "src": "1072:8412:38"
+ }
+ ],
+ "src": "688:8797:38"
+ },
+ "id": 38
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/CodeDeployer.sol",
+ "exportedSymbols": {
+ "CodeDeployer": [
+ 5298
+ ]
+ },
+ "id": 5299,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 5267,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:39"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 5268,
+ "nodeType": "ImportDirective",
+ "scope": 5299,
+ "sourceUnit": 1012,
+ "src": "713:90:39",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "documentation": {
+ "id": 5269,
+ "nodeType": "StructuredDocumentation",
+ "src": "805:199:39",
+ "text": " @dev Library used to deploy contracts with specific code. This can be used for long-term storage of immutable data as\n contract code, which can be retrieved via the `extcodecopy` opcode."
+ },
+ "fullyImplemented": true,
+ "id": 5298,
+ "linearizedBaseContracts": [
+ 5298
+ ],
+ "name": "CodeDeployer",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 5272,
+ "mutability": "constant",
+ "name": "_DEPLOYER_CREATION_CODE",
+ "nodeType": "VariableDeclaration",
+ "scope": 5298,
+ "src": "2455:125:39",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5270,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2455:7:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "value": {
+ "hexValue": "307836303230333830333830363032303630303033393630303066336665666566656665666566656665666566656665666566656665666566656665666566656665",
+ "id": 5271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2514:66:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_43478959162261259322985507790388014220090819270403161015765007512459448090366_by_1",
+ "typeString": "int_const 4347...(69 digits omitted)...0366"
+ },
+ "value": "0x602038038060206000396000f3fefefefefefefefefefefefefefefefefefefe"
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 5296,
+ "nodeType": "Block",
+ "src": "2811:1292:39",
+ "statements": [
+ {
+ "assignments": [
+ 5281
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5281,
+ "mutability": "mutable",
+ "name": "deployerCreationCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 5296,
+ "src": "2821:28:39",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5280,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2821:7:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5283,
+ "initialValue": {
+ "id": 5282,
+ "name": "_DEPLOYER_CREATION_CODE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5272,
+ "src": "2852:23:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2821:54:39"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "3200:706:39",
+ "statements": [
+ {
+ "nodeType": "YulVariableDeclaration",
+ "src": "3214:29:39",
+ "value": {
+ "arguments": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "3238:4:39"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "3232:5:39"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3232:11:39"
+ },
+ "variables": [
+ {
+ "name": "codeLength",
+ "nodeType": "YulTypedName",
+ "src": "3218:10:39",
+ "type": ""
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "3472:4:39"
+ },
+ {
+ "name": "deployerCreationCode",
+ "nodeType": "YulIdentifier",
+ "src": "3478:20:39"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "3465:6:39"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3465:34:39"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "3465:34:39"
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "3721:51:39",
+ "value": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3743:1:39",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "3746:4:39"
+ },
+ {
+ "arguments": [
+ {
+ "name": "codeLength",
+ "nodeType": "YulIdentifier",
+ "src": "3756:10:39"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3768:2:39",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3752:3:39"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3752:19:39"
+ }
+ ],
+ "functionName": {
+ "name": "create",
+ "nodeType": "YulIdentifier",
+ "src": "3736:6:39"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3736:36:39"
+ },
+ "variableNames": [
+ {
+ "name": "destination",
+ "nodeType": "YulIdentifier",
+ "src": "3721:11:39"
+ }
+ ]
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "name": "code",
+ "nodeType": "YulIdentifier",
+ "src": "3879:4:39"
+ },
+ {
+ "name": "codeLength",
+ "nodeType": "YulIdentifier",
+ "src": "3885:10:39"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "3872:6:39"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3872:24:39"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "3872:24:39"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5275,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3238:4:39",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5275,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3472:4:39",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5275,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3746:4:39",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5275,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3879:4:39",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5281,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3478:20:39",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5278,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3721:11:39",
+ "valueSize": 1
+ }
+ ],
+ "id": 5284,
+ "nodeType": "InlineAssembly",
+ "src": "3191:715:39"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 5291,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5286,
+ "name": "destination",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5278,
+ "src": "4039:11:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 5289,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4062:1:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 5288,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "4054:7:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 5287,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4054:7:39",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 5290,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4054:10:39",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "4039:25:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 5292,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4066:6:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5293,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "CODE_DEPLOYMENT_FAILED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 860,
+ "src": "4066:29:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5285,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "4030:8:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5294,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4030:66:39",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5295,
+ "nodeType": "ExpressionStatement",
+ "src": "4030:66:39"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5273,
+ "nodeType": "StructuredDocumentation",
+ "src": "2587:145:39",
+ "text": " @dev Deploys a contract with `code` as its code, returning the destination address.\n Reverts if deployment fails."
+ },
+ "id": 5297,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "deploy",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5276,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5275,
+ "mutability": "mutable",
+ "name": "code",
+ "nodeType": "VariableDeclaration",
+ "scope": 5297,
+ "src": "2753:17:39",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5274,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2753:5:39",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2752:19:39"
+ },
+ "returnParameters": {
+ "id": 5279,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5278,
+ "mutability": "mutable",
+ "name": "destination",
+ "nodeType": "VariableDeclaration",
+ "scope": 5297,
+ "src": "2790:19:39",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5277,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2790:7:39",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2789:21:39"
+ },
+ "scope": 5298,
+ "src": "2737:1366:39",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 5299,
+ "src": "1005:3100:39"
+ }
+ ],
+ "src": "688:3418:39"
+ },
+ "id": 39
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol",
+ "exportedSymbols": {
+ "EOASignaturesValidator": [
+ 5478
+ ]
+ },
+ "id": 5479,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 5300,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:40"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 5301,
+ "nodeType": "ImportDirective",
+ "scope": 5479,
+ "sourceUnit": 1012,
+ "src": "713:90:40",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ISignaturesValidator.sol",
+ "id": 5302,
+ "nodeType": "ImportDirective",
+ "scope": 5479,
+ "sourceUnit": 1041,
+ "src": "804:96:40",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol",
+ "file": "../openzeppelin/EIP712.sol",
+ "id": 5303,
+ "nodeType": "ImportDirective",
+ "scope": 5479,
+ "sourceUnit": 8862,
+ "src": "902:36:40",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 5305,
+ "name": "ISignaturesValidator",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1040,
+ "src": "1045:20:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ISignaturesValidator_$1040",
+ "typeString": "contract ISignaturesValidator"
+ }
+ },
+ "id": 5306,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1045:20:40"
+ },
+ {
+ "baseName": {
+ "id": 5307,
+ "name": "EIP712",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 8861,
+ "src": "1067:6:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_EIP712_$8861",
+ "typeString": "contract EIP712"
+ }
+ },
+ "id": 5308,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1067:6:40"
+ }
+ ],
+ "contractDependencies": [
+ 1040,
+ 8861
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 5304,
+ "nodeType": "StructuredDocumentation",
+ "src": "940:60:40",
+ "text": " @dev Utility for signing Solidity function calls."
+ },
+ "fullyImplemented": false,
+ "id": 5478,
+ "linearizedBaseContracts": [
+ 5478,
+ 8861,
+ 1040
+ ],
+ "name": "EOASignaturesValidator",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 5312,
+ "mutability": "mutable",
+ "name": "_nextNonce",
+ "nodeType": "VariableDeclaration",
+ "scope": 5478,
+ "src": "1130:47:40",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ },
+ "typeName": {
+ "id": 5311,
+ "keyType": {
+ "id": 5309,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1138:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Mapping",
+ "src": "1130:27:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ },
+ "valueType": {
+ "id": 5310,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1149:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1031
+ ],
+ "body": {
+ "id": 5321,
+ "nodeType": "Block",
+ "src": "1253:44:40",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 5318,
+ "name": "_domainSeparatorV4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8832,
+ "src": "1270:18:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
+ "typeString": "function () view returns (bytes32)"
+ }
+ },
+ "id": 5319,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1270:20:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 5317,
+ "id": 5320,
+ "nodeType": "Return",
+ "src": "1263:27:40"
+ }
+ ]
+ },
+ "functionSelector": "ed24911d",
+ "id": 5322,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getDomainSeparator",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 5314,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "1226:8:40"
+ },
+ "parameters": {
+ "id": 5313,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1211:2:40"
+ },
+ "returnParameters": {
+ "id": 5317,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5316,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5322,
+ "src": "1244:7:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5315,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1244:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1243:9:40"
+ },
+ "scope": 5478,
+ "src": "1184:113:40",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1039
+ ],
+ "body": {
+ "id": 5334,
+ "nodeType": "Block",
+ "src": "1381:43:40",
+ "statements": [
+ {
+ "expression": {
+ "baseExpression": {
+ "id": 5330,
+ "name": "_nextNonce",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5312,
+ "src": "1398:10:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 5332,
+ "indexExpression": {
+ "id": 5331,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5324,
+ "src": "1409:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1398:19:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 5329,
+ "id": 5333,
+ "nodeType": "Return",
+ "src": "1391:26:40"
+ }
+ ]
+ },
+ "functionSelector": "90193b7c",
+ "id": 5335,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getNextNonce",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 5326,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "1354:8:40"
+ },
+ "parameters": {
+ "id": 5325,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5324,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 5335,
+ "src": "1325:15:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5323,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1325:7:40",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1324:17:40"
+ },
+ "returnParameters": {
+ "id": 5329,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5328,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5335,
+ "src": "1372:7:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5327,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1372:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1371:9:40"
+ },
+ "scope": 5478,
+ "src": "1303:121:40",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 5358,
+ "nodeType": "Block",
+ "src": "1588:107:40",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 5347,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5337,
+ "src": "1627:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 5348,
+ "name": "structHash",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5339,
+ "src": "1636:10:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 5349,
+ "name": "signature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5341,
+ "src": "1648:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 5352,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1664:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 5351,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1664:7:40",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ }
+ ],
+ "id": 5350,
+ "name": "type",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -27,
+ "src": "1659:4:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 5353,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1659:13:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_meta_type_t_uint256",
+ "typeString": "type(uint256)"
+ }
+ },
+ "id": 5354,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "max",
+ "nodeType": "MemberAccess",
+ "src": "1659:17:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 5355,
+ "name": "errorCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5343,
+ "src": "1678:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5346,
+ "name": "_ensureValidSignature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 5359,
+ 5403
+ ],
+ "referencedDeclaration": 5403,
+ "src": "1605:21:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (address,bytes32,bytes memory,uint256,uint256)"
+ }
+ },
+ "id": 5356,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1605:83:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "functionReturnParameters": 5345,
+ "id": 5357,
+ "nodeType": "Return",
+ "src": "1598:90:40"
+ }
+ ]
+ },
+ "id": 5359,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensureValidSignature",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5344,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5337,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 5359,
+ "src": "1470:15:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5336,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1470:7:40",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5339,
+ "mutability": "mutable",
+ "name": "structHash",
+ "nodeType": "VariableDeclaration",
+ "scope": 5359,
+ "src": "1495:18:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5338,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1495:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5341,
+ "mutability": "mutable",
+ "name": "signature",
+ "nodeType": "VariableDeclaration",
+ "scope": 5359,
+ "src": "1523:22:40",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5340,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1523:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5343,
+ "mutability": "mutable",
+ "name": "errorCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 5359,
+ "src": "1555:17:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5342,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1555:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1460:118:40"
+ },
+ "returnParameters": {
+ "id": 5345,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1588:0:40"
+ },
+ "scope": 5478,
+ "src": "1430:265:40",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5402,
+ "nodeType": "Block",
+ "src": "1885:1030:40",
+ "statements": [
+ {
+ "assignments": [
+ 5373
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5373,
+ "mutability": "mutable",
+ "name": "digest",
+ "nodeType": "VariableDeclaration",
+ "scope": 5402,
+ "src": "1895:14:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5372,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1895:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5377,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 5375,
+ "name": "structHash",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5363,
+ "src": "1929:10:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 5374,
+ "name": "_hashTypedDataV4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8851,
+ "src": "1912:16:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bytes32_$",
+ "typeString": "function (bytes32) view returns (bytes32)"
+ }
+ },
+ "id": 5376,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1912:28:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1895:45:40"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 5380,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5361,
+ "src": "1977:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 5381,
+ "name": "digest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5373,
+ "src": "1986:6:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 5382,
+ "name": "signature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5365,
+ "src": "1994:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 5379,
+ "name": "_isValidSignature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5455,
+ "src": "1959:17:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_address_$_t_bytes32_$_t_bytes_memory_ptr_$returns$_t_bool_$",
+ "typeString": "function (address,bytes32,bytes memory) view returns (bool)"
+ }
+ },
+ "id": 5383,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1959:45:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "id": 5384,
+ "name": "errorCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5369,
+ "src": "2006:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5378,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1950:8:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5385,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1950:66:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5386,
+ "nodeType": "ExpressionStatement",
+ "src": "1950:66:40"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5391,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5388,
+ "name": "deadline",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5367,
+ "src": "2496:8:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "expression": {
+ "id": 5389,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "2508:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 5390,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "2508:15:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2496:27:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 5392,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2525:6:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5393,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "EXPIRED_SIGNATURE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 896,
+ "src": "2525:24:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5387,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2487:8:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5394,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2487:63:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5395,
+ "nodeType": "ExpressionStatement",
+ "src": "2487:63:40"
+ },
+ {
+ "expression": {
+ "id": 5400,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5396,
+ "name": "_nextNonce",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5312,
+ "src": "2884:10:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 5398,
+ "indexExpression": {
+ "id": 5397,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5361,
+ "src": "2895:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "2884:19:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "hexValue": "31",
+ "id": 5399,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2907:1:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2884:24:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5401,
+ "nodeType": "ExpressionStatement",
+ "src": "2884:24:40"
+ }
+ ]
+ },
+ "id": 5403,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensureValidSignature",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5370,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5361,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 5403,
+ "src": "1741:15:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5360,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1741:7:40",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5363,
+ "mutability": "mutable",
+ "name": "structHash",
+ "nodeType": "VariableDeclaration",
+ "scope": 5403,
+ "src": "1766:18:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5362,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1766:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5365,
+ "mutability": "mutable",
+ "name": "signature",
+ "nodeType": "VariableDeclaration",
+ "scope": 5403,
+ "src": "1794:22:40",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5364,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "1794:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5367,
+ "mutability": "mutable",
+ "name": "deadline",
+ "nodeType": "VariableDeclaration",
+ "scope": 5403,
+ "src": "1826:16:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5366,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1826:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5369,
+ "mutability": "mutable",
+ "name": "errorCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 5403,
+ "src": "1852:17:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5368,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1852:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1731:144:40"
+ },
+ "returnParameters": {
+ "id": 5371,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1885:0:40"
+ },
+ "scope": 5478,
+ "src": "1701:1214:40",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5454,
+ "nodeType": "Block",
+ "src": "3072:725:40",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5418,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 5415,
+ "name": "signature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5409,
+ "src": "3091:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 5416,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "3091:16:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "3635",
+ "id": 5417,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3111:2:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_65_by_1",
+ "typeString": "int_const 65"
+ },
+ "value": "65"
+ },
+ "src": "3091:22:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 5419,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "3115:6:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5420,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MALFORMED_SIGNATURE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 899,
+ "src": "3115:26:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5414,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "3082:8:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5421,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3082:60:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5422,
+ "nodeType": "ExpressionStatement",
+ "src": "3082:60:40"
+ },
+ {
+ "assignments": [
+ 5424
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5424,
+ "mutability": "mutable",
+ "name": "r",
+ "nodeType": "VariableDeclaration",
+ "scope": 5454,
+ "src": "3153:9:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5423,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3153:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5425,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3153:9:40"
+ },
+ {
+ "assignments": [
+ 5427
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5427,
+ "mutability": "mutable",
+ "name": "s",
+ "nodeType": "VariableDeclaration",
+ "scope": 5454,
+ "src": "3172:9:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5426,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3172:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5428,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3172:9:40"
+ },
+ {
+ "assignments": [
+ 5430
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5430,
+ "mutability": "mutable",
+ "name": "v",
+ "nodeType": "VariableDeclaration",
+ "scope": 5454,
+ "src": "3191:7:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 5429,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "3191:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5431,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3191:7:40"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "3387:155:40",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "3401:32:40",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "signature",
+ "nodeType": "YulIdentifier",
+ "src": "3416:9:40"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3427:4:40",
+ "type": "",
+ "value": "0x20"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3412:3:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3412:20:40"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "3406:5:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3406:27:40"
+ },
+ "variableNames": [
+ {
+ "name": "r",
+ "nodeType": "YulIdentifier",
+ "src": "3401:1:40"
+ }
+ ]
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "3446:32:40",
+ "value": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "signature",
+ "nodeType": "YulIdentifier",
+ "src": "3461:9:40"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3472:4:40",
+ "type": "",
+ "value": "0x40"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3457:3:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3457:20:40"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "3451:5:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3451:27:40"
+ },
+ "variableNames": [
+ {
+ "name": "s",
+ "nodeType": "YulIdentifier",
+ "src": "3446:1:40"
+ }
+ ]
+ },
+ {
+ "nodeType": "YulAssignment",
+ "src": "3491:41:40",
+ "value": {
+ "arguments": [
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3501:1:40",
+ "type": "",
+ "value": "0"
+ },
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "signature",
+ "nodeType": "YulIdentifier",
+ "src": "3514:9:40"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "3525:4:40",
+ "type": "",
+ "value": "0x60"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "3510:3:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3510:20:40"
+ }
+ ],
+ "functionName": {
+ "name": "mload",
+ "nodeType": "YulIdentifier",
+ "src": "3504:5:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3504:27:40"
+ }
+ ],
+ "functionName": {
+ "name": "byte",
+ "nodeType": "YulIdentifier",
+ "src": "3496:4:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3496:36:40"
+ },
+ "variableNames": [
+ {
+ "name": "v",
+ "nodeType": "YulIdentifier",
+ "src": "3491:1:40"
+ }
+ ]
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5424,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3401:1:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5427,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3446:1:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5409,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3416:9:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5409,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3461:9:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5409,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3514:9:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5430,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3491:1:40",
+ "valueSize": 1
+ }
+ ],
+ "id": 5432,
+ "nodeType": "InlineAssembly",
+ "src": "3378:164:40"
+ },
+ {
+ "assignments": [
+ 5434
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5434,
+ "mutability": "mutable",
+ "name": "recoveredAddress",
+ "nodeType": "VariableDeclaration",
+ "scope": 5454,
+ "src": "3552:24:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5433,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3552:7:40",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5441,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 5436,
+ "name": "digest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5407,
+ "src": "3589:6:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 5437,
+ "name": "v",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5430,
+ "src": "3597:1:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ {
+ "id": 5438,
+ "name": "r",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5424,
+ "src": "3600:1:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 5439,
+ "name": "s",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5427,
+ "src": "3603:1:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 5435,
+ "name": "ecrecover",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -6,
+ "src": "3579:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_ecrecover_pure$_t_bytes32_$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_address_$",
+ "typeString": "function (bytes32,uint8,bytes32,bytes32) pure returns (address)"
+ }
+ },
+ "id": 5440,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3579:26:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3552:53:40"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 5451,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 5447,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5442,
+ "name": "recoveredAddress",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5434,
+ "src": "3728:16:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 5445,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3756:1:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 5444,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "3748:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 5443,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3748:7:40",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 5446,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3748:10:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "3728:30:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 5450,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5448,
+ "name": "recoveredAddress",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5434,
+ "src": "3762:16:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 5449,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5405,
+ "src": "3782:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "3762:27:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "3728:61:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 5452,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3727:63:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 5413,
+ "id": 5453,
+ "nodeType": "Return",
+ "src": "3720:70:40"
+ }
+ ]
+ },
+ "id": 5455,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_isValidSignature",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5410,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5405,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 5455,
+ "src": "2957:15:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5404,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2957:7:40",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5407,
+ "mutability": "mutable",
+ "name": "digest",
+ "nodeType": "VariableDeclaration",
+ "scope": 5455,
+ "src": "2982:14:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5406,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2982:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5409,
+ "mutability": "mutable",
+ "name": "signature",
+ "nodeType": "VariableDeclaration",
+ "scope": 5455,
+ "src": "3006:22:40",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5408,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3006:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2947:87:40"
+ },
+ "returnParameters": {
+ "id": 5413,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5412,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5455,
+ "src": "3066:4:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 5411,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3066:4:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3065:6:40"
+ },
+ "scope": 5478,
+ "src": "2921:876:40",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5476,
+ "nodeType": "Block",
+ "src": "3928:294:40",
+ "statements": [
+ {
+ "assignments": [
+ 5467
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5467,
+ "mutability": "mutable",
+ "name": "signature",
+ "nodeType": "VariableDeclaration",
+ "scope": 5476,
+ "src": "3938:22:40",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5466,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3938:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5472,
+ "initialValue": {
+ "arguments": [
+ {
+ "hexValue": "3635",
+ "id": 5470,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3973:2:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_65_by_1",
+ "typeString": "int_const 65"
+ },
+ "value": "65"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_65_by_1",
+ "typeString": "int_const 65"
+ }
+ ],
+ "id": 5469,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "3963:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (bytes memory)"
+ },
+ "typeName": {
+ "id": 5468,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3967:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ }
+ },
+ "id": 5471,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3963:13:40",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3938:38:40"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "4051:138:40",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "signature",
+ "nodeType": "YulIdentifier",
+ "src": "4076:9:40"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4087:2:40",
+ "type": "",
+ "value": "32"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "4072:3:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4072:18:40"
+ },
+ {
+ "name": "r",
+ "nodeType": "YulIdentifier",
+ "src": "4092:1:40"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4065:6:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4065:29:40"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4065:29:40"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "signature",
+ "nodeType": "YulIdentifier",
+ "src": "4118:9:40"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4129:2:40",
+ "type": "",
+ "value": "64"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "4114:3:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4114:18:40"
+ },
+ {
+ "name": "s",
+ "nodeType": "YulIdentifier",
+ "src": "4134:1:40"
+ }
+ ],
+ "functionName": {
+ "name": "mstore",
+ "nodeType": "YulIdentifier",
+ "src": "4107:6:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4107:29:40"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4107:29:40"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "name": "signature",
+ "nodeType": "YulIdentifier",
+ "src": "4161:9:40"
+ },
+ {
+ "kind": "number",
+ "nodeType": "YulLiteral",
+ "src": "4172:2:40",
+ "type": "",
+ "value": "96"
+ }
+ ],
+ "functionName": {
+ "name": "add",
+ "nodeType": "YulIdentifier",
+ "src": "4157:3:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4157:18:40"
+ },
+ {
+ "name": "v",
+ "nodeType": "YulIdentifier",
+ "src": "4177:1:40"
+ }
+ ],
+ "functionName": {
+ "name": "mstore8",
+ "nodeType": "YulIdentifier",
+ "src": "4149:7:40"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "4149:30:40"
+ },
+ "nodeType": "YulExpressionStatement",
+ "src": "4149:30:40"
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5459,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4092:1:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5461,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4134:1:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5467,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4076:9:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5467,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4118:9:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5467,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4161:9:40",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5457,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "4177:1:40",
+ "valueSize": 1
+ }
+ ],
+ "id": 5473,
+ "nodeType": "InlineAssembly",
+ "src": "4042:147:40"
+ },
+ {
+ "expression": {
+ "id": 5474,
+ "name": "signature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5467,
+ "src": "4206:9:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "functionReturnParameters": 5465,
+ "id": 5475,
+ "nodeType": "Return",
+ "src": "4199:16:40"
+ }
+ ]
+ },
+ "id": 5477,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_toArraySignature",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5462,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5457,
+ "mutability": "mutable",
+ "name": "v",
+ "nodeType": "VariableDeclaration",
+ "scope": 5477,
+ "src": "3839:7:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 5456,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "3839:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5459,
+ "mutability": "mutable",
+ "name": "r",
+ "nodeType": "VariableDeclaration",
+ "scope": 5477,
+ "src": "3856:9:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5458,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3856:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5461,
+ "mutability": "mutable",
+ "name": "s",
+ "nodeType": "VariableDeclaration",
+ "scope": 5477,
+ "src": "3875:9:40",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5460,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3875:7:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3829:61:40"
+ },
+ "returnParameters": {
+ "id": 5465,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5464,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5477,
+ "src": "3914:12:40",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 5463,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3914:5:40",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3913:14:40"
+ },
+ "scope": 5478,
+ "src": "3803:419:40",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 5479,
+ "src": "1001:3223:40"
+ }
+ ],
+ "src": "688:3537:40"
+ },
+ "id": 40
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol",
+ "exportedSymbols": {
+ "_appendToken": [
+ 5692
+ ],
+ "_asIAsset": [
+ 5494
+ ],
+ "_findTokenIndex": [
+ 5734
+ ],
+ "_getSortedTokenIndexes": [
+ 5808
+ ],
+ "_insertSorted": [
+ 5640
+ ],
+ "_sortTokens": [
+ 5545
+ ]
+ },
+ "id": 5809,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 5480,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:41"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 5481,
+ "nodeType": "ImportDirective",
+ "scope": 5809,
+ "sourceUnit": 1012,
+ "src": "713:90:41",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "id": 5482,
+ "nodeType": "ImportDirective",
+ "scope": 5809,
+ "sourceUnit": 1153,
+ "src": "804:87:41",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IAsset.sol",
+ "id": 5483,
+ "nodeType": "ImportDirective",
+ "scope": 5809,
+ "sourceUnit": 1287,
+ "src": "892:65:41",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "body": {
+ "id": 5493,
+ "nodeType": "Block",
+ "src": "1060:101:41",
+ "statements": [
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "1127:32:41",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "1137:16:41",
+ "value": {
+ "name": "tokens",
+ "nodeType": "YulIdentifier",
+ "src": "1147:6:41"
+ },
+ "variableNames": [
+ {
+ "name": "assets",
+ "nodeType": "YulIdentifier",
+ "src": "1137:6:41"
+ }
+ ]
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5490,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "1137:6:41",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5486,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "1147:6:41",
+ "valueSize": 1
+ }
+ ],
+ "id": 5492,
+ "nodeType": "InlineAssembly",
+ "src": "1118:41:41"
+ }
+ ]
+ },
+ "id": 5494,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_asIAsset",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5487,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5486,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 5494,
+ "src": "998:22:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5484,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "998:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5485,
+ "nodeType": "ArrayTypeName",
+ "src": "998:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "997:24:41"
+ },
+ "returnParameters": {
+ "id": 5491,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5490,
+ "mutability": "mutable",
+ "name": "assets",
+ "nodeType": "VariableDeclaration",
+ "scope": 5494,
+ "src": "1036:22:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_memory_ptr",
+ "typeString": "contract IAsset[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5488,
+ "name": "IAsset",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1286,
+ "src": "1036:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAsset_$1286",
+ "typeString": "contract IAsset"
+ }
+ },
+ "id": 5489,
+ "nodeType": "ArrayTypeName",
+ "src": "1036:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IAsset_$1286_$dyn_storage_ptr",
+ "typeString": "contract IAsset[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1035:24:41"
+ },
+ "scope": 5809,
+ "src": "979:182:41",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5544,
+ "nodeType": "Block",
+ "src": "1281:253:41",
+ "statements": [
+ {
+ "assignments": [
+ 5507,
+ 5509,
+ 5511
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5507,
+ "mutability": "mutable",
+ "name": "indexTokenA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5544,
+ "src": "1288:19:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5506,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1288:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5509,
+ "mutability": "mutable",
+ "name": "indexTokenB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5544,
+ "src": "1309:19:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5508,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1309:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5511,
+ "mutability": "mutable",
+ "name": "indexTokenC",
+ "nodeType": "VariableDeclaration",
+ "scope": 5544,
+ "src": "1330:19:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5510,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1330:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5517,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 5513,
+ "name": "tokenA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5496,
+ "src": "1376:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ {
+ "id": 5514,
+ "name": "tokenB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5498,
+ "src": "1384:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ {
+ "id": 5515,
+ "name": "tokenC",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5500,
+ "src": "1392:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 5512,
+ "name": "_getSortedTokenIndexes",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5808,
+ "src": "1353:22:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_contract$_IERC20_$1152_$_t_contract$_IERC20_$1152_$_t_contract$_IERC20_$1152_$returns$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "function (contract IERC20,contract IERC20,contract IERC20) pure returns (uint256,uint256,uint256)"
+ }
+ },
+ "id": 5516,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1353:46:41",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1287:112:41"
+ },
+ {
+ "expression": {
+ "id": 5524,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5518,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5504,
+ "src": "1405:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "hexValue": "33",
+ "id": 5522,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1427:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ }
+ ],
+ "id": 5521,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "1414:12:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (contract IERC20[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5519,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1418:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5520,
+ "nodeType": "ArrayTypeName",
+ "src": "1418:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ }
+ },
+ "id": 5523,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1414:15:41",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "src": "1405:24:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5525,
+ "nodeType": "ExpressionStatement",
+ "src": "1405:24:41"
+ },
+ {
+ "expression": {
+ "id": 5530,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5526,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5504,
+ "src": "1435:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5528,
+ "indexExpression": {
+ "id": 5527,
+ "name": "indexTokenA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5507,
+ "src": "1442:11:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "1435:19:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5529,
+ "name": "tokenA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5496,
+ "src": "1457:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1435:28:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5531,
+ "nodeType": "ExpressionStatement",
+ "src": "1435:28:41"
+ },
+ {
+ "expression": {
+ "id": 5536,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5532,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5504,
+ "src": "1469:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5534,
+ "indexExpression": {
+ "id": 5533,
+ "name": "indexTokenB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5509,
+ "src": "1476:11:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "1469:19:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5535,
+ "name": "tokenB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5498,
+ "src": "1491:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1469:28:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5537,
+ "nodeType": "ExpressionStatement",
+ "src": "1469:28:41"
+ },
+ {
+ "expression": {
+ "id": 5542,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5538,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5504,
+ "src": "1503:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5540,
+ "indexExpression": {
+ "id": 5539,
+ "name": "indexTokenC",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5511,
+ "src": "1510:11:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "1503:19:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5541,
+ "name": "tokenC",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5500,
+ "src": "1525:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1503:28:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5543,
+ "nodeType": "ExpressionStatement",
+ "src": "1503:28:41"
+ }
+ ]
+ },
+ "id": 5545,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_sortTokens",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5501,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5496,
+ "mutability": "mutable",
+ "name": "tokenA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5545,
+ "src": "1189:13:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5495,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1189:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5498,
+ "mutability": "mutable",
+ "name": "tokenB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5545,
+ "src": "1208:13:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5497,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1208:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5500,
+ "mutability": "mutable",
+ "name": "tokenC",
+ "nodeType": "VariableDeclaration",
+ "scope": 5545,
+ "src": "1227:13:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5499,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1227:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1183:59:41"
+ },
+ "returnParameters": {
+ "id": 5505,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5504,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 5545,
+ "src": "1257:22:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5502,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1257:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5503,
+ "nodeType": "ArrayTypeName",
+ "src": "1257:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1256:24:41"
+ },
+ "scope": 5809,
+ "src": "1163:371:41",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5639,
+ "nodeType": "Block",
+ "src": "1635:326:41",
+ "statements": [
+ {
+ "expression": {
+ "id": 5565,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5556,
+ "name": "sorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5554,
+ "src": "1641:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5563,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 5560,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5548,
+ "src": "1663:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5561,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "1663:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 5562,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1679:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "1663:17:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5559,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "1650:12:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (contract IERC20[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5557,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1654:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5558,
+ "nodeType": "ArrayTypeName",
+ "src": "1654:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ }
+ },
+ "id": 5564,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1650:31:41",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "src": "1641:40:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5566,
+ "nodeType": "ExpressionStatement",
+ "src": "1641:40:41"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5570,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 5567,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5548,
+ "src": "1692:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5568,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "1692:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 5569,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1709:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1692:18:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5580,
+ "nodeType": "IfStatement",
+ "src": "1688:81:41",
+ "trueBody": {
+ "id": 5579,
+ "nodeType": "Block",
+ "src": "1712:57:41",
+ "statements": [
+ {
+ "expression": {
+ "id": 5575,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5571,
+ "name": "sorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5554,
+ "src": "1722:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5573,
+ "indexExpression": {
+ "hexValue": "30",
+ "id": 5572,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1729:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "1722:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5574,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5550,
+ "src": "1734:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1722:17:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5576,
+ "nodeType": "ExpressionStatement",
+ "src": "1722:17:41"
+ },
+ {
+ "expression": {
+ "id": 5577,
+ "name": "sorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5554,
+ "src": "1756:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "functionReturnParameters": 5555,
+ "id": 5578,
+ "nodeType": "Return",
+ "src": "1749:13:41"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 5582
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5582,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 5639,
+ "src": "1775:9:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5581,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1775:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5583,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1775:9:41"
+ },
+ {
+ "body": {
+ "expression": {
+ "id": 5611,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5603,
+ "name": "sorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5554,
+ "src": "1851:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5605,
+ "indexExpression": {
+ "id": 5604,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1858:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "1851:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "baseExpression": {
+ "id": 5606,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5548,
+ "src": "1863:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5610,
+ "indexExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5609,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5607,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1870:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 5608,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1874:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "1870:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1863:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1851:25:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5612,
+ "nodeType": "ExpressionStatement",
+ "src": "1851:25:41"
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 5599,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5591,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5589,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1814:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 5590,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1818:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1814:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 5598,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "baseExpression": {
+ "id": 5592,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5548,
+ "src": "1823:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5596,
+ "indexExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5595,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5593,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1830:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 5594,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1834:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "1830:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1823:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "id": 5597,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5550,
+ "src": "1839:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1823:21:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1814:30:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5613,
+ "initializationExpression": {
+ "expression": {
+ "id": 5587,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5584,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1795:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "expression": {
+ "id": 5585,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5548,
+ "src": "1799:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5586,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "1799:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1795:17:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5588,
+ "nodeType": "ExpressionStatement",
+ "src": "1795:17:41"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 5601,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "--",
+ "prefix": false,
+ "src": "1846:3:41",
+ "subExpression": {
+ "id": 5600,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1846:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5602,
+ "nodeType": "ExpressionStatement",
+ "src": "1846:3:41"
+ },
+ "nodeType": "ForStatement",
+ "src": "1790:86:41"
+ },
+ {
+ "body": {
+ "expression": {
+ "id": 5630,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5624,
+ "name": "sorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5554,
+ "src": "1914:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5626,
+ "indexExpression": {
+ "id": 5625,
+ "name": "j",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5615,
+ "src": "1921:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "1914:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "baseExpression": {
+ "id": 5627,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5548,
+ "src": "1926:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5629,
+ "indexExpression": {
+ "id": 5628,
+ "name": "j",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5615,
+ "src": "1933:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1926:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1914:21:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5631,
+ "nodeType": "ExpressionStatement",
+ "src": "1914:21:41"
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5620,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5618,
+ "name": "j",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5615,
+ "src": "1902:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5619,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1906:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1902:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5632,
+ "initializationExpression": {
+ "assignments": [
+ 5615
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5615,
+ "mutability": "mutable",
+ "name": "j",
+ "nodeType": "VariableDeclaration",
+ "scope": 5632,
+ "src": "1887:9:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5614,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1887:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5617,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 5616,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1899:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1887:13:41"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 5622,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": false,
+ "src": "1909:3:41",
+ "subExpression": {
+ "id": 5621,
+ "name": "j",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5615,
+ "src": "1909:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5623,
+ "nodeType": "ExpressionStatement",
+ "src": "1909:3:41"
+ },
+ "nodeType": "ForStatement",
+ "src": "1882:53:41"
+ },
+ {
+ "expression": {
+ "id": 5637,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5633,
+ "name": "sorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5554,
+ "src": "1941:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5635,
+ "indexExpression": {
+ "id": 5634,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5582,
+ "src": "1948:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "1941:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5636,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5550,
+ "src": "1953:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "1941:17:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5638,
+ "nodeType": "ExpressionStatement",
+ "src": "1941:17:41"
+ }
+ ]
+ },
+ "id": 5640,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_insertSorted",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5551,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5548,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 5640,
+ "src": "1559:22:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5546,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1559:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5547,
+ "nodeType": "ArrayTypeName",
+ "src": "1559:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5550,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 5640,
+ "src": "1583:12:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5549,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1583:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1558:38:41"
+ },
+ "returnParameters": {
+ "id": 5555,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5554,
+ "mutability": "mutable",
+ "name": "sorted",
+ "nodeType": "VariableDeclaration",
+ "scope": 5640,
+ "src": "1611:22:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5552,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1611:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5553,
+ "nodeType": "ArrayTypeName",
+ "src": "1611:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1610:24:41"
+ },
+ "scope": 5809,
+ "src": "1536:425:41",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5691,
+ "nodeType": "Block",
+ "src": "2067:195:41",
+ "statements": [
+ {
+ "assignments": [
+ 5652
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5652,
+ "mutability": "mutable",
+ "name": "numTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 5691,
+ "src": "2073:17:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5651,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2073:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5655,
+ "initialValue": {
+ "expression": {
+ "id": 5653,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5643,
+ "src": "2093:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5654,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "2093:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2073:33:41"
+ },
+ {
+ "expression": {
+ "id": 5664,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5656,
+ "name": "newTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5649,
+ "src": "2112:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5662,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5660,
+ "name": "numTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5652,
+ "src": "2137:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 5661,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2149:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2137:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5659,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "2124:12:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (contract IERC20[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5657,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2128:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5658,
+ "nodeType": "ArrayTypeName",
+ "src": "2128:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ }
+ },
+ "id": 5663,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2124:27:41",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "src": "2112:39:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5665,
+ "nodeType": "ExpressionStatement",
+ "src": "2112:39:41"
+ },
+ {
+ "body": {
+ "expression": {
+ "id": 5682,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5676,
+ "name": "newTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5649,
+ "src": "2198:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5678,
+ "indexExpression": {
+ "id": 5677,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5667,
+ "src": "2208:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "2198:12:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "baseExpression": {
+ "id": 5679,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5643,
+ "src": "2213:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5681,
+ "indexExpression": {
+ "id": 5680,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5667,
+ "src": "2220:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "2213:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "2198:24:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5683,
+ "nodeType": "ExpressionStatement",
+ "src": "2198:24:41"
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5672,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5670,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5667,
+ "src": "2178:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5671,
+ "name": "numTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5652,
+ "src": "2182:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2178:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5684,
+ "initializationExpression": {
+ "assignments": [
+ 5667
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5667,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 5684,
+ "src": "2163:9:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5666,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2163:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5669,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 5668,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2175:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2163:13:41"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 5674,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "2193:3:41",
+ "subExpression": {
+ "id": 5673,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5667,
+ "src": "2195:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5675,
+ "nodeType": "ExpressionStatement",
+ "src": "2193:3:41"
+ },
+ "nodeType": "ForStatement",
+ "src": "2158:64:41"
+ },
+ {
+ "expression": {
+ "id": 5689,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 5685,
+ "name": "newTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5649,
+ "src": "2228:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5687,
+ "indexExpression": {
+ "id": 5686,
+ "name": "numTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5652,
+ "src": "2238:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "2228:20:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5688,
+ "name": "newToken",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5645,
+ "src": "2251:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "2228:31:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5690,
+ "nodeType": "ExpressionStatement",
+ "src": "2228:31:41"
+ }
+ ]
+ },
+ "id": 5692,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_appendToken",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5646,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5643,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 5692,
+ "src": "1985:22:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5641,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1985:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5642,
+ "nodeType": "ArrayTypeName",
+ "src": "1985:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5645,
+ "mutability": "mutable",
+ "name": "newToken",
+ "nodeType": "VariableDeclaration",
+ "scope": 5692,
+ "src": "2009:15:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5644,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2009:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1984:41:41"
+ },
+ "returnParameters": {
+ "id": 5650,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5649,
+ "mutability": "mutable",
+ "name": "newTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 5692,
+ "src": "2040:25:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5647,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2040:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5648,
+ "nodeType": "ArrayTypeName",
+ "src": "2040:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2039:27:41"
+ },
+ "scope": 5809,
+ "src": "1963:299:41",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5733,
+ "nodeType": "Block",
+ "src": "2350:405:41",
+ "statements": [
+ {
+ "assignments": [
+ 5703
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5703,
+ "mutability": "mutable",
+ "name": "tokensLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 5733,
+ "src": "2559:20:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5702,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2559:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5706,
+ "initialValue": {
+ "expression": {
+ "id": 5704,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5695,
+ "src": "2582:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5705,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "2582:13:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2559:36:41"
+ },
+ {
+ "body": {
+ "id": 5726,
+ "nodeType": "Block",
+ "src": "2644:73:41",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 5721,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "baseExpression": {
+ "id": 5717,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5695,
+ "src": "2658:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 5719,
+ "indexExpression": {
+ "id": 5718,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5708,
+ "src": "2665:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "2658:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 5720,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5697,
+ "src": "2671:5:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "2658:18:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5725,
+ "nodeType": "IfStatement",
+ "src": "2654:57:41",
+ "trueBody": {
+ "id": 5724,
+ "nodeType": "Block",
+ "src": "2678:33:41",
+ "statements": [
+ {
+ "expression": {
+ "id": 5722,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5708,
+ "src": "2699:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 5701,
+ "id": 5723,
+ "nodeType": "Return",
+ "src": "2692:8:41"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5713,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5711,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5708,
+ "src": "2621:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5712,
+ "name": "tokensLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5703,
+ "src": "2625:12:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2621:16:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5727,
+ "initializationExpression": {
+ "assignments": [
+ 5708
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5708,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 5727,
+ "src": "2606:9:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5707,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2606:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5710,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 5709,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2618:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2606:13:41"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 5715,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": false,
+ "src": "2639:3:41",
+ "subExpression": {
+ "id": 5714,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5708,
+ "src": "2639:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5716,
+ "nodeType": "ExpressionStatement",
+ "src": "2639:3:41"
+ },
+ "nodeType": "ForStatement",
+ "src": "2601:116:41"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 5729,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2731:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5730,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "INVALID_TOKEN",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 641,
+ "src": "2731:20:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5728,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 510,
+ "src": "2723:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$__$",
+ "typeString": "function (uint256) pure"
+ }
+ },
+ "id": 5731,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2723:29:41",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5732,
+ "nodeType": "ExpressionStatement",
+ "src": "2723:29:41"
+ }
+ ]
+ },
+ "id": 5734,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_findTokenIndex",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5698,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5695,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 5734,
+ "src": "2289:22:41",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5693,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2289:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5694,
+ "nodeType": "ArrayTypeName",
+ "src": "2289:8:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5697,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 5734,
+ "src": "2313:12:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5696,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2313:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2288:38:41"
+ },
+ "returnParameters": {
+ "id": 5701,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5700,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5734,
+ "src": "2341:7:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5699,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2341:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2340:9:41"
+ },
+ "scope": 5809,
+ "src": "2264:491:41",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5807,
+ "nodeType": "Block",
+ "src": "2963:688:41",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 5751,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5749,
+ "name": "tokenA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5736,
+ "src": "2973:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5750,
+ "name": "tokenB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5738,
+ "src": "2982:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "2973:15:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 5805,
+ "nodeType": "Block",
+ "src": "3309:340:41",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 5781,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5779,
+ "name": "tokenC",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5740,
+ "src": "3350:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5780,
+ "name": "tokenB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5738,
+ "src": "3359:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "3350:15:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 5790,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5788,
+ "name": "tokenC",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5740,
+ "src": "3458:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5789,
+ "name": "tokenA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5736,
+ "src": "3467:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "3458:15:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 5802,
+ "nodeType": "Block",
+ "src": "3562:81:41",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "hexValue": "31",
+ "id": 5797,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3624:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ {
+ "hexValue": "30",
+ "id": 5798,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3627:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ {
+ "hexValue": "32",
+ "id": 5799,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3630:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ }
+ ],
+ "id": 5800,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3623:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_rational_1_by_1_$_t_rational_0_by_1_$_t_rational_2_by_1_$",
+ "typeString": "tuple(int_const 1,int_const 0,int_const 2)"
+ }
+ },
+ "functionReturnParameters": 5748,
+ "id": 5801,
+ "nodeType": "Return",
+ "src": "3616:16:41"
+ }
+ ]
+ },
+ "id": 5803,
+ "nodeType": "IfStatement",
+ "src": "3454:189:41",
+ "trueBody": {
+ "id": 5796,
+ "nodeType": "Block",
+ "src": "3475:81:41",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "hexValue": "32",
+ "id": 5791,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3537:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ {
+ "hexValue": "30",
+ "id": 5792,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3540:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ {
+ "hexValue": "31",
+ "id": 5793,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3543:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ }
+ ],
+ "id": 5794,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3536:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_rational_2_by_1_$_t_rational_0_by_1_$_t_rational_1_by_1_$",
+ "typeString": "tuple(int_const 2,int_const 0,int_const 1)"
+ }
+ },
+ "functionReturnParameters": 5748,
+ "id": 5795,
+ "nodeType": "Return",
+ "src": "3529:16:41"
+ }
+ ]
+ }
+ },
+ "id": 5804,
+ "nodeType": "IfStatement",
+ "src": "3346:297:41",
+ "trueBody": {
+ "id": 5787,
+ "nodeType": "Block",
+ "src": "3367:81:41",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "hexValue": "32",
+ "id": 5782,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3429:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ {
+ "hexValue": "31",
+ "id": 5783,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3432:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ {
+ "hexValue": "30",
+ "id": 5784,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3435:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "id": 5785,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3428:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_rational_2_by_1_$_t_rational_1_by_1_$_t_rational_0_by_1_$",
+ "typeString": "tuple(int_const 2,int_const 1,int_const 0)"
+ }
+ },
+ "functionReturnParameters": 5748,
+ "id": 5786,
+ "nodeType": "Return",
+ "src": "3421:16:41"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 5806,
+ "nodeType": "IfStatement",
+ "src": "2969:680:41",
+ "trueBody": {
+ "id": 5778,
+ "nodeType": "Block",
+ "src": "2990:313:41",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 5754,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5752,
+ "name": "tokenB",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5738,
+ "src": "3004:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5753,
+ "name": "tokenC",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5740,
+ "src": "3013:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "3004:15:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 5763,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5761,
+ "name": "tokenA",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5736,
+ "src": "3112:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5762,
+ "name": "tokenC",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5740,
+ "src": "3121:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "3112:15:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 5775,
+ "nodeType": "Block",
+ "src": "3216:81:41",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "hexValue": "31",
+ "id": 5770,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3278:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ {
+ "hexValue": "32",
+ "id": 5771,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3281:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ {
+ "hexValue": "30",
+ "id": 5772,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3284:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "id": 5773,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3277:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_rational_1_by_1_$_t_rational_2_by_1_$_t_rational_0_by_1_$",
+ "typeString": "tuple(int_const 1,int_const 2,int_const 0)"
+ }
+ },
+ "functionReturnParameters": 5748,
+ "id": 5774,
+ "nodeType": "Return",
+ "src": "3270:16:41"
+ }
+ ]
+ },
+ "id": 5776,
+ "nodeType": "IfStatement",
+ "src": "3108:189:41",
+ "trueBody": {
+ "id": 5769,
+ "nodeType": "Block",
+ "src": "3129:81:41",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "hexValue": "30",
+ "id": 5764,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3191:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ {
+ "hexValue": "32",
+ "id": 5765,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3194:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ {
+ "hexValue": "31",
+ "id": 5766,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3197:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ }
+ ],
+ "id": 5767,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3190:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_rational_0_by_1_$_t_rational_2_by_1_$_t_rational_1_by_1_$",
+ "typeString": "tuple(int_const 0,int_const 2,int_const 1)"
+ }
+ },
+ "functionReturnParameters": 5748,
+ "id": 5768,
+ "nodeType": "Return",
+ "src": "3183:16:41"
+ }
+ ]
+ }
+ },
+ "id": 5777,
+ "nodeType": "IfStatement",
+ "src": "3000:297:41",
+ "trueBody": {
+ "id": 5760,
+ "nodeType": "Block",
+ "src": "3021:81:41",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "hexValue": "30",
+ "id": 5755,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3083:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ {
+ "hexValue": "31",
+ "id": 5756,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3086:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ {
+ "hexValue": "32",
+ "id": 5757,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3089:1:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ }
+ ],
+ "id": 5758,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3082:9:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_rational_0_by_1_$_t_rational_1_by_1_$_t_rational_2_by_1_$",
+ "typeString": "tuple(int_const 0,int_const 1,int_const 2)"
+ }
+ },
+ "functionReturnParameters": 5748,
+ "id": 5759,
+ "nodeType": "Return",
+ "src": "3075:16:41"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 5808,
+ "implemented": true,
+ "kind": "freeFunction",
+ "modifiers": [],
+ "name": "_getSortedTokenIndexes",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5741,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5736,
+ "mutability": "mutable",
+ "name": "tokenA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5808,
+ "src": "2794:13:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5735,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2794:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5738,
+ "mutability": "mutable",
+ "name": "tokenB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5808,
+ "src": "2813:13:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5737,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2813:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5740,
+ "mutability": "mutable",
+ "name": "tokenC",
+ "nodeType": "VariableDeclaration",
+ "scope": 5808,
+ "src": "2832:13:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 5739,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2832:6:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2788:59:41"
+ },
+ "returnParameters": {
+ "id": 5748,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5743,
+ "mutability": "mutable",
+ "name": "indexTokenA",
+ "nodeType": "VariableDeclaration",
+ "scope": 5808,
+ "src": "2879:19:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5742,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2879:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5745,
+ "mutability": "mutable",
+ "name": "indexTokenB",
+ "nodeType": "VariableDeclaration",
+ "scope": 5808,
+ "src": "2908:19:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5744,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2908:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5747,
+ "mutability": "mutable",
+ "name": "indexTokenC",
+ "nodeType": "VariableDeclaration",
+ "scope": 5808,
+ "src": "2937:19:41",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5746,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2937:7:41",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2869:93:41"
+ },
+ "scope": 5809,
+ "src": "2757:894:41",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "src": "688:2964:41"
+ },
+ "id": 41
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol",
+ "exportedSymbols": {
+ "InputHelpers": [
+ 5920
+ ]
+ },
+ "id": 5921,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 5810,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:42"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "id": 5811,
+ "nodeType": "ImportDirective",
+ "scope": 5921,
+ "sourceUnit": 1153,
+ "src": "713:87:42",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 5812,
+ "nodeType": "ImportDirective",
+ "scope": 5921,
+ "sourceUnit": 1012,
+ "src": "801:90:42",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 5920,
+ "linearizedBaseContracts": [
+ 5920
+ ],
+ "name": "InputHelpers",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "body": {
+ "id": 5827,
+ "nodeType": "Block",
+ "src": "988:63:42",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5822,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5820,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5814,
+ "src": "1007:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 5821,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5816,
+ "src": "1012:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1007:6:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 5823,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1015:6:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5824,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "INPUT_LENGTH_MISMATCH",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 572,
+ "src": "1015:28:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5819,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "998:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5825,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "998:46:42",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5826,
+ "nodeType": "ExpressionStatement",
+ "src": "998:46:42"
+ }
+ ]
+ },
+ "id": 5828,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "ensureInputLengthMatch",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5817,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5814,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 5828,
+ "src": "952:9:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5813,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "952:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5816,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 5828,
+ "src": "963:9:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5815,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "963:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "951:22:42"
+ },
+ "returnParameters": {
+ "id": 5818,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "988:0:42"
+ },
+ "scope": 5920,
+ "src": "920:131:42",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5849,
+ "nodeType": "Block",
+ "src": "1166:73:42",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 5844,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5840,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5838,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5830,
+ "src": "1185:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 5839,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5832,
+ "src": "1190:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1185:6:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5843,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5841,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5832,
+ "src": "1195:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 5842,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5834,
+ "src": "1200:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1195:6:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1185:16:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 5845,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1203:6:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5846,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "INPUT_LENGTH_MISMATCH",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 572,
+ "src": "1203:28:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5837,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1176:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5847,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1176:56:42",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5848,
+ "nodeType": "ExpressionStatement",
+ "src": "1176:56:42"
+ }
+ ]
+ },
+ "id": 5850,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "ensureInputLengthMatch",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5835,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5830,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 5850,
+ "src": "1098:9:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5829,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1098:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5832,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 5850,
+ "src": "1117:9:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5831,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1117:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5834,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 5850,
+ "src": "1136:9:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5833,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1136:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1088:63:42"
+ },
+ "returnParameters": {
+ "id": 5836,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1166:0:42"
+ },
+ "scope": 5920,
+ "src": "1057:182:42",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5867,
+ "nodeType": "Block",
+ "src": "1311:208:42",
+ "statements": [
+ {
+ "assignments": [
+ 5860
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5860,
+ "mutability": "mutable",
+ "name": "addressArray",
+ "nodeType": "VariableDeclaration",
+ "scope": 5867,
+ "src": "1321:29:42",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5858,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1321:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 5859,
+ "nodeType": "ArrayTypeName",
+ "src": "1321:9:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
+ "typeString": "address[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5861,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1321:29:42"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "1425:45:42",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "1439:21:42",
+ "value": {
+ "name": "array",
+ "nodeType": "YulIdentifier",
+ "src": "1455:5:42"
+ },
+ "variableNames": [
+ {
+ "name": "addressArray",
+ "nodeType": "YulIdentifier",
+ "src": "1439:12:42"
+ }
+ ]
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 5860,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "1439:12:42",
+ "valueSize": 1
+ },
+ {
+ "declaration": 5853,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "1455:5:42",
+ "valueSize": 1
+ }
+ ],
+ "id": 5862,
+ "nodeType": "InlineAssembly",
+ "src": "1416:54:42"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 5864,
+ "name": "addressArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5860,
+ "src": "1499:12:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ ],
+ "id": 5863,
+ "name": "ensureArrayIsSorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 5868,
+ 5919
+ ],
+ "referencedDeclaration": 5919,
+ "src": "1479:19:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_address_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (address[] memory) pure"
+ }
+ },
+ "id": 5865,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1479:33:42",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5866,
+ "nodeType": "ExpressionStatement",
+ "src": "1479:33:42"
+ }
+ ]
+ },
+ "id": 5868,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "ensureArrayIsSorted",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5854,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5853,
+ "mutability": "mutable",
+ "name": "array",
+ "nodeType": "VariableDeclaration",
+ "scope": 5868,
+ "src": "1274:21:42",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5851,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1274:6:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 5852,
+ "nodeType": "ArrayTypeName",
+ "src": "1274:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1273:23:42"
+ },
+ "returnParameters": {
+ "id": 5855,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1311:0:42"
+ },
+ "scope": 5920,
+ "src": "1245:274:42",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5918,
+ "nodeType": "Block",
+ "src": "1592:307:42",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5877,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 5874,
+ "name": "array",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5871,
+ "src": "1606:5:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ },
+ "id": 5875,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "1606:12:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "hexValue": "32",
+ "id": 5876,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1621:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "src": "1606:16:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5880,
+ "nodeType": "IfStatement",
+ "src": "1602:53:42",
+ "trueBody": {
+ "id": 5879,
+ "nodeType": "Block",
+ "src": "1624:31:42",
+ "statements": [
+ {
+ "functionReturnParameters": 5873,
+ "id": 5878,
+ "nodeType": "Return",
+ "src": "1638:7:42"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 5882
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5882,
+ "mutability": "mutable",
+ "name": "previous",
+ "nodeType": "VariableDeclaration",
+ "scope": 5918,
+ "src": "1665:16:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5881,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1665:7:42",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5886,
+ "initialValue": {
+ "baseExpression": {
+ "id": 5883,
+ "name": "array",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5871,
+ "src": "1684:5:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ },
+ "id": 5885,
+ "indexExpression": {
+ "hexValue": "30",
+ "id": 5884,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1690:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1684:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1665:27:42"
+ },
+ {
+ "body": {
+ "id": 5916,
+ "nodeType": "Block",
+ "src": "1745:148:42",
+ "statements": [
+ {
+ "assignments": [
+ 5899
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5899,
+ "mutability": "mutable",
+ "name": "current",
+ "nodeType": "VariableDeclaration",
+ "scope": 5916,
+ "src": "1759:15:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5898,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1759:7:42",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5903,
+ "initialValue": {
+ "baseExpression": {
+ "id": 5900,
+ "name": "array",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5871,
+ "src": "1777:5:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ },
+ "id": 5902,
+ "indexExpression": {
+ "id": 5901,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5888,
+ "src": "1783:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "1777:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1759:26:42"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 5907,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5905,
+ "name": "previous",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5882,
+ "src": "1808:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 5906,
+ "name": "current",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5899,
+ "src": "1819:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "1808:18:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 5908,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1828:6:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 5909,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "UNSORTED_ARRAY",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 566,
+ "src": "1828:21:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5904,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1799:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 5910,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1799:51:42",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 5911,
+ "nodeType": "ExpressionStatement",
+ "src": "1799:51:42"
+ },
+ {
+ "expression": {
+ "id": 5914,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5912,
+ "name": "previous",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5882,
+ "src": "1864:8:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5913,
+ "name": "current",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5899,
+ "src": "1875:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "src": "1864:18:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 5915,
+ "nodeType": "ExpressionStatement",
+ "src": "1864:18:42"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 5894,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 5891,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5888,
+ "src": "1722:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "expression": {
+ "id": 5892,
+ "name": "array",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5871,
+ "src": "1726:5:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ },
+ "id": 5893,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "1726:12:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1722:16:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 5917,
+ "initializationExpression": {
+ "assignments": [
+ 5888
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 5888,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 5917,
+ "src": "1707:9:42",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 5887,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1707:7:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 5890,
+ "initialValue": {
+ "hexValue": "31",
+ "id": 5889,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1719:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1707:13:42"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 5896,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "1740:3:42",
+ "subExpression": {
+ "id": 5895,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5888,
+ "src": "1742:1:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 5897,
+ "nodeType": "ExpressionStatement",
+ "src": "1740:3:42"
+ },
+ "nodeType": "ForStatement",
+ "src": "1702:191:42"
+ }
+ ]
+ },
+ "id": 5919,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "ensureArrayIsSorted",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5872,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5871,
+ "mutability": "mutable",
+ "name": "array",
+ "nodeType": "VariableDeclaration",
+ "scope": 5919,
+ "src": "1554:22:42",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 5869,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1554:7:42",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 5870,
+ "nodeType": "ArrayTypeName",
+ "src": "1554:9:42",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
+ "typeString": "address[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1553:24:42"
+ },
+ "returnParameters": {
+ "id": 5873,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1592:0:42"
+ },
+ "scope": 5920,
+ "src": "1525:374:42",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 5921,
+ "src": "893:1008:42"
+ }
+ ],
+ "src": "688:1214:42"
+ },
+ "id": 42
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/SingletonAuthentication.sol",
+ "exportedSymbols": {
+ "SingletonAuthentication": [
+ 6015
+ ]
+ },
+ "id": 6016,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 5922,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:43"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/liquidity-mining/IAuthorizerAdaptor.sol",
+ "id": 5923,
+ "nodeType": "ImportDirective",
+ "scope": 6016,
+ "sourceUnit": 29,
+ "src": "713:88:43",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "id": 5924,
+ "nodeType": "ImportDirective",
+ "scope": 6016,
+ "sourceUnit": 2022,
+ "src": "802:65:43",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/Authentication.sol",
+ "file": "./Authentication.sol",
+ "id": 5925,
+ "nodeType": "ImportDirective",
+ "scope": 6016,
+ "sourceUnit": 5042,
+ "src": "869:30:43",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 5926,
+ "name": "Authentication",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 5041,
+ "src": "946:14:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_Authentication_$5041",
+ "typeString": "contract Authentication"
+ }
+ },
+ "id": 5927,
+ "nodeType": "InheritanceSpecifier",
+ "src": "946:14:43"
+ }
+ ],
+ "contractDependencies": [
+ 1022,
+ 5041
+ ],
+ "contractKind": "contract",
+ "fullyImplemented": true,
+ "id": 6015,
+ "linearizedBaseContracts": [
+ 6015,
+ 5041,
+ 1022
+ ],
+ "name": "SingletonAuthentication",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 5929,
+ "mutability": "immutable",
+ "name": "_vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 6015,
+ "src": "967:31:43",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 5928,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "967:6:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 5950,
+ "nodeType": "Block",
+ "src": "1152:31:43",
+ "statements": [
+ {
+ "expression": {
+ "id": 5948,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 5946,
+ "name": "_vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5929,
+ "src": "1162:6:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 5947,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5931,
+ "src": "1171:5:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "src": "1162:14:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 5949,
+ "nodeType": "ExpressionStatement",
+ "src": "1162:14:43"
+ }
+ ]
+ },
+ "id": 5951,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 5940,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "1143:4:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_SingletonAuthentication_$6015",
+ "typeString": "contract SingletonAuthentication"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_SingletonAuthentication_$6015",
+ "typeString": "contract SingletonAuthentication"
+ }
+ ],
+ "id": 5939,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1135:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 5938,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1135:7:43",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 5941,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1135:13:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 5937,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1127:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 5936,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1127:7:43",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 5942,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1127:22:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 5935,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1119:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 5934,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1119:7:43",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 5943,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1119:31:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "id": 5944,
+ "modifierName": {
+ "id": 5933,
+ "name": "Authentication",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5041,
+ "src": "1104:14:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Authentication_$5041_$",
+ "typeString": "type(contract Authentication)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "1104:47:43"
+ }
+ ],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5932,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5931,
+ "mutability": "mutable",
+ "name": "vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 5951,
+ "src": "1090:12:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 5930,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "1090:6:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1089:14:43"
+ },
+ "returnParameters": {
+ "id": 5945,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1152:0:43"
+ },
+ "scope": 6015,
+ "src": "1078:105:43",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 5959,
+ "nodeType": "Block",
+ "src": "1296:30:43",
+ "statements": [
+ {
+ "expression": {
+ "id": 5957,
+ "name": "_vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5929,
+ "src": "1313:6:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "functionReturnParameters": 5956,
+ "id": 5958,
+ "nodeType": "Return",
+ "src": "1306:13:43"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5952,
+ "nodeType": "StructuredDocumentation",
+ "src": "1189:53:43",
+ "text": " @notice Returns the Balancer Vault"
+ },
+ "functionSelector": "8d928af8",
+ "id": 5960,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getVault",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5953,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1264:2:43"
+ },
+ "returnParameters": {
+ "id": 5956,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5955,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5960,
+ "src": "1288:6:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 5954,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "1288:6:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1287:8:43"
+ },
+ "scope": 6015,
+ "src": "1247:79:43",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 5971,
+ "nodeType": "Block",
+ "src": "1445:50:43",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 5966,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5960,
+ "src": "1462:8:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 5967,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1462:10:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 5968,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getAuthorizer",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1581,
+ "src": "1462:24:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$__$returns$_t_contract$_IAuthorizer_$1301_$",
+ "typeString": "function () view external returns (contract IAuthorizer)"
+ }
+ },
+ "id": 5969,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1462:26:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "functionReturnParameters": 5965,
+ "id": 5970,
+ "nodeType": "Return",
+ "src": "1455:33:43"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 5961,
+ "nodeType": "StructuredDocumentation",
+ "src": "1332:49:43",
+ "text": " @notice Returns the Authorizer"
+ },
+ "functionSelector": "aaabadc5",
+ "id": 5972,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getAuthorizer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 5962,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1408:2:43"
+ },
+ "returnParameters": {
+ "id": 5965,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5964,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5972,
+ "src": "1432:11:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ },
+ "typeName": {
+ "id": 5963,
+ "name": "IAuthorizer",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1301,
+ "src": "1432:11:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1431:13:43"
+ },
+ "scope": 6015,
+ "src": "1386:109:43",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 5040
+ ],
+ "body": {
+ "id": 5993,
+ "nodeType": "Block",
+ "src": "1595:84:43",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 5985,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5974,
+ "src": "1639:8:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 5986,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5976,
+ "src": "1649:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 5989,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "1666:4:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_SingletonAuthentication_$6015",
+ "typeString": "contract SingletonAuthentication"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_SingletonAuthentication_$6015",
+ "typeString": "contract SingletonAuthentication"
+ }
+ ],
+ "id": 5988,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1658:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 5987,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1658:7:43",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 5990,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1658:13:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 5982,
+ "name": "getAuthorizer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5972,
+ "src": "1612:13:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IAuthorizer_$1301_$",
+ "typeString": "function () view returns (contract IAuthorizer)"
+ }
+ },
+ "id": 5983,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1612:15:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "id": 5984,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "canPerform",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1300,
+ "src": "1612:26:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_address_$_t_address_$returns$_t_bool_$",
+ "typeString": "function (bytes32,address,address) view external returns (bool)"
+ }
+ },
+ "id": 5991,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1612:60:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 5981,
+ "id": 5992,
+ "nodeType": "Return",
+ "src": "1605:67:43"
+ }
+ ]
+ },
+ "id": 5994,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_canPerform",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 5978,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "1571:8:43"
+ },
+ "parameters": {
+ "id": 5977,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5974,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 5994,
+ "src": "1522:16:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5973,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1522:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5976,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 5994,
+ "src": "1540:15:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5975,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1540:7:43",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1521:35:43"
+ },
+ "returnParameters": {
+ "id": 5981,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5980,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 5994,
+ "src": "1589:4:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 5979,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1589:4:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1588:6:43"
+ },
+ "scope": 6015,
+ "src": "1501:178:43",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6013,
+ "nodeType": "Block",
+ "src": "1815:76:43",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 6008,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5996,
+ "src": "1859:8:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 6009,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5998,
+ "src": "1869:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 6010,
+ "name": "where",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6000,
+ "src": "1878:5:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6005,
+ "name": "getAuthorizer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5972,
+ "src": "1832:13:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IAuthorizer_$1301_$",
+ "typeString": "function () view returns (contract IAuthorizer)"
+ }
+ },
+ "id": 6006,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1832:15:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IAuthorizer_$1301",
+ "typeString": "contract IAuthorizer"
+ }
+ },
+ "id": 6007,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "canPerform",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1300,
+ "src": "1832:26:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_address_$_t_address_$returns$_t_bool_$",
+ "typeString": "function (bytes32,address,address) view external returns (bool)"
+ }
+ },
+ "id": 6011,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1832:52:43",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 6004,
+ "id": 6012,
+ "nodeType": "Return",
+ "src": "1825:59:43"
+ }
+ ]
+ },
+ "id": 6014,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_canPerform",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6001,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 5996,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 6014,
+ "src": "1715:16:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 5995,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1715:7:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 5998,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 6014,
+ "src": "1741:15:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5997,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1741:7:43",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6000,
+ "mutability": "mutable",
+ "name": "where",
+ "nodeType": "VariableDeclaration",
+ "scope": 6014,
+ "src": "1766:13:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 5999,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1766:7:43",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1705:80:43"
+ },
+ "returnParameters": {
+ "id": 6004,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6003,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6014,
+ "src": "1809:4:43",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 6002,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1809:4:43",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1808:6:43"
+ },
+ "scope": 6015,
+ "src": "1685:206:43",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 6016,
+ "src": "901:992:43"
+ }
+ ],
+ "src": "688:1206:43"
+ },
+ "id": 43
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/TemporarilyPausable.sol",
+ "exportedSymbols": {
+ "TemporarilyPausable": [
+ 6208
+ ]
+ },
+ "id": 6209,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 6017,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:44"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 6018,
+ "nodeType": "ImportDirective",
+ "scope": 6209,
+ "sourceUnit": 1012,
+ "src": "713:90:44",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/ITemporarilyPausable.sol",
+ "id": 6019,
+ "nodeType": "ImportDirective",
+ "scope": 6209,
+ "sourceUnit": 1060,
+ "src": "804:96:44",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 6021,
+ "name": "ITemporarilyPausable",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1059,
+ "src": "2043:20:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ITemporarilyPausable_$1059",
+ "typeString": "contract ITemporarilyPausable"
+ }
+ },
+ "id": 6022,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2043:20:44"
+ }
+ ],
+ "contractDependencies": [
+ 1059
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 6020,
+ "nodeType": "StructuredDocumentation",
+ "src": "902:1099:44",
+ "text": " @dev Allows for a contract to be paused during an initial period after deployment, disabling functionality. Can be\n used as an emergency switch in case a security vulnerability or threat is identified.\n The contract can only be paused during the Pause Window, a period that starts at deployment. It can also be\n unpaused and repaused any number of times during this period. This is intended to serve as a safety measure: it lets\n system managers react quickly to potentially dangerous situations, knowing that this action is reversible if careful\n analysis later determines there was a false alarm.\n If the contract is paused when the Pause Window finishes, it will remain in the paused state through an additional\n Buffer Period, after which it will be automatically unpaused forever. This is to ensure there is always enough time\n to react to an emergency, even if the threat is discovered shortly before the Pause Window expires.\n Note that since the contract can only be paused within the Pause Window, unpausing during the Buffer Period is\n irreversible."
+ },
+ "fullyImplemented": true,
+ "id": 6208,
+ "linearizedBaseContracts": [
+ 6208,
+ 1059
+ ],
+ "name": "TemporarilyPausable",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 6025,
+ "mutability": "constant",
+ "name": "_MAX_PAUSE_WINDOW_DURATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 6208,
+ "src": "2230:61:44",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6023,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2230:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3930",
+ "id": 6024,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2284:7:44",
+ "subdenomination": "days",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_7776000_by_1",
+ "typeString": "int_const 7776000"
+ },
+ "value": "90"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 6028,
+ "mutability": "constant",
+ "name": "_MAX_BUFFER_PERIOD_DURATION",
+ "nodeType": "VariableDeclaration",
+ "scope": 6208,
+ "src": "2297:62:44",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6026,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2297:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3330",
+ "id": 6027,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2352:7:44",
+ "subdenomination": "days",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2592000_by_1",
+ "typeString": "int_const 2592000"
+ },
+ "value": "30"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 6030,
+ "mutability": "immutable",
+ "name": "_pauseWindowEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 6208,
+ "src": "2366:45:44",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6029,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2366:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 6032,
+ "mutability": "immutable",
+ "name": "_bufferPeriodEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 6208,
+ "src": "2417:46:44",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6031,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2417:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 6034,
+ "mutability": "mutable",
+ "name": "_paused",
+ "nodeType": "VariableDeclaration",
+ "scope": 6208,
+ "src": "2470:20:44",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 6033,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2470:4:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 6074,
+ "nodeType": "Block",
+ "src": "2568:418:44",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6044,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6042,
+ "name": "pauseWindowDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6036,
+ "src": "2587:19:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 6043,
+ "name": "_MAX_PAUSE_WINDOW_DURATION",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6025,
+ "src": "2610:26:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2587:49:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6045,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2638:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6046,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MAX_PAUSE_WINDOW_DURATION",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 788,
+ "src": "2638:32:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6041,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2578:8:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6047,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2578:93:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6048,
+ "nodeType": "ExpressionStatement",
+ "src": "2578:93:44"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6052,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6050,
+ "name": "bufferPeriodDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6038,
+ "src": "2690:20:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 6051,
+ "name": "_MAX_BUFFER_PERIOD_DURATION",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6028,
+ "src": "2714:27:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2690:51:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6053,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2743:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6054,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MAX_BUFFER_PERIOD_DURATION",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 791,
+ "src": "2743:33:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6049,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2681:8:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6055,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2681:96:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6056,
+ "nodeType": "ExpressionStatement",
+ "src": "2681:96:44"
+ },
+ {
+ "assignments": [
+ 6058
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6058,
+ "mutability": "mutable",
+ "name": "pauseWindowEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 6074,
+ "src": "2788:26:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6057,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2788:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6063,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6062,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 6059,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "2817:5:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 6060,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "2817:15:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 6061,
+ "name": "pauseWindowDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6036,
+ "src": "2835:19:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2817:37:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2788:66:44"
+ },
+ {
+ "expression": {
+ "id": 6066,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 6064,
+ "name": "_pauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6030,
+ "src": "2865:19:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 6065,
+ "name": "pauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6058,
+ "src": "2887:18:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2865:40:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 6067,
+ "nodeType": "ExpressionStatement",
+ "src": "2865:40:44"
+ },
+ {
+ "expression": {
+ "id": 6072,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 6068,
+ "name": "_bufferPeriodEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6032,
+ "src": "2915:20:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6071,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6069,
+ "name": "pauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6058,
+ "src": "2938:18:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 6070,
+ "name": "bufferPeriodDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6038,
+ "src": "2959:20:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2938:41:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2915:64:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 6073,
+ "nodeType": "ExpressionStatement",
+ "src": "2915:64:44"
+ }
+ ]
+ },
+ "id": 6075,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6039,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6036,
+ "mutability": "mutable",
+ "name": "pauseWindowDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 6075,
+ "src": "2509:27:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6035,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2509:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6038,
+ "mutability": "mutable",
+ "name": "bufferPeriodDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 6075,
+ "src": "2538:28:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6037,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2538:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2508:59:44"
+ },
+ "returnParameters": {
+ "id": 6040,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2568:0:44"
+ },
+ "scope": 6208,
+ "src": "2497:489:44",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6082,
+ "nodeType": "Block",
+ "src": "3080:46:44",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6078,
+ "name": "_ensureNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6162,
+ "src": "3090:16:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 6079,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3090:18:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6080,
+ "nodeType": "ExpressionStatement",
+ "src": "3090:18:44"
+ },
+ {
+ "id": 6081,
+ "nodeType": "PlaceholderStatement",
+ "src": "3118:1:44"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6076,
+ "nodeType": "StructuredDocumentation",
+ "src": "2992:58:44",
+ "text": " @dev Reverts if the contract is paused."
+ },
+ "id": 6083,
+ "name": "whenNotPaused",
+ "nodeType": "ModifierDefinition",
+ "parameters": {
+ "id": 6077,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3077:2:44"
+ },
+ "src": "3055:71:44",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1058
+ ],
+ "body": {
+ "id": 6110,
+ "nodeType": "Block",
+ "src": "3484:153:44",
+ "statements": [
+ {
+ "expression": {
+ "id": 6098,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 6094,
+ "name": "paused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6088,
+ "src": "3494:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 6097,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "3503:15:44",
+ "subExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6095,
+ "name": "_isNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6191,
+ "src": "3504:12:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 6096,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3504:14:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "3494:24:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 6099,
+ "nodeType": "ExpressionStatement",
+ "src": "3494:24:44"
+ },
+ {
+ "expression": {
+ "id": 6103,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 6100,
+ "name": "pauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6090,
+ "src": "3528:18:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6101,
+ "name": "_getPauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6199,
+ "src": "3549:22:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 6102,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3549:24:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3528:45:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 6104,
+ "nodeType": "ExpressionStatement",
+ "src": "3528:45:44"
+ },
+ {
+ "expression": {
+ "id": 6108,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 6105,
+ "name": "bufferPeriodEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6092,
+ "src": "3583:19:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6106,
+ "name": "_getBufferPeriodEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6207,
+ "src": "3605:23:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 6107,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3605:25:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3583:47:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 6109,
+ "nodeType": "ExpressionStatement",
+ "src": "3583:47:44"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6084,
+ "nodeType": "StructuredDocumentation",
+ "src": "3132:137:44",
+ "text": " @dev Returns the current contract pause status, as well as the end times of the Pause Window and Buffer\n Period."
+ },
+ "functionSelector": "1c0de051",
+ "id": 6111,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPausedState",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 6086,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "3338:8:44"
+ },
+ "parameters": {
+ "id": 6085,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3297:2:44"
+ },
+ "returnParameters": {
+ "id": 6093,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6088,
+ "mutability": "mutable",
+ "name": "paused",
+ "nodeType": "VariableDeclaration",
+ "scope": 6111,
+ "src": "3377:11:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 6087,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3377:4:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6090,
+ "mutability": "mutable",
+ "name": "pauseWindowEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 6111,
+ "src": "3402:26:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6089,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3402:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6092,
+ "mutability": "mutable",
+ "name": "bufferPeriodEndTime",
+ "nodeType": "VariableDeclaration",
+ "scope": 6111,
+ "src": "3442:27:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6091,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3442:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3363:116:44"
+ },
+ "scope": 6208,
+ "src": "3274:363:44",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 6149,
+ "nodeType": "Block",
+ "src": "3955:316:44",
+ "statements": [
+ {
+ "condition": {
+ "id": 6117,
+ "name": "paused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6114,
+ "src": "3969:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 6139,
+ "nodeType": "Block",
+ "src": "4089:108:44",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6134,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 6130,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "4112:5:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 6131,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "4112:15:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6132,
+ "name": "_getBufferPeriodEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6207,
+ "src": "4130:23:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 6133,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4130:25:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4112:43:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6135,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4157:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6136,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "BUFFER_PERIOD_EXPIRED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 851,
+ "src": "4157:28:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6129,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "4103:8:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6137,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4103:83:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6138,
+ "nodeType": "ExpressionStatement",
+ "src": "4103:83:44"
+ }
+ ]
+ },
+ "id": 6140,
+ "nodeType": "IfStatement",
+ "src": "3965:232:44",
+ "trueBody": {
+ "id": 6128,
+ "nodeType": "Block",
+ "src": "3977:106:44",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6123,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 6119,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "4000:5:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 6120,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "4000:15:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6121,
+ "name": "_getPauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6199,
+ "src": "4018:22:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 6122,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4018:24:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4000:42:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6124,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4044:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6125,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "PAUSE_WINDOW_EXPIRED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 785,
+ "src": "4044:27:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6118,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "3991:8:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6126,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3991:81:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6127,
+ "nodeType": "ExpressionStatement",
+ "src": "3991:81:44"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "id": 6143,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 6141,
+ "name": "_paused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6034,
+ "src": "4207:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 6142,
+ "name": "paused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6114,
+ "src": "4217:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "4207:16:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 6144,
+ "nodeType": "ExpressionStatement",
+ "src": "4207:16:44"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 6146,
+ "name": "paused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6114,
+ "src": "4257:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ ],
+ "id": 6145,
+ "name": "PausedStateChanged",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1048,
+ "src": "4238:18:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_bool_$returns$__$",
+ "typeString": "function (bool)"
+ }
+ },
+ "id": 6147,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4238:26:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6148,
+ "nodeType": "EmitStatement",
+ "src": "4233:31:44"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6112,
+ "nodeType": "StructuredDocumentation",
+ "src": "3643:265:44",
+ "text": " @dev Sets the pause state to `paused`. The contract can only be paused until the end of the Pause Window, and\n unpaused until the end of the Buffer Period.\n Once the Buffer Period expires, this function reverts unconditionally."
+ },
+ "id": 6150,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setPaused",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6115,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6114,
+ "mutability": "mutable",
+ "name": "paused",
+ "nodeType": "VariableDeclaration",
+ "scope": 6150,
+ "src": "3933:11:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 6113,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3933:4:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3932:13:44"
+ },
+ "returnParameters": {
+ "id": 6116,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3955:0:44"
+ },
+ "scope": 6208,
+ "src": "3913:358:44",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6161,
+ "nodeType": "Block",
+ "src": "4382:56:44",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6155,
+ "name": "_isNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6191,
+ "src": "4401:12:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 6156,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4401:14:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6157,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4417:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6158,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "PAUSED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 782,
+ "src": "4417:13:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6154,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "4392:8:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6159,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4392:39:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6160,
+ "nodeType": "ExpressionStatement",
+ "src": "4392:39:44"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6151,
+ "nodeType": "StructuredDocumentation",
+ "src": "4277:58:44",
+ "text": " @dev Reverts if the contract is paused."
+ },
+ "id": 6162,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensureNotPaused",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6152,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4365:2:44"
+ },
+ "returnParameters": {
+ "id": 6153,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4382:0:44"
+ },
+ "scope": 6208,
+ "src": "4340:98:44",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6174,
+ "nodeType": "Block",
+ "src": "4550:61:44",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 6169,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "4569:15:44",
+ "subExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6167,
+ "name": "_isNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6191,
+ "src": "4570:12:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 6168,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4570:14:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6170,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4586:6:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6171,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "NOT_PAUSED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 869,
+ "src": "4586:17:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6166,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "4560:8:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6172,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4560:44:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6173,
+ "nodeType": "ExpressionStatement",
+ "src": "4560:44:44"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6163,
+ "nodeType": "StructuredDocumentation",
+ "src": "4444:62:44",
+ "text": " @dev Reverts if the contract is not paused."
+ },
+ "id": 6175,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensurePaused",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6164,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4533:2:44"
+ },
+ "returnParameters": {
+ "id": 6165,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4550:0:44"
+ },
+ "scope": 6208,
+ "src": "4511:100:44",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6190,
+ "nodeType": "Block",
+ "src": "4890:184:44",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 6188,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6185,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 6181,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "5012:5:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 6182,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "5012:15:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 6183,
+ "name": "_getBufferPeriodEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6207,
+ "src": "5030:23:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 6184,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5030:25:44",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5012:43:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "id": 6187,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "!",
+ "prefix": true,
+ "src": "5059:8:44",
+ "subExpression": {
+ "id": 6186,
+ "name": "_paused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6034,
+ "src": "5060:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "5012:55:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 6180,
+ "id": 6189,
+ "nodeType": "Return",
+ "src": "5005:62:44"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6176,
+ "nodeType": "StructuredDocumentation",
+ "src": "4617:215:44",
+ "text": " @dev Returns true if the contract is unpaused.\n Once the Buffer Period expires, the gas cost of calling this function is reduced dramatically, as storage is no\n longer accessed."
+ },
+ "id": 6191,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_isNotPaused",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6177,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4858:2:44"
+ },
+ "returnParameters": {
+ "id": 6180,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6179,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6191,
+ "src": "4884:4:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 6178,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "4884:4:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4883:6:44"
+ },
+ "scope": 6208,
+ "src": "4837:237:44",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6198,
+ "nodeType": "Block",
+ "src": "5252:43:44",
+ "statements": [
+ {
+ "expression": {
+ "id": 6196,
+ "name": "_pauseWindowEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6030,
+ "src": "5269:19:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6195,
+ "id": 6197,
+ "nodeType": "Return",
+ "src": "5262:26:44"
+ }
+ ]
+ },
+ "id": 6199,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getPauseWindowEndTime",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6192,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5218:2:44"
+ },
+ "returnParameters": {
+ "id": 6195,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6194,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6199,
+ "src": "5243:7:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6193,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5243:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5242:9:44"
+ },
+ "scope": 6208,
+ "src": "5187:108:44",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 6206,
+ "nodeType": "Block",
+ "src": "5367:44:44",
+ "statements": [
+ {
+ "expression": {
+ "id": 6204,
+ "name": "_bufferPeriodEndTime",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6032,
+ "src": "5384:20:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6203,
+ "id": 6205,
+ "nodeType": "Return",
+ "src": "5377:27:44"
+ }
+ ]
+ },
+ "id": 6207,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getBufferPeriodEndTime",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6200,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5333:2:44"
+ },
+ "returnParameters": {
+ "id": 6203,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6202,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6207,
+ "src": "5358:7:44",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6201,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5358:7:44",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5357:9:44"
+ },
+ "scope": 6208,
+ "src": "5301:110:44",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 6209,
+ "src": "2002:3411:44"
+ }
+ ],
+ "src": "688:4726:44"
+ },
+ "id": 44
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol",
+ "exportedSymbols": {
+ "WordCodec": [
+ 6736
+ ]
+ },
+ "id": 6737,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 6210,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:45"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 6211,
+ "nodeType": "ImportDirective",
+ "scope": 6737,
+ "sourceUnit": 1012,
+ "src": "713:90:45",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "file": "../math/Math.sol",
+ "id": 6212,
+ "nodeType": "ImportDirective",
+ "scope": 6737,
+ "sourceUnit": 8769,
+ "src": "805:26:45",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "documentation": {
+ "id": 6213,
+ "nodeType": "StructuredDocumentation",
+ "src": "833:1183:45",
+ "text": " @dev Library for encoding and decoding values stored inside a 256 bit word. Typically used to pack multiple values in\n a single storage slot, saving gas by performing less storage accesses.\n Each value is defined by its size and the least significant bit in the word, also known as offset. For example, two\n 128 bit values may be encoded in a word by assigning one an offset of 0, and the other an offset of 128.\n We could use Solidity structs to pack values together in a single storage slot instead of relying on a custom and\n error-prone library, but unfortunately Solidity only allows for structs to live in either storage, calldata or\n memory. Because a memory struct uses not just memory but also a slot in the stack (to store its memory location),\n using memory for word-sized values (i.e. of 256 bits or less) is strictly less gas performant, and doesn't even\n prevent stack-too-deep issues. This is compounded by the fact that Balancer contracts typically are memory-intensive,\n and the cost of accesing memory increases quadratically with the number of allocated words. Manual packing and\n unpacking is therefore the preferred approach."
+ },
+ "fullyImplemented": true,
+ "id": 6736,
+ "linearizedBaseContracts": [
+ 6736
+ ],
+ "name": "WordCodec",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 6221,
+ "mutability": "constant",
+ "name": "_MASK_1",
+ "nodeType": "VariableDeclaration",
+ "scope": 6736,
+ "src": "2211:45:45",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6214,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2211:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "id": 6220,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "id": 6218,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "32",
+ "id": 6215,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2246:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "**",
+ "rightExpression": {
+ "components": [
+ {
+ "hexValue": "31",
+ "id": 6216,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2250:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ }
+ ],
+ "id": 6217,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2249:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ }
+ },
+ "src": "2246:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6219,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2255:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2246:10:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 6229,
+ "mutability": "constant",
+ "name": "_MASK_192",
+ "nodeType": "VariableDeclaration",
+ "scope": 6736,
+ "src": "2262:49:45",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6222,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2262:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512895_by_1",
+ "typeString": "int_const 6277...(50 digits omitted)...2895"
+ },
+ "id": 6228,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512896_by_1",
+ "typeString": "int_const 6277...(50 digits omitted)...2896"
+ },
+ "id": 6226,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "32",
+ "id": 6223,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2299:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "**",
+ "rightExpression": {
+ "components": [
+ {
+ "hexValue": "313932",
+ "id": 6224,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2303:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_192_by_1",
+ "typeString": "int_const 192"
+ },
+ "value": "192"
+ }
+ ],
+ "id": 6225,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2302:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_192_by_1",
+ "typeString": "int_const 192"
+ }
+ },
+ "src": "2299:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512896_by_1",
+ "typeString": "int_const 6277...(50 digits omitted)...2896"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6227,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2310:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2299:12:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_6277101735386680763835789423207666416102355444464034512895_by_1",
+ "typeString": "int_const 6277...(50 digits omitted)...2895"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 6283,
+ "nodeType": "Block",
+ "src": "2666:241:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 6244,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6234,
+ "src": "2700:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 6245,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6236,
+ "src": "2707:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 6246,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6238,
+ "src": "2715:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6243,
+ "name": "_validateEncodingParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 6662,
+ 6735
+ ],
+ "referencedDeclaration": 6662,
+ "src": "2676:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256,uint256) pure"
+ }
+ },
+ "id": 6247,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2676:49:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6248,
+ "nodeType": "ExpressionStatement",
+ "src": "2676:49:45"
+ },
+ {
+ "assignments": [
+ 6250
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6250,
+ "mutability": "mutable",
+ "name": "mask",
+ "nodeType": "VariableDeclaration",
+ "scope": 6283,
+ "src": "2736:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6249,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2736:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6257,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6256,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6253,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "31",
+ "id": 6251,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2752:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6252,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6238,
+ "src": "2757:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2752:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6254,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2751:16:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6255,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2770:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2751:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2736:35:45"
+ },
+ {
+ "assignments": [
+ 6259
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6259,
+ "mutability": "mutable",
+ "name": "clearedWord",
+ "nodeType": "VariableDeclaration",
+ "scope": 6283,
+ "src": "2781:19:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6258,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2781:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6273,
+ "initialValue": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 6264,
+ "name": "word",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6232,
+ "src": "2819:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6263,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2811:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6262,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2811:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6265,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2811:13:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6270,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "~",
+ "prefix": true,
+ "src": "2827:17:45",
+ "subExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6268,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6266,
+ "name": "mask",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6250,
+ "src": "2829:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6267,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6236,
+ "src": "2837:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2829:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6269,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2828:16:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2811:33:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6261,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2803:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6260,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2803:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6272,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2803:42:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2781:64:45"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 6281,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6274,
+ "name": "clearedWord",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6259,
+ "src": "2862:11:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "|",
+ "rightExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6279,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6277,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6234,
+ "src": "2884:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6278,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6236,
+ "src": "2893:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2884:15:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6276,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2876:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6275,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2876:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6280,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2876:24:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "2862:38:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 6242,
+ "id": 6282,
+ "nodeType": "Return",
+ "src": "2855:45:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6230,
+ "nodeType": "StructuredDocumentation",
+ "src": "2345:162:45",
+ "text": " @dev Inserts an unsigned integer of bitLength, shifted by an offset, into a 256 bit word,\n replacing the old value. Returns the new word."
+ },
+ "id": 6284,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "insertUint",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6239,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6232,
+ "mutability": "mutable",
+ "name": "word",
+ "nodeType": "VariableDeclaration",
+ "scope": 6284,
+ "src": "2541:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6231,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2541:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6234,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6284,
+ "src": "2563:13:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6233,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2563:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6236,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6284,
+ "src": "2586:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6235,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2586:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6238,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6284,
+ "src": "2610:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6237,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2610:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2531:102:45"
+ },
+ "returnParameters": {
+ "id": 6242,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6241,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6284,
+ "src": "2657:7:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6240,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2657:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2656:9:45"
+ },
+ "scope": 6736,
+ "src": "2512:395:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6344,
+ "nodeType": "Block",
+ "src": "3287:343:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 6299,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6289,
+ "src": "3321:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ {
+ "id": 6300,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6291,
+ "src": "3328:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 6301,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6293,
+ "src": "3336:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6298,
+ "name": "_validateEncodingParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 6662,
+ 6735
+ ],
+ "referencedDeclaration": 6735,
+ "src": "3297:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (int256,uint256,uint256) pure"
+ }
+ },
+ "id": 6302,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3297:49:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6303,
+ "nodeType": "ExpressionStatement",
+ "src": "3297:49:45"
+ },
+ {
+ "assignments": [
+ 6305
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6305,
+ "mutability": "mutable",
+ "name": "mask",
+ "nodeType": "VariableDeclaration",
+ "scope": 6344,
+ "src": "3357:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6304,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3357:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6312,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6311,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6308,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "31",
+ "id": 6306,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3373:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6307,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6293,
+ "src": "3378:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3373:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6309,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3372:16:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6310,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3391:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "3372:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3357:35:45"
+ },
+ {
+ "assignments": [
+ 6314
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6314,
+ "mutability": "mutable",
+ "name": "clearedWord",
+ "nodeType": "VariableDeclaration",
+ "scope": 6344,
+ "src": "3402:19:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6313,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3402:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6328,
+ "initialValue": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6326,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 6319,
+ "name": "word",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6287,
+ "src": "3440:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6318,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "3432:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6317,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3432:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6320,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3432:13:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6325,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "~",
+ "prefix": true,
+ "src": "3448:17:45",
+ "subExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6323,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6321,
+ "name": "mask",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6305,
+ "src": "3450:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6322,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6291,
+ "src": "3458:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3450:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6324,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3449:16:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3432:33:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6316,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "3424:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6315,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3424:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6327,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3424:42:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3402:64:45"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 6342,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6329,
+ "name": "clearedWord",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6314,
+ "src": "3567:11:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "|",
+ "rightExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6340,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6337,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 6334,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6289,
+ "src": "3598:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 6333,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "3590:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6332,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3590:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6335,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3590:14:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6336,
+ "name": "mask",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6305,
+ "src": "3607:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3590:21:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6338,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3589:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6339,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6291,
+ "src": "3616:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3589:33:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6331,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "3581:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6330,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3581:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6341,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3581:42:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "3567:56:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 6297,
+ "id": 6343,
+ "nodeType": "Return",
+ "src": "3560:63:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6285,
+ "nodeType": "StructuredDocumentation",
+ "src": "2913:217:45",
+ "text": " @dev Inserts a signed integer shifted by an offset into a 256 bit word, replacing the old value. Returns\n the new word.\n Assumes `value` can be represented using `bitLength` bits."
+ },
+ "id": 6345,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "insertInt",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6294,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6287,
+ "mutability": "mutable",
+ "name": "word",
+ "nodeType": "VariableDeclaration",
+ "scope": 6345,
+ "src": "3163:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6286,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3163:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6289,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6345,
+ "src": "3185:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 6288,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3185:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6291,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6345,
+ "src": "3207:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6290,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3207:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6293,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6345,
+ "src": "3231:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6292,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3231:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3153:101:45"
+ },
+ "returnParameters": {
+ "id": 6297,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6296,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6345,
+ "src": "3278:7:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6295,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3278:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3277:9:45"
+ },
+ "scope": 6736,
+ "src": "3135:495:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6370,
+ "nodeType": "Block",
+ "src": "4015:108:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 6358,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6348,
+ "src": "4049:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 6359,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6350,
+ "src": "4056:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 6360,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6352,
+ "src": "4064:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6357,
+ "name": "_validateEncodingParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 6662,
+ 6735
+ ],
+ "referencedDeclaration": 6662,
+ "src": "4025:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256,uint256) pure"
+ }
+ },
+ "id": 6361,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4025:49:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6362,
+ "nodeType": "ExpressionStatement",
+ "src": "4025:49:45"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6367,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6365,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6348,
+ "src": "4100:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6366,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6350,
+ "src": "4109:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4100:15:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6364,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "4092:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6363,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4092:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6368,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4092:24:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 6356,
+ "id": 6369,
+ "nodeType": "Return",
+ "src": "4085:31:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6346,
+ "nodeType": "StructuredDocumentation",
+ "src": "3653:225:45",
+ "text": " @dev Encodes an unsigned integer shifted by an offset. Ensures value fits within\n `bitLength` bits.\n The return value can be ORed bitwise with other encoded values to form a 256 bit word."
+ },
+ "id": 6371,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "encodeUint",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6353,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6348,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6371,
+ "src": "3912:13:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6347,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3912:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6350,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6371,
+ "src": "3935:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6349,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3935:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6352,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6371,
+ "src": "3959:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6351,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3959:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3902:80:45"
+ },
+ "returnParameters": {
+ "id": 6356,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6355,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6371,
+ "src": "4006:7:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6354,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4006:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4005:9:45"
+ },
+ "scope": 6736,
+ "src": "3883:240:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6411,
+ "nodeType": "Block",
+ "src": "4435:255:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 6384,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6374,
+ "src": "4469:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ {
+ "id": 6385,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6376,
+ "src": "4476:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 6386,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6378,
+ "src": "4484:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6383,
+ "name": "_validateEncodingParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 6662,
+ 6735
+ ],
+ "referencedDeclaration": 6735,
+ "src": "4445:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (int256,uint256,uint256) pure"
+ }
+ },
+ "id": 6387,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4445:49:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6388,
+ "nodeType": "ExpressionStatement",
+ "src": "4445:49:45"
+ },
+ {
+ "assignments": [
+ 6390
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6390,
+ "mutability": "mutable",
+ "name": "mask",
+ "nodeType": "VariableDeclaration",
+ "scope": 6411,
+ "src": "4505:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6389,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4505:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6397,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6396,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6393,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "31",
+ "id": 6391,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4521:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6392,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6378,
+ "src": "4526:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4521:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6394,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "4520:16:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6395,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4539:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "4520:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4505:35:45"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6408,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6405,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 6402,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6374,
+ "src": "4658:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 6401,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "4650:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6400,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4650:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6403,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4650:14:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6404,
+ "name": "mask",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6390,
+ "src": "4667:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4650:21:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6406,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "4649:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6407,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6376,
+ "src": "4676:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4649:33:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6399,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "4641:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6398,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4641:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6409,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4641:42:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 6382,
+ "id": 6410,
+ "nodeType": "Return",
+ "src": "4634:49:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6372,
+ "nodeType": "StructuredDocumentation",
+ "src": "4129:171:45",
+ "text": " @dev Encodes a signed integer shifted by an offset.\n The return value can be ORed bitwise with other encoded values to form a 256 bit word."
+ },
+ "id": 6412,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "encodeInt",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6379,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6374,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6412,
+ "src": "4333:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 6373,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4333:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6376,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6412,
+ "src": "4355:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6375,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4355:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6378,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6412,
+ "src": "4379:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6377,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4379:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4323:79:45"
+ },
+ "returnParameters": {
+ "id": 6382,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6381,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6412,
+ "src": "4426:7:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6380,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4426:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4425:9:45"
+ },
+ "scope": 6736,
+ "src": "4305:385:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6439,
+ "nodeType": "Block",
+ "src": "4978:72:45",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6437,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 6428,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6426,
+ "name": "word",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6415,
+ "src": "5003:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "id": 6427,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6417,
+ "src": "5011:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5003:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6425,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "4995:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6424,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4995:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6429,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4995:23:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6435,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6432,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "31",
+ "id": 6430,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5023:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6431,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6419,
+ "src": "5028:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5023:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6433,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5022:16:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6434,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5041:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "5022:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6436,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5021:22:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4995:48:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6423,
+ "id": 6438,
+ "nodeType": "Return",
+ "src": "4988:55:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6413,
+ "nodeType": "StructuredDocumentation",
+ "src": "4713:129:45",
+ "text": " @dev Decodes and returns an unsigned integer with `bitLength` bits, shifted by an offset, from a 256 bit word."
+ },
+ "id": 6440,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "decodeUint",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6420,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6415,
+ "mutability": "mutable",
+ "name": "word",
+ "nodeType": "VariableDeclaration",
+ "scope": 6440,
+ "src": "4876:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6414,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "4876:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6417,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6440,
+ "src": "4898:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6416,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4898:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6419,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6440,
+ "src": "4922:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6418,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4922:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4866:79:45"
+ },
+ "returnParameters": {
+ "id": 6423,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6422,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6440,
+ "src": "4969:7:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6421,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4969:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4968:9:45"
+ },
+ "scope": 6736,
+ "src": "4847:203:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6504,
+ "nodeType": "Block",
+ "src": "5316:505:45",
+ "statements": [
+ {
+ "assignments": [
+ 6453
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6453,
+ "mutability": "mutable",
+ "name": "maxInt",
+ "nodeType": "VariableDeclaration",
+ "scope": 6504,
+ "src": "5326:13:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 6452,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5326:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6466,
+ "initialValue": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6464,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6461,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "31",
+ "id": 6456,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5350:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6459,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6457,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6447,
+ "src": "5356:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6458,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5368:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "5356:13:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6460,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5355:15:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5350:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6462,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5349:22:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6463,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5374:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "5349:26:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6455,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5342:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_int256_$",
+ "typeString": "type(int256)"
+ },
+ "typeName": {
+ "id": 6454,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5342:6:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6465,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5342:34:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5326:50:45"
+ },
+ {
+ "assignments": [
+ 6468
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6468,
+ "mutability": "mutable",
+ "name": "mask",
+ "nodeType": "VariableDeclaration",
+ "scope": 6504,
+ "src": "5386:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6467,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5386:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6475,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6474,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6471,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "31",
+ "id": 6469,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5402:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6470,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6447,
+ "src": "5407:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5402:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6472,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5401:16:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6473,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5420:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "5401:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5386:35:45"
+ },
+ {
+ "assignments": [
+ 6477
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6477,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6504,
+ "src": "5432:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 6476,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5432:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6489,
+ "initialValue": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6487,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 6484,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6482,
+ "name": "word",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6443,
+ "src": "5462:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "id": 6483,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6445,
+ "src": "5470:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5462:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6481,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5454:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6480,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5454:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6485,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5454:23:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6486,
+ "name": "mask",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6468,
+ "src": "5480:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5454:30:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6479,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5447:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_int256_$",
+ "typeString": "type(int256)"
+ },
+ "typeName": {
+ "id": 6478,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5447:6:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6488,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5447:38:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5432:53:45"
+ },
+ {
+ "expression": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 6492,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6490,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6477,
+ "src": "5766:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "id": 6491,
+ "name": "maxInt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6453,
+ "src": "5774:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "5766:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 6501,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6477,
+ "src": "5809:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 6502,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5766:48:45",
+ "trueExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 6499,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6493,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6477,
+ "src": "5784:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "|",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 6497,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "~",
+ "prefix": true,
+ "src": "5799:5:45",
+ "subExpression": {
+ "id": 6496,
+ "name": "mask",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6468,
+ "src": "5800:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6495,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5792:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_int256_$",
+ "typeString": "type(int256)"
+ },
+ "typeName": {
+ "id": 6494,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5792:6:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6498,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5792:13:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "5784:21:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 6500,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5783:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 6451,
+ "id": 6503,
+ "nodeType": "Return",
+ "src": "5759:55:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6441,
+ "nodeType": "StructuredDocumentation",
+ "src": "5056:126:45",
+ "text": " @dev Decodes and returns a signed integer with `bitLength` bits, shifted by an offset, from a 256 bit word."
+ },
+ "id": 6505,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "decodeInt",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6448,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6443,
+ "mutability": "mutable",
+ "name": "word",
+ "nodeType": "VariableDeclaration",
+ "scope": 6505,
+ "src": "5215:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6442,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "5215:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6445,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6505,
+ "src": "5237:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6444,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5237:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6447,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6505,
+ "src": "5261:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6446,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5261:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5205:79:45"
+ },
+ "returnParameters": {
+ "id": 6451,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6450,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6505,
+ "src": "5308:6:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 6449,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5308:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5307:8:45"
+ },
+ "scope": 6736,
+ "src": "5187:634:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6527,
+ "nodeType": "Block",
+ "src": "6028:64:45",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6525,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6522,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 6519,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6517,
+ "name": "word",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6508,
+ "src": "6054:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "id": 6518,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6510,
+ "src": "6062:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6054:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6516,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6046:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6515,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6046:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6520,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6046:23:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6521,
+ "name": "_MASK_1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6221,
+ "src": "6072:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6046:33:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6523,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6045:35:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6524,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6084:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "6045:40:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 6514,
+ "id": 6526,
+ "nodeType": "Return",
+ "src": "6038:47:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6506,
+ "nodeType": "StructuredDocumentation",
+ "src": "5849:95:45",
+ "text": " @dev Decodes and returns a boolean shifted by an offset from a 256 bit word."
+ },
+ "id": 6528,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "decodeBool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6511,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6508,
+ "mutability": "mutable",
+ "name": "word",
+ "nodeType": "VariableDeclaration",
+ "scope": 6528,
+ "src": "5969:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6507,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "5969:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6510,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6528,
+ "src": "5983:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6509,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5983:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5968:30:45"
+ },
+ "returnParameters": {
+ "id": 6514,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6513,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6528,
+ "src": "6022:4:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 6512,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "6022:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6021:6:45"
+ },
+ "scope": 6736,
+ "src": "5949:143:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6571,
+ "nodeType": "Block",
+ "src": "6441:164:45",
+ "statements": [
+ {
+ "assignments": [
+ 6541
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6541,
+ "mutability": "mutable",
+ "name": "clearedWord",
+ "nodeType": "VariableDeclaration",
+ "scope": 6571,
+ "src": "6451:19:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6540,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6451:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6555,
+ "initialValue": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6553,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 6546,
+ "name": "word",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6531,
+ "src": "6489:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6545,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6481:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6544,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6481:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6547,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6481:13:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6552,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "~",
+ "prefix": true,
+ "src": "6497:22:45",
+ "subExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6550,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6548,
+ "name": "_MASK_192",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6229,
+ "src": "6499:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6549,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6535,
+ "src": "6512:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6499:19:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6551,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6498:21:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6481:38:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6543,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6473:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6542,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6473:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6554,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6473:47:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6451:69:45"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 6569,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6556,
+ "name": "clearedWord",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6541,
+ "src": "6537:11:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "|",
+ "rightExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6567,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6564,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 6561,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6533,
+ "src": "6568:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6560,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6560:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6559,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6560:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6562,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6560:14:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6563,
+ "name": "_MASK_192",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6229,
+ "src": "6577:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6560:26:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6565,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6559:28:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6566,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6535,
+ "src": "6591:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6559:38:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6558,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6551:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6557,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6551:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6568,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6551:47:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "6537:61:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 6539,
+ "id": 6570,
+ "nodeType": "Return",
+ "src": "6530:68:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6529,
+ "nodeType": "StructuredDocumentation",
+ "src": "6098:208:45",
+ "text": " @dev Inserts a 192 bit value shifted by an offset into a 256 bit word, replacing the old value.\n Returns the new word.\n Assumes `value` can be represented using 192 bits."
+ },
+ "id": 6572,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "insertBits192",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6536,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6531,
+ "mutability": "mutable",
+ "name": "word",
+ "nodeType": "VariableDeclaration",
+ "scope": 6572,
+ "src": "6343:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6530,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6343:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6533,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6572,
+ "src": "6365:13:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6532,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6365:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6535,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6572,
+ "src": "6388:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6534,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6388:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6333:75:45"
+ },
+ "returnParameters": {
+ "id": 6539,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6538,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6572,
+ "src": "6432:7:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6537,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6432:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6431:9:45"
+ },
+ "scope": 6736,
+ "src": "6311:294:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6615,
+ "nodeType": "Block",
+ "src": "6883:156:45",
+ "statements": [
+ {
+ "assignments": [
+ 6585
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6585,
+ "mutability": "mutable",
+ "name": "clearedWord",
+ "nodeType": "VariableDeclaration",
+ "scope": 6615,
+ "src": "6893:19:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6584,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6893:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6599,
+ "initialValue": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6597,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 6590,
+ "name": "word",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6575,
+ "src": "6931:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 6589,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6923:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6588,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6923:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6591,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6923:13:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&",
+ "rightExpression": {
+ "id": 6596,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "~",
+ "prefix": true,
+ "src": "6939:20:45",
+ "subExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6594,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6592,
+ "name": "_MASK_1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6221,
+ "src": "6941:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6593,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6579,
+ "src": "6952:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6941:17:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6595,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6940:19:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6923:36:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6587,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6915:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6586,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6915:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6598,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6915:45:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6893:67:45"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 6613,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6600,
+ "name": "clearedWord",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6585,
+ "src": "6977:11:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "|",
+ "rightExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6611,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "condition": {
+ "id": 6605,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6577,
+ "src": "7007:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "hexValue": "30",
+ "id": 6607,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7019:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "id": 6608,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "7007:13:45",
+ "trueExpression": {
+ "hexValue": "31",
+ "id": 6606,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7015:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ ],
+ "id": 6604,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6999:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 6603,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6999:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6609,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6999:22:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<<",
+ "rightExpression": {
+ "id": 6610,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6579,
+ "src": "7025:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6999:32:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6602,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6991:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 6601,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6991:7:45",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 6612,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6991:41:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "6977:55:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 6583,
+ "id": 6614,
+ "nodeType": "Return",
+ "src": "6970:62:45"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6573,
+ "nodeType": "StructuredDocumentation",
+ "src": "6611:143:45",
+ "text": " @dev Inserts a boolean value shifted by an offset into a 256 bit word, replacing the old value. Returns the new\n word."
+ },
+ "id": 6616,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "insertBool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6580,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6575,
+ "mutability": "mutable",
+ "name": "word",
+ "nodeType": "VariableDeclaration",
+ "scope": 6616,
+ "src": "6788:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6574,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6788:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6577,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6616,
+ "src": "6810:10:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 6576,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "6810:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6579,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6616,
+ "src": "6830:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6578,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6830:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6778:72:45"
+ },
+ "returnParameters": {
+ "id": 6583,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6582,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6616,
+ "src": "6874:7:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 6581,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6874:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6873:9:45"
+ },
+ "scope": 6736,
+ "src": "6759:280:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6661,
+ "nodeType": "Block",
+ "src": "7187:481:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6628,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6626,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6620,
+ "src": "7206:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "hexValue": "323536",
+ "id": 6627,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7215:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_256_by_1",
+ "typeString": "int_const 256"
+ },
+ "value": "256"
+ },
+ "src": "7206:12:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6629,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7220:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6630,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "7220:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6625,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "7197:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6631,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7197:44:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6632,
+ "nodeType": "ExpressionStatement",
+ "src": "7197:44:45"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 6646,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6636,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6634,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6622,
+ "src": "7415:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6635,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7428:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "7415:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6645,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6637,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6622,
+ "src": "7433:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "323535",
+ "id": 6640,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7455:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ "value": "255"
+ },
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6643,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "323536",
+ "id": 6641,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7460:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_256_by_1",
+ "typeString": "int_const 256"
+ },
+ "value": "256"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 6642,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6620,
+ "src": "7466:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7460:12:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 6638,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "7446:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 6639,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "min",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8655,
+ "src": "7446:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 6644,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7446:27:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7433:40:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "7415:58:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6647,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7475:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6648,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "7475:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6633,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "7406:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6649,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7406:90:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6650,
+ "nodeType": "ExpressionStatement",
+ "src": "7406:90:45"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6656,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6654,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6652,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6618,
+ "src": "7614:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "id": 6653,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6622,
+ "src": "7623:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7614:18:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6655,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7636:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "7614:23:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6657,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7639:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6658,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "CODEC_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 884,
+ "src": "7639:21:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6651,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "7605:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6659,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7605:56:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6660,
+ "nodeType": "ExpressionStatement",
+ "src": "7605:56:45"
+ }
+ ]
+ },
+ "id": 6662,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_validateEncodingParams",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6623,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6618,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6662,
+ "src": "7103:13:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6617,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7103:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6620,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6662,
+ "src": "7126:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6619,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7126:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6622,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6662,
+ "src": "7150:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6621,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7150:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7093:80:45"
+ },
+ "returnParameters": {
+ "id": 6624,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7187:0:45"
+ },
+ "scope": 6736,
+ "src": "7061:607:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 6734,
+ "nodeType": "Block",
+ "src": "7799:988:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6674,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6672,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6666,
+ "src": "7818:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "hexValue": "323536",
+ "id": 6673,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7827:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_256_by_1",
+ "typeString": "int_const 256"
+ },
+ "value": "256"
+ },
+ "src": "7818:12:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6675,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7832:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6676,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "7832:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6671,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "7809:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6677,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7809:44:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6678,
+ "nodeType": "ExpressionStatement",
+ "src": "7809:44:45"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 6692,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6682,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6680,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6668,
+ "src": "8027:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6681,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8040:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "8027:14:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6691,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6683,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6668,
+ "src": "8045:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "323535",
+ "id": 6686,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8067:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ "value": "255"
+ },
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6689,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "323536",
+ "id": 6687,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8072:3:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_256_by_1",
+ "typeString": "int_const 256"
+ },
+ "value": "256"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 6688,
+ "name": "offset",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6666,
+ "src": "8078:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8072:12:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 6684,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "8058:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 6685,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "min",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8655,
+ "src": "8058:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 6690,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8058:27:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8045:40:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "8027:58:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6693,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "8087:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6694,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "8087:20:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6679,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "8018:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6695,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8018:90:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6696,
+ "nodeType": "ExpressionStatement",
+ "src": "8018:90:45"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 6699,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6697,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6664,
+ "src": "8189:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6698,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8198:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "8189:10:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 6732,
+ "nodeType": "Block",
+ "src": "8455:326:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6727,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6725,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 6719,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6717,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6664,
+ "src": "8712:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6718,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8720:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "8712:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "expression": {
+ "id": 6715,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "8703:4:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 6716,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "abs",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8483,
+ "src": "8703:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_uint256_$",
+ "typeString": "function (int256) pure returns (uint256)"
+ }
+ },
+ "id": 6720,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8703:19:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6723,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6721,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6668,
+ "src": "8727:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6722,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8739:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "8727:13:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6724,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "8726:15:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8703:38:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6726,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8745:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "8703:43:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6728,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "8748:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6729,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "CODEC_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 884,
+ "src": "8748:21:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6714,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "8694:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6730,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8694:76:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6731,
+ "nodeType": "ExpressionStatement",
+ "src": "8694:76:45"
+ }
+ ]
+ },
+ "id": 6733,
+ "nodeType": "IfStatement",
+ "src": "8185:596:45",
+ "trueBody": {
+ "id": 6713,
+ "nodeType": "Block",
+ "src": "8201:248:45",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 6708,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 6706,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6701,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6664,
+ "src": "8385:5:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6704,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6702,
+ "name": "bitLength",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6668,
+ "src": "8395:9:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6703,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8407:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "8395:13:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6705,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "8394:15:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8385:24:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6707,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8413:1:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "8385:29:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6709,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "8416:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6710,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "CODEC_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 884,
+ "src": "8416:21:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6700,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "8376:8:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6711,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8376:62:45",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6712,
+ "nodeType": "ExpressionStatement",
+ "src": "8376:62:45"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 6735,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_validateEncodingParams",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6669,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6664,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 6735,
+ "src": "7716:12:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 6663,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7716:6:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6666,
+ "mutability": "mutable",
+ "name": "offset",
+ "nodeType": "VariableDeclaration",
+ "scope": 6735,
+ "src": "7738:14:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6665,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7738:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6668,
+ "mutability": "mutable",
+ "name": "bitLength",
+ "nodeType": "VariableDeclaration",
+ "scope": 6735,
+ "src": "7762:17:45",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6667,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7762:7:45",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7706:79:45"
+ },
+ "returnParameters": {
+ "id": 6670,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7799:0:45"
+ },
+ "scope": 6736,
+ "src": "7674:1113:45",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 6737,
+ "src": "2017:6772:45"
+ }
+ ],
+ "src": "688:8102:45"
+ },
+ "id": 45
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "exportedSymbols": {
+ "FixedPoint": [
+ 7158
+ ]
+ },
+ "id": 7159,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 6738,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:46"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 6739,
+ "nodeType": "ImportDirective",
+ "scope": 7159,
+ "sourceUnit": 1012,
+ "src": "713:90:46",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol",
+ "file": "./LogExpMath.sol",
+ "id": 6740,
+ "nodeType": "ImportDirective",
+ "scope": 7159,
+ "sourceUnit": 8457,
+ "src": "805:26:46",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "fullyImplemented": true,
+ "id": 7158,
+ "linearizedBaseContracts": [
+ 7158
+ ],
+ "name": "FixedPoint",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 6743,
+ "mutability": "constant",
+ "name": "ONE",
+ "nodeType": "VariableDeclaration",
+ "scope": 7158,
+ "src": "913:36:46",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6741,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "913:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "31653138",
+ "id": 6742,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "945:4:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1000000000000000000_by_1",
+ "typeString": "int_const 1000000000000000000"
+ },
+ "value": "1e18"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 6748,
+ "mutability": "constant",
+ "name": "TWO",
+ "nodeType": "VariableDeclaration",
+ "scope": 7158,
+ "src": "976:39:46",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6744,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "976:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6747,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "32",
+ "id": 6745,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1008:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 6746,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "1012:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1008:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 6753,
+ "mutability": "constant",
+ "name": "FOUR",
+ "nodeType": "VariableDeclaration",
+ "scope": 7158,
+ "src": "1021:40:46",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6749,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1021:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6752,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "34",
+ "id": 6750,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1054:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4_by_1",
+ "typeString": "int_const 4"
+ },
+ "value": "4"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 6751,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "1058:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1054:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 6756,
+ "mutability": "constant",
+ "name": "MAX_POW_RELATIVE_ERROR",
+ "nodeType": "VariableDeclaration",
+ "scope": 7158,
+ "src": "1067:56:46",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6754,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1067:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3130303030",
+ "id": 6755,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1118:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_10000_by_1",
+ "typeString": "int_const 10000"
+ },
+ "value": "10000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 6759,
+ "mutability": "constant",
+ "name": "MIN_POW_BASE_FREE_EXPONENT",
+ "nodeType": "VariableDeclaration",
+ "scope": 7158,
+ "src": "1232:61:46",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6757,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1232:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "302e37653138",
+ "id": 6758,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1287:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_700000000000000000_by_1",
+ "typeString": "int_const 700000000000000000"
+ },
+ "value": "0.7e18"
+ },
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6784,
+ "nodeType": "Block",
+ "src": "1367:172:46",
+ "statements": [
+ {
+ "assignments": [
+ 6769
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6769,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 6784,
+ "src": "1450:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6768,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1450:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6773,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6772,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6770,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6761,
+ "src": "1462:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 6771,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6763,
+ "src": "1466:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1462:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1450:17:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6777,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6775,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6769,
+ "src": "1486:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 6776,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6761,
+ "src": "1491:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1486:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6778,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1494:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6779,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ADD_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 533,
+ "src": "1494:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6774,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1477:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6780,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1477:37:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6781,
+ "nodeType": "ExpressionStatement",
+ "src": "1477:37:46"
+ },
+ {
+ "expression": {
+ "id": 6782,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6769,
+ "src": "1531:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6767,
+ "id": 6783,
+ "nodeType": "Return",
+ "src": "1524:8:46"
+ }
+ ]
+ },
+ "id": 6785,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "add",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6764,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6761,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 6785,
+ "src": "1313:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6760,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1313:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6763,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 6785,
+ "src": "1324:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6762,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1324:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1312:22:46"
+ },
+ "returnParameters": {
+ "id": 6767,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6766,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6785,
+ "src": "1358:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6765,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1358:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1357:9:46"
+ },
+ "scope": 7158,
+ "src": "1300:239:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6810,
+ "nodeType": "Block",
+ "src": "1612:172:46",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6797,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6795,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6789,
+ "src": "1704:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 6796,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6787,
+ "src": "1709:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1704:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6798,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1712:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6799,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SUB_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 536,
+ "src": "1712:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6794,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1695:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6800,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1695:37:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6801,
+ "nodeType": "ExpressionStatement",
+ "src": "1695:37:46"
+ },
+ {
+ "assignments": [
+ 6803
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6803,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 6810,
+ "src": "1742:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6802,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1742:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6807,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6806,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6804,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6787,
+ "src": "1754:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 6805,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6789,
+ "src": "1758:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1754:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1742:17:46"
+ },
+ {
+ "expression": {
+ "id": 6808,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6803,
+ "src": "1776:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6793,
+ "id": 6809,
+ "nodeType": "Return",
+ "src": "1769:8:46"
+ }
+ ]
+ },
+ "id": 6811,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "sub",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6790,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6787,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 6811,
+ "src": "1558:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6786,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1558:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6789,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 6811,
+ "src": "1569:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6788,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1569:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1557:22:46"
+ },
+ "returnParameters": {
+ "id": 6793,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6792,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6811,
+ "src": "1603:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6791,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1603:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1602:9:46"
+ },
+ "scope": 7158,
+ "src": "1545:239:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6844,
+ "nodeType": "Block",
+ "src": "1861:138:46",
+ "statements": [
+ {
+ "assignments": [
+ 6821
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6821,
+ "mutability": "mutable",
+ "name": "product",
+ "nodeType": "VariableDeclaration",
+ "scope": 6844,
+ "src": "1871:15:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6820,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1871:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6825,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6824,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6822,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6813,
+ "src": "1889:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 6823,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6815,
+ "src": "1893:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1889:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1871:23:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 6835,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6829,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6827,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6813,
+ "src": "1913:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6828,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1918:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1913:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6834,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6832,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6830,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6821,
+ "src": "1923:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6831,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6813,
+ "src": "1933:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1923:11:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 6833,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6815,
+ "src": "1938:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1923:16:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1913:26:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6836,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1941:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6837,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MUL_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 542,
+ "src": "1941:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6826,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1904:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6838,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1904:57:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6839,
+ "nodeType": "ExpressionStatement",
+ "src": "1904:57:46"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6842,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6840,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6821,
+ "src": "1979:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6841,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "1989:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1979:13:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6819,
+ "id": 6843,
+ "nodeType": "Return",
+ "src": "1972:20:46"
+ }
+ ]
+ },
+ "id": 6845,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "mulDown",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6816,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6813,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 6845,
+ "src": "1807:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6812,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1807:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6815,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 6845,
+ "src": "1818:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6814,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1818:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1806:22:46"
+ },
+ "returnParameters": {
+ "id": 6819,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6818,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6845,
+ "src": "1852:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6817,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1852:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1851:9:46"
+ },
+ "scope": 7158,
+ "src": "1790:209:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6892,
+ "nodeType": "Block",
+ "src": "2074:548:46",
+ "statements": [
+ {
+ "assignments": [
+ 6855
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6855,
+ "mutability": "mutable",
+ "name": "product",
+ "nodeType": "VariableDeclaration",
+ "scope": 6892,
+ "src": "2084:15:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6854,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2084:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6859,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6858,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6856,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6847,
+ "src": "2102:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 6857,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6849,
+ "src": "2106:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2102:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2084:23:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 6869,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6863,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6861,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6847,
+ "src": "2126:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6862,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2131:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2126:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6868,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6866,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6864,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6855,
+ "src": "2136:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6865,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6847,
+ "src": "2146:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2136:11:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 6867,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6849,
+ "src": "2151:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2136:16:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "2126:26:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6870,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2154:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6871,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MUL_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 542,
+ "src": "2154:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6860,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2117:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6872,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2117:57:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6873,
+ "nodeType": "ExpressionStatement",
+ "src": "2117:57:46"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6876,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6874,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6855,
+ "src": "2189:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6875,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2200:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2189:12:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 6890,
+ "nodeType": "Block",
+ "src": "2242:374:46",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6888,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6885,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6882,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6880,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6855,
+ "src": "2582:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6881,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2592:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2582:11:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6883,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2581:13:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6884,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "2597:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2581:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6886,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2580:21:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6887,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2604:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2580:25:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6853,
+ "id": 6889,
+ "nodeType": "Return",
+ "src": "2573:32:46"
+ }
+ ]
+ },
+ "id": 6891,
+ "nodeType": "IfStatement",
+ "src": "2185:431:46",
+ "trueBody": {
+ "id": 6879,
+ "nodeType": "Block",
+ "src": "2203:33:46",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "30",
+ "id": 6877,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2224:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 6853,
+ "id": 6878,
+ "nodeType": "Return",
+ "src": "2217:8:46"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 6893,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "mulUp",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6850,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6847,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 6893,
+ "src": "2020:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6846,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2020:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6849,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 6893,
+ "src": "2031:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6848,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2031:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2019:22:46"
+ },
+ "returnParameters": {
+ "id": 6853,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6852,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6893,
+ "src": "2065:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6851,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2065:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2064:9:46"
+ },
+ "scope": 7158,
+ "src": "2005:617:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6938,
+ "nodeType": "Block",
+ "src": "2699:284:46",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6905,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6903,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6897,
+ "src": "2718:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6904,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2723:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2718:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6906,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2726:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6907,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ZERO_DIVISION",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 545,
+ "src": "2726:20:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6902,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2709:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6908,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2709:38:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6909,
+ "nodeType": "ExpressionStatement",
+ "src": "2709:38:46"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6912,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6910,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6895,
+ "src": "2762:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6911,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2767:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2762:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 6936,
+ "nodeType": "Block",
+ "src": "2809:168:46",
+ "statements": [
+ {
+ "assignments": [
+ 6917
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6917,
+ "mutability": "mutable",
+ "name": "aInflated",
+ "nodeType": "VariableDeclaration",
+ "scope": 6936,
+ "src": "2823:17:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6916,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2823:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6921,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6920,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6918,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6895,
+ "src": "2843:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 6919,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "2847:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2843:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2823:27:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6927,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6925,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6923,
+ "name": "aInflated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6917,
+ "src": "2873:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6924,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6895,
+ "src": "2885:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2873:13:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 6926,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "2890:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2873:20:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6928,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2895:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6929,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "DIV_INTERNAL",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 548,
+ "src": "2895:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6922,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2864:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6930,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2864:51:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6931,
+ "nodeType": "ExpressionStatement",
+ "src": "2864:51:46"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6934,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6932,
+ "name": "aInflated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6917,
+ "src": "2953:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6933,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6897,
+ "src": "2965:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2953:13:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6901,
+ "id": 6935,
+ "nodeType": "Return",
+ "src": "2946:20:46"
+ }
+ ]
+ },
+ "id": 6937,
+ "nodeType": "IfStatement",
+ "src": "2758:219:46",
+ "trueBody": {
+ "id": 6915,
+ "nodeType": "Block",
+ "src": "2770:33:46",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "30",
+ "id": 6913,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2791:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 6901,
+ "id": 6914,
+ "nodeType": "Return",
+ "src": "2784:8:46"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 6939,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "divDown",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6898,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6895,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 6939,
+ "src": "2645:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6894,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2645:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6897,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 6939,
+ "src": "2656:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6896,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2656:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2644:22:46"
+ },
+ "returnParameters": {
+ "id": 6901,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6900,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6939,
+ "src": "2690:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6899,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2690:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2689:9:46"
+ },
+ "scope": 7158,
+ "src": "2628:355:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 6990,
+ "nodeType": "Block",
+ "src": "3058:613:46",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6951,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6949,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6943,
+ "src": "3077:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6950,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3082:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "3077:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6952,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "3085:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6953,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ZERO_DIVISION",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 545,
+ "src": "3085:20:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6948,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "3068:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6954,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3068:38:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6955,
+ "nodeType": "ExpressionStatement",
+ "src": "3068:38:46"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6958,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6956,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6941,
+ "src": "3121:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 6957,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3126:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "3121:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 6988,
+ "nodeType": "Block",
+ "src": "3168:497:46",
+ "statements": [
+ {
+ "assignments": [
+ 6963
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 6963,
+ "mutability": "mutable",
+ "name": "aInflated",
+ "nodeType": "VariableDeclaration",
+ "scope": 6988,
+ "src": "3182:17:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6962,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3182:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 6967,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6966,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6964,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6941,
+ "src": "3202:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 6965,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "3206:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3202:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3182:27:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6973,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6971,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6969,
+ "name": "aInflated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6963,
+ "src": "3232:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6970,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6941,
+ "src": "3244:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3232:13:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 6972,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "3249:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3232:20:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 6974,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "3254:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 6975,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "DIV_INTERNAL",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 548,
+ "src": "3254:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 6968,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "3223:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 6976,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3223:51:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 6977,
+ "nodeType": "ExpressionStatement",
+ "src": "3223:51:46"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6986,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6983,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 6980,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 6978,
+ "name": "aInflated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6963,
+ "src": "3631:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6979,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3643:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "3631:13:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6981,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3630:15:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 6982,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6943,
+ "src": "3648:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3630:19:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 6984,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3629:21:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 6985,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3653:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "3629:25:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 6947,
+ "id": 6987,
+ "nodeType": "Return",
+ "src": "3622:32:46"
+ }
+ ]
+ },
+ "id": 6989,
+ "nodeType": "IfStatement",
+ "src": "3117:548:46",
+ "trueBody": {
+ "id": 6961,
+ "nodeType": "Block",
+ "src": "3129:33:46",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "30",
+ "id": 6959,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3150:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 6947,
+ "id": 6960,
+ "nodeType": "Return",
+ "src": "3143:8:46"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 6991,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "divUp",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6944,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6941,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 6991,
+ "src": "3004:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6940,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3004:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6943,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 6991,
+ "src": "3015:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6942,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3015:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3003:22:46"
+ },
+ "returnParameters": {
+ "id": 6947,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6946,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 6991,
+ "src": "3049:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6945,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3049:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3048:9:46"
+ },
+ "scope": 7158,
+ "src": "2989:682:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 7067,
+ "nodeType": "Block",
+ "src": "3974:681:46",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7003,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7001,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6996,
+ "src": "4142:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 7002,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "4147:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4142:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7009,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7007,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6996,
+ "src": "4195:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 7008,
+ "name": "TWO",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6748,
+ "src": "4200:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4195:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7018,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7016,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6996,
+ "src": "4260:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 7017,
+ "name": "FOUR",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6753,
+ "src": "4265:4:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4260:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7063,
+ "nodeType": "Block",
+ "src": "4376:273:46",
+ "statements": [
+ {
+ "assignments": [
+ 7033
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7033,
+ "mutability": "mutable",
+ "name": "raw",
+ "nodeType": "VariableDeclaration",
+ "scope": 7063,
+ "src": "4390:11:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7032,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4390:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7039,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 7036,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6994,
+ "src": "4419:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7037,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6996,
+ "src": "4422:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 7034,
+ "name": "LogExpMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8456,
+ "src": "4404:10:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_LogExpMath_$8456_$",
+ "typeString": "type(library LogExpMath)"
+ }
+ },
+ "id": 7035,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "pow",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 7400,
+ "src": "4404:14:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7038,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4404:20:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4390:34:46"
+ },
+ {
+ "assignments": [
+ 7041
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7041,
+ "mutability": "mutable",
+ "name": "maxError",
+ "nodeType": "VariableDeclaration",
+ "scope": 7063,
+ "src": "4438:16:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7040,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4438:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7049,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 7044,
+ "name": "raw",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7033,
+ "src": "4467:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7045,
+ "name": "MAX_POW_RELATIVE_ERROR",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6756,
+ "src": "4472:22:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7043,
+ "name": "mulUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6893,
+ "src": "4461:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7046,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4461:34:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "hexValue": "31",
+ "id": 7047,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4497:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ }
+ ],
+ "id": 7042,
+ "name": "add",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6785,
+ "src": "4457:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7048,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4457:42:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4438:61:46"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7052,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7050,
+ "name": "raw",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7033,
+ "src": "4518:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7051,
+ "name": "maxError",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7041,
+ "src": "4524:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4518:14:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7061,
+ "nodeType": "Block",
+ "src": "4581:58:46",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7057,
+ "name": "raw",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7033,
+ "src": "4610:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7058,
+ "name": "maxError",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7041,
+ "src": "4615:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7056,
+ "name": "sub",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6811,
+ "src": "4606:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7059,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4606:18:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7000,
+ "id": 7060,
+ "nodeType": "Return",
+ "src": "4599:25:46"
+ }
+ ]
+ },
+ "id": 7062,
+ "nodeType": "IfStatement",
+ "src": "4514:125:46",
+ "trueBody": {
+ "id": 7055,
+ "nodeType": "Block",
+ "src": "4534:41:46",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "30",
+ "id": 7053,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4559:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 7000,
+ "id": 7054,
+ "nodeType": "Return",
+ "src": "4552:8:46"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 7064,
+ "nodeType": "IfStatement",
+ "src": "4256:393:46",
+ "trueBody": {
+ "id": 7031,
+ "nodeType": "Block",
+ "src": "4271:99:46",
+ "statements": [
+ {
+ "assignments": [
+ 7020
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7020,
+ "mutability": "mutable",
+ "name": "square",
+ "nodeType": "VariableDeclaration",
+ "scope": 7031,
+ "src": "4285:14:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7019,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4285:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7025,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 7022,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6994,
+ "src": "4310:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7023,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6994,
+ "src": "4313:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7021,
+ "name": "mulDown",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6845,
+ "src": "4302:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7024,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4302:13:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4285:30:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7027,
+ "name": "square",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7020,
+ "src": "4344:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7028,
+ "name": "square",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7020,
+ "src": "4352:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7026,
+ "name": "mulDown",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6845,
+ "src": "4336:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7029,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4336:23:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7000,
+ "id": 7030,
+ "nodeType": "Return",
+ "src": "4329:30:46"
+ }
+ ]
+ }
+ },
+ "id": 7065,
+ "nodeType": "IfStatement",
+ "src": "4191:458:46",
+ "trueBody": {
+ "id": 7015,
+ "nodeType": "Block",
+ "src": "4205:45:46",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7011,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6994,
+ "src": "4234:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7012,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6994,
+ "src": "4237:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7010,
+ "name": "mulDown",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6845,
+ "src": "4226:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7013,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4226:13:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7000,
+ "id": 7014,
+ "nodeType": "Return",
+ "src": "4219:20:46"
+ }
+ ]
+ }
+ },
+ "id": 7066,
+ "nodeType": "IfStatement",
+ "src": "4138:511:46",
+ "trueBody": {
+ "id": 7006,
+ "nodeType": "Block",
+ "src": "4152:33:46",
+ "statements": [
+ {
+ "expression": {
+ "id": 7004,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6994,
+ "src": "4173:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7000,
+ "id": 7005,
+ "nodeType": "Return",
+ "src": "4166:8:46"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 6992,
+ "nodeType": "StructuredDocumentation",
+ "src": "3677:221:46",
+ "text": " @dev Returns x^y, assuming both are fixed point numbers, rounding down. The result is guaranteed to not be above\n the true value (that is, the error function expected - actual is always positive)."
+ },
+ "id": 7068,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "powDown",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 6997,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6994,
+ "mutability": "mutable",
+ "name": "x",
+ "nodeType": "VariableDeclaration",
+ "scope": 7068,
+ "src": "3920:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6993,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3920:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 6996,
+ "mutability": "mutable",
+ "name": "y",
+ "nodeType": "VariableDeclaration",
+ "scope": 7068,
+ "src": "3931:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6995,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3931:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3919:22:46"
+ },
+ "returnParameters": {
+ "id": 7000,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 6999,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 7068,
+ "src": "3965:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 6998,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3965:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3964:9:46"
+ },
+ "scope": 7158,
+ "src": "3903:752:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 7136,
+ "nodeType": "Block",
+ "src": "4954:576:46",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7080,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7078,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7073,
+ "src": "5122:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 7079,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "5127:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5122:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7086,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7084,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7073,
+ "src": "5175:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 7085,
+ "name": "TWO",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6748,
+ "src": "5180:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5175:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7095,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7093,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7073,
+ "src": "5238:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 7094,
+ "name": "FOUR",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6753,
+ "src": "5243:4:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5238:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7132,
+ "nodeType": "Block",
+ "src": "5350:174:46",
+ "statements": [
+ {
+ "assignments": [
+ 7110
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7110,
+ "mutability": "mutable",
+ "name": "raw",
+ "nodeType": "VariableDeclaration",
+ "scope": 7132,
+ "src": "5364:11:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7109,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5364:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7116,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 7113,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7071,
+ "src": "5393:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7114,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7073,
+ "src": "5396:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 7111,
+ "name": "LogExpMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8456,
+ "src": "5378:10:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_LogExpMath_$8456_$",
+ "typeString": "type(library LogExpMath)"
+ }
+ },
+ "id": 7112,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "pow",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 7400,
+ "src": "5378:14:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7115,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5378:20:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5364:34:46"
+ },
+ {
+ "assignments": [
+ 7118
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7118,
+ "mutability": "mutable",
+ "name": "maxError",
+ "nodeType": "VariableDeclaration",
+ "scope": 7132,
+ "src": "5412:16:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7117,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5412:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7126,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 7121,
+ "name": "raw",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7110,
+ "src": "5441:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7122,
+ "name": "MAX_POW_RELATIVE_ERROR",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6756,
+ "src": "5446:22:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7120,
+ "name": "mulUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6893,
+ "src": "5435:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7123,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5435:34:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "hexValue": "31",
+ "id": 7124,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5471:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ }
+ ],
+ "id": 7119,
+ "name": "add",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6785,
+ "src": "5431:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7125,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5431:42:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5412:61:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7128,
+ "name": "raw",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7110,
+ "src": "5499:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7129,
+ "name": "maxError",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7118,
+ "src": "5504:8:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7127,
+ "name": "add",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6785,
+ "src": "5495:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7130,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5495:18:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7077,
+ "id": 7131,
+ "nodeType": "Return",
+ "src": "5488:25:46"
+ }
+ ]
+ },
+ "id": 7133,
+ "nodeType": "IfStatement",
+ "src": "5234:290:46",
+ "trueBody": {
+ "id": 7108,
+ "nodeType": "Block",
+ "src": "5249:95:46",
+ "statements": [
+ {
+ "assignments": [
+ 7097
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7097,
+ "mutability": "mutable",
+ "name": "square",
+ "nodeType": "VariableDeclaration",
+ "scope": 7108,
+ "src": "5263:14:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7096,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5263:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7102,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 7099,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7071,
+ "src": "5286:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7100,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7071,
+ "src": "5289:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7098,
+ "name": "mulUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6893,
+ "src": "5280:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7101,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5280:11:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5263:28:46"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7104,
+ "name": "square",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7097,
+ "src": "5318:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7105,
+ "name": "square",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7097,
+ "src": "5326:6:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7103,
+ "name": "mulUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6893,
+ "src": "5312:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7106,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5312:21:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7077,
+ "id": 7107,
+ "nodeType": "Return",
+ "src": "5305:28:46"
+ }
+ ]
+ }
+ },
+ "id": 7134,
+ "nodeType": "IfStatement",
+ "src": "5171:353:46",
+ "trueBody": {
+ "id": 7092,
+ "nodeType": "Block",
+ "src": "5185:43:46",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7088,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7071,
+ "src": "5212:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 7089,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7071,
+ "src": "5215:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7087,
+ "name": "mulUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6893,
+ "src": "5206:5:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 7090,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5206:11:46",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7077,
+ "id": 7091,
+ "nodeType": "Return",
+ "src": "5199:18:46"
+ }
+ ]
+ }
+ },
+ "id": 7135,
+ "nodeType": "IfStatement",
+ "src": "5118:406:46",
+ "trueBody": {
+ "id": 7083,
+ "nodeType": "Block",
+ "src": "5132:33:46",
+ "statements": [
+ {
+ "expression": {
+ "id": 7081,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7071,
+ "src": "5153:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7077,
+ "id": 7082,
+ "nodeType": "Return",
+ "src": "5146:8:46"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 7069,
+ "nodeType": "StructuredDocumentation",
+ "src": "4661:219:46",
+ "text": " @dev Returns x^y, assuming both are fixed point numbers, rounding up. The result is guaranteed to not be below\n the true value (that is, the error function expected - actual is always negative)."
+ },
+ "id": 7137,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "powUp",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7074,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7071,
+ "mutability": "mutable",
+ "name": "x",
+ "nodeType": "VariableDeclaration",
+ "scope": 7137,
+ "src": "4900:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7070,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4900:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 7073,
+ "mutability": "mutable",
+ "name": "y",
+ "nodeType": "VariableDeclaration",
+ "scope": 7137,
+ "src": "4911:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7072,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4911:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4899:22:46"
+ },
+ "returnParameters": {
+ "id": 7077,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7076,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 7137,
+ "src": "4945:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7075,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4945:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4944:9:46"
+ },
+ "scope": 7158,
+ "src": "4885:645:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 7156,
+ "nodeType": "Block",
+ "src": "5876:49:46",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7147,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7145,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7140,
+ "src": "5894:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7146,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "5898:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5894:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 7148,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5893:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "hexValue": "30",
+ "id": 7153,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5917:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "id": 7154,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5893:25:46",
+ "trueExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7151,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7149,
+ "name": "ONE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6743,
+ "src": "5906:3:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 7150,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7140,
+ "src": "5912:1:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5906:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 7152,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "5905:9:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7144,
+ "id": 7155,
+ "nodeType": "Return",
+ "src": "5886:32:46"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 7138,
+ "nodeType": "StructuredDocumentation",
+ "src": "5536:272:46",
+ "text": " @dev Returns the complement of a value (1 - x), capped to 0 if x is larger than 1.\n Useful when computing the complement for values with some level of relative error, as it strips this error and\n prevents intermediate negative values."
+ },
+ "id": 7157,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "complement",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7141,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7140,
+ "mutability": "mutable",
+ "name": "x",
+ "nodeType": "VariableDeclaration",
+ "scope": 7157,
+ "src": "5833:9:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7139,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5833:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5832:11:46"
+ },
+ "returnParameters": {
+ "id": 7144,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7143,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 7157,
+ "src": "5867:7:46",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7142,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5867:7:46",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5866:9:46"
+ },
+ "scope": 7158,
+ "src": "5813:112:46",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 7159,
+ "src": "888:5039:46"
+ }
+ ],
+ "src": "688:5240:46"
+ },
+ "id": 46
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/LogExpMath.sol",
+ "exportedSymbols": {
+ "LogExpMath": [
+ 8456
+ ]
+ },
+ "id": 8457,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 7160,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "1094:23:47"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 7161,
+ "nodeType": "ImportDirective",
+ "scope": 8457,
+ "sourceUnit": 1012,
+ "src": "1119:90:47",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "documentation": {
+ "id": 7162,
+ "nodeType": "StructuredDocumentation",
+ "src": "1234:446:47",
+ "text": " @dev Exponentiation and logarithm functions for 18 decimal fixed point numbers (both base and exponent/argument).\n Exponentiation and logarithm with arbitrary bases (x^y and log_x(y)) are implemented by conversion to natural\n exponentiation and logarithm (where the base is Euler's number).\n @author Fernando Martinelli - @fernandomartinelli\n @author Sergio Yuhjtman - @sergioyuhjtman\n @author Daniel Fernandez - @dmf7z"
+ },
+ "fullyImplemented": true,
+ "id": 8456,
+ "linearizedBaseContracts": [
+ 8456
+ ],
+ "name": "LogExpMath",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 7165,
+ "mutability": "constant",
+ "name": "ONE_18",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "1961:29:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7163,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1961:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "31653138",
+ "id": 7164,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1986:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1000000000000000000_by_1",
+ "typeString": "int_const 1000000000000000000"
+ },
+ "value": "1e18"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7168,
+ "mutability": "constant",
+ "name": "ONE_20",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "2151:29:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7166,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2151:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "31653230",
+ "id": 7167,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2176:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100000000000000000000_by_1",
+ "typeString": "int_const 100000000000000000000"
+ },
+ "value": "1e20"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7171,
+ "mutability": "constant",
+ "name": "ONE_36",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "2186:29:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7169,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2186:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "31653336",
+ "id": 7170,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2211:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1000000000000000000000000000000000000_by_1",
+ "typeString": "int_const 1000...(29 digits omitted)...0000"
+ },
+ "value": "1e36"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7174,
+ "mutability": "constant",
+ "name": "MAX_NATURAL_EXPONENT",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "2732:45:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7172,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2732:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "313330653138",
+ "id": 7173,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2771:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_130000000000000000000_by_1",
+ "typeString": "int_const 130000000000000000000"
+ },
+ "value": "130e18"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7178,
+ "mutability": "constant",
+ "name": "MIN_NATURAL_EXPONENT",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "2783:45:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7175,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2783:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "id": 7177,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "-",
+ "prefix": true,
+ "src": "2822:6:47",
+ "subExpression": {
+ "hexValue": "3431653138",
+ "id": 7176,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2823:5:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_41000000000000000000_by_1",
+ "typeString": "int_const 41000000000000000000"
+ },
+ "value": "41e18"
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_minus_41000000000000000000_by_1",
+ "typeString": "int_const -41000000000000000000"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7183,
+ "mutability": "constant",
+ "name": "LN_36_LOWER_BOUND",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "2979:49:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7179,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2979:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7182,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7180,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "3015:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31653137",
+ "id": 7181,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3024:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100000000000000000_by_1",
+ "typeString": "int_const 100000000000000000"
+ },
+ "value": "1e17"
+ },
+ "src": "3015:13:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7188,
+ "mutability": "constant",
+ "name": "LN_36_UPPER_BOUND",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3034:49:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7184,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3034:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7187,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7185,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "3070:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31653137",
+ "id": 7186,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3079:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100000000000000000_by_1",
+ "typeString": "int_const 100000000000000000"
+ },
+ "value": "1e17"
+ },
+ "src": "3070:13:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7198,
+ "mutability": "constant",
+ "name": "MILD_EXPONENT_BOUND",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3090:63:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7189,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3090:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7197,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_rational_28948022309329048855892746252171976963317496166410141009864396001978282409984_by_1",
+ "typeString": "int_const 2894...(69 digits omitted)...9984"
+ },
+ "id": 7192,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "32",
+ "id": 7190,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3129:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "**",
+ "rightExpression": {
+ "hexValue": "323534",
+ "id": 7191,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3132:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_254_by_1",
+ "typeString": "int_const 254"
+ },
+ "value": "254"
+ },
+ "src": "3129:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_28948022309329048855892746252171976963317496166410141009864396001978282409984_by_1",
+ "typeString": "int_const 2894...(69 digits omitted)...9984"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 7195,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "3146:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7194,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "3138:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 7193,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3138:7:47",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 7196,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3138:15:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3129:24:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7201,
+ "mutability": "constant",
+ "name": "x0",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3188:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7199,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3188:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "313238303030303030303030303030303030303030",
+ "id": 7200,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3209:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_128000000000000000000_by_1",
+ "typeString": "int_const 128000000000000000000"
+ },
+ "value": "128000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7204,
+ "mutability": "constant",
+ "name": "a0",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3244:77:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7202,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3244:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "3338383737303834303539393435393530393232323030303030303030303030303030303030303030303030303030303030303030303030",
+ "id": 7203,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3265:56:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_38877084059945950922200000000000000000000000000000000000_by_1",
+ "typeString": "int_const 3887...(48 digits omitted)...0000"
+ },
+ "value": "38877084059945950922200000000000000000000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7207,
+ "mutability": "constant",
+ "name": "x1",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3352:41:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7205,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3352:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "3634303030303030303030303030303030303030",
+ "id": 7206,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3373:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_64000000000000000000_by_1",
+ "typeString": "int_const 64000000000000000000"
+ },
+ "value": "64000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7210,
+ "mutability": "constant",
+ "name": "a1",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3407:49:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7208,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3407:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "36323335313439303830383131363136383832393130303030303030",
+ "id": 7209,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3428:28:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_6235149080811616882910000000_by_1",
+ "typeString": "int_const 6235149080811616882910000000"
+ },
+ "value": "6235149080811616882910000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7213,
+ "mutability": "constant",
+ "name": "x2",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3516:43:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7211,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3516:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "33323030303030303030303030303030303030303030",
+ "id": 7212,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3537:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3200000000000000000000_by_1",
+ "typeString": "int_const 3200000000000000000000"
+ },
+ "value": "3200000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7216,
+ "mutability": "constant",
+ "name": "a2",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3573:55:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7214,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3573:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "37383936323936303138323638303639353136313030303030303030303030303030",
+ "id": 7215,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3594:34:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_7896296018268069516100000000000000_by_1",
+ "typeString": "int_const 7896...(26 digits omitted)...0000"
+ },
+ "value": "7896296018268069516100000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7219,
+ "mutability": "constant",
+ "name": "x3",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3645:43:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7217,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3645:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "31363030303030303030303030303030303030303030",
+ "id": 7218,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3666:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1600000000000000000000_by_1",
+ "typeString": "int_const 1600000000000000000000"
+ },
+ "value": "1600000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7222,
+ "mutability": "constant",
+ "name": "a3",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3702:48:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7220,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3702:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "383838363131303532303530373837323633363736303030303030",
+ "id": 7221,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3723:27:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_888611052050787263676000000_by_1",
+ "typeString": "int_const 888611052050787263676000000"
+ },
+ "value": "888611052050787263676000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7225,
+ "mutability": "constant",
+ "name": "x4",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3767:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7223,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3767:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "383030303030303030303030303030303030303030",
+ "id": 7224,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3788:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_800000000000000000000_by_1",
+ "typeString": "int_const 800000000000000000000"
+ },
+ "value": "800000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7228,
+ "mutability": "constant",
+ "name": "a4",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3823:45:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7226,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3823:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "323938303935373938373034313732383237343734303030",
+ "id": 7227,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3844:24:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_298095798704172827474000_by_1",
+ "typeString": "int_const 298095798704172827474000"
+ },
+ "value": "298095798704172827474000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7231,
+ "mutability": "constant",
+ "name": "x5",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3885:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7229,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3885:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "343030303030303030303030303030303030303030",
+ "id": 7230,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3906:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_400000000000000000000_by_1",
+ "typeString": "int_const 400000000000000000000"
+ },
+ "value": "400000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7234,
+ "mutability": "constant",
+ "name": "a5",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "3941:43:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7232,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3941:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "35343539383135303033333134343233393037383130",
+ "id": 7233,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3962:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5459815003314423907810_by_1",
+ "typeString": "int_const 5459815003314423907810"
+ },
+ "value": "5459815003314423907810"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7237,
+ "mutability": "constant",
+ "name": "x6",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4001:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7235,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4001:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "323030303030303030303030303030303030303030",
+ "id": 7236,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4022:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_200000000000000000000_by_1",
+ "typeString": "int_const 200000000000000000000"
+ },
+ "value": "200000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7240,
+ "mutability": "constant",
+ "name": "a6",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4057:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7238,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4057:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "373338393035363039383933303635303232373233",
+ "id": 7239,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4078:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_738905609893065022723_by_1",
+ "typeString": "int_const 738905609893065022723"
+ },
+ "value": "738905609893065022723"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7243,
+ "mutability": "constant",
+ "name": "x7",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4116:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7241,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4116:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "313030303030303030303030303030303030303030",
+ "id": 7242,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4137:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100000000000000000000_by_1",
+ "typeString": "int_const 100000000000000000000"
+ },
+ "value": "100000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7246,
+ "mutability": "constant",
+ "name": "a7",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4172:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7244,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4172:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "323731383238313832383435393034353233353336",
+ "id": 7245,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4193:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_271828182845904523536_by_1",
+ "typeString": "int_const 271828182845904523536"
+ },
+ "value": "271828182845904523536"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7249,
+ "mutability": "constant",
+ "name": "x8",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4231:41:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7247,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4231:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "3530303030303030303030303030303030303030",
+ "id": 7248,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4252:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_50000000000000000000_by_1",
+ "typeString": "int_const 50000000000000000000"
+ },
+ "value": "50000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7252,
+ "mutability": "constant",
+ "name": "a8",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4287:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7250,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4287:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "313634383732313237303730303132383134363835",
+ "id": 7251,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4308:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_164872127070012814685_by_1",
+ "typeString": "int_const 164872127070012814685"
+ },
+ "value": "164872127070012814685"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7255,
+ "mutability": "constant",
+ "name": "x9",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4346:41:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7253,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4346:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "3235303030303030303030303030303030303030",
+ "id": 7254,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4367:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_25000000000000000000_by_1",
+ "typeString": "int_const 25000000000000000000"
+ },
+ "value": "25000000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7258,
+ "mutability": "constant",
+ "name": "a9",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4402:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7256,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4402:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "313238343032353431363638373734313438343037",
+ "id": 7257,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4423:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_128402541668774148407_by_1",
+ "typeString": "int_const 128402541668774148407"
+ },
+ "value": "128402541668774148407"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7261,
+ "mutability": "constant",
+ "name": "x10",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4461:42:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7259,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4461:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "3132353030303030303030303030303030303030",
+ "id": 7260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4483:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_12500000000000000000_by_1",
+ "typeString": "int_const 12500000000000000000"
+ },
+ "value": "12500000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7264,
+ "mutability": "constant",
+ "name": "a10",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4518:43:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7262,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4518:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "313133333134383435333036363832363331363833",
+ "id": 7263,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4540:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_113314845306682631683_by_1",
+ "typeString": "int_const 113314845306682631683"
+ },
+ "value": "113314845306682631683"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7267,
+ "mutability": "constant",
+ "name": "x11",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4579:41:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7265,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4579:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "36323530303030303030303030303030303030",
+ "id": 7266,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4601:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_6250000000000000000_by_1",
+ "typeString": "int_const 6250000000000000000"
+ },
+ "value": "6250000000000000000"
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": true,
+ "id": 7270,
+ "mutability": "constant",
+ "name": "a11",
+ "nodeType": "VariableDeclaration",
+ "scope": 8456,
+ "src": "4635:43:47",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7268,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4635:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "value": {
+ "hexValue": "313036343439343435383931373835393432393536",
+ "id": 7269,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4657:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_106449445891785942956_by_1",
+ "typeString": "int_const 106449445891785942956"
+ },
+ "value": "106449445891785942956"
+ },
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 7399,
+ "nodeType": "Block",
+ "src": "4983:2128:47",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7282,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7280,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7275,
+ "src": "4997:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 7281,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5002:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "4997:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7289,
+ "nodeType": "IfStatement",
+ "src": "4993:131:47",
+ "trueBody": {
+ "id": 7288,
+ "nodeType": "Block",
+ "src": "5005:119:47",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7285,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "5106:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7284,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5098:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 7283,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5098:7:47",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 7286,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5098:15:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7279,
+ "id": 7287,
+ "nodeType": "Return",
+ "src": "5091:22:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7292,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7290,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7273,
+ "src": "5138:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 7291,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5143:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "5138:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7296,
+ "nodeType": "IfStatement",
+ "src": "5134:45:47",
+ "trueBody": {
+ "id": 7295,
+ "nodeType": "Block",
+ "src": "5146:33:47",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "30",
+ "id": 7293,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5167:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 7279,
+ "id": 7294,
+ "nodeType": "Return",
+ "src": "5160:8:47"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7302,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7300,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7298,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7273,
+ "src": "5558:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "hexValue": "323535",
+ "id": 7299,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5563:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ "value": "255"
+ },
+ "src": "5558:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 7301,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5570:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "5558:13:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 7303,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "5573:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 7304,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "X_OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 551,
+ "src": "5573:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7297,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "5549:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 7305,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5549:47:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 7306,
+ "nodeType": "ExpressionStatement",
+ "src": "5549:47:47"
+ },
+ {
+ "assignments": [
+ 7308
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7308,
+ "mutability": "mutable",
+ "name": "x_int256",
+ "nodeType": "VariableDeclaration",
+ "scope": 7399,
+ "src": "5606:15:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7307,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5606:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7313,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 7311,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7273,
+ "src": "5631:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7310,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "5624:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_int256_$",
+ "typeString": "type(int256)"
+ },
+ "typeName": {
+ "id": 7309,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5624:6:47",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 7312,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5624:9:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5606:27:47"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 7317,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7315,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7275,
+ "src": "5996:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7316,
+ "name": "MILD_EXPONENT_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7198,
+ "src": "6000:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5996:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 7318,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "6021:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 7319,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "Y_OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 554,
+ "src": "6021:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7314,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "5987:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 7320,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5987:57:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 7321,
+ "nodeType": "ExpressionStatement",
+ "src": "5987:57:47"
+ },
+ {
+ "assignments": [
+ 7323
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7323,
+ "mutability": "mutable",
+ "name": "y_int256",
+ "nodeType": "VariableDeclaration",
+ "scope": 7399,
+ "src": "6054:15:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7322,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6054:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7328,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 7326,
+ "name": "y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7275,
+ "src": "6079:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7325,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6072:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_int256_$",
+ "typeString": "type(int256)"
+ },
+ "typeName": {
+ "id": 7324,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6072:6:47",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 7327,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6072:9:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6054:27:47"
+ },
+ {
+ "assignments": [
+ 7330
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7330,
+ "mutability": "mutable",
+ "name": "logx_times_y",
+ "nodeType": "VariableDeclaration",
+ "scope": 7399,
+ "src": "6092:19:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7329,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6092:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7331,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6092:19:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 7338,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7334,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7332,
+ "name": "LN_36_LOWER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7183,
+ "src": "6125:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7333,
+ "name": "x_int256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7308,
+ "src": "6145:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6125:28:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7337,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7335,
+ "name": "x_int256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7308,
+ "src": "6157:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7336,
+ "name": "LN_36_UPPER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7188,
+ "src": "6168:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6157:28:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "6125:60:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7374,
+ "nodeType": "Block",
+ "src": "6741:64:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7372,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7366,
+ "name": "logx_times_y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7330,
+ "src": "6755:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7371,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 7368,
+ "name": "x_int256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7308,
+ "src": "6774:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7367,
+ "name": "_ln",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8301,
+ "src": "6770:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7369,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6770:13:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7370,
+ "name": "y_int256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7323,
+ "src": "6786:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6770:24:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6755:39:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7373,
+ "nodeType": "ExpressionStatement",
+ "src": "6755:39:47"
+ }
+ ]
+ },
+ "id": 7375,
+ "nodeType": "IfStatement",
+ "src": "6121:684:47",
+ "trueBody": {
+ "id": 7365,
+ "nodeType": "Block",
+ "src": "6187:548:47",
+ "statements": [
+ {
+ "assignments": [
+ 7340
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7340,
+ "mutability": "mutable",
+ "name": "ln_36_x",
+ "nodeType": "VariableDeclaration",
+ "scope": 7365,
+ "src": "6201:14:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7339,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6201:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7344,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 7342,
+ "name": "x_int256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7308,
+ "src": "6225:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7341,
+ "name": "_ln_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8455,
+ "src": "6218:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7343,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6218:16:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6201:33:47"
+ },
+ {
+ "expression": {
+ "id": 7363,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7345,
+ "name": "logx_times_y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7330,
+ "src": "6635:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7361,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7351,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7348,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7346,
+ "name": "ln_36_x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7340,
+ "src": "6652:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7347,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "6662:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6652:16:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7349,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6651:18:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7350,
+ "name": "y_int256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7323,
+ "src": "6672:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6651:29:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7360,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7357,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7354,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7352,
+ "name": "ln_36_x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7340,
+ "src": "6685:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "%",
+ "rightExpression": {
+ "id": 7353,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "6695:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6685:16:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7355,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6684:18:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7356,
+ "name": "y_int256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7323,
+ "src": "6705:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6684:29:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7358,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6683:31:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7359,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "6717:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6683:40:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6651:72:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7362,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "6650:74:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6635:89:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7364,
+ "nodeType": "ExpressionStatement",
+ "src": "6635:89:47"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "id": 7378,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7376,
+ "name": "logx_times_y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7330,
+ "src": "6814:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "/=",
+ "rightHandSide": {
+ "id": 7377,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "6830:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6814:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7379,
+ "nodeType": "ExpressionStatement",
+ "src": "6814:22:47"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 7387,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7383,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7381,
+ "name": "MIN_NATURAL_EXPONENT",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7178,
+ "src": "6932:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 7382,
+ "name": "logx_times_y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7330,
+ "src": "6956:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6932:36:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7386,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7384,
+ "name": "logx_times_y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7330,
+ "src": "6972:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 7385,
+ "name": "MAX_NATURAL_EXPONENT",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7174,
+ "src": "6988:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "6972:36:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "6932:76:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 7388,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7022:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 7389,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "PRODUCT_OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 557,
+ "src": "7022:28:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7380,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "6910:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 7390,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6910:150:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 7391,
+ "nodeType": "ExpressionStatement",
+ "src": "6910:150:47"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 7395,
+ "name": "logx_times_y",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7330,
+ "src": "7090:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7394,
+ "name": "exp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7827,
+ "src": "7086:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7396,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7086:17:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7393,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "7078:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 7392,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7078:7:47",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 7397,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7078:26:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 7279,
+ "id": 7398,
+ "nodeType": "Return",
+ "src": "7071:33:47"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 7271,
+ "nodeType": "StructuredDocumentation",
+ "src": "4697:214:47",
+ "text": " @dev Exponentiation (x^y) with unsigned 18 decimal fixed point base and exponent.\n Reverts if ln(x) * y is smaller than `MIN_NATURAL_EXPONENT`, or larger than `MAX_NATURAL_EXPONENT`."
+ },
+ "id": 7400,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "pow",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7276,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7273,
+ "mutability": "mutable",
+ "name": "x",
+ "nodeType": "VariableDeclaration",
+ "scope": 7400,
+ "src": "4929:9:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7272,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4929:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 7275,
+ "mutability": "mutable",
+ "name": "y",
+ "nodeType": "VariableDeclaration",
+ "scope": 7400,
+ "src": "4940:9:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7274,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4940:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4928:22:47"
+ },
+ "returnParameters": {
+ "id": 7279,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7278,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 7400,
+ "src": "4974:7:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 7277,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4974:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4973:9:47"
+ },
+ "scope": 8456,
+ "src": "4916:2195:47",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 7826,
+ "nodeType": "Block",
+ "src": "7379:5325:47",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 7415,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7411,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7409,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "7398:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7410,
+ "name": "MIN_NATURAL_EXPONENT",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7178,
+ "src": "7403:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "7398:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7414,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7412,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "7427:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 7413,
+ "name": "MAX_NATURAL_EXPONENT",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7174,
+ "src": "7432:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "7427:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "7398:54:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 7416,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7454:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 7417,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "INVALID_EXPONENT",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 560,
+ "src": "7454:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7408,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "7389:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 7418,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7389:89:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 7419,
+ "nodeType": "ExpressionStatement",
+ "src": "7389:89:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7422,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7420,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "7493:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 7421,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7497:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "7493:5:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7435,
+ "nodeType": "IfStatement",
+ "src": "7489:353:47",
+ "trueBody": {
+ "id": 7434,
+ "nodeType": "Block",
+ "src": "7500:342:47",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7431,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7425,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7423,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "7804:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7424,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "7813:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "7804:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7426,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "7803:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 7429,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "-",
+ "prefix": true,
+ "src": "7827:2:47",
+ "subExpression": {
+ "id": 7428,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "7828:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7427,
+ "name": "exp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7827,
+ "src": "7823:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7430,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7823:7:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "7803:27:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7432,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "7802:29:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 7407,
+ "id": 7433,
+ "nodeType": "Return",
+ "src": "7795:36:47"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 7437
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7437,
+ "mutability": "mutable",
+ "name": "firstAN",
+ "nodeType": "VariableDeclaration",
+ "scope": 7826,
+ "src": "9143:14:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7436,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9143:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7438,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9143:14:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7441,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7439,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9171:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7440,
+ "name": "x0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7201,
+ "src": "9176:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9171:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7453,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7451,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9248:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7452,
+ "name": "x1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7207,
+ "src": "9253:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9248:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7467,
+ "nodeType": "Block",
+ "src": "9321:66:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7465,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7463,
+ "name": "firstAN",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7437,
+ "src": "9335:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "hexValue": "31",
+ "id": 7464,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9345:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "9335:11:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7466,
+ "nodeType": "ExpressionStatement",
+ "src": "9335:11:47"
+ }
+ ]
+ },
+ "id": 7468,
+ "nodeType": "IfStatement",
+ "src": "9244:143:47",
+ "trueBody": {
+ "id": 7462,
+ "nodeType": "Block",
+ "src": "9257:58:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7456,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7454,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9271:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7455,
+ "name": "x1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7207,
+ "src": "9276:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9271:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7457,
+ "nodeType": "ExpressionStatement",
+ "src": "9271:7:47"
+ },
+ {
+ "expression": {
+ "id": 7460,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7458,
+ "name": "firstAN",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7437,
+ "src": "9292:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 7459,
+ "name": "a1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7210,
+ "src": "9302:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9292:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7461,
+ "nodeType": "ExpressionStatement",
+ "src": "9292:12:47"
+ }
+ ]
+ }
+ },
+ "id": 7469,
+ "nodeType": "IfStatement",
+ "src": "9167:220:47",
+ "trueBody": {
+ "id": 7450,
+ "nodeType": "Block",
+ "src": "9180:58:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7444,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7442,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9194:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7443,
+ "name": "x0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7201,
+ "src": "9199:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9194:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7445,
+ "nodeType": "ExpressionStatement",
+ "src": "9194:7:47"
+ },
+ {
+ "expression": {
+ "id": 7448,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7446,
+ "name": "firstAN",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7437,
+ "src": "9215:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 7447,
+ "name": "a0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7204,
+ "src": "9225:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9215:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7449,
+ "nodeType": "ExpressionStatement",
+ "src": "9215:12:47"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "id": 7472,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7470,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9537:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "*=",
+ "rightHandSide": {
+ "hexValue": "313030",
+ "id": 7471,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9542:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100_by_1",
+ "typeString": "int_const 100"
+ },
+ "value": "100"
+ },
+ "src": "9537:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7473,
+ "nodeType": "ExpressionStatement",
+ "src": "9537:8:47"
+ },
+ {
+ "assignments": [
+ 7475
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7475,
+ "mutability": "mutable",
+ "name": "product",
+ "nodeType": "VariableDeclaration",
+ "scope": 7826,
+ "src": "9758:14:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7474,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9758:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7477,
+ "initialValue": {
+ "id": 7476,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "9775:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9758:23:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7480,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7478,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9796:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7479,
+ "name": "x2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7213,
+ "src": "9801:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9796:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7495,
+ "nodeType": "IfStatement",
+ "src": "9792:92:47",
+ "trueBody": {
+ "id": 7494,
+ "nodeType": "Block",
+ "src": "9805:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7483,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7481,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9819:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7482,
+ "name": "x2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7213,
+ "src": "9824:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9819:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7484,
+ "nodeType": "ExpressionStatement",
+ "src": "9819:7:47"
+ },
+ {
+ "expression": {
+ "id": 7492,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7485,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "9840:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7491,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7488,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7486,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "9851:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7487,
+ "name": "a2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7216,
+ "src": "9861:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9851:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7489,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "9850:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7490,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "9867:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9850:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9840:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7493,
+ "nodeType": "ExpressionStatement",
+ "src": "9840:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7498,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7496,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9897:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7497,
+ "name": "x3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7219,
+ "src": "9902:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9897:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7513,
+ "nodeType": "IfStatement",
+ "src": "9893:92:47",
+ "trueBody": {
+ "id": 7512,
+ "nodeType": "Block",
+ "src": "9906:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7501,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7499,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9920:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7500,
+ "name": "x3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7219,
+ "src": "9925:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9920:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7502,
+ "nodeType": "ExpressionStatement",
+ "src": "9920:7:47"
+ },
+ {
+ "expression": {
+ "id": 7510,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7503,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "9941:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7509,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7506,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7504,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "9952:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7505,
+ "name": "a3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7222,
+ "src": "9962:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9952:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7507,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "9951:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7508,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "9968:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9951:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9941:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7511,
+ "nodeType": "ExpressionStatement",
+ "src": "9941:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7516,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7514,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "9998:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7515,
+ "name": "x4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7225,
+ "src": "10003:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "9998:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7531,
+ "nodeType": "IfStatement",
+ "src": "9994:92:47",
+ "trueBody": {
+ "id": 7530,
+ "nodeType": "Block",
+ "src": "10007:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7519,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7517,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10021:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7518,
+ "name": "x4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7225,
+ "src": "10026:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10021:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7520,
+ "nodeType": "ExpressionStatement",
+ "src": "10021:7:47"
+ },
+ {
+ "expression": {
+ "id": 7528,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7521,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10042:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7527,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7524,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7522,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10053:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7523,
+ "name": "a4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7228,
+ "src": "10063:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10053:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7525,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "10052:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7526,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "10069:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10052:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10042:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7529,
+ "nodeType": "ExpressionStatement",
+ "src": "10042:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7534,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7532,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10099:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7533,
+ "name": "x5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7231,
+ "src": "10104:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10099:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7549,
+ "nodeType": "IfStatement",
+ "src": "10095:92:47",
+ "trueBody": {
+ "id": 7548,
+ "nodeType": "Block",
+ "src": "10108:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7537,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7535,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10122:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7536,
+ "name": "x5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7231,
+ "src": "10127:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10122:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7538,
+ "nodeType": "ExpressionStatement",
+ "src": "10122:7:47"
+ },
+ {
+ "expression": {
+ "id": 7546,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7539,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10143:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7545,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7542,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7540,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10154:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7541,
+ "name": "a5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7234,
+ "src": "10164:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10154:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7543,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "10153:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7544,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "10170:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10153:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10143:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7547,
+ "nodeType": "ExpressionStatement",
+ "src": "10143:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7552,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7550,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10200:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7551,
+ "name": "x6",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7237,
+ "src": "10205:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10200:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7567,
+ "nodeType": "IfStatement",
+ "src": "10196:92:47",
+ "trueBody": {
+ "id": 7566,
+ "nodeType": "Block",
+ "src": "10209:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7555,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7553,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10223:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7554,
+ "name": "x6",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7237,
+ "src": "10228:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10223:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7556,
+ "nodeType": "ExpressionStatement",
+ "src": "10223:7:47"
+ },
+ {
+ "expression": {
+ "id": 7564,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7557,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10244:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7563,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7560,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7558,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10255:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7559,
+ "name": "a6",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7240,
+ "src": "10265:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10255:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7561,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "10254:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7562,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "10271:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10254:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10244:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7565,
+ "nodeType": "ExpressionStatement",
+ "src": "10244:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7570,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7568,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10301:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7569,
+ "name": "x7",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7243,
+ "src": "10306:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10301:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7585,
+ "nodeType": "IfStatement",
+ "src": "10297:92:47",
+ "trueBody": {
+ "id": 7584,
+ "nodeType": "Block",
+ "src": "10310:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7573,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7571,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10324:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7572,
+ "name": "x7",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7243,
+ "src": "10329:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10324:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7574,
+ "nodeType": "ExpressionStatement",
+ "src": "10324:7:47"
+ },
+ {
+ "expression": {
+ "id": 7582,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7575,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10345:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7581,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7578,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7576,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10356:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7577,
+ "name": "a7",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7246,
+ "src": "10366:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10356:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7579,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "10355:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7580,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "10372:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10355:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10345:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7583,
+ "nodeType": "ExpressionStatement",
+ "src": "10345:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7588,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7586,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10402:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7587,
+ "name": "x8",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7249,
+ "src": "10407:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10402:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7603,
+ "nodeType": "IfStatement",
+ "src": "10398:92:47",
+ "trueBody": {
+ "id": 7602,
+ "nodeType": "Block",
+ "src": "10411:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7591,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7589,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10425:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7590,
+ "name": "x8",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7249,
+ "src": "10430:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10425:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7592,
+ "nodeType": "ExpressionStatement",
+ "src": "10425:7:47"
+ },
+ {
+ "expression": {
+ "id": 7600,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7593,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10446:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7599,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7596,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7594,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10457:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7595,
+ "name": "a8",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7252,
+ "src": "10467:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10457:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7597,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "10456:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7598,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "10473:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10456:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10446:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7601,
+ "nodeType": "ExpressionStatement",
+ "src": "10446:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7606,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7604,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10503:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 7605,
+ "name": "x9",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7255,
+ "src": "10508:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10503:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7621,
+ "nodeType": "IfStatement",
+ "src": "10499:92:47",
+ "trueBody": {
+ "id": 7620,
+ "nodeType": "Block",
+ "src": "10512:79:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7609,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7607,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "10526:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "-=",
+ "rightHandSide": {
+ "id": 7608,
+ "name": "x9",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7255,
+ "src": "10531:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10526:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7610,
+ "nodeType": "ExpressionStatement",
+ "src": "10526:7:47"
+ },
+ {
+ "expression": {
+ "id": 7618,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7611,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10547:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7617,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7614,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7612,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "10558:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7613,
+ "name": "a9",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7258,
+ "src": "10568:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10558:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7615,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "10557:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7616,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "10574:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10557:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "10547:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7619,
+ "nodeType": "ExpressionStatement",
+ "src": "10547:33:47"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 7623
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7623,
+ "mutability": "mutable",
+ "name": "seriesSum",
+ "nodeType": "VariableDeclaration",
+ "scope": 7826,
+ "src": "10895:16:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7622,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10895:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7625,
+ "initialValue": {
+ "id": 7624,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "10914:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10895:25:47"
+ },
+ {
+ "assignments": [
+ 7627
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7627,
+ "mutability": "mutable",
+ "name": "term",
+ "nodeType": "VariableDeclaration",
+ "scope": 7826,
+ "src": "10985:11:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7626,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10985:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7628,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10985:11:47"
+ },
+ {
+ "expression": {
+ "id": 7631,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7629,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11105:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 7630,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11112:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11105:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7632,
+ "nodeType": "ExpressionStatement",
+ "src": "11105:8:47"
+ },
+ {
+ "expression": {
+ "id": 7635,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7633,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11123:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7634,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11136:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11123:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7636,
+ "nodeType": "ExpressionStatement",
+ "src": "11123:17:47"
+ },
+ {
+ "expression": {
+ "id": 7647,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7637,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11377:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7646,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7643,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7640,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7638,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11386:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7639,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11393:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11386:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7641,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11385:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7642,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11398:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11385:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7644,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11384:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "32",
+ "id": 7645,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11408:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "src": "11384:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11377:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7648,
+ "nodeType": "ExpressionStatement",
+ "src": "11377:32:47"
+ },
+ {
+ "expression": {
+ "id": 7651,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7649,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11419:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7650,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11432:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11419:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7652,
+ "nodeType": "ExpressionStatement",
+ "src": "11419:17:47"
+ },
+ {
+ "expression": {
+ "id": 7663,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7653,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11447:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7662,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7659,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7656,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7654,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11456:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7655,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11463:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11456:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7657,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11455:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7658,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11468:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11455:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7660,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11454:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "33",
+ "id": 7661,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11478:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "src": "11454:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11447:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7664,
+ "nodeType": "ExpressionStatement",
+ "src": "11447:32:47"
+ },
+ {
+ "expression": {
+ "id": 7667,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7665,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11489:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7666,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11502:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11489:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7668,
+ "nodeType": "ExpressionStatement",
+ "src": "11489:17:47"
+ },
+ {
+ "expression": {
+ "id": 7679,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7669,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11517:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7678,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7675,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7672,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7670,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11526:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7671,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11533:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11526:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7673,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11525:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7674,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11538:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11525:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7676,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11524:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "34",
+ "id": 7677,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11548:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4_by_1",
+ "typeString": "int_const 4"
+ },
+ "value": "4"
+ },
+ "src": "11524:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11517:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7680,
+ "nodeType": "ExpressionStatement",
+ "src": "11517:32:47"
+ },
+ {
+ "expression": {
+ "id": 7683,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7681,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11559:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7682,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11572:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11559:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7684,
+ "nodeType": "ExpressionStatement",
+ "src": "11559:17:47"
+ },
+ {
+ "expression": {
+ "id": 7695,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7685,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11587:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7694,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7691,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7688,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7686,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11596:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7687,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11603:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11596:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7689,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11595:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7690,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11608:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11595:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7692,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11594:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "35",
+ "id": 7693,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11618:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "src": "11594:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11587:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7696,
+ "nodeType": "ExpressionStatement",
+ "src": "11587:32:47"
+ },
+ {
+ "expression": {
+ "id": 7699,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7697,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11629:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7698,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11642:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11629:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7700,
+ "nodeType": "ExpressionStatement",
+ "src": "11629:17:47"
+ },
+ {
+ "expression": {
+ "id": 7711,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7701,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11657:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7710,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7707,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7704,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7702,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11666:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7703,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11673:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11666:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7705,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11665:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7706,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11678:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11665:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7708,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11664:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "36",
+ "id": 7709,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11688:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_6_by_1",
+ "typeString": "int_const 6"
+ },
+ "value": "6"
+ },
+ "src": "11664:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11657:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7712,
+ "nodeType": "ExpressionStatement",
+ "src": "11657:32:47"
+ },
+ {
+ "expression": {
+ "id": 7715,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7713,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11699:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7714,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11712:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11699:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7716,
+ "nodeType": "ExpressionStatement",
+ "src": "11699:17:47"
+ },
+ {
+ "expression": {
+ "id": 7727,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7717,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11727:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7726,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7723,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7720,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7718,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11736:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7719,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11743:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11736:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7721,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11735:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7722,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11748:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11735:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7724,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11734:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "37",
+ "id": 7725,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11758:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_7_by_1",
+ "typeString": "int_const 7"
+ },
+ "value": "7"
+ },
+ "src": "11734:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11727:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7728,
+ "nodeType": "ExpressionStatement",
+ "src": "11727:32:47"
+ },
+ {
+ "expression": {
+ "id": 7731,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7729,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11769:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7730,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11782:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11769:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7732,
+ "nodeType": "ExpressionStatement",
+ "src": "11769:17:47"
+ },
+ {
+ "expression": {
+ "id": 7743,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7733,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11797:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7742,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7739,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7736,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7734,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11806:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7735,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11813:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11806:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7737,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11805:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7738,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11818:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11805:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7740,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11804:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "38",
+ "id": 7741,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11828:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_8_by_1",
+ "typeString": "int_const 8"
+ },
+ "value": "8"
+ },
+ "src": "11804:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11797:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7744,
+ "nodeType": "ExpressionStatement",
+ "src": "11797:32:47"
+ },
+ {
+ "expression": {
+ "id": 7747,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7745,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11839:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7746,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11852:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11839:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7748,
+ "nodeType": "ExpressionStatement",
+ "src": "11839:17:47"
+ },
+ {
+ "expression": {
+ "id": 7759,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7749,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11867:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7758,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7755,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7752,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7750,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11876:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7751,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11883:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11876:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7753,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11875:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7754,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11888:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11875:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7756,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11874:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "39",
+ "id": 7757,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11898:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_9_by_1",
+ "typeString": "int_const 9"
+ },
+ "value": "9"
+ },
+ "src": "11874:25:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11867:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7760,
+ "nodeType": "ExpressionStatement",
+ "src": "11867:32:47"
+ },
+ {
+ "expression": {
+ "id": 7763,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7761,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11909:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7762,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11922:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11909:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7764,
+ "nodeType": "ExpressionStatement",
+ "src": "11909:17:47"
+ },
+ {
+ "expression": {
+ "id": 7775,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7765,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11937:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7774,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7771,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7768,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7766,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11946:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7767,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "11953:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11946:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7769,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11945:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7770,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "11958:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11945:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7772,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11944:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "3130",
+ "id": 7773,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11968:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_10_by_1",
+ "typeString": "int_const 10"
+ },
+ "value": "10"
+ },
+ "src": "11944:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11937:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7776,
+ "nodeType": "ExpressionStatement",
+ "src": "11937:33:47"
+ },
+ {
+ "expression": {
+ "id": 7779,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7777,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "11980:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7778,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "11993:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "11980:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7780,
+ "nodeType": "ExpressionStatement",
+ "src": "11980:17:47"
+ },
+ {
+ "expression": {
+ "id": 7791,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7781,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "12008:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7790,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7787,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7784,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7782,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "12017:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7783,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "12024:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12017:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7785,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12016:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7786,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "12029:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12016:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7788,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12015:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "3131",
+ "id": 7789,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12039:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_11_by_1",
+ "typeString": "int_const 11"
+ },
+ "value": "11"
+ },
+ "src": "12015:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12008:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7792,
+ "nodeType": "ExpressionStatement",
+ "src": "12008:33:47"
+ },
+ {
+ "expression": {
+ "id": 7795,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7793,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "12051:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7794,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "12064:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12051:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7796,
+ "nodeType": "ExpressionStatement",
+ "src": "12051:17:47"
+ },
+ {
+ "expression": {
+ "id": 7807,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7797,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "12079:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7806,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7803,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7800,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7798,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "12088:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7799,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7403,
+ "src": "12095:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12088:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7801,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12087:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7802,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "12100:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12087:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7804,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12086:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "3132",
+ "id": 7805,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12110:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_12_by_1",
+ "typeString": "int_const 12"
+ },
+ "value": "12"
+ },
+ "src": "12086:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12079:33:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7808,
+ "nodeType": "ExpressionStatement",
+ "src": "12079:33:47"
+ },
+ {
+ "expression": {
+ "id": 7811,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7809,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "12122:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7810,
+ "name": "term",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7627,
+ "src": "12135:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12122:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7812,
+ "nodeType": "ExpressionStatement",
+ "src": "12122:17:47"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7824,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7821,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7818,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7815,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7813,
+ "name": "product",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7475,
+ "src": "12650:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7814,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7623,
+ "src": "12660:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12650:19:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7816,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12649:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7817,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "12673:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12649:30:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7819,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12648:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7820,
+ "name": "firstAN",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7437,
+ "src": "12683:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "12648:42:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7822,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "12647:44:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "313030",
+ "id": 7823,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12694:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100_by_1",
+ "typeString": "int_const 100"
+ },
+ "value": "100"
+ },
+ "src": "12647:50:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 7407,
+ "id": 7825,
+ "nodeType": "Return",
+ "src": "12640:57:47"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 7401,
+ "nodeType": "StructuredDocumentation",
+ "src": "7117:203:47",
+ "text": " @dev Natural exponentiation (e^x) with signed 18 decimal fixed point exponent.\n Reverts if `x` is smaller than MIN_NATURAL_EXPONENT, or larger than `MAX_NATURAL_EXPONENT`."
+ },
+ "id": 7827,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "exp",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7404,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7403,
+ "mutability": "mutable",
+ "name": "x",
+ "nodeType": "VariableDeclaration",
+ "scope": 7827,
+ "src": "7338:8:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7402,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7338:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7337:10:47"
+ },
+ "returnParameters": {
+ "id": 7407,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7406,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 7827,
+ "src": "7371:6:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7405,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7371:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7370:8:47"
+ },
+ "scope": 8456,
+ "src": "7325:5379:47",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 7898,
+ "nodeType": "Block",
+ "src": "12888:753:47",
+ "statements": [
+ {
+ "assignments": [
+ 7838
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7838,
+ "mutability": "mutable",
+ "name": "logBase",
+ "nodeType": "VariableDeclaration",
+ "scope": 7898,
+ "src": "13118:14:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7837,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13118:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7839,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13118:14:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 7846,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7842,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7840,
+ "name": "LN_36_LOWER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7183,
+ "src": "13146:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7841,
+ "name": "base",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7832,
+ "src": "13166:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13146:24:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7845,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7843,
+ "name": "base",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7832,
+ "src": "13174:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7844,
+ "name": "LN_36_UPPER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7188,
+ "src": "13181:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13174:24:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "13146:52:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7862,
+ "nodeType": "Block",
+ "src": "13253:53:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7860,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7854,
+ "name": "logBase",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7838,
+ "src": "13267:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7859,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 7856,
+ "name": "base",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7832,
+ "src": "13281:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7855,
+ "name": "_ln",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8301,
+ "src": "13277:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7857,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13277:9:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7858,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "13289:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13277:18:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13267:28:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7861,
+ "nodeType": "ExpressionStatement",
+ "src": "13267:28:47"
+ }
+ ]
+ },
+ "id": 7863,
+ "nodeType": "IfStatement",
+ "src": "13142:164:47",
+ "trueBody": {
+ "id": 7853,
+ "nodeType": "Block",
+ "src": "13200:47:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7851,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7847,
+ "name": "logBase",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7838,
+ "src": "13214:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 7849,
+ "name": "base",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7832,
+ "src": "13231:4:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7848,
+ "name": "_ln_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8455,
+ "src": "13224:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7850,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13224:12:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13214:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7852,
+ "nodeType": "ExpressionStatement",
+ "src": "13214:22:47"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 7865
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7865,
+ "mutability": "mutable",
+ "name": "logArg",
+ "nodeType": "VariableDeclaration",
+ "scope": 7898,
+ "src": "13316:13:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7864,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13316:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7866,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13316:13:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 7873,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7869,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7867,
+ "name": "LN_36_LOWER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7183,
+ "src": "13343:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7868,
+ "name": "arg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7830,
+ "src": "13363:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13343:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7872,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7870,
+ "name": "arg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7830,
+ "src": "13370:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7871,
+ "name": "LN_36_UPPER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7188,
+ "src": "13376:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13370:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "13343:50:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7889,
+ "nodeType": "Block",
+ "src": "13446:51:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7887,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7881,
+ "name": "logArg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7865,
+ "src": "13460:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7886,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 7883,
+ "name": "arg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7830,
+ "src": "13473:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7882,
+ "name": "_ln",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8301,
+ "src": "13469:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7884,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13469:8:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7885,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "13480:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13469:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13460:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7888,
+ "nodeType": "ExpressionStatement",
+ "src": "13460:26:47"
+ }
+ ]
+ },
+ "id": 7890,
+ "nodeType": "IfStatement",
+ "src": "13339:158:47",
+ "trueBody": {
+ "id": 7880,
+ "nodeType": "Block",
+ "src": "13395:45:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7878,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7874,
+ "name": "logArg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7865,
+ "src": "13409:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 7876,
+ "name": "arg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7830,
+ "src": "13425:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7875,
+ "name": "_ln_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8455,
+ "src": "13418:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7877,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13418:11:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13409:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7879,
+ "nodeType": "ExpressionStatement",
+ "src": "13409:20:47"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7896,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7893,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7891,
+ "name": "logArg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7865,
+ "src": "13608:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7892,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "13617:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13608:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7894,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "13607:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7895,
+ "name": "logBase",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7838,
+ "src": "13627:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13607:27:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 7836,
+ "id": 7897,
+ "nodeType": "Return",
+ "src": "13600:34:47"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 7828,
+ "nodeType": "StructuredDocumentation",
+ "src": "12710:104:47",
+ "text": " @dev Logarithm (log(arg, base), with signed 18 decimal fixed point base and argument."
+ },
+ "id": 7899,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "log",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7833,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7830,
+ "mutability": "mutable",
+ "name": "arg",
+ "nodeType": "VariableDeclaration",
+ "scope": 7899,
+ "src": "12832:10:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7829,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12832:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 7832,
+ "mutability": "mutable",
+ "name": "base",
+ "nodeType": "VariableDeclaration",
+ "scope": 7899,
+ "src": "12844:11:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7831,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12844:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12831:25:47"
+ },
+ "returnParameters": {
+ "id": 7836,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7835,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 7899,
+ "src": "12880:6:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7834,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12880:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12879:8:47"
+ },
+ "scope": 8456,
+ "src": "12819:822:47",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 7935,
+ "nodeType": "Block",
+ "src": "13799:292:47",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7910,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7908,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7902,
+ "src": "13901:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 7909,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13905:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "13901:5:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 7911,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "13908:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 7912,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "13908:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 7907,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "13892:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 7913,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13892:37:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 7914,
+ "nodeType": "ExpressionStatement",
+ "src": "13892:37:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 7921,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7917,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7915,
+ "name": "LN_36_LOWER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7183,
+ "src": "13943:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7916,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7902,
+ "src": "13963:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13943:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7920,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7918,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7902,
+ "src": "13968:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7919,
+ "name": "LN_36_UPPER_BOUND",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7188,
+ "src": "13972:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "13968:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "13943:46:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 7933,
+ "nodeType": "Block",
+ "src": "14047:38:47",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 7930,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7902,
+ "src": "14072:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7929,
+ "name": "_ln",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8301,
+ "src": "14068:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7931,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14068:6:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 7906,
+ "id": 7932,
+ "nodeType": "Return",
+ "src": "14061:13:47"
+ }
+ ]
+ },
+ "id": 7934,
+ "nodeType": "IfStatement",
+ "src": "13939:146:47",
+ "trueBody": {
+ "id": 7928,
+ "nodeType": "Block",
+ "src": "13991:50:47",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7926,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 7923,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7902,
+ "src": "14019:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7922,
+ "name": "_ln_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8455,
+ "src": "14012:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7924,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14012:9:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7925,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "14024:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "14012:18:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 7906,
+ "id": 7927,
+ "nodeType": "Return",
+ "src": "14005:25:47"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 7900,
+ "nodeType": "StructuredDocumentation",
+ "src": "13647:94:47",
+ "text": " @dev Natural logarithm (ln(a)) with signed 18 decimal fixed point argument."
+ },
+ "id": 7936,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "ln",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7903,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7902,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 7936,
+ "src": "13758:8:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7901,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13758:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13757:10:47"
+ },
+ "returnParameters": {
+ "id": 7906,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7905,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 7936,
+ "src": "13791:6:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7904,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13791:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13790:8:47"
+ },
+ "scope": 8456,
+ "src": "13746:345:47",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8300,
+ "nodeType": "Block",
+ "src": "14258:4906:47",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7946,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7944,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "14272:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 7945,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "14276:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "14272:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7959,
+ "nodeType": "IfStatement",
+ "src": "14268:382:47",
+ "trueBody": {
+ "id": 7958,
+ "nodeType": "Block",
+ "src": "14284:366:47",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 7955,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "-",
+ "prefix": true,
+ "src": "14611:27:47",
+ "subExpression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7953,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7950,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7948,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "14617:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7949,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "14626:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "14617:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7951,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "14616:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 7952,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "14636:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "14616:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 7947,
+ "name": "_ln",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8301,
+ "src": "14612:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_int256_$",
+ "typeString": "function (int256) pure returns (int256)"
+ }
+ },
+ "id": 7954,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14612:26:47",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 7956,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "14610:29:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 7943,
+ "id": 7957,
+ "nodeType": "Return",
+ "src": "14603:36:47"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 7961
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 7961,
+ "mutability": "mutable",
+ "name": "sum",
+ "nodeType": "VariableDeclaration",
+ "scope": 8300,
+ "src": "15975:10:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7960,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15975:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 7963,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 7962,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "15988:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "15975:14:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7968,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7964,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16003:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7967,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7965,
+ "name": "a0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7204,
+ "src": "16008:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7966,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "16013:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16008:11:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16003:16:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7978,
+ "nodeType": "IfStatement",
+ "src": "15999:114:47",
+ "trueBody": {
+ "id": 7977,
+ "nodeType": "Block",
+ "src": "16021:92:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7971,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7969,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16035:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "/=",
+ "rightHandSide": {
+ "id": 7970,
+ "name": "a0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7204,
+ "src": "16040:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16035:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7972,
+ "nodeType": "ExpressionStatement",
+ "src": "16035:7:47"
+ },
+ {
+ "expression": {
+ "id": 7975,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7973,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16093:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7974,
+ "name": "x0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7201,
+ "src": "16100:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16093:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7976,
+ "nodeType": "ExpressionStatement",
+ "src": "16093:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7983,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7979,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16127:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 7982,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 7980,
+ "name": "a1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7210,
+ "src": "16132:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 7981,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "16137:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16132:11:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16127:16:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 7993,
+ "nodeType": "IfStatement",
+ "src": "16123:114:47",
+ "trueBody": {
+ "id": 7992,
+ "nodeType": "Block",
+ "src": "16145:92:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 7986,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7984,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16159:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "/=",
+ "rightHandSide": {
+ "id": 7985,
+ "name": "a1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7210,
+ "src": "16164:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16159:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7987,
+ "nodeType": "ExpressionStatement",
+ "src": "16159:7:47"
+ },
+ {
+ "expression": {
+ "id": 7990,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7988,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16217:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 7989,
+ "name": "x1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7207,
+ "src": "16224:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16217:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7991,
+ "nodeType": "ExpressionStatement",
+ "src": "16217:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "id": 7996,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7994,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16368:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "*=",
+ "rightHandSide": {
+ "hexValue": "313030",
+ "id": 7995,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "16375:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100_by_1",
+ "typeString": "int_const 100"
+ },
+ "value": "100"
+ },
+ "src": "16368:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 7997,
+ "nodeType": "ExpressionStatement",
+ "src": "16368:10:47"
+ },
+ {
+ "expression": {
+ "id": 8000,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 7998,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16388:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "*=",
+ "rightHandSide": {
+ "hexValue": "313030",
+ "id": 7999,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "16393:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100_by_1",
+ "typeString": "int_const 100"
+ },
+ "value": "100"
+ },
+ "src": "16388:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8001,
+ "nodeType": "ExpressionStatement",
+ "src": "16388:8:47"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8004,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8002,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16523:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8003,
+ "name": "a2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7216,
+ "src": "16528:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16523:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8019,
+ "nodeType": "IfStatement",
+ "src": "16519:82:47",
+ "trueBody": {
+ "id": 8018,
+ "nodeType": "Block",
+ "src": "16532:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8012,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8005,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16546:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8011,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8008,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8006,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16551:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8007,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "16555:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16551:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8009,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "16550:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8010,
+ "name": "a2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7216,
+ "src": "16565:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16550:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16546:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8013,
+ "nodeType": "ExpressionStatement",
+ "src": "16546:21:47"
+ },
+ {
+ "expression": {
+ "id": 8016,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8014,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16581:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8015,
+ "name": "x2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7213,
+ "src": "16588:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16581:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8017,
+ "nodeType": "ExpressionStatement",
+ "src": "16581:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8022,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8020,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16615:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8021,
+ "name": "a3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7222,
+ "src": "16620:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16615:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8037,
+ "nodeType": "IfStatement",
+ "src": "16611:82:47",
+ "trueBody": {
+ "id": 8036,
+ "nodeType": "Block",
+ "src": "16624:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8030,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8023,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16638:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8029,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8026,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8024,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16643:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8025,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "16647:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16643:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8027,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "16642:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8028,
+ "name": "a3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7222,
+ "src": "16657:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16642:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16638:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8031,
+ "nodeType": "ExpressionStatement",
+ "src": "16638:21:47"
+ },
+ {
+ "expression": {
+ "id": 8034,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8032,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16673:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8033,
+ "name": "x3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7219,
+ "src": "16680:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16673:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8035,
+ "nodeType": "ExpressionStatement",
+ "src": "16673:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8040,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8038,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16707:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8039,
+ "name": "a4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7228,
+ "src": "16712:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16707:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8055,
+ "nodeType": "IfStatement",
+ "src": "16703:82:47",
+ "trueBody": {
+ "id": 8054,
+ "nodeType": "Block",
+ "src": "16716:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8048,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8041,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16730:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8047,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8044,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8042,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16735:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8043,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "16739:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16735:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8045,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "16734:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8046,
+ "name": "a4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7228,
+ "src": "16749:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16734:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16730:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8049,
+ "nodeType": "ExpressionStatement",
+ "src": "16730:21:47"
+ },
+ {
+ "expression": {
+ "id": 8052,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8050,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16765:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8051,
+ "name": "x4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7225,
+ "src": "16772:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16765:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8053,
+ "nodeType": "ExpressionStatement",
+ "src": "16765:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8058,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8056,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16799:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8057,
+ "name": "a5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7234,
+ "src": "16804:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16799:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8073,
+ "nodeType": "IfStatement",
+ "src": "16795:82:47",
+ "trueBody": {
+ "id": 8072,
+ "nodeType": "Block",
+ "src": "16808:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8066,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8059,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16822:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8065,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8062,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8060,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16827:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8061,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "16831:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16827:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8063,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "16826:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8064,
+ "name": "a5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7234,
+ "src": "16841:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16826:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16822:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8067,
+ "nodeType": "ExpressionStatement",
+ "src": "16822:21:47"
+ },
+ {
+ "expression": {
+ "id": 8070,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8068,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16857:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8069,
+ "name": "x5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7231,
+ "src": "16864:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16857:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8071,
+ "nodeType": "ExpressionStatement",
+ "src": "16857:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8076,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8074,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16891:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8075,
+ "name": "a6",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7240,
+ "src": "16896:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16891:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8091,
+ "nodeType": "IfStatement",
+ "src": "16887:82:47",
+ "trueBody": {
+ "id": 8090,
+ "nodeType": "Block",
+ "src": "16900:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8084,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8077,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16914:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8083,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8080,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8078,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16919:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8079,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "16923:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16919:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8081,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "16918:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8082,
+ "name": "a6",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7240,
+ "src": "16933:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16918:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16914:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8085,
+ "nodeType": "ExpressionStatement",
+ "src": "16914:21:47"
+ },
+ {
+ "expression": {
+ "id": 8088,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8086,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "16949:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8087,
+ "name": "x6",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7237,
+ "src": "16956:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16949:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8089,
+ "nodeType": "ExpressionStatement",
+ "src": "16949:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8094,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8092,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "16983:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8093,
+ "name": "a7",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7246,
+ "src": "16988:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "16983:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8109,
+ "nodeType": "IfStatement",
+ "src": "16979:82:47",
+ "trueBody": {
+ "id": 8108,
+ "nodeType": "Block",
+ "src": "16992:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8102,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8095,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17006:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8101,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8098,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8096,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17011:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8097,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17015:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17011:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8099,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17010:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8100,
+ "name": "a7",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7246,
+ "src": "17025:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17010:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17006:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8103,
+ "nodeType": "ExpressionStatement",
+ "src": "17006:21:47"
+ },
+ {
+ "expression": {
+ "id": 8106,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8104,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "17041:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8105,
+ "name": "x7",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7243,
+ "src": "17048:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17041:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8107,
+ "nodeType": "ExpressionStatement",
+ "src": "17041:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8112,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8110,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17075:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8111,
+ "name": "a8",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7252,
+ "src": "17080:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17075:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8127,
+ "nodeType": "IfStatement",
+ "src": "17071:82:47",
+ "trueBody": {
+ "id": 8126,
+ "nodeType": "Block",
+ "src": "17084:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8120,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8113,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17098:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8119,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8116,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8114,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17103:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8115,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17107:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17103:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8117,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17102:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8118,
+ "name": "a8",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7252,
+ "src": "17117:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17102:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17098:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8121,
+ "nodeType": "ExpressionStatement",
+ "src": "17098:21:47"
+ },
+ {
+ "expression": {
+ "id": 8124,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8122,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "17133:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8123,
+ "name": "x8",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7249,
+ "src": "17140:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17133:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8125,
+ "nodeType": "ExpressionStatement",
+ "src": "17133:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8130,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8128,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17167:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8129,
+ "name": "a9",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7258,
+ "src": "17172:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17167:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8145,
+ "nodeType": "IfStatement",
+ "src": "17163:82:47",
+ "trueBody": {
+ "id": 8144,
+ "nodeType": "Block",
+ "src": "17176:69:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8138,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8131,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17190:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8137,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8134,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8132,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17195:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8133,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17199:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17195:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8135,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17194:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8136,
+ "name": "a9",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7258,
+ "src": "17209:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17194:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17190:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8139,
+ "nodeType": "ExpressionStatement",
+ "src": "17190:21:47"
+ },
+ {
+ "expression": {
+ "id": 8142,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8140,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "17225:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8141,
+ "name": "x9",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7255,
+ "src": "17232:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17225:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8143,
+ "nodeType": "ExpressionStatement",
+ "src": "17225:9:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8148,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8146,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17259:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8147,
+ "name": "a10",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7264,
+ "src": "17264:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17259:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8163,
+ "nodeType": "IfStatement",
+ "src": "17255:85:47",
+ "trueBody": {
+ "id": 8162,
+ "nodeType": "Block",
+ "src": "17269:71:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8156,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8149,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17283:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8155,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8152,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8150,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17288:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8151,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17292:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17288:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8153,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17287:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8154,
+ "name": "a10",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7264,
+ "src": "17302:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17287:18:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17283:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8157,
+ "nodeType": "ExpressionStatement",
+ "src": "17283:22:47"
+ },
+ {
+ "expression": {
+ "id": 8160,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8158,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "17319:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8159,
+ "name": "x10",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7261,
+ "src": "17326:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17319:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8161,
+ "nodeType": "ExpressionStatement",
+ "src": "17319:10:47"
+ }
+ ]
+ }
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8166,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8164,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17354:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8165,
+ "name": "a11",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7270,
+ "src": "17359:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17354:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 8181,
+ "nodeType": "IfStatement",
+ "src": "17350:85:47",
+ "trueBody": {
+ "id": 8180,
+ "nodeType": "Block",
+ "src": "17364:71:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8174,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8167,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17378:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8173,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8170,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8168,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17383:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8169,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17387:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17383:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8171,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17382:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8172,
+ "name": "a11",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7270,
+ "src": "17397:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17382:18:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17378:22:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8175,
+ "nodeType": "ExpressionStatement",
+ "src": "17378:22:47"
+ },
+ {
+ "expression": {
+ "id": 8178,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8176,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "17414:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "id": 8177,
+ "name": "x11",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7267,
+ "src": "17421:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17414:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8179,
+ "nodeType": "ExpressionStatement",
+ "src": "17414:10:47"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 8183
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8183,
+ "mutability": "mutable",
+ "name": "z",
+ "nodeType": "VariableDeclaration",
+ "scope": 8300,
+ "src": "17937:8:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8182,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17937:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8196,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8195,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8189,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8186,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8184,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17950:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 8185,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17954:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17950:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8187,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17949:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8188,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17964:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17949:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8190,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17948:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8193,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8191,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7939,
+ "src": "17975:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 8192,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "17979:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17975:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8194,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17974:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "17948:38:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17937:49:47"
+ },
+ {
+ "assignments": [
+ 8198
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8198,
+ "mutability": "mutable",
+ "name": "z_squared",
+ "nodeType": "VariableDeclaration",
+ "scope": 8300,
+ "src": "17996:16:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8197,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17996:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8205,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8204,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8201,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8199,
+ "name": "z",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8183,
+ "src": "18016:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8200,
+ "name": "z",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8183,
+ "src": "18020:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18016:5:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8202,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18015:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8203,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "18025:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18015:16:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17996:35:47"
+ },
+ {
+ "assignments": [
+ 8207
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8207,
+ "mutability": "mutable",
+ "name": "num",
+ "nodeType": "VariableDeclaration",
+ "scope": 8300,
+ "src": "18112:10:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8206,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18112:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8209,
+ "initialValue": {
+ "id": 8208,
+ "name": "z",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8183,
+ "src": "18125:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "18112:14:47"
+ },
+ {
+ "assignments": [
+ 8211
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8211,
+ "mutability": "mutable",
+ "name": "seriesSum",
+ "nodeType": "VariableDeclaration",
+ "scope": 8300,
+ "src": "18240:16:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8210,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18240:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8213,
+ "initialValue": {
+ "id": 8212,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18259:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "18240:22:47"
+ },
+ {
+ "expression": {
+ "id": 8221,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8214,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18333:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8220,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8217,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8215,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18340:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8216,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8198,
+ "src": "18346:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18340:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8218,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18339:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8219,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "18359:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18339:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18333:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8222,
+ "nodeType": "ExpressionStatement",
+ "src": "18333:32:47"
+ },
+ {
+ "expression": {
+ "id": 8227,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8223,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8211,
+ "src": "18375:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8226,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8224,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18388:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "33",
+ "id": 8225,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "18394:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "src": "18388:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18375:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8228,
+ "nodeType": "ExpressionStatement",
+ "src": "18375:20:47"
+ },
+ {
+ "expression": {
+ "id": 8236,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8229,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18406:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8235,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8232,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8230,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18413:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8231,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8198,
+ "src": "18419:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18413:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8233,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18412:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8234,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "18432:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18412:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18406:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8237,
+ "nodeType": "ExpressionStatement",
+ "src": "18406:32:47"
+ },
+ {
+ "expression": {
+ "id": 8242,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8238,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8211,
+ "src": "18448:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8241,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8239,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18461:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "35",
+ "id": 8240,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "18467:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "src": "18461:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18448:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8243,
+ "nodeType": "ExpressionStatement",
+ "src": "18448:20:47"
+ },
+ {
+ "expression": {
+ "id": 8251,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8244,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18479:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8250,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8247,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8245,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18486:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8246,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8198,
+ "src": "18492:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18486:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8248,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18485:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8249,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "18505:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18485:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18479:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8252,
+ "nodeType": "ExpressionStatement",
+ "src": "18479:32:47"
+ },
+ {
+ "expression": {
+ "id": 8257,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8253,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8211,
+ "src": "18521:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8256,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8254,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18534:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "37",
+ "id": 8255,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "18540:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_7_by_1",
+ "typeString": "int_const 7"
+ },
+ "value": "7"
+ },
+ "src": "18534:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18521:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8258,
+ "nodeType": "ExpressionStatement",
+ "src": "18521:20:47"
+ },
+ {
+ "expression": {
+ "id": 8266,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8259,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18552:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8265,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8262,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8260,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18559:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8261,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8198,
+ "src": "18565:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18559:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8263,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18558:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8264,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "18578:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18558:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18552:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8267,
+ "nodeType": "ExpressionStatement",
+ "src": "18552:32:47"
+ },
+ {
+ "expression": {
+ "id": 8272,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8268,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8211,
+ "src": "18594:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8269,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18607:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "39",
+ "id": 8270,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "18613:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_9_by_1",
+ "typeString": "int_const 9"
+ },
+ "value": "9"
+ },
+ "src": "18607:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18594:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8273,
+ "nodeType": "ExpressionStatement",
+ "src": "18594:20:47"
+ },
+ {
+ "expression": {
+ "id": 8281,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8274,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18625:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8280,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8277,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8275,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18632:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8276,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8198,
+ "src": "18638:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18632:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8278,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18631:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8279,
+ "name": "ONE_20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7168,
+ "src": "18651:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18631:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18625:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8282,
+ "nodeType": "ExpressionStatement",
+ "src": "18625:32:47"
+ },
+ {
+ "expression": {
+ "id": 8287,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8283,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8211,
+ "src": "18667:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8286,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8284,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8207,
+ "src": "18680:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "3131",
+ "id": 8285,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "18686:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_11_by_1",
+ "typeString": "int_const 11"
+ },
+ "value": "11"
+ },
+ "src": "18680:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "18667:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8288,
+ "nodeType": "ExpressionStatement",
+ "src": "18667:21:47"
+ },
+ {
+ "expression": {
+ "id": 8291,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8289,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8211,
+ "src": "18847:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "*=",
+ "rightHandSide": {
+ "hexValue": "32",
+ "id": 8290,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "18860:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "src": "18847:14:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8292,
+ "nodeType": "ExpressionStatement",
+ "src": "18847:14:47"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8298,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8295,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8293,
+ "name": "sum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7961,
+ "src": "19135:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 8294,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8211,
+ "src": "19141:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "19135:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8296,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "19134:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "313030",
+ "id": 8297,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "19154:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_100_by_1",
+ "typeString": "int_const 100"
+ },
+ "value": "100"
+ },
+ "src": "19134:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 7943,
+ "id": 8299,
+ "nodeType": "Return",
+ "src": "19127:30:47"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 7937,
+ "nodeType": "StructuredDocumentation",
+ "src": "14097:103:47",
+ "text": " @dev Internal natural logarithm (ln(a)) with signed 18 decimal fixed point argument."
+ },
+ "id": 8301,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ln",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 7940,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7939,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8301,
+ "src": "14218:8:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7938,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14218:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "14217:10:47"
+ },
+ "returnParameters": {
+ "id": 7943,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 7942,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8301,
+ "src": "14250:6:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 7941,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14250:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "14249:8:47"
+ },
+ "scope": 8456,
+ "src": "14205:4959:47",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 8454,
+ "nodeType": "Block",
+ "src": "19486:1658:47",
+ "statements": [
+ {
+ "expression": {
+ "id": 8311,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8309,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8304,
+ "src": "19700:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "*=",
+ "rightHandSide": {
+ "id": 8310,
+ "name": "ONE_18",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7165,
+ "src": "19705:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "19700:11:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8312,
+ "nodeType": "ExpressionStatement",
+ "src": "19700:11:47"
+ },
+ {
+ "assignments": [
+ 8314
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8314,
+ "mutability": "mutable",
+ "name": "z",
+ "nodeType": "VariableDeclaration",
+ "scope": 8454,
+ "src": "20072:8:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8313,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20072:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8327,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8326,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8320,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8317,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8315,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8304,
+ "src": "20085:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 8316,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20089:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20085:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8318,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20084:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8319,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20099:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20084:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8321,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20083:23:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8324,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8322,
+ "name": "x",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8304,
+ "src": "20110:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 8323,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20114:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20110:10:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8325,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20109:12:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20083:38:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "20072:49:47"
+ },
+ {
+ "assignments": [
+ 8329
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8329,
+ "mutability": "mutable",
+ "name": "z_squared",
+ "nodeType": "VariableDeclaration",
+ "scope": 8454,
+ "src": "20131:16:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8328,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20131:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8336,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8335,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8332,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8330,
+ "name": "z",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8314,
+ "src": "20151:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8331,
+ "name": "z",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8314,
+ "src": "20155:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20151:5:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8333,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20150:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8334,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20160:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20150:16:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "20131:35:47"
+ },
+ {
+ "assignments": [
+ 8338
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8338,
+ "mutability": "mutable",
+ "name": "num",
+ "nodeType": "VariableDeclaration",
+ "scope": 8454,
+ "src": "20247:10:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8337,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20247:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8340,
+ "initialValue": {
+ "id": 8339,
+ "name": "z",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8314,
+ "src": "20260:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "20247:14:47"
+ },
+ {
+ "assignments": [
+ 8342
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8342,
+ "mutability": "mutable",
+ "name": "seriesSum",
+ "nodeType": "VariableDeclaration",
+ "scope": 8454,
+ "src": "20375:16:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8341,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20375:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8344,
+ "initialValue": {
+ "id": 8343,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20394:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "20375:22:47"
+ },
+ {
+ "expression": {
+ "id": 8352,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8345,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20468:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8351,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8348,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8346,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20475:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8347,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8329,
+ "src": "20481:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20475:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8349,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20474:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8350,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20494:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20474:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20468:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8353,
+ "nodeType": "ExpressionStatement",
+ "src": "20468:32:47"
+ },
+ {
+ "expression": {
+ "id": 8358,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8354,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "20510:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8357,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8355,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20523:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "33",
+ "id": 8356,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "20529:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "src": "20523:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20510:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8359,
+ "nodeType": "ExpressionStatement",
+ "src": "20510:20:47"
+ },
+ {
+ "expression": {
+ "id": 8367,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8360,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20541:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8366,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8363,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8361,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20548:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8362,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8329,
+ "src": "20554:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20548:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8364,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20547:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8365,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20567:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20547:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20541:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8368,
+ "nodeType": "ExpressionStatement",
+ "src": "20541:32:47"
+ },
+ {
+ "expression": {
+ "id": 8373,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8369,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "20583:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8372,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8370,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20596:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "35",
+ "id": 8371,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "20602:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "src": "20596:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20583:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8374,
+ "nodeType": "ExpressionStatement",
+ "src": "20583:20:47"
+ },
+ {
+ "expression": {
+ "id": 8382,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8375,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20614:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8381,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8378,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8376,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20621:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8377,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8329,
+ "src": "20627:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20621:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8379,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20620:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8380,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20640:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20620:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20614:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8383,
+ "nodeType": "ExpressionStatement",
+ "src": "20614:32:47"
+ },
+ {
+ "expression": {
+ "id": 8388,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8384,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "20656:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8387,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8385,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20669:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "37",
+ "id": 8386,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "20675:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_7_by_1",
+ "typeString": "int_const 7"
+ },
+ "value": "7"
+ },
+ "src": "20669:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20656:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8389,
+ "nodeType": "ExpressionStatement",
+ "src": "20656:20:47"
+ },
+ {
+ "expression": {
+ "id": 8397,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8390,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20687:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8396,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8393,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8391,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20694:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8392,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8329,
+ "src": "20700:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20694:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8394,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20693:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8395,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20713:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20693:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20687:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8398,
+ "nodeType": "ExpressionStatement",
+ "src": "20687:32:47"
+ },
+ {
+ "expression": {
+ "id": 8403,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8399,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "20729:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8402,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8400,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20742:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "39",
+ "id": 8401,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "20748:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_9_by_1",
+ "typeString": "int_const 9"
+ },
+ "value": "9"
+ },
+ "src": "20742:7:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20729:20:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8404,
+ "nodeType": "ExpressionStatement",
+ "src": "20729:20:47"
+ },
+ {
+ "expression": {
+ "id": 8412,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8405,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20760:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8411,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8408,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8406,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20767:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8407,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8329,
+ "src": "20773:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20767:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8409,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20766:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8410,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20786:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20766:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20760:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8413,
+ "nodeType": "ExpressionStatement",
+ "src": "20760:32:47"
+ },
+ {
+ "expression": {
+ "id": 8418,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8414,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "20802:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8417,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8415,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20815:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "3131",
+ "id": 8416,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "20821:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_11_by_1",
+ "typeString": "int_const 11"
+ },
+ "value": "11"
+ },
+ "src": "20815:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20802:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8419,
+ "nodeType": "ExpressionStatement",
+ "src": "20802:21:47"
+ },
+ {
+ "expression": {
+ "id": 8427,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8420,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20834:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8426,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8423,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8421,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20841:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8422,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8329,
+ "src": "20847:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20841:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8424,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20840:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8425,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20860:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20840:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20834:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8428,
+ "nodeType": "ExpressionStatement",
+ "src": "20834:32:47"
+ },
+ {
+ "expression": {
+ "id": 8433,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8429,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "20876:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8432,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8430,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20889:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "3133",
+ "id": 8431,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "20895:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_13_by_1",
+ "typeString": "int_const 13"
+ },
+ "value": "13"
+ },
+ "src": "20889:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20876:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8434,
+ "nodeType": "ExpressionStatement",
+ "src": "20876:21:47"
+ },
+ {
+ "expression": {
+ "id": 8442,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8435,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20908:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8441,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8438,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8436,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20915:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8437,
+ "name": "z_squared",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8329,
+ "src": "20921:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20915:15:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "id": 8439,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20914:17:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8440,
+ "name": "ONE_36",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7171,
+ "src": "20934:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20914:26:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20908:32:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8443,
+ "nodeType": "ExpressionStatement",
+ "src": "20908:32:47"
+ },
+ {
+ "expression": {
+ "id": 8448,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8444,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "20950:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "+=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8447,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8445,
+ "name": "num",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8338,
+ "src": "20963:3:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "hexValue": "3135",
+ "id": 8446,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "20969:2:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_15_by_1",
+ "typeString": "int_const 15"
+ },
+ "value": "15"
+ },
+ "src": "20963:8:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "20950:21:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "id": 8449,
+ "nodeType": "ExpressionStatement",
+ "src": "20950:21:47"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8452,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8450,
+ "name": "seriesSum",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8342,
+ "src": "21124:9:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "hexValue": "32",
+ "id": 8451,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "21136:1:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "src": "21124:13:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 8308,
+ "id": 8453,
+ "nodeType": "Return",
+ "src": "21117:20:47"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8302,
+ "nodeType": "StructuredDocumentation",
+ "src": "19170:255:47",
+ "text": " @dev Intrnal high precision (36 decimal places) natural logarithm (ln(x)) with signed 18 decimal fixed point argument,\n for x close to one.\n Should only be used if x is between LN_36_LOWER_BOUND and LN_36_UPPER_BOUND."
+ },
+ "id": 8455,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ln_36",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8305,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8304,
+ "mutability": "mutable",
+ "name": "x",
+ "nodeType": "VariableDeclaration",
+ "scope": 8455,
+ "src": "19446:8:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8303,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19446:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "19445:10:47"
+ },
+ "returnParameters": {
+ "id": 8308,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8307,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8455,
+ "src": "19478:6:47",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8306,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19478:6:47",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "19477:8:47"
+ },
+ "scope": 8456,
+ "src": "19430:1714:47",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 8457,
+ "src": "1681:19465:47"
+ }
+ ],
+ "src": "1094:20053:47"
+ },
+ "id": 47
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "exportedSymbols": {
+ "Math": [
+ 8768
+ ]
+ },
+ "id": 8769,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 8458,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:48"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 8459,
+ "nodeType": "ImportDirective",
+ "scope": 8769,
+ "sourceUnit": 1012,
+ "src": "58:90:48",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "documentation": {
+ "id": 8460,
+ "nodeType": "StructuredDocumentation",
+ "src": "150:139:48",
+ "text": " @dev Wrappers over Solidity's arithmetic operations with added overflow checks.\n Adapted from OpenZeppelin's SafeMath library."
+ },
+ "fullyImplemented": true,
+ "id": 8768,
+ "linearizedBaseContracts": [
+ 8768
+ ],
+ "name": "Math",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "body": {
+ "id": 8482,
+ "nodeType": "Block",
+ "src": "440:56:48",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8470,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8468,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8463,
+ "src": "457:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8469,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "461:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "457:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 8478,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "-",
+ "prefix": true,
+ "src": "486:2:48",
+ "subExpression": {
+ "id": 8477,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8463,
+ "src": "487:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 8476,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "478:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 8475,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "478:7:48",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 8479,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "478:11:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 8480,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "457:32:48",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 8473,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8463,
+ "src": "473:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ ],
+ "id": 8472,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "465:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint256_$",
+ "typeString": "type(uint256)"
+ },
+ "typeName": {
+ "id": 8471,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "465:7:48",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 8474,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "465:10:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8467,
+ "id": 8481,
+ "nodeType": "Return",
+ "src": "450:39:48"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8461,
+ "nodeType": "StructuredDocumentation",
+ "src": "309:71:48",
+ "text": " @dev Returns the absolute value of a signed integer."
+ },
+ "id": 8483,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "abs",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8464,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8463,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8483,
+ "src": "398:8:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8462,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "398:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "397:10:48"
+ },
+ "returnParameters": {
+ "id": 8467,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8466,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8483,
+ "src": "431:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8465,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "431:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "430:9:48"
+ },
+ "scope": 8768,
+ "src": "385:111:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8509,
+ "nodeType": "Block",
+ "src": "679:99:48",
+ "statements": [
+ {
+ "assignments": [
+ 8494
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8494,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 8509,
+ "src": "689:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8493,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "689:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8498,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8497,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8495,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8486,
+ "src": "701:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 8496,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8488,
+ "src": "705:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "701:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "689:17:48"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8502,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8500,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8494,
+ "src": "725:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8501,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8486,
+ "src": "730:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "725:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 8503,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "733:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 8504,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ADD_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 533,
+ "src": "733:19:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8499,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "716:8:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 8505,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "716:37:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8506,
+ "nodeType": "ExpressionStatement",
+ "src": "716:37:48"
+ },
+ {
+ "expression": {
+ "id": 8507,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8494,
+ "src": "770:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8492,
+ "id": 8508,
+ "nodeType": "Return",
+ "src": "763:8:48"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8484,
+ "nodeType": "StructuredDocumentation",
+ "src": "502:105:48",
+ "text": " @dev Returns the addition of two unsigned integers of 256 bits, reverting on overflow."
+ },
+ "id": 8510,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "add",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8489,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8486,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8510,
+ "src": "625:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8485,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "625:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8488,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8510,
+ "src": "636:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8487,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "636:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "624:22:48"
+ },
+ "returnParameters": {
+ "id": 8492,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8491,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8510,
+ "src": "670:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8490,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "670:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "669:9:48"
+ },
+ "scope": 8768,
+ "src": "612:166:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8550,
+ "nodeType": "Block",
+ "src": "944:130:48",
+ "statements": [
+ {
+ "assignments": [
+ 8521
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8521,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 8550,
+ "src": "954:8:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8520,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "954:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8525,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8524,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8522,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8513,
+ "src": "965:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 8523,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8515,
+ "src": "969:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "965:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "954:16:48"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 8543,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 8533,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8529,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8527,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8515,
+ "src": "990:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8528,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "995:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "990:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8532,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8530,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8521,
+ "src": "1000:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8531,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8513,
+ "src": "1005:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "1000:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "990:16:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 8534,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "989:18:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 8541,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8537,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8535,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8515,
+ "src": "1012:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8536,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1016:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1012:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8540,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8538,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8521,
+ "src": "1021:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 8539,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8513,
+ "src": "1025:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "1021:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1012:14:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 8542,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1011:16:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "989:38:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 8544,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1029:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 8545,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ADD_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 533,
+ "src": "1029:19:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8526,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "980:8:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 8546,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "980:69:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8547,
+ "nodeType": "ExpressionStatement",
+ "src": "980:69:48"
+ },
+ {
+ "expression": {
+ "id": 8548,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8521,
+ "src": "1066:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 8519,
+ "id": 8549,
+ "nodeType": "Return",
+ "src": "1059:8:48"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8511,
+ "nodeType": "StructuredDocumentation",
+ "src": "784:91:48",
+ "text": " @dev Returns the addition of two signed integers, reverting on overflow."
+ },
+ "id": 8551,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "add",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8516,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8513,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8551,
+ "src": "893:8:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8512,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "893:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8515,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8551,
+ "src": "903:8:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8514,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "903:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "892:20:48"
+ },
+ "returnParameters": {
+ "id": 8519,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8518,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8551,
+ "src": "936:6:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8517,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "936:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "935:8:48"
+ },
+ "scope": 8768,
+ "src": "880:194:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8577,
+ "nodeType": "Block",
+ "src": "1260:99:48",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8564,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8562,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8556,
+ "src": "1279:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 8563,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8554,
+ "src": "1284:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1279:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 8565,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1287:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 8566,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SUB_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 536,
+ "src": "1287:19:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8561,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1270:8:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 8567,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1270:37:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8568,
+ "nodeType": "ExpressionStatement",
+ "src": "1270:37:48"
+ },
+ {
+ "assignments": [
+ 8570
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8570,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 8577,
+ "src": "1317:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8569,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1317:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8574,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8573,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8571,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8554,
+ "src": "1329:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 8572,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8556,
+ "src": "1333:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1329:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1317:17:48"
+ },
+ {
+ "expression": {
+ "id": 8575,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8570,
+ "src": "1351:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8560,
+ "id": 8576,
+ "nodeType": "Return",
+ "src": "1344:8:48"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8552,
+ "nodeType": "StructuredDocumentation",
+ "src": "1080:108:48",
+ "text": " @dev Returns the subtraction of two unsigned integers of 256 bits, reverting on overflow."
+ },
+ "id": 8578,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "sub",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8557,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8554,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8578,
+ "src": "1206:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8553,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1206:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8556,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8578,
+ "src": "1217:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8555,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1217:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1205:22:48"
+ },
+ "returnParameters": {
+ "id": 8560,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8559,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8578,
+ "src": "1251:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8558,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1251:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1250:9:48"
+ },
+ "scope": 8768,
+ "src": "1193:166:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8618,
+ "nodeType": "Block",
+ "src": "1528:130:48",
+ "statements": [
+ {
+ "assignments": [
+ 8589
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8589,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 8618,
+ "src": "1538:8:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8588,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1538:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8593,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8592,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8590,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8581,
+ "src": "1549:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 8591,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8583,
+ "src": "1553:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "1549:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1538:16:48"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 8611,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 8601,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8597,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8595,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8583,
+ "src": "1574:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8596,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1579:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1574:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8600,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8598,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8589,
+ "src": "1584:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 8599,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8581,
+ "src": "1589:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "1584:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1574:16:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 8602,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1573:18:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 8609,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8605,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8603,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8583,
+ "src": "1596:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8604,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1600:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1596:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "id": 8608,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8606,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8589,
+ "src": "1605:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "id": 8607,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8581,
+ "src": "1609:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "src": "1605:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1596:14:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 8610,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "1595:16:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "1573:38:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 8612,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1613:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 8613,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SUB_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 536,
+ "src": "1613:19:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8594,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1564:8:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 8614,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1564:69:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8615,
+ "nodeType": "ExpressionStatement",
+ "src": "1564:69:48"
+ },
+ {
+ "expression": {
+ "id": 8616,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8589,
+ "src": "1650:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 8587,
+ "id": 8617,
+ "nodeType": "Return",
+ "src": "1643:8:48"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8579,
+ "nodeType": "StructuredDocumentation",
+ "src": "1365:94:48",
+ "text": " @dev Returns the subtraction of two signed integers, reverting on overflow."
+ },
+ "id": 8619,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "sub",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8584,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8581,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8619,
+ "src": "1477:8:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8580,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1477:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8583,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8619,
+ "src": "1487:8:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8582,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1487:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1476:20:48"
+ },
+ "returnParameters": {
+ "id": 8587,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8586,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8619,
+ "src": "1520:6:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 8585,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1520:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1519:8:48"
+ },
+ "scope": 8768,
+ "src": "1464:194:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8636,
+ "nodeType": "Block",
+ "src": "1807:38:48",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8631,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8629,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8622,
+ "src": "1824:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 8630,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8624,
+ "src": "1829:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1824:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 8633,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8624,
+ "src": "1837:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 8634,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "1824:14:48",
+ "trueExpression": {
+ "id": 8632,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8622,
+ "src": "1833:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8628,
+ "id": 8635,
+ "nodeType": "Return",
+ "src": "1817:21:48"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8620,
+ "nodeType": "StructuredDocumentation",
+ "src": "1664:71:48",
+ "text": " @dev Returns the largest of two numbers of 256 bits."
+ },
+ "id": 8637,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "max",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8625,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8622,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8637,
+ "src": "1753:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8621,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1753:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8624,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8637,
+ "src": "1764:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8623,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1764:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1752:22:48"
+ },
+ "returnParameters": {
+ "id": 8628,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8627,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8637,
+ "src": "1798:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8626,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1798:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1797:9:48"
+ },
+ "scope": 8768,
+ "src": "1740:105:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8654,
+ "nodeType": "Block",
+ "src": "1995:37:48",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8649,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8647,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8640,
+ "src": "2012:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 8648,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8642,
+ "src": "2016:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2012:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 8651,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8642,
+ "src": "2024:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 8652,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "2012:13:48",
+ "trueExpression": {
+ "id": 8650,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8640,
+ "src": "2020:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8646,
+ "id": 8653,
+ "nodeType": "Return",
+ "src": "2005:20:48"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8638,
+ "nodeType": "StructuredDocumentation",
+ "src": "1851:72:48",
+ "text": " @dev Returns the smallest of two numbers of 256 bits."
+ },
+ "id": 8655,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "min",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8643,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8640,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8655,
+ "src": "1941:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8639,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1941:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8642,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8655,
+ "src": "1952:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8641,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1952:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1940:22:48"
+ },
+ "returnParameters": {
+ "id": 8646,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8645,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8655,
+ "src": "1986:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8644,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1986:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1985:9:48"
+ },
+ "scope": 8768,
+ "src": "1928:104:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8686,
+ "nodeType": "Block",
+ "src": "2105:113:48",
+ "statements": [
+ {
+ "assignments": [
+ 8665
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 8665,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 8686,
+ "src": "2115:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8664,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2115:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 8669,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8668,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8666,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8657,
+ "src": "2127:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "*",
+ "rightExpression": {
+ "id": 8667,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8659,
+ "src": "2131:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2127:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2115:17:48"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 8679,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8673,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8671,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8657,
+ "src": "2151:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8672,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2156:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2151:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8678,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8676,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8674,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8665,
+ "src": "2161:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8675,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8657,
+ "src": "2165:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2161:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 8677,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8659,
+ "src": "2170:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2161:10:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "2151:20:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 8680,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2173:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 8681,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MUL_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 542,
+ "src": "2173:19:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8670,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2142:8:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 8682,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2142:51:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8683,
+ "nodeType": "ExpressionStatement",
+ "src": "2142:51:48"
+ },
+ {
+ "expression": {
+ "id": 8684,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8665,
+ "src": "2210:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8663,
+ "id": 8685,
+ "nodeType": "Return",
+ "src": "2203:8:48"
+ }
+ ]
+ },
+ "id": 8687,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "mul",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8660,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8657,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8687,
+ "src": "2051:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8656,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2051:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8659,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8687,
+ "src": "2062:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8658,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2062:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2050:22:48"
+ },
+ "returnParameters": {
+ "id": 8663,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8662,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8687,
+ "src": "2096:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8661,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2096:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2095:9:48"
+ },
+ "scope": 8768,
+ "src": "2038:180:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8709,
+ "nodeType": "Block",
+ "src": "2335:61:48",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "id": 8698,
+ "name": "roundUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8693,
+ "src": "2352:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 8704,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8689,
+ "src": "2384:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 8705,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8691,
+ "src": "2387:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8703,
+ "name": "divDown",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8732,
+ "src": "2376:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 8706,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2376:13:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 8707,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "2352:37:48",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 8700,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8689,
+ "src": "2368:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 8701,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8691,
+ "src": "2371:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8699,
+ "name": "divUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8767,
+ "src": "2362:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 8702,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2362:11:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8697,
+ "id": 8708,
+ "nodeType": "Return",
+ "src": "2345:44:48"
+ }
+ ]
+ },
+ "id": 8710,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "div",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8694,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8689,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8710,
+ "src": "2246:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8688,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2246:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8691,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8710,
+ "src": "2265:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8690,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2265:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8693,
+ "mutability": "mutable",
+ "name": "roundUp",
+ "nodeType": "VariableDeclaration",
+ "scope": 8710,
+ "src": "2284:12:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 8692,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2284:4:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2236:66:48"
+ },
+ "returnParameters": {
+ "id": 8697,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8696,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8710,
+ "src": "2326:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8695,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2326:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2325:9:48"
+ },
+ "scope": 8768,
+ "src": "2224:172:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8731,
+ "nodeType": "Block",
+ "src": "2473:77:48",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8722,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8720,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8714,
+ "src": "2492:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8721,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2497:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2492:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 8723,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2500:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 8724,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ZERO_DIVISION",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 545,
+ "src": "2500:20:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8719,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2483:8:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 8725,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2483:38:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8726,
+ "nodeType": "ExpressionStatement",
+ "src": "2483:38:48"
+ },
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8729,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8727,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8712,
+ "src": "2538:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8728,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8714,
+ "src": "2542:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2538:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8718,
+ "id": 8730,
+ "nodeType": "Return",
+ "src": "2531:12:48"
+ }
+ ]
+ },
+ "id": 8732,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "divDown",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8715,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8712,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8732,
+ "src": "2419:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8711,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2419:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8714,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8732,
+ "src": "2430:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8713,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2430:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2418:22:48"
+ },
+ "returnParameters": {
+ "id": 8718,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8717,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8732,
+ "src": "2464:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8716,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2464:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2463:9:48"
+ },
+ "scope": 8768,
+ "src": "2402:148:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8766,
+ "nodeType": "Block",
+ "src": "2625:163:48",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8744,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8742,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8736,
+ "src": "2644:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8743,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2649:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2644:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 8745,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "2652:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 8746,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ZERO_DIVISION",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 545,
+ "src": "2652:20:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8741,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "2635:8:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 8747,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2635:38:48",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8748,
+ "nodeType": "ExpressionStatement",
+ "src": "2635:38:48"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8751,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8749,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8734,
+ "src": "2688:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 8750,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2693:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2688:6:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 8764,
+ "nodeType": "Block",
+ "src": "2735:47:48",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8762,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "31",
+ "id": 8755,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2756:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8761,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 8758,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 8756,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8734,
+ "src": "2761:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 8757,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2765:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2761:5:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 8759,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "2760:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "/",
+ "rightExpression": {
+ "id": 8760,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8736,
+ "src": "2770:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2760:11:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2756:15:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8740,
+ "id": 8763,
+ "nodeType": "Return",
+ "src": "2749:22:48"
+ }
+ ]
+ },
+ "id": 8765,
+ "nodeType": "IfStatement",
+ "src": "2684:98:48",
+ "trueBody": {
+ "id": 8754,
+ "nodeType": "Block",
+ "src": "2696:33:48",
+ "statements": [
+ {
+ "expression": {
+ "hexValue": "30",
+ "id": 8752,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2717:1:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "functionReturnParameters": 8740,
+ "id": 8753,
+ "nodeType": "Return",
+ "src": "2710:8:48"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "id": 8767,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "divUp",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8737,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8734,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 8767,
+ "src": "2571:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8733,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2571:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8736,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 8767,
+ "src": "2582:9:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8735,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2582:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2570:22:48"
+ },
+ "returnParameters": {
+ "id": 8740,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8739,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8767,
+ "src": "2616:7:48",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8738,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2616:7:48",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2615:9:48"
+ },
+ "scope": 8768,
+ "src": "2556:232:48",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 8769,
+ "src": "290:2500:48"
+ }
+ ],
+ "src": "33:2758:48"
+ },
+ "id": 48
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/EIP712.sol",
+ "exportedSymbols": {
+ "EIP712": [
+ 8861
+ ]
+ },
+ "id": 8862,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 8770,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:49"
+ },
+ {
+ "abstract": true,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 8771,
+ "nodeType": "StructuredDocumentation",
+ "src": "58:1142:49",
+ "text": " @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\n The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\n thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\n they need in their contracts using a combination of `abi.encode` and `keccak256`.\n This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\n scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\n ({_hashTypedDataV4}).\n The implementation of the domain separator was designed to be as efficient as possible while still properly updating\n the chain id to protect against replay attacks on an eventual fork of the chain.\n NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method\n https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\n _Available since v3.4._"
+ },
+ "fullyImplemented": true,
+ "id": 8861,
+ "linearizedBaseContracts": [
+ 8861
+ ],
+ "name": "EIP712",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 8773,
+ "mutability": "immutable",
+ "name": "_HASHED_NAME",
+ "nodeType": "VariableDeclaration",
+ "scope": 8861,
+ "src": "1277:38:49",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 8772,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1277:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 8775,
+ "mutability": "immutable",
+ "name": "_HASHED_VERSION",
+ "nodeType": "VariableDeclaration",
+ "scope": 8861,
+ "src": "1321:41:49",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 8774,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1321:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 8777,
+ "mutability": "immutable",
+ "name": "_TYPE_HASH",
+ "nodeType": "VariableDeclaration",
+ "scope": 8861,
+ "src": "1368:36:49",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 8776,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1368:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 8809,
+ "nodeType": "Block",
+ "src": "2075:225:49",
+ "statements": [
+ {
+ "expression": {
+ "id": 8792,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8785,
+ "name": "_HASHED_NAME",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8773,
+ "src": "2085:12:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 8789,
+ "name": "name",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8780,
+ "src": "2116:4:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ ],
+ "id": 8788,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2110:5:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
+ "typeString": "type(bytes storage pointer)"
+ },
+ "typeName": {
+ "id": 8787,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2110:5:49",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 8790,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2110:11:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 8786,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "2100:9:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 8791,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2100:22:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "2085:37:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 8793,
+ "nodeType": "ExpressionStatement",
+ "src": "2085:37:49"
+ },
+ {
+ "expression": {
+ "id": 8801,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8794,
+ "name": "_HASHED_VERSION",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8775,
+ "src": "2132:15:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 8798,
+ "name": "version",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8782,
+ "src": "2166:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ ],
+ "id": 8797,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2160:5:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes_storage_ptr_$",
+ "typeString": "type(bytes storage pointer)"
+ },
+ "typeName": {
+ "id": 8796,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2160:5:49",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 8799,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2160:14:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 8795,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "2150:9:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 8800,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2150:25:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "2132:43:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 8802,
+ "nodeType": "ExpressionStatement",
+ "src": "2132:43:49"
+ },
+ {
+ "expression": {
+ "id": 8807,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8803,
+ "name": "_TYPE_HASH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8777,
+ "src": "2185:10:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "hexValue": "454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429",
+ "id": 8805,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "string",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2208:84:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_stringliteral_8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f",
+ "typeString": "literal_string \"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\""
+ },
+ "value": "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_stringliteral_8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f",
+ "typeString": "literal_string \"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\""
+ }
+ ],
+ "id": 8804,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "2198:9:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 8806,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2198:95:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "2185:108:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 8808,
+ "nodeType": "ExpressionStatement",
+ "src": "2185:108:49"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8778,
+ "nodeType": "StructuredDocumentation",
+ "src": "1456:559:49",
+ "text": " @dev Initializes the domain separator and parameter caches.\n The meaning of `name` and `version` is specified in\n https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\n - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\n - `version`: the current major version of the signing domain.\n NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\n contract upgrade]."
+ },
+ "id": 8810,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8783,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8780,
+ "mutability": "mutable",
+ "name": "name",
+ "nodeType": "VariableDeclaration",
+ "scope": 8810,
+ "src": "2032:18:49",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8779,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2032:6:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8782,
+ "mutability": "mutable",
+ "name": "version",
+ "nodeType": "VariableDeclaration",
+ "scope": 8810,
+ "src": "2052:21:49",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8781,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2052:6:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2031:43:49"
+ },
+ "returnParameters": {
+ "id": 8784,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2075:0:49"
+ },
+ "scope": 8861,
+ "src": "2020:280:49",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8831,
+ "nodeType": "Block",
+ "src": "2456:118:49",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 8819,
+ "name": "_TYPE_HASH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8777,
+ "src": "2494:10:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 8820,
+ "name": "_HASHED_NAME",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8773,
+ "src": "2506:12:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 8821,
+ "name": "_HASHED_VERSION",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8775,
+ "src": "2520:15:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 8822,
+ "name": "_getChainId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8860,
+ "src": "2537:11:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 8823,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2537:13:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 8826,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "2560:4:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_EIP712_$8861",
+ "typeString": "contract EIP712"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_EIP712_$8861",
+ "typeString": "contract EIP712"
+ }
+ ],
+ "id": 8825,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "2552:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 8824,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2552:7:49",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 8827,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2552:13:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "expression": {
+ "id": 8817,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "2483:3:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 8818,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "encode",
+ "nodeType": "MemberAccess",
+ "src": "2483:10:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abiencode_pure$__$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function () pure returns (bytes memory)"
+ }
+ },
+ "id": 8828,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2483:83:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 8816,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "2473:9:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 8829,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2473:94:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 8815,
+ "id": 8830,
+ "nodeType": "Return",
+ "src": "2466:101:49"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8811,
+ "nodeType": "StructuredDocumentation",
+ "src": "2306:75:49",
+ "text": " @dev Returns the domain separator for the current chain."
+ },
+ "id": 8832,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_domainSeparatorV4",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8812,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2413:2:49"
+ },
+ "returnParameters": {
+ "id": 8815,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8814,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8832,
+ "src": "2447:7:49",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 8813,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2447:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2446:9:49"
+ },
+ "scope": 8861,
+ "src": "2386:188:49",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8850,
+ "nodeType": "Block",
+ "src": "3285:97:49",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "hexValue": "1901",
+ "id": 8843,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "string",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3329:10:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_stringliteral_301a50b291d33ce1e8e9064e3f6a6c51d902ec22892b50d58abf6357c6a45541",
+ "typeString": "literal_string \"\u0019\u0001\""
+ },
+ "value": "\u0019\u0001"
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 8844,
+ "name": "_domainSeparatorV4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8832,
+ "src": "3341:18:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
+ "typeString": "function () view returns (bytes32)"
+ }
+ },
+ "id": 8845,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3341:20:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 8846,
+ "name": "structHash",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8835,
+ "src": "3363:10:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_stringliteral_301a50b291d33ce1e8e9064e3f6a6c51d902ec22892b50d58abf6357c6a45541",
+ "typeString": "literal_string \"\u0019\u0001\""
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "id": 8841,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "3312:3:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 8842,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "encodePacked",
+ "nodeType": "MemberAccess",
+ "src": "3312:16:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function () pure returns (bytes memory)"
+ }
+ },
+ "id": 8847,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3312:62:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 8840,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "3302:9:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 8848,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3302:73:49",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 8839,
+ "id": 8849,
+ "nodeType": "Return",
+ "src": "3295:80:49"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8833,
+ "nodeType": "StructuredDocumentation",
+ "src": "2580:614:49",
+ "text": " @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\n function returns the hash of the fully encoded EIP712 message for this domain.\n This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\n ```solidity\n bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\n keccak256(\"Mail(address to,string contents)\"),\n mailTo,\n keccak256(bytes(mailContents))\n )));\n address signer = ECDSA.recover(digest, signature);\n ```"
+ },
+ "id": 8851,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_hashTypedDataV4",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8836,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8835,
+ "mutability": "mutable",
+ "name": "structHash",
+ "nodeType": "VariableDeclaration",
+ "scope": 8851,
+ "src": "3225:18:49",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 8834,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3225:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3224:20:49"
+ },
+ "returnParameters": {
+ "id": 8839,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8838,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8851,
+ "src": "3276:7:49",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 8837,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3276:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3275:9:49"
+ },
+ "scope": 8861,
+ "src": "3199:183:49",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 8859,
+ "nodeType": "Block",
+ "src": "3450:365:49",
+ "statements": [
+ {
+ "expression": {
+ "id": 8856,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "3685:4:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_EIP712_$8861",
+ "typeString": "contract EIP712"
+ }
+ },
+ "id": 8857,
+ "nodeType": "ExpressionStatement",
+ "src": "3685:4:49"
+ },
+ {
+ "AST": {
+ "nodeType": "YulBlock",
+ "src": "3765:44:49",
+ "statements": [
+ {
+ "nodeType": "YulAssignment",
+ "src": "3779:20:49",
+ "value": {
+ "arguments": [],
+ "functionName": {
+ "name": "chainid",
+ "nodeType": "YulIdentifier",
+ "src": "3790:7:49"
+ },
+ "nodeType": "YulFunctionCall",
+ "src": "3790:9:49"
+ },
+ "variableNames": [
+ {
+ "name": "chainId",
+ "nodeType": "YulIdentifier",
+ "src": "3779:7:49"
+ }
+ ]
+ }
+ ]
+ },
+ "evmVersion": "istanbul",
+ "externalReferences": [
+ {
+ "declaration": 8854,
+ "isOffset": false,
+ "isSlot": false,
+ "src": "3779:7:49",
+ "valueSize": 1
+ }
+ ],
+ "id": 8858,
+ "nodeType": "InlineAssembly",
+ "src": "3756:53:49"
+ }
+ ]
+ },
+ "id": 8860,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getChainId",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8852,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3408:2:49"
+ },
+ "returnParameters": {
+ "id": 8855,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8854,
+ "mutability": "mutable",
+ "name": "chainId",
+ "nodeType": "VariableDeclaration",
+ "scope": 8860,
+ "src": "3433:15:49",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8853,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3433:7:49",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3432:17:49"
+ },
+ "scope": 8861,
+ "src": "3388:427:49",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ }
+ ],
+ "scope": 8862,
+ "src": "1201:2616:49"
+ }
+ ],
+ "src": "33:3785:49"
+ },
+ "id": 49
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol",
+ "exportedSymbols": {
+ "ERC20": [
+ 9352
+ ]
+ },
+ "id": 9353,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 8863,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:50"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 8864,
+ "nodeType": "ImportDirective",
+ "scope": 9353,
+ "sourceUnit": 1012,
+ "src": "58:90:50",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "id": 8865,
+ "nodeType": "ImportDirective",
+ "scope": 9353,
+ "sourceUnit": 1153,
+ "src": "149:87:50",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol",
+ "file": "./SafeMath.sol",
+ "id": 8866,
+ "nodeType": "ImportDirective",
+ "scope": 9353,
+ "sourceUnit": 9595,
+ "src": "238:24:50",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 8868,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1445:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 8869,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1445:6:50"
+ }
+ ],
+ "contractDependencies": [
+ 1152
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 8867,
+ "nodeType": "StructuredDocumentation",
+ "src": "264:1162:50",
+ "text": " @dev Implementation of the {IERC20} interface.\n This implementation is agnostic to the way tokens are created. This means\n that a supply mechanism has to be added in a derived contract using {_mint}.\n For a generic mechanism see {ERC20PresetMinterPauser}.\n TIP: For a detailed writeup see our guide\n https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n to implement supply mechanisms].\n We have followed general OpenZeppelin guidelines: functions revert instead\n of returning `false` on failure. This behavior is nonetheless conventional\n and does not conflict with the expectations of ERC20 applications.\n Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n This allows applications to reconstruct the allowance for all accounts just\n by listening to said events. Other implementations of the EIP may not emit\n these events, as it isn't required by the specification.\n Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n functions have been added to mitigate the well-known issues around setting\n allowances. See {IERC20-approve}."
+ },
+ "fullyImplemented": true,
+ "id": 9352,
+ "linearizedBaseContracts": [
+ 9352,
+ 1152
+ ],
+ "name": "ERC20",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 8872,
+ "libraryName": {
+ "id": 8870,
+ "name": "SafeMath",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 9594,
+ "src": "1464:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_SafeMath_$9594",
+ "typeString": "library SafeMath"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1458:27:50",
+ "typeName": {
+ "id": 8871,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1477:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "constant": false,
+ "id": 8876,
+ "mutability": "mutable",
+ "name": "_balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 9352,
+ "src": "1491:45:50",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ },
+ "typeName": {
+ "id": 8875,
+ "keyType": {
+ "id": 8873,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1499:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Mapping",
+ "src": "1491:27:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ },
+ "valueType": {
+ "id": 8874,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1510:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 8882,
+ "mutability": "mutable",
+ "name": "_allowances",
+ "nodeType": "VariableDeclaration",
+ "scope": 9352,
+ "src": "1543:67:50",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
+ "typeString": "mapping(address => mapping(address => uint256))"
+ },
+ "typeName": {
+ "id": 8881,
+ "keyType": {
+ "id": 8877,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1551:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Mapping",
+ "src": "1543:47:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
+ "typeString": "mapping(address => mapping(address => uint256))"
+ },
+ "valueType": {
+ "id": 8880,
+ "keyType": {
+ "id": 8878,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1570:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "Mapping",
+ "src": "1562:27:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ },
+ "valueType": {
+ "id": 8879,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1581:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 8884,
+ "mutability": "mutable",
+ "name": "_totalSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 9352,
+ "src": "1617:28:50",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8883,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1617:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 8886,
+ "mutability": "mutable",
+ "name": "_name",
+ "nodeType": "VariableDeclaration",
+ "scope": 9352,
+ "src": "1652:20:50",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8885,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1652:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 8888,
+ "mutability": "mutable",
+ "name": "_symbol",
+ "nodeType": "VariableDeclaration",
+ "scope": 9352,
+ "src": "1678:22:50",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8887,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1678:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 8890,
+ "mutability": "mutable",
+ "name": "_decimals",
+ "nodeType": "VariableDeclaration",
+ "scope": 9352,
+ "src": "1706:23:50",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 8889,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "1706:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 8910,
+ "nodeType": "Block",
+ "src": "2108:81:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 8900,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8898,
+ "name": "_name",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8886,
+ "src": "2118:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 8899,
+ "name": "name_",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8893,
+ "src": "2126:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ "src": "2118:13:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "id": 8901,
+ "nodeType": "ExpressionStatement",
+ "src": "2118:13:50"
+ },
+ {
+ "expression": {
+ "id": 8904,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8902,
+ "name": "_symbol",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8888,
+ "src": "2141:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 8903,
+ "name": "symbol_",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8895,
+ "src": "2151:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ "src": "2141:17:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "id": 8905,
+ "nodeType": "ExpressionStatement",
+ "src": "2141:17:50"
+ },
+ {
+ "expression": {
+ "id": 8908,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8906,
+ "name": "_decimals",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8890,
+ "src": "2168:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "hexValue": "3138",
+ "id": 8907,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2180:2:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_18_by_1",
+ "typeString": "int_const 18"
+ },
+ "value": "18"
+ },
+ "src": "2168:14:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "id": 8909,
+ "nodeType": "ExpressionStatement",
+ "src": "2168:14:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8891,
+ "nodeType": "StructuredDocumentation",
+ "src": "1736:311:50",
+ "text": " @dev Sets the values for {name} and {symbol}, initializes {decimals} with\n a default value of 18.\n To select a different value for {decimals}, use {_setupDecimals}.\n All three of these values are immutable: they can only be set once during\n construction."
+ },
+ "id": 8911,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8896,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8893,
+ "mutability": "mutable",
+ "name": "name_",
+ "nodeType": "VariableDeclaration",
+ "scope": 8911,
+ "src": "2064:19:50",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8892,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2064:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8895,
+ "mutability": "mutable",
+ "name": "symbol_",
+ "nodeType": "VariableDeclaration",
+ "scope": 8911,
+ "src": "2085:21:50",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8894,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2085:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2063:44:50"
+ },
+ "returnParameters": {
+ "id": 8897,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2108:0:50"
+ },
+ "scope": 9352,
+ "src": "2052:137:50",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 8919,
+ "nodeType": "Block",
+ "src": "2306:29:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 8917,
+ "name": "_name",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8886,
+ "src": "2323:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "functionReturnParameters": 8916,
+ "id": 8918,
+ "nodeType": "Return",
+ "src": "2316:12:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8912,
+ "nodeType": "StructuredDocumentation",
+ "src": "2195:54:50",
+ "text": " @dev Returns the name of the token."
+ },
+ "functionSelector": "06fdde03",
+ "id": 8920,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "name",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8913,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2267:2:50"
+ },
+ "returnParameters": {
+ "id": 8916,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8915,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8920,
+ "src": "2291:13:50",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8914,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2291:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2290:15:50"
+ },
+ "scope": 9352,
+ "src": "2254:81:50",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 8928,
+ "nodeType": "Block",
+ "src": "2502:31:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 8926,
+ "name": "_symbol",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8888,
+ "src": "2519:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "functionReturnParameters": 8925,
+ "id": 8927,
+ "nodeType": "Return",
+ "src": "2512:14:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8921,
+ "nodeType": "StructuredDocumentation",
+ "src": "2341:102:50",
+ "text": " @dev Returns the symbol of the token, usually a shorter version of the\n name."
+ },
+ "functionSelector": "95d89b41",
+ "id": 8929,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "symbol",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8922,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2463:2:50"
+ },
+ "returnParameters": {
+ "id": 8925,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8924,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8929,
+ "src": "2487:13:50",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 8923,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2487:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2486:15:50"
+ },
+ "scope": 9352,
+ "src": "2448:85:50",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 8937,
+ "nodeType": "Block",
+ "src": "3204:33:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 8935,
+ "name": "_decimals",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8890,
+ "src": "3221:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "functionReturnParameters": 8934,
+ "id": 8936,
+ "nodeType": "Return",
+ "src": "3214:16:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8930,
+ "nodeType": "StructuredDocumentation",
+ "src": "2539:612:50",
+ "text": " @dev Returns the number of decimals used to get its user representation.\n For example, if `decimals` equals `2`, a balance of `505` tokens should\n be displayed to a user as `5,05` (`505 / 10 ** 2`).\n Tokens usually opt for a value of 18, imitating the relationship between\n Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\n called.\n NOTE: This information is only used for _display_ purposes: it in\n no way affects any of the arithmetic of the contract, including\n {IERC20-balanceOf} and {IERC20-transfer}."
+ },
+ "functionSelector": "313ce567",
+ "id": 8938,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "decimals",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8931,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3173:2:50"
+ },
+ "returnParameters": {
+ "id": 8934,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8933,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8938,
+ "src": "3197:5:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 8932,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "3197:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3196:7:50"
+ },
+ "scope": 9352,
+ "src": "3156:81:50",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1083
+ ],
+ "body": {
+ "id": 8947,
+ "nodeType": "Block",
+ "src": "3570:36:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 8945,
+ "name": "_totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8884,
+ "src": "3587:12:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8944,
+ "id": 8946,
+ "nodeType": "Return",
+ "src": "3580:19:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8939,
+ "nodeType": "StructuredDocumentation",
+ "src": "3243:252:50",
+ "text": " @dev See {IERC20-totalSupply}. The total supply should only be read using this function\n Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other\n storage values)."
+ },
+ "functionSelector": "18160ddd",
+ "id": 8948,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "totalSupply",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 8941,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "3543:8:50"
+ },
+ "parameters": {
+ "id": 8940,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3520:2:50"
+ },
+ "returnParameters": {
+ "id": 8944,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8943,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8948,
+ "src": "3561:7:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8942,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3561:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3560:9:50"
+ },
+ "scope": 9352,
+ "src": "3500:106:50",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 8958,
+ "nodeType": "Block",
+ "src": "3927:37:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 8956,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 8954,
+ "name": "_totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8884,
+ "src": "3937:12:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 8955,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8951,
+ "src": "3952:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3937:20:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 8957,
+ "nodeType": "ExpressionStatement",
+ "src": "3937:20:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8949,
+ "nodeType": "StructuredDocumentation",
+ "src": "3612:253:50",
+ "text": " @dev Sets a new value for the total supply. It should only be set using this function.\n * Can be overridden by derived contracts to store the total supply in a different way (e.g. packed with other\n storage values)."
+ },
+ "id": 8959,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setTotalSupply",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 8952,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8951,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 8959,
+ "src": "3895:13:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8950,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3895:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3894:15:50"
+ },
+ "returnParameters": {
+ "id": 8953,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "3927:0:50"
+ },
+ "scope": 9352,
+ "src": "3870:94:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1091
+ ],
+ "body": {
+ "id": 8972,
+ "nodeType": "Block",
+ "src": "4097:42:50",
+ "statements": [
+ {
+ "expression": {
+ "baseExpression": {
+ "id": 8968,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "4114:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 8970,
+ "indexExpression": {
+ "id": 8969,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8962,
+ "src": "4124:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "4114:18:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 8967,
+ "id": 8971,
+ "nodeType": "Return",
+ "src": "4107:25:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8960,
+ "nodeType": "StructuredDocumentation",
+ "src": "3970:47:50",
+ "text": " @dev See {IERC20-balanceOf}."
+ },
+ "functionSelector": "70a08231",
+ "id": 8973,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "balanceOf",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 8964,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "4070:8:50"
+ },
+ "parameters": {
+ "id": 8963,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8962,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 8973,
+ "src": "4041:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 8961,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4041:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4040:17:50"
+ },
+ "returnParameters": {
+ "id": 8967,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8966,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8973,
+ "src": "4088:7:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8965,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4088:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4087:9:50"
+ },
+ "scope": 9352,
+ "src": "4022:117:50",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1101
+ ],
+ "body": {
+ "id": 8993,
+ "nodeType": "Block",
+ "src": "4434:78:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 8985,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "4454:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 8986,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "4454:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 8987,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8976,
+ "src": "4466:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 8988,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8978,
+ "src": "4477:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 8984,
+ "name": "_transfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9199,
+ "src": "4444:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 8989,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4444:40:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 8990,
+ "nodeType": "ExpressionStatement",
+ "src": "4444:40:50"
+ },
+ {
+ "expression": {
+ "hexValue": "74727565",
+ "id": 8991,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4501:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "functionReturnParameters": 8983,
+ "id": 8992,
+ "nodeType": "Return",
+ "src": "4494:11:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8974,
+ "nodeType": "StructuredDocumentation",
+ "src": "4145:192:50",
+ "text": " @dev See {IERC20-transfer}.\n Requirements:\n - `recipient` cannot be the zero address.\n - the caller must have a balance of at least `amount`."
+ },
+ "functionSelector": "a9059cbb",
+ "id": 8994,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "transfer",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 8980,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "4410:8:50"
+ },
+ "parameters": {
+ "id": 8979,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8976,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 8994,
+ "src": "4360:17:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 8975,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4360:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8978,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 8994,
+ "src": "4379:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 8977,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4379:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4359:35:50"
+ },
+ "returnParameters": {
+ "id": 8983,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8982,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 8994,
+ "src": "4428:4:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 8981,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "4428:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4427:6:50"
+ },
+ "scope": 9352,
+ "src": "4342:170:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1111
+ ],
+ "body": {
+ "id": 9011,
+ "nodeType": "Block",
+ "src": "4668:51:50",
+ "statements": [
+ {
+ "expression": {
+ "baseExpression": {
+ "baseExpression": {
+ "id": 9005,
+ "name": "_allowances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8882,
+ "src": "4685:11:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
+ "typeString": "mapping(address => mapping(address => uint256))"
+ }
+ },
+ "id": 9007,
+ "indexExpression": {
+ "id": 9006,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8997,
+ "src": "4697:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "4685:18:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9009,
+ "indexExpression": {
+ "id": 9008,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8999,
+ "src": "4704:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "4685:27:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9004,
+ "id": 9010,
+ "nodeType": "Return",
+ "src": "4678:34:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 8995,
+ "nodeType": "StructuredDocumentation",
+ "src": "4518:47:50",
+ "text": " @dev See {IERC20-allowance}."
+ },
+ "functionSelector": "dd62ed3e",
+ "id": 9012,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "allowance",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9001,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "4641:8:50"
+ },
+ "parameters": {
+ "id": 9000,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 8997,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 9012,
+ "src": "4589:13:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 8996,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4589:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 8999,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9012,
+ "src": "4604:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 8998,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4604:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4588:32:50"
+ },
+ "returnParameters": {
+ "id": 9004,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9003,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9012,
+ "src": "4659:7:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9002,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4659:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4658:9:50"
+ },
+ "scope": 9352,
+ "src": "4570:149:50",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1121
+ ],
+ "body": {
+ "id": 9032,
+ "nodeType": "Block",
+ "src": "4946:75:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9024,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "4965:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 9025,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "4965:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 9026,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9015,
+ "src": "4977:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9027,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9017,
+ "src": "4986:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9023,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "4956:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9028,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4956:37:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9029,
+ "nodeType": "ExpressionStatement",
+ "src": "4956:37:50"
+ },
+ {
+ "expression": {
+ "hexValue": "74727565",
+ "id": 9030,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5010:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "functionReturnParameters": 9022,
+ "id": 9031,
+ "nodeType": "Return",
+ "src": "5003:11:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9013,
+ "nodeType": "StructuredDocumentation",
+ "src": "4725:127:50",
+ "text": " @dev See {IERC20-approve}.\n Requirements:\n - `spender` cannot be the zero address."
+ },
+ "functionSelector": "095ea7b3",
+ "id": 9033,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "approve",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9019,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "4922:8:50"
+ },
+ "parameters": {
+ "id": 9018,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9015,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9033,
+ "src": "4874:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9014,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4874:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9017,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 9033,
+ "src": "4891:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9016,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4891:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4873:33:50"
+ },
+ "returnParameters": {
+ "id": 9022,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9021,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9033,
+ "src": "4940:4:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 9020,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "4940:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4939:6:50"
+ },
+ "scope": 9352,
+ "src": "4857:164:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1133
+ ],
+ "body": {
+ "id": 9071,
+ "nodeType": "Block",
+ "src": "5630:244:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9047,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9036,
+ "src": "5650:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9048,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9038,
+ "src": "5658:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9049,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9040,
+ "src": "5669:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9046,
+ "name": "_transfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9199,
+ "src": "5640:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9050,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5640:36:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9051,
+ "nodeType": "ExpressionStatement",
+ "src": "5640:36:50"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9053,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9036,
+ "src": "5708:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "expression": {
+ "id": 9054,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "5728:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 9055,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "5728:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 9063,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9040,
+ "src": "5788:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9064,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "5796:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9065,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_TRANSFER_EXCEEDS_ALLOWANCE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 818,
+ "src": "5796:39:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "baseExpression": {
+ "id": 9056,
+ "name": "_allowances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8882,
+ "src": "5752:11:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
+ "typeString": "mapping(address => mapping(address => uint256))"
+ }
+ },
+ "id": 9058,
+ "indexExpression": {
+ "id": 9057,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9036,
+ "src": "5764:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5752:19:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9061,
+ "indexExpression": {
+ "expression": {
+ "id": 9059,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "5772:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 9060,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "5772:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5752:31:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9062,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9593,
+ "src": "5752:35:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9066,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5752:84:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9052,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "5686:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9067,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5686:160:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9068,
+ "nodeType": "ExpressionStatement",
+ "src": "5686:160:50"
+ },
+ {
+ "expression": {
+ "hexValue": "74727565",
+ "id": 9069,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5863:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "functionReturnParameters": 9045,
+ "id": 9070,
+ "nodeType": "Return",
+ "src": "5856:11:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9034,
+ "nodeType": "StructuredDocumentation",
+ "src": "5027:456:50",
+ "text": " @dev See {IERC20-transferFrom}.\n Emits an {Approval} event indicating the updated allowance. This is not\n required by the EIP. See the note at the beginning of {ERC20}.\n Requirements:\n - `sender` and `recipient` cannot be the zero address.\n - `sender` must have a balance of at least `amount`.\n - the caller must have allowance for ``sender``'s tokens of at least\n `amount`."
+ },
+ "functionSelector": "23b872dd",
+ "id": 9072,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "transferFrom",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9042,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "5606:8:50"
+ },
+ "parameters": {
+ "id": 9041,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9036,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9072,
+ "src": "5519:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9035,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5519:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9038,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 9072,
+ "src": "5543:17:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9037,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "5543:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9040,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 9072,
+ "src": "5570:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9039,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5570:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5509:81:50"
+ },
+ "returnParameters": {
+ "id": 9045,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9044,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9072,
+ "src": "5624:4:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 9043,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "5624:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5623:6:50"
+ },
+ "scope": 9352,
+ "src": "5488:386:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 9099,
+ "nodeType": "Block",
+ "src": "6363:117:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9083,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "6382:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 9084,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "6382:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 9085,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9075,
+ "src": "6394:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 9093,
+ "name": "addedValue",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9077,
+ "src": "6440:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "baseExpression": {
+ "id": 9086,
+ "name": "_allowances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8882,
+ "src": "6403:11:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
+ "typeString": "mapping(address => mapping(address => uint256))"
+ }
+ },
+ "id": 9089,
+ "indexExpression": {
+ "expression": {
+ "id": 9087,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "6415:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 9088,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "6415:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "6403:23:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9091,
+ "indexExpression": {
+ "id": 9090,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9075,
+ "src": "6427:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "6403:32:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9092,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9547,
+ "src": "6403:36:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9094,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6403:48:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9082,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "6373:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9095,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6373:79:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9096,
+ "nodeType": "ExpressionStatement",
+ "src": "6373:79:50"
+ },
+ {
+ "expression": {
+ "hexValue": "74727565",
+ "id": 9097,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6469:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "functionReturnParameters": 9081,
+ "id": 9098,
+ "nodeType": "Return",
+ "src": "6462:11:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9073,
+ "nodeType": "StructuredDocumentation",
+ "src": "5880:384:50",
+ "text": " @dev Atomically increases the allowance granted to `spender` by the caller.\n This is an alternative to {approve} that can be used as a mitigation for\n problems described in {IERC20-approve}.\n Emits an {Approval} event indicating the updated allowance.\n Requirements:\n - `spender` cannot be the zero address."
+ },
+ "functionSelector": "39509351",
+ "id": 9100,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "increaseAllowance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9078,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9075,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9100,
+ "src": "6296:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9074,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "6296:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9077,
+ "mutability": "mutable",
+ "name": "addedValue",
+ "nodeType": "VariableDeclaration",
+ "scope": 9100,
+ "src": "6313:18:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9076,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6313:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6295:37:50"
+ },
+ "returnParameters": {
+ "id": 9081,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9080,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9100,
+ "src": "6357:4:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 9079,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "6357:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6356:6:50"
+ },
+ "scope": 9352,
+ "src": "6269:211:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 9129,
+ "nodeType": "Block",
+ "src": "7066:213:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9111,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "7098:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 9112,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "7098:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 9113,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9103,
+ "src": "7122:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 9121,
+ "name": "subtractedValue",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9105,
+ "src": "7180:15:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9122,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7197:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9123,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_DECREASED_ALLOWANCE_BELOW_ZERO",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 821,
+ "src": "7197:43:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "baseExpression": {
+ "id": 9114,
+ "name": "_allowances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8882,
+ "src": "7143:11:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
+ "typeString": "mapping(address => mapping(address => uint256))"
+ }
+ },
+ "id": 9117,
+ "indexExpression": {
+ "expression": {
+ "id": 9115,
+ "name": "msg",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -15,
+ "src": "7155:3:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_message",
+ "typeString": "msg"
+ }
+ },
+ "id": 9116,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sender",
+ "nodeType": "MemberAccess",
+ "src": "7155:10:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "7143:23:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9119,
+ "indexExpression": {
+ "id": 9118,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9103,
+ "src": "7167:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "7143:32:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9120,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9593,
+ "src": "7143:36:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9124,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7143:98:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9110,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "7076:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9125,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7076:175:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9126,
+ "nodeType": "ExpressionStatement",
+ "src": "7076:175:50"
+ },
+ {
+ "expression": {
+ "hexValue": "74727565",
+ "id": 9127,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7268:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ "functionReturnParameters": 9109,
+ "id": 9128,
+ "nodeType": "Return",
+ "src": "7261:11:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9101,
+ "nodeType": "StructuredDocumentation",
+ "src": "6486:476:50",
+ "text": " @dev Atomically decreases the allowance granted to `spender` by the caller.\n This is an alternative to {approve} that can be used as a mitigation for\n problems described in {IERC20-approve}.\n Emits an {Approval} event indicating the updated allowance.\n Requirements:\n - `spender` cannot be the zero address.\n - `spender` must have allowance for the caller of at least\n `subtractedValue`."
+ },
+ "functionSelector": "a457c2d7",
+ "id": 9130,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "decreaseAllowance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9106,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9103,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9130,
+ "src": "6994:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9102,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "6994:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9105,
+ "mutability": "mutable",
+ "name": "subtractedValue",
+ "nodeType": "VariableDeclaration",
+ "scope": 9130,
+ "src": "7011:23:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9104,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7011:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6993:42:50"
+ },
+ "returnParameters": {
+ "id": 9109,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9108,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9130,
+ "src": "7060:4:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 9107,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "7060:4:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7059:6:50"
+ },
+ "scope": 9352,
+ "src": "6967:312:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 9198,
+ "nodeType": "Block",
+ "src": "7870:442:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 9146,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9141,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9133,
+ "src": "7889:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 9144,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7907:1:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 9143,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "7899:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 9142,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "7899:7:50",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9145,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7899:10:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "7889:20:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 9147,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7911:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9148,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_TRANSFER_FROM_ZERO_ADDRESS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 800,
+ "src": "7911:39:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9140,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "7880:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 9149,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7880:71:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9150,
+ "nodeType": "ExpressionStatement",
+ "src": "7880:71:50"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 9157,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9152,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9135,
+ "src": "7970:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 9155,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "7991:1:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 9154,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "7983:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 9153,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "7983:7:50",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9156,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7983:10:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "7970:23:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 9158,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "7995:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9159,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_TRANSFER_TO_ZERO_ADDRESS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 803,
+ "src": "7995:37:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9151,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "7961:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 9160,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7961:72:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9161,
+ "nodeType": "ExpressionStatement",
+ "src": "7961:72:50"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9163,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9133,
+ "src": "8065:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9164,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9135,
+ "src": "8073:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9165,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9137,
+ "src": "8084:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9162,
+ "name": "_beforeTokenTransfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9351,
+ "src": "8044:20:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9166,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8044:47:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9167,
+ "nodeType": "ExpressionStatement",
+ "src": "8044:47:50"
+ },
+ {
+ "expression": {
+ "id": 9179,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 9168,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "8102:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9170,
+ "indexExpression": {
+ "id": 9169,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9133,
+ "src": "8112:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "8102:17:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 9175,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9137,
+ "src": "8144:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9176,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "8152:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9177,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_TRANSFER_EXCEEDS_BALANCE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 824,
+ "src": "8152:37:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 9171,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "8122:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9173,
+ "indexExpression": {
+ "id": 9172,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9133,
+ "src": "8132:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "8122:17:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9174,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9593,
+ "src": "8122:21:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9178,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8122:68:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8102:88:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9180,
+ "nodeType": "ExpressionStatement",
+ "src": "8102:88:50"
+ },
+ {
+ "expression": {
+ "id": 9190,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 9181,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "8200:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9183,
+ "indexExpression": {
+ "id": 9182,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9135,
+ "src": "8210:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "8200:20:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 9188,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9137,
+ "src": "8248:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 9184,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "8223:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9186,
+ "indexExpression": {
+ "id": 9185,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9135,
+ "src": "8233:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "8223:20:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9187,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9547,
+ "src": "8223:24:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9189,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8223:32:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8200:55:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9191,
+ "nodeType": "ExpressionStatement",
+ "src": "8200:55:50"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 9193,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9133,
+ "src": "8279:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9194,
+ "name": "recipient",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9135,
+ "src": "8287:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9195,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9137,
+ "src": "8298:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9192,
+ "name": "Transfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1142,
+ "src": "8270:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9196,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8270:35:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9197,
+ "nodeType": "EmitStatement",
+ "src": "8265:40:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9131,
+ "nodeType": "StructuredDocumentation",
+ "src": "7285:463:50",
+ "text": " @dev Moves tokens `amount` from `sender` to `recipient`.\n This is internal function is equivalent to {transfer}, and can be used to\n e.g. implement automatic token fees, slashing mechanisms, etc.\n Emits a {Transfer} event.\n Requirements:\n - `sender` cannot be the zero address.\n - `recipient` cannot be the zero address.\n - `sender` must have a balance of at least `amount`."
+ },
+ "id": 9199,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_transfer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9138,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9133,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9199,
+ "src": "7781:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9132,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "7781:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9135,
+ "mutability": "mutable",
+ "name": "recipient",
+ "nodeType": "VariableDeclaration",
+ "scope": 9199,
+ "src": "7805:17:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9134,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "7805:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9137,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 9199,
+ "src": "7832:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9136,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7832:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7771:81:50"
+ },
+ "returnParameters": {
+ "id": 9139,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "7870:0:50"
+ },
+ "scope": 9352,
+ "src": "7753:559:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9244,
+ "nodeType": "Block",
+ "src": "8648:232:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 9210,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8687:1:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 9209,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "8679:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 9208,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8679:7:50",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9211,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8679:10:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 9212,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9202,
+ "src": "8691:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9213,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9204,
+ "src": "8700:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9207,
+ "name": "_beforeTokenTransfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9351,
+ "src": "8658:20:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9214,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8658:49:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9215,
+ "nodeType": "ExpressionStatement",
+ "src": "8658:49:50"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 9220,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9204,
+ "src": "8752:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 9217,
+ "name": "totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8948,
+ "src": "8734:11:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 9218,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8734:13:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9219,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9547,
+ "src": "8734:17:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9221,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8734:25:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9216,
+ "name": "_setTotalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8959,
+ "src": "8718:15:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 9222,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8718:42:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9223,
+ "nodeType": "ExpressionStatement",
+ "src": "8718:42:50"
+ },
+ {
+ "expression": {
+ "id": 9233,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 9224,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "8770:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9226,
+ "indexExpression": {
+ "id": 9225,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9202,
+ "src": "8780:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "8770:18:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 9231,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9204,
+ "src": "8814:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 9227,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "8791:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9229,
+ "indexExpression": {
+ "id": 9228,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9202,
+ "src": "8801:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "8791:18:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9230,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9547,
+ "src": "8791:22:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9232,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8791:30:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "8770:51:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9234,
+ "nodeType": "ExpressionStatement",
+ "src": "8770:51:50"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 9238,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8853:1:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 9237,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "8845:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 9236,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8845:7:50",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9239,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8845:10:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 9240,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9202,
+ "src": "8857:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9241,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9204,
+ "src": "8866:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9235,
+ "name": "Transfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1142,
+ "src": "8836:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9242,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8836:37:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9243,
+ "nodeType": "EmitStatement",
+ "src": "8831:42:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9200,
+ "nodeType": "StructuredDocumentation",
+ "src": "8318:260:50",
+ "text": "@dev Creates `amount` tokens and assigns them to `account`, increasing\n the total supply.\n Emits a {Transfer} event with `from` set to the zero address.\n Requirements:\n - `to` cannot be the zero address."
+ },
+ "id": 9245,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_mint",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9205,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9202,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 9245,
+ "src": "8598:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9201,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8598:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9204,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 9245,
+ "src": "8615:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9203,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8615:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8597:33:50"
+ },
+ "returnParameters": {
+ "id": 9206,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "8648:0:50"
+ },
+ "scope": 9352,
+ "src": "8583:297:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9303,
+ "nodeType": "Block",
+ "src": "9265:346:50",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 9259,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9254,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9248,
+ "src": "9284:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 9257,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9303:1:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 9256,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "9295:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 9255,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9295:7:50",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9258,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9295:10:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "9284:21:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 9260,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "9307:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9261,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_BURN_FROM_ZERO_ADDRESS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 809,
+ "src": "9307:35:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9253,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "9275:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 9262,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9275:68:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9263,
+ "nodeType": "ExpressionStatement",
+ "src": "9275:68:50"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9265,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9248,
+ "src": "9375:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 9268,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9392:1:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 9267,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "9384:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 9266,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9384:7:50",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9269,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9384:10:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 9270,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9250,
+ "src": "9396:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9264,
+ "name": "_beforeTokenTransfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9351,
+ "src": "9354:20:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9354:49:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9272,
+ "nodeType": "ExpressionStatement",
+ "src": "9354:49:50"
+ },
+ {
+ "expression": {
+ "id": 9284,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 9273,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "9414:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9275,
+ "indexExpression": {
+ "id": 9274,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9248,
+ "src": "9424:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "9414:18:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 9280,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9250,
+ "src": "9458:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9281,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "9466:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9282,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ERC20_BURN_EXCEEDS_BALANCE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 878,
+ "src": "9466:33:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 9276,
+ "name": "_balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8876,
+ "src": "9435:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9278,
+ "indexExpression": {
+ "id": 9277,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9248,
+ "src": "9445:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "9435:18:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9279,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9593,
+ "src": "9435:22:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9283,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9435:65:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "9414:86:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9285,
+ "nodeType": "ExpressionStatement",
+ "src": "9414:86:50"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 9290,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9250,
+ "src": "9544:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 9287,
+ "name": "totalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8948,
+ "src": "9526:11:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 9288,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9526:13:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9289,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9565,
+ "src": "9526:17:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9291,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9526:25:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9286,
+ "name": "_setTotalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8959,
+ "src": "9510:15:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 9292,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9510:42:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9293,
+ "nodeType": "ExpressionStatement",
+ "src": "9510:42:50"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 9295,
+ "name": "account",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9248,
+ "src": "9576:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 9298,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9593:1:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 9297,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "9585:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 9296,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9585:7:50",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9299,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9585:10:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ {
+ "id": 9300,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9250,
+ "src": "9597:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9294,
+ "name": "Transfer",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1142,
+ "src": "9567:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9301,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9567:37:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9302,
+ "nodeType": "EmitStatement",
+ "src": "9562:42:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9246,
+ "nodeType": "StructuredDocumentation",
+ "src": "8886:309:50",
+ "text": " @dev Destroys `amount` tokens from `account`, reducing the\n total supply.\n Emits a {Transfer} event with `to` set to the zero address.\n Requirements:\n - `account` cannot be the zero address.\n - `account` must have at least `amount` tokens."
+ },
+ "id": 9304,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_burn",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9251,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9248,
+ "mutability": "mutable",
+ "name": "account",
+ "nodeType": "VariableDeclaration",
+ "scope": 9304,
+ "src": "9215:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9247,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9215:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9250,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 9304,
+ "src": "9232:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9249,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9232:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9214:33:50"
+ },
+ "returnParameters": {
+ "id": 9252,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "9265:0:50"
+ },
+ "scope": 9352,
+ "src": "9200:411:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9328,
+ "nodeType": "Block",
+ "src": "10147:100:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 9320,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "baseExpression": {
+ "id": 9314,
+ "name": "_allowances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8882,
+ "src": "10157:11:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_mapping$_t_address_$_t_uint256_$_$",
+ "typeString": "mapping(address => mapping(address => uint256))"
+ }
+ },
+ "id": 9317,
+ "indexExpression": {
+ "id": 9315,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9307,
+ "src": "10169:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "10157:18:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$",
+ "typeString": "mapping(address => uint256)"
+ }
+ },
+ "id": 9318,
+ "indexExpression": {
+ "id": 9316,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9309,
+ "src": "10176:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "10157:27:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 9319,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9311,
+ "src": "10187:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "10157:36:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9321,
+ "nodeType": "ExpressionStatement",
+ "src": "10157:36:50"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 9323,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9307,
+ "src": "10217:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9324,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9309,
+ "src": "10224:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9325,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9311,
+ "src": "10233:6:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9322,
+ "name": "Approval",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1151,
+ "src": "10208:8:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9326,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10208:32:50",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9327,
+ "nodeType": "EmitStatement",
+ "src": "10203:37:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9305,
+ "nodeType": "StructuredDocumentation",
+ "src": "9617:412:50",
+ "text": " @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n This internal function is equivalent to `approve`, and can be used to\n e.g. set automatic allowances for certain subsystems, etc.\n Emits an {Approval} event.\n Requirements:\n - `owner` cannot be the zero address.\n - `spender` cannot be the zero address."
+ },
+ "id": 9329,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_approve",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9312,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9307,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 9329,
+ "src": "10061:13:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9306,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "10061:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9309,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9329,
+ "src": "10084:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9308,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "10084:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9311,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 9329,
+ "src": "10109:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9310,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10109:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "10051:78:50"
+ },
+ "returnParameters": {
+ "id": 9313,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10147:0:50"
+ },
+ "scope": 9352,
+ "src": "10034:213:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9339,
+ "nodeType": "Block",
+ "src": "10620:38:50",
+ "statements": [
+ {
+ "expression": {
+ "id": 9337,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 9335,
+ "name": "_decimals",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8890,
+ "src": "10630:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 9336,
+ "name": "decimals_",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9332,
+ "src": "10642:9:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "src": "10630:21:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "id": 9338,
+ "nodeType": "ExpressionStatement",
+ "src": "10630:21:50"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9330,
+ "nodeType": "StructuredDocumentation",
+ "src": "10253:312:50",
+ "text": " @dev Sets {decimals} to a value other than the default one of 18.\n WARNING: This function should only be called from the constructor. Most\n applications that interact with token contracts will not expect\n {decimals} to ever change, and may work incorrectly if it does."
+ },
+ "id": 9340,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_setupDecimals",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9333,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9332,
+ "mutability": "mutable",
+ "name": "decimals_",
+ "nodeType": "VariableDeclaration",
+ "scope": 9340,
+ "src": "10594:15:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 9331,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "10594:5:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "10593:17:50"
+ },
+ "returnParameters": {
+ "id": 9334,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10620:0:50"
+ },
+ "scope": 9352,
+ "src": "10570:88:50",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9350,
+ "nodeType": "Block",
+ "src": "11364:64:50",
+ "statements": []
+ },
+ "documentation": {
+ "id": 9341,
+ "nodeType": "StructuredDocumentation",
+ "src": "10664:576:50",
+ "text": " @dev Hook that is called before any transfer of tokens. This includes\n minting and burning.\n Calling conditions:\n - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n will be to transferred to `to`.\n - when `from` is zero, `amount` tokens will be minted for `to`.\n - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n - `from` and `to` are never both zero.\n To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]."
+ },
+ "id": 9351,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_beforeTokenTransfer",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9348,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9343,
+ "mutability": "mutable",
+ "name": "from",
+ "nodeType": "VariableDeclaration",
+ "scope": 9351,
+ "src": "11284:12:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9342,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "11284:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9345,
+ "mutability": "mutable",
+ "name": "to",
+ "nodeType": "VariableDeclaration",
+ "scope": 9351,
+ "src": "11306:10:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9344,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "11306:7:50",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9347,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 9351,
+ "src": "11326:14:50",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9346,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11326:7:50",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11274:72:50"
+ },
+ "returnParameters": {
+ "id": 9349,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "11364:0:50"
+ },
+ "scope": 9352,
+ "src": "11245:183:50",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 9353,
+ "src": "1427:10003:50"
+ }
+ ],
+ "src": "33:11398:50"
+ },
+ "id": 50
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20Permit.sol",
+ "exportedSymbols": {
+ "ERC20Permit": [
+ 9461
+ ]
+ },
+ "id": 9462,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 9354,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:51"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20Permit.sol",
+ "id": 9355,
+ "nodeType": "ImportDirective",
+ "scope": 9462,
+ "sourceUnit": 1189,
+ "src": "58:93:51",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol",
+ "file": "./ERC20.sol",
+ "id": 9356,
+ "nodeType": "ImportDirective",
+ "scope": 9462,
+ "sourceUnit": 9353,
+ "src": "153:21:51",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/EOASignaturesValidator.sol",
+ "file": "../helpers/EOASignaturesValidator.sol",
+ "id": 9357,
+ "nodeType": "ImportDirective",
+ "scope": 9462,
+ "sourceUnit": 5479,
+ "src": "175:47:51",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 9359,
+ "name": "ERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 9352,
+ "src": "775:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ERC20_$9352",
+ "typeString": "contract ERC20"
+ }
+ },
+ "id": 9360,
+ "nodeType": "InheritanceSpecifier",
+ "src": "775:5:51"
+ },
+ {
+ "baseName": {
+ "id": 9361,
+ "name": "IERC20Permit",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1188,
+ "src": "782:12:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20Permit_$1188",
+ "typeString": "contract IERC20Permit"
+ }
+ },
+ "id": 9362,
+ "nodeType": "InheritanceSpecifier",
+ "src": "782:12:51"
+ },
+ {
+ "baseName": {
+ "id": 9363,
+ "name": "EOASignaturesValidator",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 5478,
+ "src": "796:22:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_EOASignaturesValidator_$5478",
+ "typeString": "contract EOASignaturesValidator"
+ }
+ },
+ "id": 9364,
+ "nodeType": "InheritanceSpecifier",
+ "src": "796:22:51"
+ }
+ ],
+ "contractDependencies": [
+ 1040,
+ 1152,
+ 1188,
+ 5478,
+ 8861,
+ 9352
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 9358,
+ "nodeType": "StructuredDocumentation",
+ "src": "224:517:51",
+ "text": " @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\n need to send a transaction, and thus is not required to hold Ether at all.\n _Available since v3.4._"
+ },
+ "fullyImplemented": false,
+ "id": 9461,
+ "linearizedBaseContracts": [
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152
+ ],
+ "name": "ERC20Permit",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": true,
+ "id": 9369,
+ "mutability": "constant",
+ "name": "_PERMIT_TYPEHASH",
+ "nodeType": "VariableDeclaration",
+ "scope": 9461,
+ "src": "877:153:51",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 9365,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "877:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "value": {
+ "arguments": [
+ {
+ "hexValue": "5065726d69742861646472657373206f776e65722c61646472657373207370656e6465722c75696e743235362076616c75652c75696e74323536206e6f6e63652c75696e7432353620646561646c696e6529",
+ "id": 9367,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "string",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "940:84:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_stringliteral_6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9",
+ "typeString": "literal_string \"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\""
+ },
+ "value": "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_stringliteral_6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9",
+ "typeString": "literal_string \"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\""
+ }
+ ],
+ "id": 9366,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "921:9:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 9368,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "921:109:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 9379,
+ "nodeType": "Block",
+ "src": "1312:64:51",
+ "statements": []
+ },
+ "documentation": {
+ "id": 9370,
+ "nodeType": "StructuredDocumentation",
+ "src": "1037:220:51",
+ "text": " @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\"1\"`.\n It's a good idea to use the same `name` that is defined as the ERC20 token name."
+ },
+ "id": 9380,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "id": 9375,
+ "name": "name",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9372,
+ "src": "1301:4:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "hexValue": "31",
+ "id": 9376,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "string",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1307:3:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_stringliteral_c89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6",
+ "typeString": "literal_string \"1\""
+ },
+ "value": "1"
+ }
+ ],
+ "id": 9377,
+ "modifierName": {
+ "id": 9374,
+ "name": "EIP712",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8861,
+ "src": "1294:6:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_EIP712_$8861_$",
+ "typeString": "type(contract EIP712)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "1294:17:51"
+ }
+ ],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9373,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9372,
+ "mutability": "mutable",
+ "name": "name",
+ "nodeType": "VariableDeclaration",
+ "scope": 9380,
+ "src": "1274:18:51",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 9371,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1274:6:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1273:20:51"
+ },
+ "returnParameters": {
+ "id": 9378,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1312:0:51"
+ },
+ "scope": 9461,
+ "src": "1262:114:51",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 1173
+ ],
+ "body": {
+ "id": 9434,
+ "nodeType": "Block",
+ "src": "1635:310:51",
+ "statements": [
+ {
+ "assignments": [
+ 9400
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 9400,
+ "mutability": "mutable",
+ "name": "structHash",
+ "nodeType": "VariableDeclaration",
+ "scope": 9434,
+ "src": "1645:18:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 9399,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1645:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 9414,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 9404,
+ "name": "_PERMIT_TYPEHASH",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9369,
+ "src": "1700:16:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 9405,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9383,
+ "src": "1718:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9406,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9385,
+ "src": "1725:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9407,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9387,
+ "src": "1734:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 9409,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9383,
+ "src": "1754:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 9408,
+ "name": "getNextNonce",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5335,
+ "src": "1741:12:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$",
+ "typeString": "function (address) view returns (uint256)"
+ }
+ },
+ "id": 9410,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1741:19:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9411,
+ "name": "deadline",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9389,
+ "src": "1762:8:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 9402,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "1689:3:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 9403,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "encode",
+ "nodeType": "MemberAccess",
+ "src": "1689:10:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abiencode_pure$__$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function () pure returns (bytes memory)"
+ }
+ },
+ "id": 9412,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1689:82:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 9401,
+ "name": "keccak256",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -8,
+ "src": "1666:9:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
+ "typeString": "function (bytes memory) pure returns (bytes32)"
+ }
+ },
+ "id": 9413,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1666:115:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1645:136:51"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9416,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9383,
+ "src": "1814:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9417,
+ "name": "structHash",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9400,
+ "src": "1821:10:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 9419,
+ "name": "v",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9391,
+ "src": "1851:1:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ {
+ "id": 9420,
+ "name": "r",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9393,
+ "src": "1854:1:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ {
+ "id": 9421,
+ "name": "s",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9395,
+ "src": "1857:1:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 9418,
+ "name": "_toArraySignature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5477,
+ "src": "1833:17:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint8_$_t_bytes32_$_t_bytes32_$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function (uint8,bytes32,bytes32) pure returns (bytes memory)"
+ }
+ },
+ "id": 9422,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1833:26:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "id": 9423,
+ "name": "deadline",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9389,
+ "src": "1861:8:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9424,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1871:6:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9425,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "INVALID_SIGNATURE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 920,
+ "src": "1871:24:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9415,
+ "name": "_ensureValidSignature",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 5359,
+ 5403
+ ],
+ "referencedDeclaration": 5403,
+ "src": "1792:21:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (address,bytes32,bytes memory,uint256,uint256)"
+ }
+ },
+ "id": 9426,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1792:104:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9427,
+ "nodeType": "ExpressionStatement",
+ "src": "1792:104:51"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9429,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9383,
+ "src": "1916:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9430,
+ "name": "spender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9385,
+ "src": "1923:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 9431,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9387,
+ "src": "1932:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9428,
+ "name": "_approve",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9329,
+ "src": "1907:8:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,address,uint256)"
+ }
+ },
+ "id": 9432,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1907:31:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9433,
+ "nodeType": "ExpressionStatement",
+ "src": "1907:31:51"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9381,
+ "nodeType": "StructuredDocumentation",
+ "src": "1382:50:51",
+ "text": " @dev See {IERC20Permit-permit}."
+ },
+ "functionSelector": "d505accf",
+ "id": 9435,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "permit",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9397,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "1626:8:51"
+ },
+ "parameters": {
+ "id": 9396,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9383,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 9435,
+ "src": "1462:13:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9382,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1462:7:51",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9385,
+ "mutability": "mutable",
+ "name": "spender",
+ "nodeType": "VariableDeclaration",
+ "scope": 9435,
+ "src": "1485:15:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9384,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "1485:7:51",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9387,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 9435,
+ "src": "1510:13:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9386,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1510:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9389,
+ "mutability": "mutable",
+ "name": "deadline",
+ "nodeType": "VariableDeclaration",
+ "scope": 9435,
+ "src": "1533:16:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9388,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1533:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9391,
+ "mutability": "mutable",
+ "name": "v",
+ "nodeType": "VariableDeclaration",
+ "scope": 9435,
+ "src": "1559:7:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ },
+ "typeName": {
+ "id": 9390,
+ "name": "uint8",
+ "nodeType": "ElementaryTypeName",
+ "src": "1559:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint8",
+ "typeString": "uint8"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9393,
+ "mutability": "mutable",
+ "name": "r",
+ "nodeType": "VariableDeclaration",
+ "scope": 9435,
+ "src": "1576:9:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 9392,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1576:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9395,
+ "mutability": "mutable",
+ "name": "s",
+ "nodeType": "VariableDeclaration",
+ "scope": 9435,
+ "src": "1595:9:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 9394,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1595:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1452:158:51"
+ },
+ "returnParameters": {
+ "id": 9398,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1635:0:51"
+ },
+ "scope": 9461,
+ "src": "1437:508:51",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1181
+ ],
+ "body": {
+ "id": 9448,
+ "nodeType": "Block",
+ "src": "2076:43:51",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9445,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9438,
+ "src": "2106:5:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 9444,
+ "name": "getNextNonce",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5335,
+ "src": "2093:12:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_uint256_$",
+ "typeString": "function (address) view returns (uint256)"
+ }
+ },
+ "id": 9446,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2093:19:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9443,
+ "id": 9447,
+ "nodeType": "Return",
+ "src": "2086:26:51"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9436,
+ "nodeType": "StructuredDocumentation",
+ "src": "1951:50:51",
+ "text": " @dev See {IERC20Permit-nonces}."
+ },
+ "functionSelector": "7ecebe00",
+ "id": 9449,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "nonces",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9440,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2049:8:51"
+ },
+ "parameters": {
+ "id": 9439,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9438,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 9449,
+ "src": "2022:13:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9437,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2022:7:51",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2021:15:51"
+ },
+ "returnParameters": {
+ "id": 9443,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9442,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9449,
+ "src": "2067:7:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9441,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2067:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2066:9:51"
+ },
+ "scope": 9461,
+ "src": "2006:113:51",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 1187
+ ],
+ "body": {
+ "id": 9459,
+ "nodeType": "Block",
+ "src": "2312:44:51",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 9456,
+ "name": "getDomainSeparator",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5322,
+ "src": "2329:18:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
+ "typeString": "function () view returns (bytes32)"
+ }
+ },
+ "id": 9457,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2329:20:51",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "functionReturnParameters": 9455,
+ "id": 9458,
+ "nodeType": "Return",
+ "src": "2322:27:51"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9450,
+ "nodeType": "StructuredDocumentation",
+ "src": "2125:60:51",
+ "text": " @dev See {IERC20Permit-DOMAIN_SEPARATOR}."
+ },
+ "functionSelector": "3644e515",
+ "id": 9460,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "DOMAIN_SEPARATOR",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9452,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "2285:8:51"
+ },
+ "parameters": {
+ "id": 9451,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2268:2:51"
+ },
+ "returnParameters": {
+ "id": 9455,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9454,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9460,
+ "src": "2303:7:51",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 9453,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2303:7:51",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2302:9:51"
+ },
+ "scope": 9461,
+ "src": "2243:113:51",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 9462,
+ "src": "742:1616:51"
+ }
+ ],
+ "src": "33:2326:51"
+ },
+ "id": 51
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeCast.sol",
+ "exportedSymbols": {
+ "SafeCast": [
+ 9516
+ ]
+ },
+ "id": 9517,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 9463,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:52"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 9464,
+ "nodeType": "ImportDirective",
+ "scope": 9517,
+ "sourceUnit": 1012,
+ "src": "58:90:52",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "documentation": {
+ "id": 9465,
+ "nodeType": "StructuredDocumentation",
+ "src": "150:709:52",
+ "text": " @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\n checks.\n Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n easily result in undesired exploitation or bugs, since developers usually\n assume that overflows raise errors. `SafeCast` restores this intuition by\n reverting the transaction when such an operation overflows.\n Using this library instead of the unchecked operations eliminates an entire\n class of bugs, so it's recommended to use it always.\n Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n all math on `uint256` and `int256` and then downcasting."
+ },
+ "fullyImplemented": true,
+ "id": 9516,
+ "linearizedBaseContracts": [
+ 9516
+ ],
+ "name": "SafeCast",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "body": {
+ "id": 9488,
+ "nodeType": "Block",
+ "src": "1117:114:52",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9478,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9476,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9474,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9468,
+ "src": "1136:5:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">>",
+ "rightExpression": {
+ "hexValue": "323535",
+ "id": 9475,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1145:3:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_255_by_1",
+ "typeString": "int_const 255"
+ },
+ "value": "255"
+ },
+ "src": "1136:12:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 9477,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1152:1:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "1136:17:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 9479,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1155:6:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9480,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SAFE_CAST_VALUE_CANT_FIT_INT256",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 839,
+ "src": "1155:38:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9473,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1127:8:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 9481,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1127:67:52",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9482,
+ "nodeType": "ExpressionStatement",
+ "src": "1127:67:52"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9485,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9468,
+ "src": "1218:5:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9484,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1211:6:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_int256_$",
+ "typeString": "type(int256)"
+ },
+ "typeName": {
+ "id": 9483,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1211:6:52",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9486,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1211:13:52",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "functionReturnParameters": 9472,
+ "id": 9487,
+ "nodeType": "Return",
+ "src": "1204:20:52"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9466,
+ "nodeType": "StructuredDocumentation",
+ "src": "883:165:52",
+ "text": " @dev Converts an unsigned uint256 into a signed int256.\n Requirements:\n - input must be less than or equal to maxInt256."
+ },
+ "id": 9489,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "toInt256",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9469,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9468,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 9489,
+ "src": "1071:13:52",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9467,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1071:7:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1070:15:52"
+ },
+ "returnParameters": {
+ "id": 9472,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9471,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9489,
+ "src": "1109:6:52",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ },
+ "typeName": {
+ "id": 9470,
+ "name": "int256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1109:6:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_int256",
+ "typeString": "int256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1108:8:52"
+ },
+ "scope": 9516,
+ "src": "1053:178:52",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9514,
+ "nodeType": "Block",
+ "src": "1474:122:52",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9504,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9498,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9492,
+ "src": "1493:5:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9501,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1507:6:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint64_$",
+ "typeString": "type(uint64)"
+ },
+ "typeName": {
+ "id": 9500,
+ "name": "uint64",
+ "nodeType": "ElementaryTypeName",
+ "src": "1507:6:52",
+ "typeDescriptions": {}
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_type$_t_uint64_$",
+ "typeString": "type(uint64)"
+ }
+ ],
+ "id": 9499,
+ "name": "type",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -27,
+ "src": "1502:4:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 9502,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1502:12:52",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_meta_type_t_uint64",
+ "typeString": "type(uint64)"
+ }
+ },
+ "id": 9503,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "max",
+ "nodeType": "MemberAccess",
+ "src": "1502:16:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "src": "1493:25:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 9505,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1520:6:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9506,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SAFE_CAST_VALUE_CANT_FIT_UINT64",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 902,
+ "src": "1520:38:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9497,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1484:8:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 9507,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1484:75:52",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9508,
+ "nodeType": "ExpressionStatement",
+ "src": "1484:75:52"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9511,
+ "name": "value",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9492,
+ "src": "1583:5:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9510,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "1576:6:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_uint64_$",
+ "typeString": "type(uint64)"
+ },
+ "typeName": {
+ "id": 9509,
+ "name": "uint64",
+ "nodeType": "ElementaryTypeName",
+ "src": "1576:6:52",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 9512,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1576:13:52",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "functionReturnParameters": 9496,
+ "id": 9513,
+ "nodeType": "Return",
+ "src": "1569:20:52"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9490,
+ "nodeType": "StructuredDocumentation",
+ "src": "1237:168:52",
+ "text": " @dev Converts an unsigned uint256 into an unsigned uint64.\n Requirements:\n - input must be less than or equal to maxUint64."
+ },
+ "id": 9515,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "toUint64",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9493,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9492,
+ "mutability": "mutable",
+ "name": "value",
+ "nodeType": "VariableDeclaration",
+ "scope": 9515,
+ "src": "1428:13:52",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9491,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1428:7:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1427:15:52"
+ },
+ "returnParameters": {
+ "id": 9496,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9495,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9515,
+ "src": "1466:6:52",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ },
+ "typeName": {
+ "id": 9494,
+ "name": "uint64",
+ "nodeType": "ElementaryTypeName",
+ "src": "1466:6:52",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint64",
+ "typeString": "uint64"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1465:8:52"
+ },
+ "scope": 9516,
+ "src": "1410:186:52",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 9517,
+ "src": "860:738:52"
+ }
+ ],
+ "src": "33:1566:52"
+ },
+ "id": 52
+ },
+ "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol": {
+ "ast": {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/openzeppelin/SafeMath.sol",
+ "exportedSymbols": {
+ "SafeMath": [
+ 9594
+ ]
+ },
+ "id": 9595,
+ "license": "MIT",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 9518,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "33:23:53"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 9519,
+ "nodeType": "ImportDirective",
+ "scope": 9595,
+ "sourceUnit": 1012,
+ "src": "58:90:53",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [],
+ "contractDependencies": [],
+ "contractKind": "library",
+ "documentation": {
+ "id": 9520,
+ "nodeType": "StructuredDocumentation",
+ "src": "150:563:53",
+ "text": " @dev Wrappers over Solidity's arithmetic operations with added overflow\n checks.\n Arithmetic operations in Solidity wrap on overflow. This can easily result\n in bugs, because programmers usually assume that an overflow raises an\n error, which is the standard behavior in high level programming languages.\n `SafeMath` restores this intuition by reverting the transaction when an\n operation overflows.\n Using this library instead of the unchecked operations eliminates an entire\n class of bugs, so it's recommended to use it always."
+ },
+ "fullyImplemented": true,
+ "id": 9594,
+ "linearizedBaseContracts": [
+ 9594
+ ],
+ "name": "SafeMath",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "body": {
+ "id": 9546,
+ "nodeType": "Block",
+ "src": "1033:100:53",
+ "statements": [
+ {
+ "assignments": [
+ 9531
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 9531,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 9546,
+ "src": "1043:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9530,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1043:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 9535,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9534,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9532,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9523,
+ "src": "1055:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 9533,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9525,
+ "src": "1059:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1055:5:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1043:17:53"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9539,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9537,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9531,
+ "src": "1079:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 9538,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9523,
+ "src": "1084:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1079:6:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 9540,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1087:6:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9541,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ADD_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 533,
+ "src": "1087:19:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9536,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1070:8:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 9542,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1070:37:53",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9543,
+ "nodeType": "ExpressionStatement",
+ "src": "1070:37:53"
+ },
+ {
+ "expression": {
+ "id": 9544,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9531,
+ "src": "1125:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9529,
+ "id": 9545,
+ "nodeType": "Return",
+ "src": "1118:8:53"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9521,
+ "nodeType": "StructuredDocumentation",
+ "src": "737:224:53",
+ "text": " @dev Returns the addition of two unsigned integers, reverting on\n overflow.\n Counterpart to Solidity's `+` operator.\n Requirements:\n - Addition cannot overflow."
+ },
+ "id": 9547,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "add",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9526,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9523,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 9547,
+ "src": "979:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9522,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "979:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9525,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 9547,
+ "src": "990:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9524,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "990:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "978:22:53"
+ },
+ "returnParameters": {
+ "id": 9529,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9528,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9547,
+ "src": "1024:7:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9527,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1024:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1023:9:53"
+ },
+ "scope": 9594,
+ "src": "966:167:53",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9564,
+ "nodeType": "Block",
+ "src": "1471:54:53",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 9558,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9550,
+ "src": "1492:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9559,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9552,
+ "src": "1495:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9560,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "1498:6:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 9561,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SUB_OVERFLOW",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 536,
+ "src": "1498:19:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9557,
+ "name": "sub",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 9565,
+ 9593
+ ],
+ "referencedDeclaration": 9593,
+ "src": "1488:3:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 9562,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1488:30:53",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9556,
+ "id": 9563,
+ "nodeType": "Return",
+ "src": "1481:37:53"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9548,
+ "nodeType": "StructuredDocumentation",
+ "src": "1139:260:53",
+ "text": " @dev Returns the subtraction of two unsigned integers, reverting on\n overflow (when the result is negative).\n Counterpart to Solidity's `-` operator.\n Requirements:\n - Subtraction cannot overflow."
+ },
+ "id": 9565,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "sub",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9553,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9550,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 9565,
+ "src": "1417:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9549,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1417:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9552,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 9565,
+ "src": "1428:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9551,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1428:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1416:22:53"
+ },
+ "returnParameters": {
+ "id": 9556,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9555,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9565,
+ "src": "1462:7:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9554,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1462:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1461:9:53"
+ },
+ "scope": 9594,
+ "src": "1404:121:53",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 9592,
+ "nodeType": "Block",
+ "src": "1932:90:53",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9580,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9578,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9570,
+ "src": "1951:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 9579,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9568,
+ "src": "1956:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1951:6:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "id": 9581,
+ "name": "errorCode",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9572,
+ "src": "1959:9:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9577,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "1942:8:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 9582,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1942:27:53",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9583,
+ "nodeType": "ExpressionStatement",
+ "src": "1942:27:53"
+ },
+ {
+ "assignments": [
+ 9585
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 9585,
+ "mutability": "mutable",
+ "name": "c",
+ "nodeType": "VariableDeclaration",
+ "scope": 9592,
+ "src": "1979:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9584,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1979:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 9589,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9588,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 9586,
+ "name": "a",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9568,
+ "src": "1991:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 9587,
+ "name": "b",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9570,
+ "src": "1995:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "1991:5:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "1979:17:53"
+ },
+ {
+ "expression": {
+ "id": 9590,
+ "name": "c",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9585,
+ "src": "2014:1:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9576,
+ "id": 9591,
+ "nodeType": "Return",
+ "src": "2007:8:53"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9566,
+ "nodeType": "StructuredDocumentation",
+ "src": "1531:280:53",
+ "text": " @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n overflow (when the result is negative).\n Counterpart to Solidity's `-` operator.\n Requirements:\n - Subtraction cannot overflow."
+ },
+ "id": 9593,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "sub",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9573,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9568,
+ "mutability": "mutable",
+ "name": "a",
+ "nodeType": "VariableDeclaration",
+ "scope": 9593,
+ "src": "1838:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9567,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1838:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9570,
+ "mutability": "mutable",
+ "name": "b",
+ "nodeType": "VariableDeclaration",
+ "scope": 9593,
+ "src": "1857:9:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9569,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1857:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9572,
+ "mutability": "mutable",
+ "name": "errorCode",
+ "nodeType": "VariableDeclaration",
+ "scope": 9593,
+ "src": "1876:17:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9571,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1876:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1828:71:53"
+ },
+ "returnParameters": {
+ "id": 9576,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9575,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9593,
+ "src": "1923:7:53",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9574,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1923:7:53",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1922:9:53"
+ },
+ "scope": 9594,
+ "src": "1816:206:53",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 9595,
+ "src": "714:1310:53"
+ }
+ ],
+ "src": "33:1992:53"
+ },
+ "id": 53
+ },
+ "contracts/ComposableStablePool.sol": {
+ "ast": {
+ "absolutePath": "contracts/ComposableStablePool.sol",
+ "exportedSymbols": {
+ "ComposableStablePool": [
+ 11807
+ ]
+ },
+ "id": 11808,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 9596,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:54"
+ },
+ {
+ "id": 9597,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:54"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-stable/StablePoolUserData.sol",
+ "id": 9598,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 237,
+ "src": "747:83:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 9599,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 1012,
+ "src": "831:90:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/standalone-utils/IProtocolFeePercentagesProvider.sol",
+ "id": 9600,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 1283,
+ "src": "922:101:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol",
+ "id": 9601,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 429,
+ "src": "1024:77:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol",
+ "id": 9602,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 462,
+ "src": "1102:72:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "id": 9603,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 7159,
+ "src": "1176:72:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/Math.sol",
+ "id": 9604,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 8769,
+ "src": "1249:66:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol",
+ "id": 9605,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 5809,
+ "src": "1316:77:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol",
+ "id": 9606,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 5921,
+ "src": "1394:77:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/BaseGeneralPool.sol",
+ "id": 9607,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 2469,
+ "src": "1473:68:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol",
+ "id": 9608,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 4965,
+ "src": "1542:73:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolStorage.sol",
+ "file": "./ComposableStablePoolStorage.sol",
+ "id": 9609,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 14042,
+ "src": "1617:43:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolRates.sol",
+ "file": "./ComposableStablePoolRates.sol",
+ "id": 9610,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 13104,
+ "src": "1661:41:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolStorage.sol",
+ "file": "./ComposableStablePoolStorage.sol",
+ "id": 9611,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 14042,
+ "src": "1703:43:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolRates.sol",
+ "file": "./ComposableStablePoolRates.sol",
+ "id": 9612,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 13104,
+ "src": "1747:41:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolProtocolFees.sol",
+ "file": "./ComposableStablePoolProtocolFees.sol",
+ "id": 9613,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 12359,
+ "src": "1789:48:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/StablePoolAmplification.sol",
+ "file": "./StablePoolAmplification.sol",
+ "id": 9614,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 15838,
+ "src": "1838:39:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/StableMath.sol",
+ "file": "./StableMath.sol",
+ "id": 9615,
+ "nodeType": "ImportDirective",
+ "scope": 11808,
+ "sourceUnit": 15336,
+ "src": "1878:26:54",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 9617,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "2720:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 9618,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2720:13:54"
+ },
+ {
+ "baseName": {
+ "id": 9619,
+ "name": "IVersion",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 461,
+ "src": "2739:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVersion_$461",
+ "typeString": "contract IVersion"
+ }
+ },
+ "id": 9620,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2739:8:54"
+ },
+ {
+ "baseName": {
+ "id": 9621,
+ "name": "BaseGeneralPool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2468,
+ "src": "2753:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BaseGeneralPool_$2468",
+ "typeString": "contract BaseGeneralPool"
+ }
+ },
+ "id": 9622,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2753:15:54"
+ },
+ {
+ "baseName": {
+ "id": 9623,
+ "name": "StablePoolAmplification",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 15837,
+ "src": "2774:23:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_StablePoolAmplification_$15837",
+ "typeString": "contract StablePoolAmplification"
+ }
+ },
+ "id": 9624,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2774:23:54"
+ },
+ {
+ "baseName": {
+ "id": 9625,
+ "name": "ComposableStablePoolRates",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 13103,
+ "src": "2803:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ },
+ "id": 9626,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2803:25:54"
+ },
+ {
+ "baseName": {
+ "id": 9627,
+ "name": "ComposableStablePoolProtocolFees",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 12358,
+ "src": "2834:32:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolProtocolFees_$12358",
+ "typeString": "contract ComposableStablePoolProtocolFees"
+ }
+ },
+ "id": 9628,
+ "nodeType": "InheritanceSpecifier",
+ "src": "2834:32:54"
+ }
+ ],
+ "contractDependencies": [
+ 409,
+ 428,
+ 451,
+ 461,
+ 1022,
+ 1040,
+ 1059,
+ 1152,
+ 1188,
+ 1425,
+ 1466,
+ 1491,
+ 2230,
+ 2468,
+ 3860,
+ 3955,
+ 4136,
+ 4694,
+ 5041,
+ 5478,
+ 6208,
+ 8861,
+ 9352,
+ 9461,
+ 12358,
+ 13103,
+ 14041,
+ 15837
+ ],
+ "contractKind": "contract",
+ "documentation": {
+ "id": 9616,
+ "nodeType": "StructuredDocumentation",
+ "src": "1906:776:54",
+ "text": " @dev StablePool with preminted BPT and rate providers for each token, allowing for e.g. wrapped tokens with a known\n price ratio, such as Compound's cTokens.\n BPT is preminted on Pool initialization and registered as one of the Pool's tokens, allowing for swaps to behave as\n single-token joins or exits (by swapping a token for BPT). We also support regular joins and exits, which can mint\n and burn BPT.\n Preminted BPT is deposited in the Vault as the initial balance of the Pool, and doesn't belong to any entity until\n transferred out of the Pool. The Pool's arithmetic behaves as if it didn't exist, and the BPT total supply is not\n a useful value: we rely on the 'virtual supply' (how much BPT is actually owned outside the Vault) instead."
+ },
+ "fullyImplemented": true,
+ "id": 11807,
+ "linearizedBaseContracts": [
+ 11807,
+ 12358,
+ 4694,
+ 13103,
+ 14041,
+ 15837,
+ 2468,
+ 3860,
+ 4136,
+ 6208,
+ 1059,
+ 2230,
+ 3955,
+ 5041,
+ 1022,
+ 451,
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152,
+ 409,
+ 1466,
+ 1425,
+ 1491,
+ 461,
+ 428
+ ],
+ "name": "ComposableStablePool",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 9631,
+ "libraryName": {
+ "id": 9629,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "2879:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "2873:29:54",
+ "typeName": {
+ "id": 9630,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2894:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "id": 9634,
+ "libraryName": {
+ "id": 9632,
+ "name": "PriceRateCache",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4964,
+ "src": "2913:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_PriceRateCache_$4964",
+ "typeString": "library PriceRateCache"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "2907:33:54",
+ "typeName": {
+ "id": 9633,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2932:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ },
+ {
+ "id": 9637,
+ "libraryName": {
+ "id": 9635,
+ "name": "StablePoolUserData",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 236,
+ "src": "2951:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_StablePoolUserData_$236",
+ "typeString": "library StablePoolUserData"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "2945:35:54",
+ "typeName": {
+ "id": 9636,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "2974:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ }
+ },
+ {
+ "id": 9640,
+ "libraryName": {
+ "id": 9638,
+ "name": "BasePoolUserData",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 286,
+ "src": "2991:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolUserData_$286",
+ "typeString": "library BasePoolUserData"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "2985:33:54",
+ "typeName": {
+ "id": 9639,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "3012:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ }
+ },
+ {
+ "constant": true,
+ "id": 9646,
+ "mutability": "constant",
+ "name": "_PREMINTED_TOKEN_BALANCE",
+ "nodeType": "VariableDeclaration",
+ "scope": 11807,
+ "src": "3182:60:54",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9641,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3182:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_rational_2596148429267413814265248164610048_by_1",
+ "typeString": "int_const 2596...(26 digits omitted)...0048"
+ },
+ "id": 9645,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "hexValue": "32",
+ "id": 9642,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3234:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "**",
+ "rightExpression": {
+ "components": [
+ {
+ "hexValue": "313131",
+ "id": 9643,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3238:3:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_111_by_1",
+ "typeString": "int_const 111"
+ },
+ "value": "111"
+ }
+ ],
+ "id": 9644,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "3237:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_111_by_1",
+ "typeString": "int_const 111"
+ }
+ },
+ "src": "3234:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2596148429267413814265248164610048_by_1",
+ "typeString": "int_const 2596...(26 digits omitted)...0048"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 9648,
+ "mutability": "mutable",
+ "name": "_version",
+ "nodeType": "VariableDeclaration",
+ "scope": 11807,
+ "src": "3249:23:54",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 9647,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "3249:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "canonicalName": "ComposableStablePool.NewPoolParams",
+ "id": 9680,
+ "members": [
+ {
+ "constant": false,
+ "id": 9650,
+ "mutability": "mutable",
+ "name": "vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3405:12:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 9649,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "3405:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9652,
+ "mutability": "mutable",
+ "name": "protocolFeeProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3427:51:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 9651,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "3427:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9654,
+ "mutability": "mutable",
+ "name": "name",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3488:11:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 9653,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "3488:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9656,
+ "mutability": "mutable",
+ "name": "symbol",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3509:13:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 9655,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "3509:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9659,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3532:15:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9657,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "3532:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 9658,
+ "nodeType": "ArrayTypeName",
+ "src": "3532:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9662,
+ "mutability": "mutable",
+ "name": "rateProviders",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3557:29:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9660,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "3557:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 9661,
+ "nodeType": "ArrayTypeName",
+ "src": "3557:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9665,
+ "mutability": "mutable",
+ "name": "tokenRateCacheDurations",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3596:33:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9663,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3596:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9664,
+ "nodeType": "ArrayTypeName",
+ "src": "3596:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9667,
+ "mutability": "mutable",
+ "name": "exemptFromYieldProtocolFeeFlag",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3639:35:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 9666,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3639:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9669,
+ "mutability": "mutable",
+ "name": "amplificationParameter",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3684:30:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9668,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3684:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9671,
+ "mutability": "mutable",
+ "name": "swapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3724:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9670,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3724:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9673,
+ "mutability": "mutable",
+ "name": "pauseWindowDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3759:27:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9672,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3759:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9675,
+ "mutability": "mutable",
+ "name": "bufferPeriodDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3796:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9674,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3796:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9677,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3834:13:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 9676,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "3834:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9679,
+ "mutability": "mutable",
+ "name": "version",
+ "nodeType": "VariableDeclaration",
+ "scope": 9680,
+ "src": "3857:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 9678,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "3857:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "NewPoolParams",
+ "nodeType": "StructDefinition",
+ "scope": 11807,
+ "src": "3374:504:54",
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 9745,
+ "nodeType": "Block",
+ "src": "4636:42:54",
+ "statements": [
+ {
+ "expression": {
+ "id": 9743,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 9740,
+ "name": "_version",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9648,
+ "src": "4646:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "expression": {
+ "id": 9741,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4657:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9742,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "version",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9679,
+ "src": "4657:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ "src": "4646:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "id": 9744,
+ "nodeType": "ExpressionStatement",
+ "src": "4646:25:54"
+ }
+ ]
+ },
+ "id": 9746,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9685,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "3955:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9686,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "vault",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9650,
+ "src": "3955:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ {
+ "expression": {
+ "expression": {
+ "id": 9687,
+ "name": "IVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2021,
+ "src": "3981:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IVault_$2021_$",
+ "typeString": "type(contract IVault)"
+ }
+ },
+ "id": 9688,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "PoolSpecialization",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1680,
+ "src": "3981:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_PoolSpecialization_$1680_$",
+ "typeString": "type(enum IVault.PoolSpecialization)"
+ }
+ },
+ "id": 9689,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "GENERAL",
+ "nodeType": "MemberAccess",
+ "src": "3981:33:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_PoolSpecialization_$1680",
+ "typeString": "enum IVault.PoolSpecialization"
+ }
+ },
+ {
+ "expression": {
+ "id": 9690,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4028:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9691,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "name",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9654,
+ "src": "4028:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "expression": {
+ "id": 9692,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4053:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9693,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "symbol",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9656,
+ "src": "4053:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9695,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4094:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9696,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9659,
+ "src": "4094:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 9698,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "4116:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ ],
+ "id": 9697,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "4109:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 9699,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4109:12:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ },
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 9694,
+ "name": "_insertSorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5640,
+ "src": "4080:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_contract$_IERC20_$1152_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$",
+ "typeString": "function (contract IERC20[] memory,contract IERC20) pure returns (contract IERC20[] memory)"
+ }
+ },
+ "id": 9700,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4080:42:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 9708,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "expression": {
+ "id": 9704,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4150:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9705,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9659,
+ "src": "4150:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 9706,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "4150:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 9707,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4173:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "4150:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9703,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "4136:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_address_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (address[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9701,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "4140:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "id": 9702,
+ "nodeType": "ArrayTypeName",
+ "src": "4140:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
+ "typeString": "address[]"
+ }
+ }
+ },
+ "id": 9709,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4136:39:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr",
+ "typeString": "address[] memory"
+ }
+ },
+ {
+ "expression": {
+ "id": 9710,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4189:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9711,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "swapFeePercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9671,
+ "src": "4189:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9712,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4227:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9713,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "pauseWindowDuration",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9673,
+ "src": "4227:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9714,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4267:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9715,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "bufferPeriodDuration",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9675,
+ "src": "4267:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 9716,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4308:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9717,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "owner",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9677,
+ "src": "4308:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "id": 9718,
+ "modifierName": {
+ "id": 9684,
+ "name": "BasePool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3860,
+ "src": "3933:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_BasePool_$3860_$",
+ "typeString": "type(contract BasePool)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "3933:397:54"
+ },
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9720,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4363:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9721,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amplificationParameter",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9669,
+ "src": "4363:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 9722,
+ "modifierName": {
+ "id": 9719,
+ "name": "StablePoolAmplification",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15837,
+ "src": "4339:23:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolAmplification_$15837_$",
+ "typeString": "type(contract StablePoolAmplification)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "4339:54:54"
+ },
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 9725,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4452:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ ],
+ "id": 9724,
+ "name": "_extractStorageParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9787,
+ "src": "4430:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_struct$_NewPoolParams_$9680_memory_ptr_$returns$_t_struct$_StorageParams_$13127_memory_ptr_$",
+ "typeString": "function (struct ComposableStablePool.NewPoolParams memory) view returns (struct ComposableStablePoolStorage.StorageParams memory)"
+ }
+ },
+ "id": 9726,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4430:29:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ }
+ ],
+ "id": 9727,
+ "modifierName": {
+ "id": 9723,
+ "name": "ComposableStablePoolStorage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 14041,
+ "src": "4402:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePoolStorage_$14041_$",
+ "typeString": "type(contract ComposableStablePoolStorage)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "4402:58:54"
+ },
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 9730,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4515:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ ],
+ "id": 9729,
+ "name": "_extractRatesParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9764,
+ "src": "4495:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_struct$_NewPoolParams_$9680_memory_ptr_$returns$_t_struct$_RatesParams_$12384_memory_ptr_$",
+ "typeString": "function (struct ComposableStablePool.NewPoolParams memory) pure returns (struct ComposableStablePoolRates.RatesParams memory)"
+ }
+ },
+ "id": 9731,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4495:27:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ }
+ ],
+ "id": 9732,
+ "modifierName": {
+ "id": 9728,
+ "name": "ComposableStablePoolRates",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13103,
+ "src": "4469:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePoolRates_$13103_$",
+ "typeString": "type(contract ComposableStablePoolRates)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "4469:54:54"
+ },
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9734,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9682,
+ "src": "4549:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9735,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "protocolFeeProvider",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9652,
+ "src": "4549:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "id": 9736,
+ "name": "ProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4694,
+ "src": "4577:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeCache_$4694_$",
+ "typeString": "type(contract ProtocolFeeCache)"
+ }
+ },
+ "id": 9737,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "DELEGATE_PROTOCOL_SWAP_FEES_SENTINEL",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4456,
+ "src": "4577:53:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 9738,
+ "modifierName": {
+ "id": 9733,
+ "name": "ProtocolFeeCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4694,
+ "src": "4532:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeCache_$4694_$",
+ "typeString": "type(contract ProtocolFeeCache)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "4532:99:54"
+ }
+ ],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9683,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9682,
+ "mutability": "mutable",
+ "name": "params",
+ "nodeType": "VariableDeclaration",
+ "scope": 9746,
+ "src": "3896:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams"
+ },
+ "typeName": {
+ "id": 9681,
+ "name": "NewPoolParams",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 9680,
+ "src": "3896:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_storage_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3895:29:54"
+ },
+ "returnParameters": {
+ "id": 9739,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4636:0:54"
+ },
+ "scope": 11807,
+ "src": "3884:794:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 9763,
+ "nodeType": "Block",
+ "src": "4916:254:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9755,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9748,
+ "src": "5009:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9756,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9659,
+ "src": "5009:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "expression": {
+ "id": 9757,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9748,
+ "src": "5055:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9758,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "rateProviders",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9662,
+ "src": "5055:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ {
+ "expression": {
+ "id": 9759,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9748,
+ "src": "5118:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9760,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenRateCacheDurations",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9665,
+ "src": "5118:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 9753,
+ "name": "ComposableStablePoolRates",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13103,
+ "src": "4945:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePoolRates_$13103_$",
+ "typeString": "type(contract ComposableStablePoolRates)"
+ }
+ },
+ "id": 9754,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "RatesParams",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12384,
+ "src": "4945:37:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_struct$_RatesParams_$12384_storage_ptr_$",
+ "typeString": "type(struct ComposableStablePoolRates.RatesParams storage pointer)"
+ }
+ },
+ "id": 9761,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "structConstructorCall",
+ "lValueRequested": false,
+ "names": [
+ "tokens",
+ "rateProviders",
+ "tokenRateCacheDurations"
+ ],
+ "nodeType": "FunctionCall",
+ "src": "4945:218:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "functionReturnParameters": 9752,
+ "id": 9762,
+ "nodeType": "Return",
+ "src": "4926:237:54"
+ }
+ ]
+ },
+ "id": 9764,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_extractRatesParams",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9749,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9748,
+ "mutability": "mutable",
+ "name": "params",
+ "nodeType": "VariableDeclaration",
+ "scope": 9764,
+ "src": "4791:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams"
+ },
+ "typeName": {
+ "id": 9747,
+ "name": "NewPoolParams",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 9680,
+ "src": "4791:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_storage_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4790:29:54"
+ },
+ "returnParameters": {
+ "id": 9752,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9751,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9764,
+ "src": "4866:44:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams"
+ },
+ "typeName": {
+ "id": 9750,
+ "name": "ComposableStablePoolRates.RatesParams",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 12384,
+ "src": "4866:37:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_storage_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "4865:46:54"
+ },
+ "scope": 11807,
+ "src": "4762:408:54",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 9786,
+ "nodeType": "Block",
+ "src": "5414:316:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 9774,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9766,
+ "src": "5535:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9775,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9659,
+ "src": "5535:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 9777,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "5557:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ ],
+ "id": 9776,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "5550:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 9778,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5550:12:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ },
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 9773,
+ "name": "_insertSorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5640,
+ "src": "5521:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_contract$_IERC20_$1152_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$",
+ "typeString": "function (contract IERC20[] memory,contract IERC20) pure returns (contract IERC20[] memory)"
+ }
+ },
+ "id": 9779,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5521:42:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "expression": {
+ "id": 9780,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9766,
+ "src": "5601:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9781,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "rateProviders",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9662,
+ "src": "5601:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ {
+ "expression": {
+ "id": 9782,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9766,
+ "src": "5671:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ },
+ "id": 9783,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "exemptFromYieldProtocolFeeFlag",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9667,
+ "src": "5671:37:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ },
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ ],
+ "expression": {
+ "id": 9771,
+ "name": "ComposableStablePoolStorage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 14041,
+ "src": "5443:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePoolStorage_$14041_$",
+ "typeString": "type(contract ComposableStablePoolStorage)"
+ }
+ },
+ "id": 9772,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "StorageParams",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13127,
+ "src": "5443:41:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_struct$_StorageParams_$13127_storage_ptr_$",
+ "typeString": "type(struct ComposableStablePoolStorage.StorageParams storage pointer)"
+ }
+ },
+ "id": 9784,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "structConstructorCall",
+ "lValueRequested": false,
+ "names": [
+ "registeredTokens",
+ "tokenRateProviders",
+ "exemptFromYieldProtocolFeeFlag"
+ ],
+ "nodeType": "FunctionCall",
+ "src": "5443:280:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "functionReturnParameters": 9770,
+ "id": 9785,
+ "nodeType": "Return",
+ "src": "5424:299:54"
+ }
+ ]
+ },
+ "id": 9787,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_extractStorageParams",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9767,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9766,
+ "mutability": "mutable",
+ "name": "params",
+ "nodeType": "VariableDeclaration",
+ "scope": 9787,
+ "src": "5285:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams"
+ },
+ "typeName": {
+ "id": 9765,
+ "name": "NewPoolParams",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 9680,
+ "src": "5285:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_storage_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5284:29:54"
+ },
+ "returnParameters": {
+ "id": 9770,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9769,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9787,
+ "src": "5360:48:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams"
+ },
+ "typeName": {
+ "id": 9768,
+ "name": "ComposableStablePoolStorage.StorageParams",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 13127,
+ "src": "5360:41:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_storage_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5359:50:54"
+ },
+ "scope": 11807,
+ "src": "5254:476:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "baseFunctions": [
+ 460
+ ],
+ "body": {
+ "id": 9795,
+ "nodeType": "Block",
+ "src": "5802:32:54",
+ "statements": [
+ {
+ "expression": {
+ "id": 9793,
+ "name": "_version",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9648,
+ "src": "5819:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "functionReturnParameters": 9792,
+ "id": 9794,
+ "nodeType": "Return",
+ "src": "5812:15:54"
+ }
+ ]
+ },
+ "functionSelector": "54fd4d50",
+ "id": 9796,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "version",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9789,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "5769:8:54"
+ },
+ "parameters": {
+ "id": 9788,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5752:2:54"
+ },
+ "returnParameters": {
+ "id": 9792,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9791,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9796,
+ "src": "5787:13:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 9790,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "5787:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5786:15:54"
+ },
+ "scope": 11807,
+ "src": "5736:98:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 9805,
+ "nodeType": "Block",
+ "src": "6357:40:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 9802,
+ "name": "_getMinimumBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2668,
+ "src": "6374:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$__$returns$_t_uint256_$",
+ "typeString": "function () pure returns (uint256)"
+ }
+ },
+ "id": 9803,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6374:16:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9801,
+ "id": 9804,
+ "nodeType": "Return",
+ "src": "6367:23:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9797,
+ "nodeType": "StructuredDocumentation",
+ "src": "5840:455:54",
+ "text": " @notice Return the minimum BPT balance, required to avoid minimum token balances.\n @dev This amount is minted and immediately burned on pool initialization, so that the total supply\n (and therefore post-exit token balances), can never be zero. This keeps the math well-behaved when\n liquidity is low. (It also provides an easy way to check whether a pool has been initialized, to\n ensure this is only done once.)"
+ },
+ "functionSelector": "04842d4c",
+ "id": 9806,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getMinimumBpt",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9798,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "6322:2:54"
+ },
+ "returnParameters": {
+ "id": 9801,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9800,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9806,
+ "src": "6348:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9799,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6348:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6347:9:54"
+ },
+ "scope": 11807,
+ "src": "6300:97:54",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 3400
+ ],
+ "body": {
+ "id": 9819,
+ "nodeType": "Block",
+ "src": "6622:453:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 9811,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "6632:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_ComposableStablePool_$11807",
+ "typeString": "contract super ComposableStablePool"
+ }
+ },
+ "id": 9813,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_beforeSwapJoinExit",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 3400,
+ "src": "6632:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 9814,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6632:27:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9815,
+ "nodeType": "ExpressionStatement",
+ "src": "6632:27:54"
+ },
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 9816,
+ "name": "_cacheTokenRatesIfNecessary",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12851,
+ "src": "7039:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 9817,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7039:29:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 9818,
+ "nodeType": "ExpressionStatement",
+ "src": "7039:29:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9807,
+ "nodeType": "StructuredDocumentation",
+ "src": "6425:143:54",
+ "text": " @dev Override base pool hook invoked before any swap, join, or exit to ensure rates are updated before\n the operation."
+ },
+ "id": 9820,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_beforeSwapJoinExit",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9809,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "6613:8:54"
+ },
+ "parameters": {
+ "id": 9808,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "6601:2:54"
+ },
+ "returnParameters": {
+ "id": 9810,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "6622:0:54"
+ },
+ "scope": 11807,
+ "src": "6573:502:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 2360
+ ],
+ "body": {
+ "id": 9870,
+ "nodeType": "Block",
+ "src": "8149:475:54",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 9851,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 9844,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 9839,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9823,
+ "src": "8179:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 9840,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1475,
+ "src": "8179:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 9842,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "8209:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ ],
+ "id": 9841,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "8202:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 9843,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8202:12:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "8179:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 9850,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 9845,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9823,
+ "src": "8218:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 9846,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1477,
+ "src": "8218:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 9848,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "8249:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ ],
+ "id": 9847,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "8242:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 9849,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8242:12:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "8218:36:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "8179:75:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 9852,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "8178:77:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 9862,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9823,
+ "src": "8433:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 9863,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9826,
+ "src": "8466:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 9864,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9828,
+ "src": "8506:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9865,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9830,
+ "src": "8545:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9866,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9833,
+ "src": "8585:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 9860,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "8393:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_ComposableStablePool_$11807",
+ "typeString": "contract super ComposableStablePool"
+ }
+ },
+ "id": 9861,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_swapGivenIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 2360,
+ "src": "8393:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256,uint256[] memory) returns (uint256)"
+ }
+ },
+ "id": 9867,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8393:224:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9868,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "8178:439:54",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 9854,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9823,
+ "src": "8287:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 9855,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9826,
+ "src": "8300:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 9856,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9828,
+ "src": "8320:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9857,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9830,
+ "src": "8339:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9858,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9833,
+ "src": "8359:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 9853,
+ "name": "_swapWithBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10168,
+ "src": "8274:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256,uint256[] memory) returns (uint256)"
+ }
+ },
+ "id": 9859,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8274:100:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9838,
+ "id": 9869,
+ "nodeType": "Return",
+ "src": "8159:458:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9821,
+ "nodeType": "StructuredDocumentation",
+ "src": "7100:775:54",
+ "text": " @dev Override this hook called by the base class `onSwap`, to check whether we are doing a regular swap,\n or a swap involving BPT, which is equivalent to a single token join or exit. Since one of the Pool's\n tokens is the preminted BPT, we need to handle swaps where BPT is involved separately.\n At this point, the balances are unscaled. The indices are coming from the Vault, so they are indices into\n the array of registered tokens (including BPT).\n If this is a swap involving BPT, call `_swapWithBpt`, which computes the amountOut using the swapFeePercentage\n and charges protocol fees, in the same manner as single token join/exits. Otherwise, perform the default\n processing for a regular swap."
+ },
+ "id": 9871,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_swapGivenIn",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9835,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "8122:8:54"
+ },
+ "parameters": {
+ "id": 9834,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9823,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 9871,
+ "src": "7911:30:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 9822,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "7911:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9826,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 9871,
+ "src": "7951:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9824,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7951:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9825,
+ "nodeType": "ArrayTypeName",
+ "src": "7951:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9828,
+ "mutability": "mutable",
+ "name": "registeredIndexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 9871,
+ "src": "7996:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9827,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7996:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9830,
+ "mutability": "mutable",
+ "name": "registeredIndexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 9871,
+ "src": "8031:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9829,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8031:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9833,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 9871,
+ "src": "8067:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9831,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8067:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9832,
+ "nodeType": "ArrayTypeName",
+ "src": "8067:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7901:203:54"
+ },
+ "returnParameters": {
+ "id": 9838,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9837,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9871,
+ "src": "8140:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9836,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8140:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "8139:9:54"
+ },
+ "scope": 11807,
+ "src": "7880:744:54",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 2417
+ ],
+ "body": {
+ "id": 9921,
+ "nodeType": "Block",
+ "src": "9688:476:54",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 9902,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 9895,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 9890,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9874,
+ "src": "9718:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 9891,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1475,
+ "src": "9718:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 9893,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "9748:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ ],
+ "id": 9892,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "9741:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 9894,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9741:12:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "9718:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 9901,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 9896,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9874,
+ "src": "9757:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 9897,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1477,
+ "src": "9757:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 9899,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "9788:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ ],
+ "id": 9898,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "9781:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 9900,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9781:12:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "9757:36:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "9718:75:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 9903,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "9717:77:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 9913,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9874,
+ "src": "9973:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 9914,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9877,
+ "src": "10006:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 9915,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9879,
+ "src": "10046:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9916,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9881,
+ "src": "10085:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9917,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9884,
+ "src": "10125:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 9911,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "9932:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_ComposableStablePool_$11807",
+ "typeString": "contract super ComposableStablePool"
+ }
+ },
+ "id": 9912,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_swapGivenOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 2417,
+ "src": "9932:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256,uint256[] memory) returns (uint256)"
+ }
+ },
+ "id": 9918,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9932:225:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9919,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "9717:440:54",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 9905,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9874,
+ "src": "9826:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ {
+ "id": 9906,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9877,
+ "src": "9839:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 9907,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9879,
+ "src": "9859:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9908,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9881,
+ "src": "9878:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9909,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9884,
+ "src": "9898:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 9904,
+ "name": "_swapWithBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10168,
+ "src": "9813:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_struct$_SwapRequest_$1490_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (struct IPoolSwapStructs.SwapRequest memory,uint256[] memory,uint256,uint256,uint256[] memory) returns (uint256)"
+ }
+ },
+ "id": 9910,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9813:100:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9889,
+ "id": 9920,
+ "nodeType": "Return",
+ "src": "9698:459:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9872,
+ "nodeType": "StructuredDocumentation",
+ "src": "8630:783:54",
+ "text": " @dev Override this hook called by the base class `onSwap`, to check whether we are doing a regular swap,\n or a swap involving BPT, which is equivalent to a single token join or exit. Since one of the Pool's\n tokens is the preminted BPT, we need to handle swaps where BPT is involved separately.\n At this point, the balances are unscaled. The indices and balances are coming from the Vault, so they\n refer to the full set of registered tokens (including BPT).\n If this is a swap involving BPT, call `_swapWithBpt`, which computes the amountOut using the swapFeePercentage\n and charges protocol fees, in the same manner as single token join/exits. Otherwise, perform the default\n processing for a regular swap."
+ },
+ "id": 9922,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_swapGivenOut",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9886,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "9661:8:54"
+ },
+ "parameters": {
+ "id": 9885,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9874,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 9922,
+ "src": "9450:30:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 9873,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "9450:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9877,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 9922,
+ "src": "9490:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9875,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9490:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9876,
+ "nodeType": "ArrayTypeName",
+ "src": "9490:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9879,
+ "mutability": "mutable",
+ "name": "registeredIndexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 9922,
+ "src": "9535:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9878,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9535:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9881,
+ "mutability": "mutable",
+ "name": "registeredIndexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 9922,
+ "src": "9570:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9880,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9570:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9884,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 9922,
+ "src": "9606:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9882,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9606:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9883,
+ "nodeType": "ArrayTypeName",
+ "src": "9606:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9440:203:54"
+ },
+ "returnParameters": {
+ "id": 9889,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9888,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9922,
+ "src": "9679:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9887,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9679:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9678:9:54"
+ },
+ "scope": 11807,
+ "src": "9418:746:54",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 2431
+ ],
+ "body": {
+ "id": 9947,
+ "nodeType": "Block",
+ "src": "10674:237:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "74727565",
+ "id": 9939,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10735:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ {
+ "expression": {
+ "id": 9940,
+ "name": "request",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9925,
+ "src": "10769:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 9941,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "10769:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9942,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9928,
+ "src": "10801:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 9943,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9930,
+ "src": "10837:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9944,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9932,
+ "src": "10872:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9938,
+ "name": "_onRegularSwap",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10050,
+ "src": "10703:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bool_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (bool,uint256,uint256[] memory,uint256,uint256) view returns (uint256)"
+ }
+ },
+ "id": 9945,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10703:201:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9937,
+ "id": 9946,
+ "nodeType": "Return",
+ "src": "10684:220:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9923,
+ "nodeType": "StructuredDocumentation",
+ "src": "10170:273:54",
+ "text": " @dev This is called from the base class `_swapGivenIn`, so at this point the amount has been adjusted\n for swap fees, and balances have had scaling applied. This will only be called for regular (non-BPT) swaps,\n so forward to `onRegularSwap`."
+ },
+ "id": 9948,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onSwapGivenIn",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9934,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "10647:8:54"
+ },
+ "parameters": {
+ "id": 9933,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9925,
+ "mutability": "mutable",
+ "name": "request",
+ "nodeType": "VariableDeclaration",
+ "scope": 9948,
+ "src": "10481:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 9924,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "10481:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9928,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 9948,
+ "src": "10517:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9926,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10517:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9927,
+ "nodeType": "ArrayTypeName",
+ "src": "10517:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9930,
+ "mutability": "mutable",
+ "name": "registeredIndexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 9948,
+ "src": "10562:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9929,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10562:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9932,
+ "mutability": "mutable",
+ "name": "registeredIndexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 9948,
+ "src": "10597:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9931,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10597:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "10471:158:54"
+ },
+ "returnParameters": {
+ "id": 9937,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9936,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9948,
+ "src": "10665:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9935,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10665:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "10664:9:54"
+ },
+ "scope": 11807,
+ "src": "10448:463:54",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 2445
+ ],
+ "body": {
+ "id": 9973,
+ "nodeType": "Block",
+ "src": "11423:239:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "66616c7365",
+ "id": 9965,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11484:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "false"
+ },
+ {
+ "expression": {
+ "id": 9966,
+ "name": "request",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9951,
+ "src": "11520:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 9967,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "11520:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9968,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9954,
+ "src": "11552:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 9969,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9956,
+ "src": "11588:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 9970,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9958,
+ "src": "11623:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 9964,
+ "name": "_onRegularSwap",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10050,
+ "src": "11452:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bool_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (bool,uint256,uint256[] memory,uint256,uint256) view returns (uint256)"
+ }
+ },
+ "id": 9971,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11452:203:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9963,
+ "id": 9972,
+ "nodeType": "Return",
+ "src": "11433:222:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9949,
+ "nodeType": "StructuredDocumentation",
+ "src": "10917:274:54",
+ "text": " @dev This is called from the base class `_swapGivenOut`, so at this point the amount has been adjusted\n for swap fees, and balances have had scaling applied. This will only be called for regular (non-BPT) swaps,\n so forward to `onRegularSwap`."
+ },
+ "id": 9974,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onSwapGivenOut",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 9960,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "11396:8:54"
+ },
+ "parameters": {
+ "id": 9959,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9951,
+ "mutability": "mutable",
+ "name": "request",
+ "nodeType": "VariableDeclaration",
+ "scope": 9974,
+ "src": "11230:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 9950,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "11230:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9954,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 9974,
+ "src": "11266:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9952,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11266:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9953,
+ "nodeType": "ArrayTypeName",
+ "src": "11266:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9956,
+ "mutability": "mutable",
+ "name": "registeredIndexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 9974,
+ "src": "11311:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9955,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11311:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9958,
+ "mutability": "mutable",
+ "name": "registeredIndexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 9974,
+ "src": "11346:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9957,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11346:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11220:158:54"
+ },
+ "returnParameters": {
+ "id": 9963,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9962,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 9974,
+ "src": "11414:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9961,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11414:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11413:9:54"
+ },
+ "scope": 11807,
+ "src": "11196:466:54",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10049,
+ "nodeType": "Block",
+ "src": "12126:675:54",
+ "statements": [
+ {
+ "assignments": [
+ 9995
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 9995,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10049,
+ "src": "12189:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9993,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12189:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9994,
+ "nodeType": "ArrayTypeName",
+ "src": "12189:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 9999,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 9997,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9982,
+ "src": "12230:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 9996,
+ "name": "_dropBptItem",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13721,
+ "src": "12217:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256[] memory)"
+ }
+ },
+ "id": 9998,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12217:32:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12189:60:54"
+ },
+ {
+ "assignments": [
+ 10001
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10001,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10049,
+ "src": "12259:15:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10000,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12259:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10005,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10003,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9984,
+ "src": "12291:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10002,
+ "name": "_skipBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13665,
+ "src": "12277:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 10004,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12277:32:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12259:50:54"
+ },
+ {
+ "assignments": [
+ 10007
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10007,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10049,
+ "src": "12319:16:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10006,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12319:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10011,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10009,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9986,
+ "src": "12352:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10008,
+ "name": "_skipBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13665,
+ "src": "12338:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 10010,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12338:33:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12319:52:54"
+ },
+ {
+ "assignments": [
+ 10013,
+ null
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10013,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10049,
+ "src": "12383:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10012,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12383:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 10016,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10014,
+ "name": "_getAmplificationParameter",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15530,
+ "src": "12407:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_bool_$",
+ "typeString": "function () view returns (uint256,bool)"
+ }
+ },
+ "id": 10015,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12407:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_bool_$",
+ "typeString": "tuple(uint256,bool)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12382:53:54"
+ },
+ {
+ "assignments": [
+ 10018
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10018,
+ "mutability": "mutable",
+ "name": "invariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10049,
+ "src": "12445:17:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10017,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12445:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10024,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10021,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10013,
+ "src": "12496:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10022,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9995,
+ "src": "12508:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 10019,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "12465:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10020,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "12465:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 10023,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12465:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12445:72:54"
+ },
+ {
+ "condition": {
+ "id": 10025,
+ "name": "isGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9977,
+ "src": "12532:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 10047,
+ "nodeType": "Block",
+ "src": "12672:123:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10039,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10013,
+ "src": "12720:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10040,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9995,
+ "src": "12732:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10041,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10001,
+ "src": "12742:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10042,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10007,
+ "src": "12751:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10043,
+ "name": "amountGiven",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9979,
+ "src": "12761:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10044,
+ "name": "invariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10018,
+ "src": "12774:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10037,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "12693:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10038,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcInGivenOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14367,
+ "src": "12693:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10045,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12693:91:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9990,
+ "id": 10046,
+ "nodeType": "Return",
+ "src": "12686:98:54"
+ }
+ ]
+ },
+ "id": 10048,
+ "nodeType": "IfStatement",
+ "src": "12528:267:54",
+ "trueBody": {
+ "id": 10036,
+ "nodeType": "Block",
+ "src": "12543:123:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10028,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10013,
+ "src": "12591:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10029,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9995,
+ "src": "12603:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10030,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10001,
+ "src": "12613:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10031,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10007,
+ "src": "12622:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10032,
+ "name": "amountGiven",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9979,
+ "src": "12632:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10033,
+ "name": "invariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10018,
+ "src": "12645:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10026,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "12564:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10027,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcOutGivenIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14308,
+ "src": "12564:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10034,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12564:91:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 9990,
+ "id": 10035,
+ "nodeType": "Return",
+ "src": "12557:98:54"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 9975,
+ "nodeType": "StructuredDocumentation",
+ "src": "11668:223:54",
+ "text": " @dev Perform a swap between non-BPT tokens. Scaling and fee adjustments have been performed upstream, so\n all we need to do here is calculate the price quote, depending on the direction of the swap."
+ },
+ "id": 10050,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onRegularSwap",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 9987,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9977,
+ "mutability": "mutable",
+ "name": "isGivenIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10050,
+ "src": "11929:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 9976,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "11929:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9979,
+ "mutability": "mutable",
+ "name": "amountGiven",
+ "nodeType": "VariableDeclaration",
+ "scope": 10050,
+ "src": "11953:19:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9978,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11953:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9982,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10050,
+ "src": "11982:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 9980,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11982:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 9981,
+ "nodeType": "ArrayTypeName",
+ "src": "11982:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9984,
+ "mutability": "mutable",
+ "name": "registeredIndexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10050,
+ "src": "12027:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9983,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12027:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 9986,
+ "mutability": "mutable",
+ "name": "registeredIndexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10050,
+ "src": "12062:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9985,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12062:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11919:175:54"
+ },
+ "returnParameters": {
+ "id": 9990,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 9989,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10050,
+ "src": "12117:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 9988,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12117:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12116:9:54"
+ },
+ "scope": 11807,
+ "src": "11896:905:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 10167,
+ "nodeType": "Block",
+ "src": "13634:1713:54",
+ "statements": [
+ {
+ "assignments": [
+ 10069
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10069,
+ "mutability": "mutable",
+ "name": "isGivenIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10167,
+ "src": "13644:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 10068,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "13644:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10076,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ },
+ "id": 10075,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 10070,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10053,
+ "src": "13661:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 10071,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "kind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1473,
+ "src": "13661:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 10072,
+ "name": "IVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2021,
+ "src": "13681:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IVault_$2021_$",
+ "typeString": "type(contract IVault)"
+ }
+ },
+ "id": 10073,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SwapKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1845,
+ "src": "13681:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_SwapKind_$1845_$",
+ "typeString": "type(enum IVault.SwapKind)"
+ }
+ },
+ "id": 10074,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "GIVEN_IN",
+ "nodeType": "MemberAccess",
+ "src": "13681:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_SwapKind_$1845",
+ "typeString": "enum IVault.SwapKind"
+ }
+ },
+ "src": "13661:44:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13644:61:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10078,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10056,
+ "src": "13730:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10079,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10063,
+ "src": "13750:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 10077,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "13716:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 10080,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13716:49:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10081,
+ "nodeType": "ExpressionStatement",
+ "src": "13716:49:54"
+ },
+ {
+ "expression": {
+ "id": 10095,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "expression": {
+ "id": 10082,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10053,
+ "src": "13775:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 10084,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "13775:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 10086,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10053,
+ "src": "13818:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 10087,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "13818:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 10088,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10063,
+ "src": "13850:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10093,
+ "indexExpression": {
+ "condition": {
+ "id": 10089,
+ "name": "isGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10069,
+ "src": "13865:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 10091,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10060,
+ "src": "13897:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10092,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "13865:50:54",
+ "trueExpression": {
+ "id": 10090,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10058,
+ "src": "13877:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "13850:66:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10085,
+ "name": "_upscale",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3547,
+ "src": "13796:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10094,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13796:130:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "13775:151:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10096,
+ "nodeType": "ExpressionStatement",
+ "src": "13775:151:54"
+ },
+ {
+ "assignments": [
+ 10098,
+ 10101,
+ 10103,
+ 10105
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10098,
+ "mutability": "mutable",
+ "name": "preJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10167,
+ "src": "13951:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10097,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13951:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10101,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10167,
+ "src": "13990:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10099,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13990:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10100,
+ "nodeType": "ArrayTypeName",
+ "src": "13990:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10103,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10167,
+ "src": "14029:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10102,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14029:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10105,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10167,
+ "src": "14061:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10104,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14061:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10109,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10107,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10056,
+ "src": "14118:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 10106,
+ "name": "_beforeJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10891,
+ "src": "14102:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256[] memory) returns (uint256,uint256[] memory,uint256,uint256)"
+ }
+ },
+ "id": 10108,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14102:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256[] memory,uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13937:200:54"
+ },
+ {
+ "assignments": [
+ 10111,
+ 10113
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10111,
+ "mutability": "mutable",
+ "name": "amountCalculated",
+ "nodeType": "VariableDeclaration",
+ "scope": 10167,
+ "src": "14236:24:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10110,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14236:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10113,
+ "mutability": "mutable",
+ "name": "postJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10167,
+ "src": "14262:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10112,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "14262:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10143,
+ "initialValue": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 10117,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 10114,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10060,
+ "src": "14292:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10115,
+ "name": "getBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13574,
+ "src": "14314:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 10116,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14314:13:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "14292:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 10131,
+ "name": "isGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10069,
+ "src": "14651:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 10132,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10053,
+ "src": "14678:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 10133,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "14678:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10134,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10101,
+ "src": "14714:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 10136,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10060,
+ "src": "14754:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10135,
+ "name": "_skipBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13665,
+ "src": "14740:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 10137,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14740:33:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10138,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10103,
+ "src": "14791:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10139,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10098,
+ "src": "14819:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10140,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10105,
+ "src": "14854:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10130,
+ "name": "_doExitSwap",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10387,
+ "src": "14622:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bool_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (bool,uint256,uint256[] memory,uint256,uint256,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 10141,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14622:266:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "id": 10142,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "14292:596:54",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 10119,
+ "name": "isGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10069,
+ "src": "14371:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 10120,
+ "name": "swapRequest",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10053,
+ "src": "14398:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest memory"
+ }
+ },
+ "id": 10121,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "amount",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1479,
+ "src": "14398:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10122,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10101,
+ "src": "14434:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 10124,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10058,
+ "src": "14474:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10123,
+ "name": "_skipBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13665,
+ "src": "14460:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 10125,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14460:32:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10126,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10103,
+ "src": "14510:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10127,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10098,
+ "src": "14538:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10128,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10105,
+ "src": "14573:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10118,
+ "name": "_doJoinSwap",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10211,
+ "src": "14342:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bool_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (bool,uint256,uint256[] memory,uint256,uint256,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 10129,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14342:265:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "14235:653:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10145,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10103,
+ "src": "14942:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10146,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10101,
+ "src": "14966:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10147,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10105,
+ "src": "14988:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10148,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10098,
+ "src": "15022:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10149,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10113,
+ "src": "15053:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10144,
+ "name": "_updateInvariantAfterJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12282,
+ "src": "14899:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256)"
+ }
+ },
+ "id": 10150,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14899:182:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10151,
+ "nodeType": "ExpressionStatement",
+ "src": "14899:182:54"
+ },
+ {
+ "expression": {
+ "condition": {
+ "id": 10152,
+ "name": "isGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10069,
+ "src": "15111:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 10160,
+ "name": "amountCalculated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10111,
+ "src": "15265:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 10161,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10063,
+ "src": "15283:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10163,
+ "indexExpression": {
+ "id": 10162,
+ "name": "registeredIndexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10058,
+ "src": "15298:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "15283:33:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10159,
+ "name": "_downscaleUp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3681,
+ "src": "15252:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10164,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15252:65:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10165,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "15111:206:54",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 10154,
+ "name": "amountCalculated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10111,
+ "src": "15154:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 10155,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10063,
+ "src": "15172:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10157,
+ "indexExpression": {
+ "id": 10156,
+ "name": "registeredIndexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10060,
+ "src": "15187:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "15172:34:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10153,
+ "name": "_downscaleDown",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3614,
+ "src": "15139:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10158,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15139:68:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 10067,
+ "id": 10166,
+ "nodeType": "Return",
+ "src": "15092:225:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10051,
+ "nodeType": "StructuredDocumentation",
+ "src": "12807:571:54",
+ "text": " @dev Perform a swap involving the BPT token, equivalent to a single-token join or exit. As with the standard\n joins and swaps, we first pay any protocol fees pending from swaps that occurred since the previous join or\n exit, then perform the operation (joinSwap or exitSwap), and finally store the \"post operation\" invariant and\n amp, which establishes the new basis for protocol fees.\n At this point, the scaling factors (including rates) have been computed by the base class, but not yet applied\n to the balances."
+ },
+ "id": 10168,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_swapWithBpt",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10064,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10053,
+ "mutability": "mutable",
+ "name": "swapRequest",
+ "nodeType": "VariableDeclaration",
+ "scope": 10168,
+ "src": "13414:30:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_memory_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ },
+ "typeName": {
+ "id": 10052,
+ "name": "SwapRequest",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1490,
+ "src": "13414:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_SwapRequest_$1490_storage_ptr",
+ "typeString": "struct IPoolSwapStructs.SwapRequest"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10056,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10168,
+ "src": "13454:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10054,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13454:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10055,
+ "nodeType": "ArrayTypeName",
+ "src": "13454:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10058,
+ "mutability": "mutable",
+ "name": "registeredIndexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10168,
+ "src": "13499:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10057,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13499:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10060,
+ "mutability": "mutable",
+ "name": "registeredIndexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10168,
+ "src": "13534:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10059,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13534:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10063,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 10168,
+ "src": "13570:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10061,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13570:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10062,
+ "nodeType": "ArrayTypeName",
+ "src": "13570:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13404:203:54"
+ },
+ "returnParameters": {
+ "id": 10067,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10066,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10168,
+ "src": "13625:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10065,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13625:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13624:9:54"
+ },
+ "scope": 11807,
+ "src": "13383:1964:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 10210,
+ "nodeType": "Block",
+ "src": "15863:569:54",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "id": 10191,
+ "name": "isGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10171,
+ "src": "15892:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 10201,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10173,
+ "src": "16234:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10202,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10176,
+ "src": "16262:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10203,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10178,
+ "src": "16292:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10204,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10180,
+ "src": "16321:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10205,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10182,
+ "src": "16353:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10206,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10184,
+ "src": "16387:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10200,
+ "name": "_joinSwapExactBptOutForTokenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10344,
+ "src": "16182:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 10207,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "16182:243:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "id": 10208,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "15892:533:54",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 10193,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10173,
+ "src": "15972:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10194,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10176,
+ "src": "16000:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10195,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10178,
+ "src": "16030:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10196,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10180,
+ "src": "16059:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10197,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10182,
+ "src": "16091:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10198,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10184,
+ "src": "16125:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10192,
+ "name": "_joinSwapExactTokenInForBptOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10286,
+ "src": "15920:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 10199,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "15920:243:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 10190,
+ "id": 10209,
+ "nodeType": "Return",
+ "src": "15873:552:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10169,
+ "nodeType": "StructuredDocumentation",
+ "src": "15353:233:54",
+ "text": " @dev This mutates `balances` so that they become the post-joinswap balances. The StableMath interfaces\n are different depending on the swap direction, so we forward to the appropriate low-level join function."
+ },
+ "id": 10211,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_doJoinSwap",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10185,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10171,
+ "mutability": "mutable",
+ "name": "isGivenIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15621:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 10170,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "15621:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10173,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15645:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10172,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15645:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10176,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15669:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10174,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15669:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10175,
+ "nodeType": "ArrayTypeName",
+ "src": "15669:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10178,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15704:15:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10177,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15704:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10180,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15729:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10179,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15729:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10182,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15757:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10181,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15757:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10184,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15787:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10183,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15787:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "15611:210:54"
+ },
+ "returnParameters": {
+ "id": 10190,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10187,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15845:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10186,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15845:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10189,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10211,
+ "src": "15854:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10188,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15854:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "15844:18:54"
+ },
+ "scope": 11807,
+ "src": "15591:841:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10285,
+ "nodeType": "Block",
+ "src": "16970:714:54",
+ "statements": [
+ {
+ "assignments": [
+ 10236
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10236,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10285,
+ "src": "17165:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10234,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17165:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10235,
+ "nodeType": "ArrayTypeName",
+ "src": "17165:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10243,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 10240,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10217,
+ "src": "17208:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10241,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "17208:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10239,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "17194:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10237,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17198:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10238,
+ "nodeType": "ArrayTypeName",
+ "src": "17198:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 10242,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17194:30:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17165:59:54"
+ },
+ {
+ "expression": {
+ "id": 10248,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 10244,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10236,
+ "src": "17234:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10246,
+ "indexExpression": {
+ "id": 10245,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10219,
+ "src": "17244:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "17234:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 10247,
+ "name": "amountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10214,
+ "src": "17255:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "17234:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10249,
+ "nodeType": "ExpressionStatement",
+ "src": "17234:29:54"
+ },
+ {
+ "assignments": [
+ 10251
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10251,
+ "mutability": "mutable",
+ "name": "bptOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10285,
+ "src": "17274:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10250,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17274:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10262,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10254,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10221,
+ "src": "17345:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10255,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10217,
+ "src": "17369:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10256,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10236,
+ "src": "17391:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10257,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10223,
+ "src": "17414:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10258,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10225,
+ "src": "17440:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10259,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "17474:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 10260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17474:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10252,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "17291:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10253,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcBptOutGivenExactTokensIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14600,
+ "src": "17291:40:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256[] memory,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10261,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17291:215:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17274:232:54"
+ },
+ {
+ "expression": {
+ "id": 10272,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 10263,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10217,
+ "src": "17517:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10265,
+ "indexExpression": {
+ "id": 10264,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10219,
+ "src": "17526:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "17517:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 10270,
+ "name": "amountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10214,
+ "src": "17559:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 10266,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10217,
+ "src": "17537:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10268,
+ "indexExpression": {
+ "id": 10267,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10219,
+ "src": "17546:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "17537:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10269,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6785,
+ "src": "17537:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17537:31:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "17517:51:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10273,
+ "nodeType": "ExpressionStatement",
+ "src": "17517:51:54"
+ },
+ {
+ "assignments": [
+ 10275
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10275,
+ "mutability": "mutable",
+ "name": "postJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10285,
+ "src": "17578:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10274,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17578:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10280,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10278,
+ "name": "bptOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10251,
+ "src": "17624:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10276,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10223,
+ "src": "17607:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10277,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6785,
+ "src": "17607:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10279,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17607:24:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17578:53:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 10281,
+ "name": "bptOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10251,
+ "src": "17650:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10282,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10275,
+ "src": "17658:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 10283,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "17649:28:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 10231,
+ "id": 10284,
+ "nodeType": "Return",
+ "src": "17642:35:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10212,
+ "nodeType": "StructuredDocumentation",
+ "src": "16438:258:54",
+ "text": " @dev Since this is a join, we know the tokenOut is BPT. Since it is GivenIn, we know the tokenIn amount,\n and must calculate the BPT amount out.\n We are moving preminted BPT out of the Vault, which increases the virtual supply."
+ },
+ "id": 10286,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_joinSwapExactTokenInForBptOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10226,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10214,
+ "mutability": "mutable",
+ "name": "amountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16750:16:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10213,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16750:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10217,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16776:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10215,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16776:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10216,
+ "nodeType": "ArrayTypeName",
+ "src": "16776:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10219,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16811:15:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10218,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16811:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10221,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16836:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10220,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16836:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10223,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16864:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10222,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16864:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10225,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16894:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10224,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16894:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "16740:188:54"
+ },
+ "returnParameters": {
+ "id": 10231,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10228,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16952:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10227,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16952:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10230,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10286,
+ "src": "16961:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10229,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16961:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "16951:18:54"
+ },
+ "scope": 11807,
+ "src": "16701:983:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10343,
+ "nodeType": "Block",
+ "src": "18218:441:54",
+ "statements": [
+ {
+ "assignments": [
+ 10308
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10308,
+ "mutability": "mutable",
+ "name": "amountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10343,
+ "src": "18228:16:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10307,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18228:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10320,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10311,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10296,
+ "src": "18300:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10312,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10292,
+ "src": "18324:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10313,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10294,
+ "src": "18346:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10314,
+ "name": "bptOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10289,
+ "src": "18367:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10315,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10298,
+ "src": "18387:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10316,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10300,
+ "src": "18413:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10317,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "18447:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 10318,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18447:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10309,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "18247:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10310,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcTokenInGivenExactBptOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14718,
+ "src": "18247:39:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10319,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18247:232:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "18228:251:54"
+ },
+ {
+ "expression": {
+ "id": 10330,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 10321,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10292,
+ "src": "18490:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10323,
+ "indexExpression": {
+ "id": 10322,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10294,
+ "src": "18499:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "18490:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 10328,
+ "name": "amountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10308,
+ "src": "18532:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 10324,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10292,
+ "src": "18510:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10326,
+ "indexExpression": {
+ "id": 10325,
+ "name": "indexIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10294,
+ "src": "18519:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "18510:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10327,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6785,
+ "src": "18510:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10329,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18510:31:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "18490:51:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10331,
+ "nodeType": "ExpressionStatement",
+ "src": "18490:51:54"
+ },
+ {
+ "assignments": [
+ 10333
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10333,
+ "mutability": "mutable",
+ "name": "postJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10343,
+ "src": "18551:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10332,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18551:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10338,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10336,
+ "name": "bptOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10289,
+ "src": "18597:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10334,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10298,
+ "src": "18580:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10335,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6785,
+ "src": "18580:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10337,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18580:24:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "18551:53:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 10339,
+ "name": "amountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10308,
+ "src": "18623:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10340,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10333,
+ "src": "18633:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 10341,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "18622:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 10306,
+ "id": 10342,
+ "nodeType": "Return",
+ "src": "18615:37:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10287,
+ "nodeType": "StructuredDocumentation",
+ "src": "17690:256:54",
+ "text": " @dev Since this is a join, we know the tokenOut is BPT. Since it is GivenOut, we know the BPT amount,\n and must calculate the token amount in.\n We are moving preminted BPT out of the Vault, which increases the virtual supply."
+ },
+ "id": 10344,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_joinSwapExactBptOutForTokenIn",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10301,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10289,
+ "mutability": "mutable",
+ "name": "bptOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18000:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10288,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18000:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10292,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18024:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10290,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18024:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10291,
+ "nodeType": "ArrayTypeName",
+ "src": "18024:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10294,
+ "mutability": "mutable",
+ "name": "indexIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18059:15:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10293,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18059:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10296,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18084:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10295,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18084:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10298,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18112:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10297,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18112:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10300,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18142:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10299,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18142:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "17990:186:54"
+ },
+ "returnParameters": {
+ "id": 10306,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10303,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18200:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10302,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18200:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10305,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10344,
+ "src": "18209:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10304,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18209:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "18199:18:54"
+ },
+ "scope": 11807,
+ "src": "17951:708:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10386,
+ "nodeType": "Block",
+ "src": "19174:571:54",
+ "statements": [
+ {
+ "expression": {
+ "condition": {
+ "id": 10367,
+ "name": "isGivenIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10347,
+ "src": "19203:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 10377,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10349,
+ "src": "19546:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10378,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10352,
+ "src": "19574:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10379,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10354,
+ "src": "19604:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10380,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10356,
+ "src": "19634:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10381,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10358,
+ "src": "19666:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10382,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10360,
+ "src": "19700:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10376,
+ "name": "_exitSwapExactTokenOutForBptIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10520,
+ "src": "19494:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 10383,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19494:244:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "id": 10384,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "19203:535:54",
+ "trueExpression": {
+ "arguments": [
+ {
+ "id": 10369,
+ "name": "amount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10349,
+ "src": "19283:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10370,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10352,
+ "src": "19311:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10371,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10354,
+ "src": "19341:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10372,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10356,
+ "src": "19371:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10373,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10358,
+ "src": "19403:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10374,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10360,
+ "src": "19437:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10368,
+ "name": "_exitSwapExactBptInForTokenOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10445,
+ "src": "19231:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 10375,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19231:244:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 10366,
+ "id": 10385,
+ "nodeType": "Return",
+ "src": "19184:554:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10345,
+ "nodeType": "StructuredDocumentation",
+ "src": "18665:231:54",
+ "text": " @dev This mutates balances so that they become the post-exitswap balances. The StableMath interfaces are\n different depending on the swap direction, so we forward to the appropriate low-level exit function."
+ },
+ "id": 10387,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_doExitSwap",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10361,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10347,
+ "mutability": "mutable",
+ "name": "isGivenIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "18931:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 10346,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "18931:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10349,
+ "mutability": "mutable",
+ "name": "amount",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "18955:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10348,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18955:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10352,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "18979:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10350,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18979:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10351,
+ "nodeType": "ArrayTypeName",
+ "src": "18979:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10354,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "19014:16:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10353,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19014:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10356,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "19040:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10355,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19040:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10358,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "19068:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10357,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19068:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10360,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "19098:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10359,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19098:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "18921:211:54"
+ },
+ "returnParameters": {
+ "id": 10366,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10363,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "19156:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10362,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19156:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10365,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10387,
+ "src": "19165:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10364,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19165:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "19155:18:54"
+ },
+ "scope": 11807,
+ "src": "18901:844:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10444,
+ "nodeType": "Block",
+ "src": "20294:453:54",
+ "statements": [
+ {
+ "assignments": [
+ 10409
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10409,
+ "mutability": "mutable",
+ "name": "amountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10444,
+ "src": "20304:17:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10408,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20304:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10421,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10412,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10397,
+ "src": "20377:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10413,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10393,
+ "src": "20401:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10414,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10395,
+ "src": "20423:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10415,
+ "name": "bptAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10390,
+ "src": "20445:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10416,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10399,
+ "src": "20468:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10417,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10401,
+ "src": "20494:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10418,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "20528:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 10419,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20528:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10410,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "20324:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10411,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcTokenOutGivenExactBptIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 15057,
+ "src": "20324:39:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10420,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20324:236:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "20304:256:54"
+ },
+ {
+ "expression": {
+ "id": 10431,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 10422,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10393,
+ "src": "20571:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10424,
+ "indexExpression": {
+ "id": 10423,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10395,
+ "src": "20580:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "20571:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 10429,
+ "name": "amountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10409,
+ "src": "20615:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 10425,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10393,
+ "src": "20592:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10427,
+ "indexExpression": {
+ "id": 10426,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10395,
+ "src": "20601:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "20592:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10428,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6811,
+ "src": "20592:22:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10430,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20592:33:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "20571:54:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10432,
+ "nodeType": "ExpressionStatement",
+ "src": "20571:54:54"
+ },
+ {
+ "assignments": [
+ 10434
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10434,
+ "mutability": "mutable",
+ "name": "postJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10444,
+ "src": "20635:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10433,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20635:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10439,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10437,
+ "name": "bptAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10390,
+ "src": "20681:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10435,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10399,
+ "src": "20664:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10436,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6811,
+ "src": "20664:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10438,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20664:27:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "20635:56:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 10440,
+ "name": "amountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10409,
+ "src": "20710:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10441,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10434,
+ "src": "20721:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 10442,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "20709:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 10407,
+ "id": 10443,
+ "nodeType": "Return",
+ "src": "20702:38:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10388,
+ "nodeType": "StructuredDocumentation",
+ "src": "19751:267:54",
+ "text": " @dev Since this is an exit, we know the tokenIn is BPT. Since it is GivenIn, we know the BPT amount,\n and must calculate the token amount out.\n We are moving BPT out of circulation and into the Vault, which decreases the virtual supply."
+ },
+ "id": 10445,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_exitSwapExactBptInForTokenOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10402,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10390,
+ "mutability": "mutable",
+ "name": "bptAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20072:17:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10389,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20072:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10393,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20099:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10391,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20099:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10392,
+ "nodeType": "ArrayTypeName",
+ "src": "20099:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10395,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20134:16:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10394,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20134:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10397,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20160:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10396,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20160:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10399,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20188:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10398,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20188:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10401,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20218:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10400,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20218:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "20062:190:54"
+ },
+ "returnParameters": {
+ "id": 10407,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10404,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20276:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10403,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20276:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10406,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10445,
+ "src": "20285:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10405,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "20285:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "20275:18:54"
+ },
+ "scope": 11807,
+ "src": "20023:724:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10519,
+ "nodeType": "Block",
+ "src": "21300:731:54",
+ "statements": [
+ {
+ "assignments": [
+ 10470
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10470,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10519,
+ "src": "21495:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10468,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21495:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10469,
+ "nodeType": "ArrayTypeName",
+ "src": "21495:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10477,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 10474,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10451,
+ "src": "21539:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10475,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "21539:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10473,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "21525:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10471,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21529:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10472,
+ "nodeType": "ArrayTypeName",
+ "src": "21529:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 10476,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "21525:30:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "21495:60:54"
+ },
+ {
+ "expression": {
+ "id": 10482,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 10478,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10470,
+ "src": "21565:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10480,
+ "indexExpression": {
+ "id": 10479,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10453,
+ "src": "21576:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "21565:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 10481,
+ "name": "amountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10448,
+ "src": "21588:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "21565:32:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10483,
+ "nodeType": "ExpressionStatement",
+ "src": "21565:32:54"
+ },
+ {
+ "assignments": [
+ 10485
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10485,
+ "mutability": "mutable",
+ "name": "bptAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 10519,
+ "src": "21608:17:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10484,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21608:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10496,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10488,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10455,
+ "src": "21682:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10489,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10451,
+ "src": "21706:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10490,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10470,
+ "src": "21728:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10491,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10457,
+ "src": "21752:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10492,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10459,
+ "src": "21778:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10493,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "21812:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 10494,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "21812:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10486,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "21628:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10487,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcBptInGivenExactTokensOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14939,
+ "src": "21628:40:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256[] memory,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10495,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "21628:216:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "21608:236:54"
+ },
+ {
+ "expression": {
+ "id": 10506,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 10497,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10451,
+ "src": "21855:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10499,
+ "indexExpression": {
+ "id": 10498,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10453,
+ "src": "21864:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "21855:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 10504,
+ "name": "amountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10448,
+ "src": "21899:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "baseExpression": {
+ "id": 10500,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10451,
+ "src": "21876:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10502,
+ "indexExpression": {
+ "id": 10501,
+ "name": "indexOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10453,
+ "src": "21885:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "21876:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10503,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6811,
+ "src": "21876:22:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10505,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "21876:33:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "21855:54:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10507,
+ "nodeType": "ExpressionStatement",
+ "src": "21855:54:54"
+ },
+ {
+ "assignments": [
+ 10509
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10509,
+ "mutability": "mutable",
+ "name": "postJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10519,
+ "src": "21919:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10508,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21919:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10514,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10512,
+ "name": "bptAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10485,
+ "src": "21965:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10510,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10457,
+ "src": "21948:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10511,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6811,
+ "src": "21948:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10513,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "21948:27:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "21919:56:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 10515,
+ "name": "bptAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10485,
+ "src": "21994:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10516,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10509,
+ "src": "22005:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 10517,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "21993:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 10465,
+ "id": 10518,
+ "nodeType": "Return",
+ "src": "21986:38:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10446,
+ "nodeType": "StructuredDocumentation",
+ "src": "20753:271:54",
+ "text": " @dev Since this is an exit, we know the tokenIn is BPT. Since it is GivenOut, we know the token amount out,\n and must calculate the BPT amount in.\n We are moving BPT out of circulation and into the Vault, which decreases the virtual supply."
+ },
+ "id": 10520,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_exitSwapExactTokenOutForBptIn",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10460,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10448,
+ "mutability": "mutable",
+ "name": "amountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21078:17:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10447,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21078:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10451,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21105:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10449,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21105:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10450,
+ "nodeType": "ArrayTypeName",
+ "src": "21105:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10453,
+ "mutability": "mutable",
+ "name": "indexOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21140:16:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10452,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21140:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10455,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21166:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10454,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21166:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10457,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21194:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10456,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21194:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10459,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21224:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10458,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21224:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "21068:190:54"
+ },
+ "returnParameters": {
+ "id": 10465,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10462,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21282:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10461,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21282:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10464,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10520,
+ "src": "21291:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10463,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "21291:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "21281:18:54"
+ },
+ "scope": 11807,
+ "src": "21029:1002:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 3338
+ ],
+ "body": {
+ "id": 10636,
+ "nodeType": "Block",
+ "src": "22796:1771:54",
+ "statements": [
+ {
+ "assignments": [
+ 10544
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10544,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 10636,
+ "src": "22806:32:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ },
+ "typeName": {
+ "id": 10543,
+ "name": "StablePoolUserData.JoinKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 35,
+ "src": "22806:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10548,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 10545,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10532,
+ "src": "22841:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 10546,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "joinKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 54,
+ "src": "22841:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_enum$_JoinKind_$35_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (enum StablePoolUserData.JoinKind)"
+ }
+ },
+ "id": 10547,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "22841:19:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "22806:54:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ },
+ "id": 10554,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 10550,
+ "name": "kind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10544,
+ "src": "22879:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 10551,
+ "name": "StablePoolUserData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 236,
+ "src": "22887:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolUserData_$236_$",
+ "typeString": "type(library StablePoolUserData)"
+ }
+ },
+ "id": 10552,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "JoinKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 35,
+ "src": "22887:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ "id": 10553,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "INIT",
+ "nodeType": "MemberAccess",
+ "src": "22887:32:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "src": "22879:40:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 10555,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "22921:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 10556,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "UNINITIALIZED",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 596,
+ "src": "22921:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10549,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "22870:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 10557,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "22870:72:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10558,
+ "nodeType": "ExpressionStatement",
+ "src": "22870:72:54"
+ },
+ {
+ "assignments": [
+ 10563
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10563,
+ "mutability": "mutable",
+ "name": "amountsInIncludingBpt",
+ "nodeType": "VariableDeclaration",
+ "scope": 10636,
+ "src": "23056:38:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10561,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23056:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10562,
+ "nodeType": "ArrayTypeName",
+ "src": "23056:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10567,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 10564,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10532,
+ "src": "23097:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 10565,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "initialAmountsIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 91,
+ "src": "23097:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256[] memory)"
+ }
+ },
+ "id": 10566,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "23097:27:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "23056:68:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 10571,
+ "name": "amountsInIncludingBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10563,
+ "src": "23170:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10572,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "23170:28:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 10573,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10530,
+ "src": "23200:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10574,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "23200:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10568,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "23134:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 10570,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "23134:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 10575,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "23134:88:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10576,
+ "nodeType": "ExpressionStatement",
+ "src": "23134:88:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10578,
+ "name": "amountsInIncludingBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10563,
+ "src": "23246:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10579,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10530,
+ "src": "23269:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 10577,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "23232:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 10580,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "23232:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10581,
+ "nodeType": "ExpressionStatement",
+ "src": "23232:52:54"
+ },
+ {
+ "assignments": [
+ 10583,
+ null
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10583,
+ "mutability": "mutable",
+ "name": "amp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10636,
+ "src": "23296:11:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10582,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23296:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 10586,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10584,
+ "name": "_getAmplificationParameter",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15530,
+ "src": "23313:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_bool_$",
+ "typeString": "function () view returns (uint256,bool)"
+ }
+ },
+ "id": 10585,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "23313:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_bool_$",
+ "typeString": "tuple(uint256,bool)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "23295:46:54"
+ },
+ {
+ "assignments": [
+ 10591
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10591,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 10636,
+ "src": "23351:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10589,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23351:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10590,
+ "nodeType": "ArrayTypeName",
+ "src": "23351:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10595,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10593,
+ "name": "amountsInIncludingBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10563,
+ "src": "23393:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 10592,
+ "name": "_dropBptItem",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13721,
+ "src": "23380:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256[] memory)"
+ }
+ },
+ "id": 10594,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "23380:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "23351:64:54"
+ },
+ {
+ "assignments": [
+ 10597
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10597,
+ "mutability": "mutable",
+ "name": "invariantAfterJoin",
+ "nodeType": "VariableDeclaration",
+ "scope": 10636,
+ "src": "23425:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10596,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23425:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10603,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10600,
+ "name": "amp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10583,
+ "src": "23485:3:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10601,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10591,
+ "src": "23490:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 10598,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "23454:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10599,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "23454:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 10602,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "23454:46:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "23425:75:54"
+ },
+ {
+ "assignments": [
+ 10605
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10605,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 10636,
+ "src": "23572:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10604,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "23572:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10607,
+ "initialValue": {
+ "id": 10606,
+ "name": "invariantAfterJoin",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10597,
+ "src": "23595:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "23572:41:54"
+ },
+ {
+ "assignments": [
+ 10609
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10609,
+ "mutability": "mutable",
+ "name": "initialBpt",
+ "nodeType": "VariableDeclaration",
+ "scope": 10636,
+ "src": "24206:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10608,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24206:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10614,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10612,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10605,
+ "src": "24256:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 10610,
+ "name": "_PREMINTED_TOKEN_BALANCE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 9646,
+ "src": "24227:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10611,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6811,
+ "src": "24227:28:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10613,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "24227:42:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "24206:63:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10616,
+ "name": "sender",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10525,
+ "src": "24296:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "id": 10617,
+ "name": "initialBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10609,
+ "src": "24304:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10615,
+ "name": "_mintPoolTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2216,
+ "src": "24280:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$",
+ "typeString": "function (address,uint256)"
+ }
+ },
+ "id": 10618,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "24280:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10619,
+ "nodeType": "ExpressionStatement",
+ "src": "24280:35:54"
+ },
+ {
+ "expression": {
+ "id": 10625,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 10620,
+ "name": "amountsInIncludingBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10563,
+ "src": "24325:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 10623,
+ "indexExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10621,
+ "name": "getBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13574,
+ "src": "24347:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 10622,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "24347:13:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "24325:36:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 10624,
+ "name": "initialBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10609,
+ "src": "24364:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "24325:49:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10626,
+ "nodeType": "ExpressionStatement",
+ "src": "24325:49:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10628,
+ "name": "amp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10583,
+ "src": "24481:3:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10629,
+ "name": "invariantAfterJoin",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10597,
+ "src": "24486:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10627,
+ "name": "_updatePostJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12310,
+ "src": "24461:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256)"
+ }
+ },
+ "id": 10630,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "24461:44:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10631,
+ "nodeType": "ExpressionStatement",
+ "src": "24461:44:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 10632,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10605,
+ "src": "24524:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10633,
+ "name": "amountsInIncludingBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10563,
+ "src": "24538:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 10634,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "24523:37:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10540,
+ "id": 10635,
+ "nodeType": "Return",
+ "src": "24516:44:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10521,
+ "nodeType": "StructuredDocumentation",
+ "src": "22056:518:54",
+ "text": " Since this Pool has preminted BPT which is stored in the Vault, it cannot simply be minted at construction.\n We take advantage of the fact that StablePools have an initialization step where BPT is minted to the first\n account joining them, and perform both actions at once. By minting the entire BPT supply for the initial joiner\n and then pulling all tokens except those due the joiner, we arrive at the desired state of the Pool holding all\n BPT except the joiner's."
+ },
+ "id": 10637,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onInitializePool",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 10534,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "22751:8:54"
+ },
+ "parameters": {
+ "id": 10533,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10523,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10637,
+ "src": "22615:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 10522,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "22615:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10525,
+ "mutability": "mutable",
+ "name": "sender",
+ "nodeType": "VariableDeclaration",
+ "scope": 10637,
+ "src": "22632:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 10524,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "22632:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10527,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10637,
+ "src": "22656:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 10526,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "22656:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10530,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 10637,
+ "src": "22673:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10528,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22673:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10529,
+ "nodeType": "ArrayTypeName",
+ "src": "22673:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10532,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 10637,
+ "src": "22714:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 10531,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "22714:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "22605:136:54"
+ },
+ "returnParameters": {
+ "id": 10540,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10536,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10637,
+ "src": "22769:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10535,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22769:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10539,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10637,
+ "src": "22778:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10537,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "22778:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10538,
+ "nodeType": "ArrayTypeName",
+ "src": "22778:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "22768:27:54"
+ },
+ "scope": 11807,
+ "src": "22579:1988:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 3365
+ ],
+ "body": {
+ "id": 10672,
+ "nodeType": "Block",
+ "src": "24980:91:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "74727565",
+ "id": 10666,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "25013:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "true"
+ },
+ {
+ "id": 10667,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10647,
+ "src": "25019:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10668,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10654,
+ "src": "25039:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10669,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10656,
+ "src": "25055:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 10665,
+ "name": "_onJoinExitPool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10830,
+ "src": "24997:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bool_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bool,uint256[] memory,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 10670,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "24997:67:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10664,
+ "id": 10671,
+ "nodeType": "Return",
+ "src": "24990:74:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10638,
+ "nodeType": "StructuredDocumentation",
+ "src": "24573:119:54",
+ "text": " @dev Base pool hook called from `onJoinPool`. Forward to `onJoinExitPool` with `isJoin` set to true."
+ },
+ "id": 10673,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onJoinPool",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 10658,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "24935:8:54"
+ },
+ "parameters": {
+ "id": 10657,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10640,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24727:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 10639,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "24727:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10642,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24744:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 10641,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "24744:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10644,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24761:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 10643,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "24761:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10647,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24778:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10645,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24778:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10646,
+ "nodeType": "ArrayTypeName",
+ "src": "24778:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10649,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24823:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10648,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24823:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10651,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24840:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10650,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24840:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10654,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24857:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10652,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24857:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10653,
+ "nodeType": "ArrayTypeName",
+ "src": "24857:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10656,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24898:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 10655,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "24898:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "24717:208:54"
+ },
+ "returnParameters": {
+ "id": 10664,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10660,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24953:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10659,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24953:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10663,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10673,
+ "src": "24962:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10661,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "24962:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10662,
+ "nodeType": "ArrayTypeName",
+ "src": "24962:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "24952:27:54"
+ },
+ "scope": 11807,
+ "src": "24697:374:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 3392
+ ],
+ "body": {
+ "id": 10708,
+ "nodeType": "Block",
+ "src": "25549:92:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "hexValue": "66616c7365",
+ "id": 10702,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "bool",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "25582:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "value": "false"
+ },
+ {
+ "id": 10703,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10683,
+ "src": "25589:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10704,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10690,
+ "src": "25609:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10705,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10692,
+ "src": "25625:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 10701,
+ "name": "_onJoinExitPool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10830,
+ "src": "25566:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bool_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (bool,uint256[] memory,uint256[] memory,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 10706,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "25566:68:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10700,
+ "id": 10707,
+ "nodeType": "Return",
+ "src": "25559:75:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10674,
+ "nodeType": "StructuredDocumentation",
+ "src": "25077:184:54",
+ "text": " @dev Base pool hook called from `onExitPool`. Forward to `onJoinExitPool` with `isJoin` set to false.\n Note that recovery mode exits do not call `_onExitPool`."
+ },
+ "id": 10709,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onExitPool",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 10694,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "25504:8:54"
+ },
+ "parameters": {
+ "id": 10693,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10676,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25296:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 10675,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "25296:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10678,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25313:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 10677,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "25313:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10680,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25330:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 10679,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "25330:7:54",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10683,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25347:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10681,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25347:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10682,
+ "nodeType": "ArrayTypeName",
+ "src": "25347:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10685,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25392:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10684,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25392:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10687,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25409:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10686,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25409:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10690,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25426:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10688,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25426:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10689,
+ "nodeType": "ArrayTypeName",
+ "src": "25426:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10692,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25467:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 10691,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "25467:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "25286:208:54"
+ },
+ "returnParameters": {
+ "id": 10700,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10696,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25522:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10695,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25522:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10699,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10709,
+ "src": "25531:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10697,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25531:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10698,
+ "nodeType": "ArrayTypeName",
+ "src": "25531:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "25521:27:54"
+ },
+ "scope": 11807,
+ "src": "25266:375:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10829,
+ "nodeType": "Block",
+ "src": "26034:1757:54",
+ "statements": [
+ {
+ "assignments": [
+ 10729,
+ 10732,
+ 10734,
+ 10736
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10729,
+ "mutability": "mutable",
+ "name": "preJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26058:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10728,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26058:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10732,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26097:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10730,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26097:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10731,
+ "nodeType": "ArrayTypeName",
+ "src": "26097:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10734,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26136:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10733,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26136:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10736,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26168:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10735,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26168:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10740,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10738,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10715,
+ "src": "26225:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 10737,
+ "name": "_beforeJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10891,
+ "src": "26209:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256[] memory) returns (uint256,uint256[] memory,uint256,uint256)"
+ }
+ },
+ "id": 10739,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26209:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256[] memory,uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "26044:200:54"
+ },
+ {
+ "assignments": [
+ 10763
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10763,
+ "mutability": "mutable",
+ "name": "_doJoinOrExit",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26260:197:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[],uint256,uint256,uint256,uint256[],bytes) view returns (uint256,uint256[])"
+ },
+ "typeName": {
+ "id": 10762,
+ "nodeType": "FunctionTypeName",
+ "parameterTypes": {
+ "id": 10755,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10743,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26269:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10741,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26269:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10742,
+ "nodeType": "ArrayTypeName",
+ "src": "26269:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10745,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26287:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10744,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26287:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10747,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26296:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10746,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26296:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10749,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26305:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10748,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26305:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10752,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26314:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10750,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26314:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10751,
+ "nodeType": "ArrayTypeName",
+ "src": "26314:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10754,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26332:12:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 10753,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "26332:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26268:77:54"
+ },
+ "returnParameterTypes": {
+ "id": 10761,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10757,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26417:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10756,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26417:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10760,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10762,
+ "src": "26426:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10758,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26426:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10759,
+ "nodeType": "ArrayTypeName",
+ "src": "26426:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26416:27:54"
+ },
+ "src": "26260:197:54",
+ "stateMutability": "view",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[],uint256,uint256,uint256,uint256[],bytes) view returns (uint256,uint256[])"
+ },
+ "visibility": "internal"
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10769,
+ "initialValue": {
+ "components": [
+ {
+ "condition": {
+ "id": 10764,
+ "name": "isJoin",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10712,
+ "src": "26470:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 10766,
+ "name": "_doExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11240,
+ "src": "26489:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256,uint256,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 10767,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "26470:26:54",
+ "trueExpression": {
+ "id": 10765,
+ "name": "_doJoin",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10973,
+ "src": "26479:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256,uint256,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256,uint256,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ }
+ ],
+ "id": 10768,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "26469:28:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256,uint256,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "26260:237:54"
+ },
+ {
+ "assignments": [
+ 10771,
+ 10774
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10771,
+ "mutability": "mutable",
+ "name": "bptAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26509:17:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10770,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26509:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10774,
+ "mutability": "mutable",
+ "name": "amountsDelta",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26528:29:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10772,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26528:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10773,
+ "nodeType": "ArrayTypeName",
+ "src": "26528:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10783,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10776,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10732,
+ "src": "26588:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10777,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10734,
+ "src": "26610:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10778,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10729,
+ "src": "26634:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10779,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10736,
+ "src": "26665:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10780,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10718,
+ "src": "26699:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10781,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10720,
+ "src": "26727:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 10775,
+ "name": "_doJoinOrExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10763,
+ "src": "26561:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256,uint256,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 10782,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "26561:184:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "26508:237:54"
+ },
+ {
+ "assignments": [
+ 10793
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10793,
+ "mutability": "mutable",
+ "name": "_addOrSub",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "26906:68:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ },
+ "typeName": {
+ "id": 10792,
+ "nodeType": "FunctionTypeName",
+ "parameterTypes": {
+ "id": 10788,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10785,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10792,
+ "src": "26915:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10784,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26915:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10787,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10792,
+ "src": "26924:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10786,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26924:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26914:18:54"
+ },
+ "returnParameterTypes": {
+ "id": 10791,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10790,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10792,
+ "src": "26956:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10789,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26956:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26955:9:54"
+ },
+ "src": "26906:68:54",
+ "stateMutability": "pure",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ },
+ "visibility": "internal"
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10800,
+ "initialValue": {
+ "condition": {
+ "id": 10794,
+ "name": "isJoin",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10712,
+ "src": "26977:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "expression": {
+ "id": 10797,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "27003:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 10798,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "sub",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6811,
+ "src": "27003:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10799,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "26977:40:54",
+ "trueExpression": {
+ "expression": {
+ "id": 10795,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "26986:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 10796,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6785,
+ "src": "26986:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "26906:111:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10802,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10732,
+ "src": "27042:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10803,
+ "name": "amountsDelta",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10774,
+ "src": "27052:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10804,
+ "name": "_addOrSub",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10793,
+ "src": "27066:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ ],
+ "id": 10801,
+ "name": "_mutateAmounts",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11787,
+ "src": "27027:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory,function (uint256,uint256) pure returns (uint256)) pure"
+ }
+ },
+ "id": 10805,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27027:49:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10806,
+ "nodeType": "ExpressionStatement",
+ "src": "27027:49:54"
+ },
+ {
+ "assignments": [
+ 10808
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10808,
+ "mutability": "mutable",
+ "name": "postJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10829,
+ "src": "27086:26:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10807,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27086:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10813,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10810,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10729,
+ "src": "27125:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10811,
+ "name": "bptAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10771,
+ "src": "27144:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10809,
+ "name": "_addOrSub",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10793,
+ "src": "27115:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 10812,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27115:39:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "27086:68:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10815,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10734,
+ "src": "27372:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10816,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10732,
+ "src": "27396:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10817,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10736,
+ "src": "27418:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10818,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10729,
+ "src": "27452:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10819,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10808,
+ "src": "27483:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10814,
+ "name": "_updateInvariantAfterJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12282,
+ "src": "27329:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256)"
+ }
+ },
+ "id": 10820,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27329:182:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10821,
+ "nodeType": "ExpressionStatement",
+ "src": "27329:182:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 10822,
+ "name": "bptAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10771,
+ "src": "27744:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 10824,
+ "name": "amountsDelta",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10774,
+ "src": "27767:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "hexValue": "30",
+ "id": 10825,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "27781:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 10823,
+ "name": "_addBptItem",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13838,
+ "src": "27755:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256) view returns (uint256[] memory)"
+ }
+ },
+ "id": 10826,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "27755:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 10827,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "27743:41:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10727,
+ "id": 10828,
+ "nodeType": "Return",
+ "src": "27736:48:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10710,
+ "nodeType": "StructuredDocumentation",
+ "src": "25647:168:54",
+ "text": " @dev Pay protocol fees before the operation, and call `_updateInvariantAfterJoinExit` afterward, to establish\n the new basis for protocol fees."
+ },
+ "id": 10830,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_onJoinExitPool",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10721,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10712,
+ "mutability": "mutable",
+ "name": "isJoin",
+ "nodeType": "VariableDeclaration",
+ "scope": 10830,
+ "src": "25854:11:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 10711,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "25854:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10715,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10830,
+ "src": "25875:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10713,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25875:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10714,
+ "nodeType": "ArrayTypeName",
+ "src": "25875:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10718,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 10830,
+ "src": "25920:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10716,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "25920:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10717,
+ "nodeType": "ArrayTypeName",
+ "src": "25920:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10720,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 10830,
+ "src": "25961:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 10719,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "25961:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "25844:144:54"
+ },
+ "returnParameters": {
+ "id": 10727,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10723,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10830,
+ "src": "26007:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10722,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26007:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10726,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10830,
+ "src": "26016:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10724,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "26016:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10725,
+ "nodeType": "ArrayTypeName",
+ "src": "26016:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "26006:27:54"
+ },
+ "scope": 11807,
+ "src": "25820:1971:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10890,
+ "nodeType": "Block",
+ "src": "28115:886:54",
+ "statements": [
+ {
+ "assignments": [
+ 10847,
+ 10849
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10847,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10890,
+ "src": "28126:23:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10846,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28126:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10849,
+ "mutability": "mutable",
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10890,
+ "src": "28151:33:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10848,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28151:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10852,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10850,
+ "name": "getLastJoinExitData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12339,
+ "src": "28188:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function () view returns (uint256,uint256)"
+ }
+ },
+ "id": 10851,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "28188:21:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "28125:84:54"
+ },
+ {
+ "assignments": [
+ 10854,
+ 10857,
+ 10859
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10854,
+ "mutability": "mutable",
+ "name": "preJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10890,
+ "src": "28233:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10853,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28233:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10857,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10890,
+ "src": "28272:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10855,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28272:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10856,
+ "nodeType": "ArrayTypeName",
+ "src": "28272:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10859,
+ "mutability": "mutable",
+ "name": "oldAmpPreJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10890,
+ "src": "28311:34:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10858,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28311:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10865,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 10861,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10834,
+ "src": "28389:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10862,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10847,
+ "src": "28409:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10863,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10849,
+ "src": "28426:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10860,
+ "name": "_payProtocolFeesBeforeJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12041,
+ "src": "28358:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "function (uint256[] memory,uint256,uint256) returns (uint256,uint256[] memory,uint256)"
+ }
+ },
+ "id": 10864,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "28358:94:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256[] memory,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "28219:233:54"
+ },
+ {
+ "assignments": [
+ 10867,
+ null
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10867,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10890,
+ "src": "28683:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10866,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28683:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 10870,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 10868,
+ "name": "_getAmplificationParameter",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15530,
+ "src": "28707:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_bool_$",
+ "typeString": "function () view returns (uint256,bool)"
+ }
+ },
+ "id": 10869,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "28707:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_bool_$",
+ "typeString": "tuple(uint256,bool)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "28682:53:54"
+ },
+ {
+ "assignments": [
+ 10872
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10872,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10890,
+ "src": "28745:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10871,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28745:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10883,
+ "initialValue": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 10875,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 10873,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10867,
+ "src": "28776:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 10874,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10847,
+ "src": "28790:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "28776:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 10879,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10867,
+ "src": "28892:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10880,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10857,
+ "src": "28904:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 10877,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "28861:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 10878,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "28861:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 10881,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "28861:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10882,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "28776:137:54",
+ "trueExpression": {
+ "id": 10876,
+ "name": "oldAmpPreJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10859,
+ "src": "28820:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "28745:168:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 10884,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10854,
+ "src": "28932:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10885,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10857,
+ "src": "28951:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10886,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10867,
+ "src": "28961:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10887,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10872,
+ "src": "28973:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 10888,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "28931:63:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256[] memory,uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 10845,
+ "id": 10889,
+ "nodeType": "Return",
+ "src": "28924:70:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10831,
+ "nodeType": "StructuredDocumentation",
+ "src": "27797:110:54",
+ "text": " @dev Pay any due protocol fees and calculate values necessary for performing the join/exit."
+ },
+ "id": 10891,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_beforeJoinExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10835,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10834,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10891,
+ "src": "27937:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10832,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "27937:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10833,
+ "nodeType": "ArrayTypeName",
+ "src": "27937:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "27936:37:54"
+ },
+ "returnParameters": {
+ "id": 10845,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10837,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10891,
+ "src": "28021:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10836,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28021:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10840,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10891,
+ "src": "28042:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10838,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28042:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10839,
+ "nodeType": "ArrayTypeName",
+ "src": "28042:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10842,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10891,
+ "src": "28072:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10841,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28072:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10844,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10891,
+ "src": "28093:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10843,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "28093:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "28007:103:54"
+ },
+ "scope": 11807,
+ "src": "27912:1089:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 10972,
+ "nodeType": "Block",
+ "src": "29389:902:54",
+ "statements": [
+ {
+ "assignments": [
+ 10917
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10917,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 10972,
+ "src": "29399:32:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ },
+ "typeName": {
+ "id": 10916,
+ "name": "StablePoolUserData.JoinKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 35,
+ "src": "29399:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10921,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 10918,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10906,
+ "src": "29434:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 10919,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "joinKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 54,
+ "src": "29434:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_enum$_JoinKind_$35_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (enum StablePoolUserData.JoinKind)"
+ }
+ },
+ "id": 10920,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "29434:19:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "29399:54:54"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ },
+ "id": 10926,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 10922,
+ "name": "kind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10917,
+ "src": "29467:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 10923,
+ "name": "StablePoolUserData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 236,
+ "src": "29475:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolUserData_$236_$",
+ "typeString": "type(library StablePoolUserData)"
+ }
+ },
+ "id": 10924,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "JoinKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 35,
+ "src": "29475:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ "id": 10925,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "EXACT_TOKENS_IN_FOR_BPT_OUT",
+ "nodeType": "MemberAccess",
+ "src": "29475:55:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "src": "29467:63:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ },
+ "id": 10941,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 10937,
+ "name": "kind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10917,
+ "src": "29844:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 10938,
+ "name": "StablePoolUserData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 236,
+ "src": "29852:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolUserData_$236_$",
+ "typeString": "type(library StablePoolUserData)"
+ }
+ },
+ "id": 10939,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "JoinKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 35,
+ "src": "29852:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ "id": 10940,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "ALL_TOKENS_IN_FOR_EXACT_BPT_OUT",
+ "nodeType": "MemberAccess",
+ "src": "29852:59:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "src": "29844:67:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ },
+ "id": 10953,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 10949,
+ "name": "kind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10917,
+ "src": "30024:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 10950,
+ "name": "StablePoolUserData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 236,
+ "src": "30032:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolUserData_$236_$",
+ "typeString": "type(library StablePoolUserData)"
+ }
+ },
+ "id": 10951,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "JoinKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 35,
+ "src": "30032:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_JoinKind_$35_$",
+ "typeString": "type(enum StablePoolUserData.JoinKind)"
+ }
+ },
+ "id": 10952,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "TOKEN_IN_FOR_EXACT_BPT_OUT",
+ "nodeType": "MemberAccess",
+ "src": "30032:54:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_JoinKind_$35",
+ "typeString": "enum StablePoolUserData.JoinKind"
+ }
+ },
+ "src": "30024:62:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 10968,
+ "nodeType": "Block",
+ "src": "30225:60:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 10964,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "30247:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 10965,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "UNHANDLED_JOIN_KIND",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 644,
+ "src": "30247:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 10963,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 510,
+ "src": "30239:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$__$",
+ "typeString": "function (uint256) pure"
+ }
+ },
+ "id": 10966,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "30239:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 10967,
+ "nodeType": "ExpressionStatement",
+ "src": "30239:35:54"
+ }
+ ]
+ },
+ "id": 10969,
+ "nodeType": "IfStatement",
+ "src": "30020:265:54",
+ "trueBody": {
+ "id": 10962,
+ "nodeType": "Block",
+ "src": "30088:131:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10955,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10899,
+ "src": "30136:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10956,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10901,
+ "src": "30155:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10957,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10897,
+ "src": "30177:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10958,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10895,
+ "src": "30189:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10959,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10906,
+ "src": "30199:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 10954,
+ "name": "_joinTokenInForExactBPTOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11158,
+ "src": "30109:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256,uint256,uint256,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 10960,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "30109:99:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10913,
+ "id": 10961,
+ "nodeType": "Return",
+ "src": "30102:106:54"
+ }
+ ]
+ }
+ },
+ "id": 10970,
+ "nodeType": "IfStatement",
+ "src": "29840:445:54",
+ "trueBody": {
+ "id": 10948,
+ "nodeType": "Block",
+ "src": "29913:101:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10943,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10899,
+ "src": "29965:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10944,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10895,
+ "src": "29984:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10945,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10906,
+ "src": "29994:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 10942,
+ "name": "_joinAllTokensInForExactBptOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11012,
+ "src": "29934:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256,uint256[] memory,bytes memory) pure returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 10946,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "29934:69:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10913,
+ "id": 10947,
+ "nodeType": "Return",
+ "src": "29927:76:54"
+ }
+ ]
+ }
+ },
+ "id": 10971,
+ "nodeType": "IfStatement",
+ "src": "29463:822:54",
+ "trueBody": {
+ "id": 10936,
+ "nodeType": "Block",
+ "src": "29532:302:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 10928,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10899,
+ "src": "29618:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10929,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10901,
+ "src": "29657:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10930,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10897,
+ "src": "29699:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 10931,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10895,
+ "src": "29731:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10932,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10904,
+ "src": "29761:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 10933,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10906,
+ "src": "29797:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 10927,
+ "name": "_joinExactTokensInForBPTOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11088,
+ "src": "29569:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256,uint256,uint256,uint256[] memory,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 10934,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "29569:254:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10913,
+ "id": 10935,
+ "nodeType": "Return",
+ "src": "29546:277:54"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10892,
+ "nodeType": "StructuredDocumentation",
+ "src": "29007:96:54",
+ "text": " @dev Support single- and multi-token joins, plus explicit proportional joins."
+ },
+ "id": 10973,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_doJoin",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10907,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10895,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29134:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10893,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29134:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10894,
+ "nodeType": "ArrayTypeName",
+ "src": "29134:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10897,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29169:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10896,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29169:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10899,
+ "mutability": "mutable",
+ "name": "preJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29197:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10898,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29197:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10901,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29232:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10900,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29232:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10904,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29270:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10902,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29270:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10903,
+ "nodeType": "ArrayTypeName",
+ "src": "29270:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10906,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29311:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 10905,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "29311:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29124:214:54"
+ },
+ "returnParameters": {
+ "id": 10913,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10909,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29362:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10908,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29362:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10912,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 10973,
+ "src": "29371:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10910,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "29371:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10911,
+ "nodeType": "ArrayTypeName",
+ "src": "29371:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "29361:27:54"
+ },
+ "scope": 11807,
+ "src": "29108:1183:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 11011,
+ "nodeType": "Block",
+ "src": "30554:236:54",
+ "statements": [
+ {
+ "assignments": [
+ 10990
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10990,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11011,
+ "src": "30564:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10989,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30564:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 10994,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 10991,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10981,
+ "src": "30587:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 10992,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "allTokensInForExactBptOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 163,
+ "src": "30587:34:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_uint256_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256)"
+ }
+ },
+ "id": 10993,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "30587:36:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "30564:59:54"
+ },
+ {
+ "assignments": [
+ 10999
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 10999,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11011,
+ "src": "30633:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10997,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30633:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10998,
+ "nodeType": "ArrayTypeName",
+ "src": "30633:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11006,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11002,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10979,
+ "src": "30703:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11003,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10990,
+ "src": "30713:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11004,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10976,
+ "src": "30727:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11000,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "30662:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11001,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_computeProportionalAmountsIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 15334,
+ "src": "30662:40:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256) pure returns (uint256[] memory)"
+ }
+ },
+ "id": 11005,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "30662:78:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "30633:107:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 11007,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10990,
+ "src": "30759:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11008,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 10999,
+ "src": "30773:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11009,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "30758:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 10988,
+ "id": 11010,
+ "nodeType": "Return",
+ "src": "30751:32:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 10974,
+ "nodeType": "StructuredDocumentation",
+ "src": "30297:61:54",
+ "text": " @dev Proportional join. Pays no swap fees."
+ },
+ "id": 11012,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_joinAllTokensInForExactBptOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 10982,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10976,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11012,
+ "src": "30412:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10975,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30412:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10979,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11012,
+ "src": "30442:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10977,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30442:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10978,
+ "nodeType": "ArrayTypeName",
+ "src": "30442:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10981,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11012,
+ "src": "30477:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 10980,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "30477:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "30402:102:54"
+ },
+ "returnParameters": {
+ "id": 10988,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 10984,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11012,
+ "src": "30527:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 10983,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30527:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 10987,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11012,
+ "src": "30536:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 10985,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30536:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 10986,
+ "nodeType": "ArrayTypeName",
+ "src": "30536:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "30526:27:54"
+ },
+ "scope": 11807,
+ "src": "30363:427:54",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 11087,
+ "nodeType": "Block",
+ "src": "31196:694:54",
+ "statements": [
+ {
+ "assignments": [
+ 11039,
+ 11041
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11039,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11087,
+ "src": "31207:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11037,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31207:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11038,
+ "nodeType": "ArrayTypeName",
+ "src": "31207:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11041,
+ "mutability": "mutable",
+ "name": "minBPTAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11087,
+ "src": "31235:23:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11040,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31235:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11045,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 11042,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11027,
+ "src": "31262:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 11043,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "exactTokensInForBptOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 118,
+ "src": "31262:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256[] memory,uint256)"
+ }
+ },
+ "id": 11044,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31262:33:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(uint256[] memory,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "31206:89:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 11049,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11022,
+ "src": "31341:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11050,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "31341:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 11051,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11039,
+ "src": "31358:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11052,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "31358:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11046,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "31305:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 11048,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "31305:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 11053,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31305:70:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11054,
+ "nodeType": "ExpressionStatement",
+ "src": "31305:70:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11056,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11039,
+ "src": "31472:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 11058,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11025,
+ "src": "31496:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11057,
+ "name": "_dropBptItem",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13721,
+ "src": "31483:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256[] memory)"
+ }
+ },
+ "id": 11059,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31483:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11055,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "31458:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 11060,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31458:54:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11061,
+ "nodeType": "ExpressionStatement",
+ "src": "31458:54:54"
+ },
+ {
+ "assignments": [
+ 11063
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11063,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11087,
+ "src": "31523:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11062,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31523:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11074,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11066,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11019,
+ "src": "31600:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11067,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11022,
+ "src": "31624:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11068,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11039,
+ "src": "31646:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11069,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11015,
+ "src": "31669:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11070,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11017,
+ "src": "31695:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11071,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "31729:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 11072,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31729:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11064,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "31546:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11065,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcBptOutGivenExactTokensIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14600,
+ "src": "31546:40:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256[] memory,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11073,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31546:215:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "31523:238:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11078,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11076,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11063,
+ "src": "31781:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "id": 11077,
+ "name": "minBPTAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11041,
+ "src": "31797:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "31781:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 11079,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "31814:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 11080,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "BPT_OUT_MIN_AMOUNT",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 602,
+ "src": "31814:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11075,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "31772:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 11081,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "31772:68:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11082,
+ "nodeType": "ExpressionStatement",
+ "src": "31772:68:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 11083,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11063,
+ "src": "31859:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11084,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11039,
+ "src": "31873:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11085,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "31858:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11034,
+ "id": 11086,
+ "nodeType": "Return",
+ "src": "31851:32:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11013,
+ "nodeType": "StructuredDocumentation",
+ "src": "30796:100:54",
+ "text": " @dev Multi-token join. Joins with proportional amounts will pay no protocol fees."
+ },
+ "id": 11088,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_joinExactTokensInForBPTOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11028,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11015,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "30947:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11014,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30947:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11017,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "30977:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11016,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "30977:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11019,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "31015:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11018,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31015:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11022,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "31043:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11020,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31043:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11021,
+ "nodeType": "ArrayTypeName",
+ "src": "31043:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11025,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "31078:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11023,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31078:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11024,
+ "nodeType": "ArrayTypeName",
+ "src": "31078:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11027,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "31119:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 11026,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "31119:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "30937:209:54"
+ },
+ "returnParameters": {
+ "id": 11034,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11030,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "31169:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11029,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31169:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11033,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11088,
+ "src": "31178:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11031,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "31178:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11032,
+ "nodeType": "ArrayTypeName",
+ "src": "31178:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "31168:27:54"
+ },
+ "scope": 11807,
+ "src": "30901:989:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 11157,
+ "nodeType": "Block",
+ "src": "32241:968:54",
+ "statements": [
+ {
+ "assignments": [
+ 11109,
+ 11111
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11109,
+ "mutability": "mutable",
+ "name": "bptAmountOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11157,
+ "src": "32354:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11108,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32354:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11111,
+ "mutability": "mutable",
+ "name": "tokenIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 11157,
+ "src": "32376:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11110,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32376:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11115,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 11112,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11100,
+ "src": "32398:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 11113,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenInForExactBptOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 143,
+ "src": "32398:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_uint256_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256,uint256)"
+ }
+ },
+ "id": 11114,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32398:32:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "32353:77:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11120,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11117,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11111,
+ "src": "32625:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "expression": {
+ "id": 11118,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11098,
+ "src": "32638:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11119,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "32638:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "32625:28:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 11121,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "32655:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 11122,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "32655:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11116,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "32616:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 11123,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32616:60:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11124,
+ "nodeType": "ExpressionStatement",
+ "src": "32616:60:54"
+ },
+ {
+ "assignments": [
+ 11129
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11129,
+ "mutability": "mutable",
+ "name": "amountsIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11157,
+ "src": "32763:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11127,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32763:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11128,
+ "nodeType": "ArrayTypeName",
+ "src": "32763:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11136,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 11133,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11098,
+ "src": "32806:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11134,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "32806:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11132,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "32792:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11130,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32796:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11131,
+ "nodeType": "ArrayTypeName",
+ "src": "32796:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 11135,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32792:30:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "32763:59:54"
+ },
+ {
+ "expression": {
+ "id": 11151,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 11137,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11129,
+ "src": "32894:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11139,
+ "indexExpression": {
+ "id": 11138,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11111,
+ "src": "32904:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "32894:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 11142,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11095,
+ "src": "32971:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11143,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11098,
+ "src": "32995:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11144,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11111,
+ "src": "33017:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11145,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11109,
+ "src": "33041:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11146,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11091,
+ "src": "33067:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11147,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11093,
+ "src": "33093:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11148,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "33127:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 11149,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "33127:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11140,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "32918:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11141,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcTokenInGivenExactBptOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14718,
+ "src": "32918:39:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11150,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "32918:241:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "32894:265:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11152,
+ "nodeType": "ExpressionStatement",
+ "src": "32894:265:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 11153,
+ "name": "bptAmountOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11109,
+ "src": "33178:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11154,
+ "name": "amountsIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11129,
+ "src": "33192:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11155,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "33177:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11107,
+ "id": 11156,
+ "nodeType": "Return",
+ "src": "33170:32:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11089,
+ "nodeType": "StructuredDocumentation",
+ "src": "31896:87:54",
+ "text": " @dev Single-token join, equivalent to swapping a pool token for BPT."
+ },
+ "id": 11158,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_joinTokenInForExactBPTOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11101,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11091,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11158,
+ "src": "32033:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11090,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32033:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11093,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11158,
+ "src": "32063:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11092,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32063:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11095,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11158,
+ "src": "32101:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11094,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32101:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11098,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11158,
+ "src": "32129:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11096,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32129:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11097,
+ "nodeType": "ArrayTypeName",
+ "src": "32129:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11100,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11158,
+ "src": "32164:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 11099,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "32164:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "32023:168:54"
+ },
+ "returnParameters": {
+ "id": 11107,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11103,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11158,
+ "src": "32214:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11102,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32214:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11106,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11158,
+ "src": "32223:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11104,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "32223:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11105,
+ "nodeType": "ArrayTypeName",
+ "src": "32223:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "32213:27:54"
+ },
+ "scope": 11807,
+ "src": "31988:1221:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 11239,
+ "nodeType": "Block",
+ "src": "33663:903:54",
+ "statements": [
+ {
+ "assignments": [
+ 11184
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11184,
+ "mutability": "mutable",
+ "name": "kind",
+ "nodeType": "VariableDeclaration",
+ "scope": 11239,
+ "src": "33673:32:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ },
+ "typeName": {
+ "id": 11183,
+ "name": "StablePoolUserData.ExitKind",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 39,
+ "src": "33673:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11188,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 11185,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11173,
+ "src": "33708:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 11186,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "exitKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 69,
+ "src": "33708:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_enum$_ExitKind_$39_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (enum StablePoolUserData.ExitKind)"
+ }
+ },
+ "id": 11187,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "33708:19:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "33673:54:54"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ },
+ "id": 11193,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11189,
+ "name": "kind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11184,
+ "src": "33741:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 11190,
+ "name": "StablePoolUserData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 236,
+ "src": "33749:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolUserData_$236_$",
+ "typeString": "type(library StablePoolUserData)"
+ }
+ },
+ "id": 11191,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ExitKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 39,
+ "src": "33749:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ },
+ "id": 11192,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "BPT_IN_FOR_EXACT_TOKENS_OUT",
+ "nodeType": "MemberAccess",
+ "src": "33749:55:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "src": "33741:63:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ },
+ "id": 11208,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11204,
+ "name": "kind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11184,
+ "src": "34118:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 11205,
+ "name": "StablePoolUserData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 236,
+ "src": "34126:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolUserData_$236_$",
+ "typeString": "type(library StablePoolUserData)"
+ }
+ },
+ "id": 11206,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ExitKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 39,
+ "src": "34126:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ },
+ "id": 11207,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "EXACT_BPT_IN_FOR_ALL_TOKENS_OUT",
+ "nodeType": "MemberAccess",
+ "src": "34126:59:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "src": "34118:67:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ },
+ "id": 11220,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11216,
+ "name": "kind",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11184,
+ "src": "34295:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 11217,
+ "name": "StablePoolUserData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 236,
+ "src": "34303:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StablePoolUserData_$236_$",
+ "typeString": "type(library StablePoolUserData)"
+ }
+ },
+ "id": 11218,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ExitKind",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 39,
+ "src": "34303:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_enum$_ExitKind_$39_$",
+ "typeString": "type(enum StablePoolUserData.ExitKind)"
+ }
+ },
+ "id": 11219,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "EXACT_BPT_IN_FOR_ONE_TOKEN_OUT",
+ "nodeType": "MemberAccess",
+ "src": "34303:58:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_enum$_ExitKind_$39",
+ "typeString": "enum StablePoolUserData.ExitKind"
+ }
+ },
+ "src": "34295:66:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 11235,
+ "nodeType": "Block",
+ "src": "34500:60:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 11231,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "34522:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 11232,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "UNHANDLED_EXIT_KIND",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 722,
+ "src": "34522:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11230,
+ "name": "_revert",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 510,
+ 530
+ ],
+ "referencedDeclaration": 510,
+ "src": "34514:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$__$",
+ "typeString": "function (uint256) pure"
+ }
+ },
+ "id": 11233,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "34514:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11234,
+ "nodeType": "ExpressionStatement",
+ "src": "34514:35:54"
+ }
+ ]
+ },
+ "id": 11236,
+ "nodeType": "IfStatement",
+ "src": "34291:269:54",
+ "trueBody": {
+ "id": 11229,
+ "nodeType": "Block",
+ "src": "34363:131:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11222,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11166,
+ "src": "34411:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11223,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11168,
+ "src": "34430:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11224,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11164,
+ "src": "34452:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11225,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11162,
+ "src": "34464:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11226,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11173,
+ "src": "34474:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 11221,
+ "name": "_exitExactBPTInForTokenOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11424,
+ "src": "34384:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256,uint256,uint256,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 11227,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "34384:99:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11180,
+ "id": 11228,
+ "nodeType": "Return",
+ "src": "34377:106:54"
+ }
+ ]
+ }
+ },
+ "id": 11237,
+ "nodeType": "IfStatement",
+ "src": "34114:446:54",
+ "trueBody": {
+ "id": 11215,
+ "nodeType": "Block",
+ "src": "34187:98:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11210,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11166,
+ "src": "34236:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11211,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11162,
+ "src": "34255:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11212,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11173,
+ "src": "34265:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 11209,
+ "name": "_exitExactBPTInForTokensOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11278,
+ "src": "34208:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256,uint256[] memory,bytes memory) pure returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 11213,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "34208:66:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11180,
+ "id": 11214,
+ "nodeType": "Return",
+ "src": "34201:73:54"
+ }
+ ]
+ }
+ },
+ "id": 11238,
+ "nodeType": "IfStatement",
+ "src": "33737:823:54",
+ "trueBody": {
+ "id": 11203,
+ "nodeType": "Block",
+ "src": "33806:302:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11195,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11166,
+ "src": "33892:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11196,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11168,
+ "src": "33931:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11197,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11164,
+ "src": "33973:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11198,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11162,
+ "src": "34005:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11199,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11171,
+ "src": "34035:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11200,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11173,
+ "src": "34071:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "id": 11194,
+ "name": "_exitBPTInForExactTokensOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11354,
+ "src": "33843:27:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_uint256_$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256,uint256,uint256,uint256[] memory,uint256[] memory,bytes memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 11201,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "33843:254:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11180,
+ "id": 11202,
+ "nodeType": "Return",
+ "src": "33820:277:54"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11159,
+ "nodeType": "StructuredDocumentation",
+ "src": "33234:143:54",
+ "text": " @dev Support single- and multi-token exits, plus explicit proportional exits (in addition to the\n recovery mode exit)."
+ },
+ "id": 11240,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_doExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11174,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11162,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33408:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11160,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33408:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11161,
+ "nodeType": "ArrayTypeName",
+ "src": "33408:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11164,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33443:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11163,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33443:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11166,
+ "mutability": "mutable",
+ "name": "preJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33471:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11165,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33471:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11168,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33506:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11167,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33506:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11171,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33544:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11169,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33544:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11170,
+ "nodeType": "ArrayTypeName",
+ "src": "33544:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11173,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33585:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 11172,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "33585:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33398:214:54"
+ },
+ "returnParameters": {
+ "id": 11180,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11176,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33636:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11175,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33636:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11179,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11240,
+ "src": "33645:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11177,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "33645:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11178,
+ "nodeType": "ArrayTypeName",
+ "src": "33645:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "33635:27:54"
+ },
+ "scope": 11807,
+ "src": "33382:1184:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 11277,
+ "nodeType": "Block",
+ "src": "35028:222:54",
+ "statements": [
+ {
+ "assignments": [
+ 11257
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11257,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11277,
+ "src": "35038:19:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11256,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35038:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11261,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 11258,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11248,
+ "src": "35060:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 11259,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "exactBptInForTokensOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 208,
+ "src": "35060:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_uint256_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256)"
+ }
+ },
+ "id": 11260,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "35060:33:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "35038:55:54"
+ },
+ {
+ "assignments": [
+ 11266
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11266,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11277,
+ "src": "35103:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11264,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35103:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11265,
+ "nodeType": "ArrayTypeName",
+ "src": "35103:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11272,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11268,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11246,
+ "src": "35164:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11269,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11243,
+ "src": "35174:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11270,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11257,
+ "src": "35188:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11267,
+ "name": "_computeProportionalAmountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4135,
+ "src": "35133:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,uint256) pure returns (uint256[] memory)"
+ }
+ },
+ "id": 11271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "35133:67:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "35103:97:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 11273,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11257,
+ "src": "35219:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11274,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11266,
+ "src": "35232:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11275,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "35218:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11255,
+ "id": 11276,
+ "nodeType": "Return",
+ "src": "35211:32:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11241,
+ "nodeType": "StructuredDocumentation",
+ "src": "34572:263:54",
+ "text": " @dev Proportional exit. Pays no swap fees. This is functionally equivalent to the recovery mode exit,\n except this doesn't skip protocol fee collection, calling rate providers, etc., and doesn't require\n recovery mode to be enabled."
+ },
+ "id": 11278,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_exitExactBPTInForTokensOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11249,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11243,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11278,
+ "src": "34886:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11242,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "34886:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11246,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11278,
+ "src": "34916:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11244,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "34916:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11245,
+ "nodeType": "ArrayTypeName",
+ "src": "34916:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11248,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11278,
+ "src": "34951:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 11247,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "34951:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "34876:102:54"
+ },
+ "returnParameters": {
+ "id": 11255,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11251,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11278,
+ "src": "35001:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11250,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35001:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11254,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11278,
+ "src": "35010:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11252,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35010:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11253,
+ "nodeType": "ArrayTypeName",
+ "src": "35010:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "35000:27:54"
+ },
+ "scope": 11807,
+ "src": "34840:410:54",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 11353,
+ "nodeType": "Block",
+ "src": "35643:692:54",
+ "statements": [
+ {
+ "assignments": [
+ 11305,
+ 11307
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11305,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11353,
+ "src": "35654:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11303,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35654:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11304,
+ "nodeType": "ArrayTypeName",
+ "src": "35654:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11307,
+ "mutability": "mutable",
+ "name": "maxBPTAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11353,
+ "src": "35683:22:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11306,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35683:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11311,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 11308,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11293,
+ "src": "35709:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 11309,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "bptInForExactTokensOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 235,
+ "src": "35709:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256[] memory,uint256)"
+ }
+ },
+ "id": 11310,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "35709:33:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(uint256[] memory,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "35653:89:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 11315,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11305,
+ "src": "35788:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11316,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "35788:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 11317,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11288,
+ "src": "35807:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11318,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "35807:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11312,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "35752:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 11314,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "35752:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 11319,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "35752:71:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11320,
+ "nodeType": "ExpressionStatement",
+ "src": "35752:71:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11322,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11305,
+ "src": "35920:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 11324,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11291,
+ "src": "35945:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11323,
+ "name": "_dropBptItem",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13721,
+ "src": "35932:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256[] memory)"
+ }
+ },
+ "id": 11325,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "35932:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11321,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "35906:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 11326,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "35906:55:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11327,
+ "nodeType": "ExpressionStatement",
+ "src": "35906:55:54"
+ },
+ {
+ "assignments": [
+ 11329
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11329,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11353,
+ "src": "35972:19:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11328,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35972:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11340,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11332,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11285,
+ "src": "36048:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11333,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11288,
+ "src": "36072:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11334,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11305,
+ "src": "36094:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11335,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11281,
+ "src": "36118:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11336,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11283,
+ "src": "36144:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11337,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "36178:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 11338,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "36178:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11330,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "35994:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11331,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcBptInGivenExactTokensOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14939,
+ "src": "35994:40:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256[] memory,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11339,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "35994:216:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "35972:238:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11344,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11342,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11329,
+ "src": "36229:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 11343,
+ "name": "maxBPTAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11307,
+ "src": "36244:14:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "36229:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 11345,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "36260:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 11346,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "BPT_IN_MAX_AMOUNT",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 599,
+ "src": "36260:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11341,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "36220:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 11347,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "36220:65:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11348,
+ "nodeType": "ExpressionStatement",
+ "src": "36220:65:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 11349,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11329,
+ "src": "36304:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11350,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11305,
+ "src": "36317:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11351,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "36303:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11300,
+ "id": 11352,
+ "nodeType": "Return",
+ "src": "36296:32:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11279,
+ "nodeType": "StructuredDocumentation",
+ "src": "35256:87:54",
+ "text": " @dev Multi-token exit. Proportional exits will pay no protocol fees."
+ },
+ "id": 11354,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_exitBPTInForExactTokensOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11294,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11281,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35394:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11280,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35394:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11283,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35424:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11282,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35424:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11285,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35462:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11284,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35462:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11288,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35490:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11286,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35490:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11287,
+ "nodeType": "ArrayTypeName",
+ "src": "35490:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11291,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35525:31:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11289,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35525:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11290,
+ "nodeType": "ArrayTypeName",
+ "src": "35525:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11293,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35566:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 11292,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "35566:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "35384:209:54"
+ },
+ "returnParameters": {
+ "id": 11300,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11296,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35616:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11295,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35616:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11299,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11354,
+ "src": "35625:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11297,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "35625:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11298,
+ "nodeType": "ArrayTypeName",
+ "src": "35625:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "35615:27:54"
+ },
+ "scope": 11807,
+ "src": "35348:987:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 11423,
+ "nodeType": "Block",
+ "src": "36686:890:54",
+ "statements": [
+ {
+ "assignments": [
+ 11375,
+ 11377
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11375,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11423,
+ "src": "36798:19:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11374,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36798:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11377,
+ "mutability": "mutable",
+ "name": "tokenIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 11423,
+ "src": "36819:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11376,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36819:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11381,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 11378,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11366,
+ "src": "36841:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ "id": 11379,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "exactBptInForTokenOut",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 188,
+ "src": "36841:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_uint256_$bound_to$_t_bytes_memory_ptr_$",
+ "typeString": "function (bytes memory) pure returns (uint256,uint256)"
+ }
+ },
+ "id": 11380,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "36841:32:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "36797:76:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11386,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11383,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11377,
+ "src": "36993:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "expression": {
+ "id": 11384,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11364,
+ "src": "37006:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11385,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "37006:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "36993:28:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 11387,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "37023:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 11388,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "OUT_OF_BOUNDS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 563,
+ "src": "37023:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11382,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "36984:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 11389,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "36984:60:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11390,
+ "nodeType": "ExpressionStatement",
+ "src": "36984:60:54"
+ },
+ {
+ "assignments": [
+ 11395
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11395,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11423,
+ "src": "37129:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11393,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37129:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11394,
+ "nodeType": "ArrayTypeName",
+ "src": "37129:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11402,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 11399,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11364,
+ "src": "37173:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11400,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "37173:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11398,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "37159:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11396,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37163:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11397,
+ "nodeType": "ArrayTypeName",
+ "src": "37163:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 11401,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "37159:30:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "37129:60:54"
+ },
+ {
+ "expression": {
+ "id": 11417,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 11403,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11395,
+ "src": "37261:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11405,
+ "indexExpression": {
+ "id": 11404,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11377,
+ "src": "37272:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "37261:22:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 11408,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11361,
+ "src": "37339:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11409,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11364,
+ "src": "37363:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11410,
+ "name": "tokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11377,
+ "src": "37385:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11411,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11375,
+ "src": "37409:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11412,
+ "name": "actualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11357,
+ "src": "37434:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11413,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11359,
+ "src": "37460:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11414,
+ "name": "getSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2682,
+ "src": "37494:20:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 11415,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "37494:22:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11406,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "37286:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11407,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calcTokenOutGivenExactBptIn",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 15057,
+ "src": "37286:39:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory,uint256,uint256,uint256,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11416,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "37286:240:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "37261:265:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11418,
+ "nodeType": "ExpressionStatement",
+ "src": "37261:265:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 11419,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11375,
+ "src": "37545:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11420,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11395,
+ "src": "37558:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11421,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "37544:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11373,
+ "id": 11422,
+ "nodeType": "Return",
+ "src": "37537:32:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11355,
+ "nodeType": "StructuredDocumentation",
+ "src": "36341:87:54",
+ "text": " @dev Single-token exit, equivalent to swapping BPT for a pool token."
+ },
+ "id": 11424,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_exitExactBPTInForTokenOut",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11367,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11357,
+ "mutability": "mutable",
+ "name": "actualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11424,
+ "src": "36478:20:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11356,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36478:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11359,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11424,
+ "src": "36508:28:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11358,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36508:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11361,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11424,
+ "src": "36546:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11360,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36546:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11364,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11424,
+ "src": "36574:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11362,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36574:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11363,
+ "nodeType": "ArrayTypeName",
+ "src": "36574:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11366,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11424,
+ "src": "36609:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 11365,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "36609:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "36468:168:54"
+ },
+ "returnParameters": {
+ "id": 11373,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11369,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11424,
+ "src": "36659:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11368,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36659:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11372,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11424,
+ "src": "36668:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11370,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "36668:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11371,
+ "nodeType": "ArrayTypeName",
+ "src": "36668:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "36658:27:54"
+ },
+ "scope": 11807,
+ "src": "36433:1143:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "baseFunctions": [
+ 4081
+ ],
+ "body": {
+ "id": 11469,
+ "nodeType": "Block",
+ "src": "37904:938:54",
+ "statements": [
+ {
+ "assignments": [
+ 11442,
+ 11445
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11442,
+ "mutability": "mutable",
+ "name": "virtualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11469,
+ "src": "38432:21:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11441,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "38432:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11445,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11469,
+ "src": "38455:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11443,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "38455:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11444,
+ "nodeType": "ArrayTypeName",
+ "src": "38455:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11449,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11447,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11428,
+ "src": "38509:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11446,
+ "name": "_dropBptItemFromBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13745,
+ "src": "38484:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 11448,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "38484:44:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "38431:97:54"
+ },
+ {
+ "assignments": [
+ 11451,
+ 11454
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11451,
+ "mutability": "mutable",
+ "name": "bptAmountIn",
+ "nodeType": "VariableDeclaration",
+ "scope": 11469,
+ "src": "38540:19:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11450,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "38540:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11454,
+ "mutability": "mutable",
+ "name": "amountsOut",
+ "nodeType": "VariableDeclaration",
+ "scope": 11469,
+ "src": "38561:27:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11452,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "38561:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11453,
+ "nodeType": "ArrayTypeName",
+ "src": "38561:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11461,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11457,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11445,
+ "src": "38631:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11458,
+ "name": "virtualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11442,
+ "src": "38653:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11459,
+ "name": "userData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11432,
+ "src": "38680:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ ],
+ "expression": {
+ "id": 11455,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "38592:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_ComposableStablePool_$11807",
+ "typeString": "contract super ComposableStablePool"
+ }
+ },
+ "id": 11456,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_doRecoveryModeExit",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4081,
+ "src": "38592:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256,bytes memory) returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 11460,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "38592:106:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "38539:159:54"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 11462,
+ "name": "bptAmountIn",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11451,
+ "src": "38795:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 11464,
+ "name": "amountsOut",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11454,
+ "src": "38820:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "hexValue": "30",
+ "id": 11465,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "38832:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 11463,
+ "name": "_addBptItem",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13838,
+ "src": "38808:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory,uint256) view returns (uint256[] memory)"
+ }
+ },
+ "id": 11466,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "38808:26:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11467,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "38794:41:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "functionReturnParameters": 11440,
+ "id": 11468,
+ "nodeType": "Return",
+ "src": "38787:48:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11425,
+ "nodeType": "StructuredDocumentation",
+ "src": "37582:127:54",
+ "text": " @dev We cannot use the default RecoveryMode implementation here, since we need to account for the BPT token."
+ },
+ "id": 11470,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_doRecoveryModeExit",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 11434,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "37859:8:54"
+ },
+ "parameters": {
+ "id": 11433,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11428,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11470,
+ "src": "37752:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11426,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37752:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11427,
+ "nodeType": "ArrayTypeName",
+ "src": "37752:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11430,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11470,
+ "src": "37797:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11429,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37797:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11432,
+ "mutability": "mutable",
+ "name": "userData",
+ "nodeType": "VariableDeclaration",
+ "scope": 11470,
+ "src": "37814:21:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes"
+ },
+ "typeName": {
+ "id": 11431,
+ "name": "bytes",
+ "nodeType": "ElementaryTypeName",
+ "src": "37814:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_storage_ptr",
+ "typeString": "bytes"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "37742:99:54"
+ },
+ "returnParameters": {
+ "id": 11440,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11436,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11470,
+ "src": "37877:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11435,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37877:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11439,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11470,
+ "src": "37886:16:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11437,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "37886:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11438,
+ "nodeType": "ArrayTypeName",
+ "src": "37886:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "37876:27:54"
+ },
+ "scope": 11807,
+ "src": "37714:1128:54",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 11542,
+ "nodeType": "Block",
+ "src": "40104:1466:54",
+ "statements": [
+ {
+ "assignments": [
+ null,
+ 11489,
+ null
+ ],
+ "declarations": [
+ null,
+ {
+ "constant": false,
+ "id": 11489,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11542,
+ "src": "40294:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11487,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "40294:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11488,
+ "nodeType": "ArrayTypeName",
+ "src": "40294:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 11496,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11493,
+ "name": "getPoolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2649,
+ "src": "40360:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
+ "typeString": "function () view returns (bytes32)"
+ }
+ },
+ "id": 11494,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "40360:11:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11490,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2059,
+ "src": "40335:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 11491,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "40335:10:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 11492,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getPoolTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1777,
+ "src": "40335:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "function (bytes32) view external returns (contract IERC20[] memory,uint256[] memory,uint256)"
+ }
+ },
+ "id": 11495,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "40335:37:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(contract IERC20[] memory,uint256[] memory,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "40291:81:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11498,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11489,
+ "src": "40396:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11499,
+ "name": "_scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 13078
+ ],
+ "referencedDeclaration": 13078,
+ "src": "40416:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function () view returns (uint256[] memory)"
+ }
+ },
+ "id": 11500,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "40416:17:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11497,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "40382:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 11501,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "40382:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11502,
+ "nodeType": "ExpressionStatement",
+ "src": "40382:52:54"
+ },
+ {
+ "expression": {
+ "id": 11509,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ {
+ "id": 11503,
+ "name": "virtualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11477,
+ "src": "40445:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11504,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11475,
+ "src": "40460:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "id": 11505,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "40444:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 11507,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11489,
+ "src": "40497:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11506,
+ "name": "_dropBptItemFromBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13745,
+ "src": "40472:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 11508,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "40472:44:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "src": "40444:72:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11510,
+ "nodeType": "ExpressionStatement",
+ "src": "40444:72:54"
+ },
+ {
+ "assignments": [
+ 11512
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11512,
+ "mutability": "mutable",
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11542,
+ "src": "40837:33:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11511,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "40837:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11513,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "40837:33:54"
+ },
+ {
+ "expression": {
+ "id": 11519,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ {
+ "id": 11514,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11481,
+ "src": "40881:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11515,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11512,
+ "src": "40898:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 11516,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "40880:44:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11517,
+ "name": "getLastJoinExitData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12339,
+ "src": "40927:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function () view returns (uint256,uint256)"
+ }
+ },
+ "id": 11518,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "40927:21:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "src": "40880:68:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11520,
+ "nodeType": "ExpressionStatement",
+ "src": "40880:68:54"
+ },
+ {
+ "assignments": [
+ 11522
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11522,
+ "mutability": "mutable",
+ "name": "expectedProtocolOwnershipPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 11542,
+ "src": "41151:43:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11521,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "41151:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11523,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "41151:43:54"
+ },
+ {
+ "expression": {
+ "id": 11532,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ {
+ "id": 11524,
+ "name": "expectedProtocolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11522,
+ "src": "41218:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11525,
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11483,
+ "src": "41267:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 11526,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "41204:108:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 11528,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11475,
+ "src": "41351:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11529,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11481,
+ "src": "41361:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11530,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11512,
+ "src": "41378:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11527,
+ "name": "_getProtocolPoolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12121,
+ "src": "41315:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256[] memory,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 11531,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "41315:89:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "src": "41204:200:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11533,
+ "nodeType": "ExpressionStatement",
+ "src": "41204:200:54"
+ },
+ {
+ "expression": {
+ "id": 11540,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 11534,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11479,
+ "src": "41415:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 11537,
+ "name": "virtualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11477,
+ "src": "41491:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11538,
+ "name": "expectedProtocolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11522,
+ "src": "41518:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11535,
+ "name": "ProtocolFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4725,
+ "src": "41435:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFees_$4725_$",
+ "typeString": "type(library ProtocolFees)"
+ }
+ },
+ "id": 11536,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "bptForPoolOwnershipPercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4724,
+ "src": "41435:42:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11539,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "41435:128:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "41415:148:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11541,
+ "nodeType": "ExpressionStatement",
+ "src": "41415:148:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11471,
+ "nodeType": "StructuredDocumentation",
+ "src": "38865:934:54",
+ "text": " Many functions require accessing multiple internal values that might at first seem unrelated, but are actually\n quite intertwined, and computed at the same time for optimal performance (since calculating some of them also\n yields intermediate results useful for other queries). This helper function returns many of these values,\n greatly reducing bytecode size.\n The return values are:\n @return balances - The current upscaled token balances (not including BPT)\n @return virtualSupply - The Pool's virtual supply\n @return protocolFeeAmount - The amount of unpaid protocol fees in BPT\n @return lastJoinExitAmp - The Pool's amplification factor at the last join or exit operation\n @return currentInvariantWithLastJoinExitAmp - The invariant of the current balances, calculated using the\n amplification factor at the last join or exit operation."
+ },
+ "id": 11543,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getSupplyAndFeesData",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11472,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "39834:2:54"
+ },
+ "returnParameters": {
+ "id": 11484,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11475,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11543,
+ "src": "39896:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11473,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "39896:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11474,
+ "nodeType": "ArrayTypeName",
+ "src": "39896:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11477,
+ "mutability": "mutable",
+ "name": "virtualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11543,
+ "src": "39935:21:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11476,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "39935:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11479,
+ "mutability": "mutable",
+ "name": "protocolFeeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 11543,
+ "src": "39970:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11478,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "39970:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11481,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11543,
+ "src": "40009:23:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11480,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "40009:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11483,
+ "mutability": "mutable",
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11543,
+ "src": "40046:43:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11482,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "40046:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "39882:217:54"
+ },
+ "scope": 11807,
+ "src": "39804:1766:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "baseFunctions": [
+ 427
+ ],
+ "body": {
+ "id": 11597,
+ "nodeType": "Block",
+ "src": "43368:1865:54",
+ "statements": [
+ {
+ "assignments": [
+ 11554,
+ 11556,
+ 11558,
+ 11560,
+ 11562
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11554,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "43664:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11552,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "43664:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11553,
+ "nodeType": "ArrayTypeName",
+ "src": "43664:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11556,
+ "mutability": "mutable",
+ "name": "virtualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "43703:21:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11555,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "43703:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11558,
+ "mutability": "mutable",
+ "name": "protocolFeeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "43738:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11557,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "43738:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11560,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "43777:23:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11559,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "43777:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11562,
+ "mutability": "mutable",
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "43814:43:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11561,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "43814:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11565,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11563,
+ "name": "_getSupplyAndFeesData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11543,
+ "src": "43870:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "function () view returns (uint256[] memory,uint256,uint256,uint256,uint256)"
+ }
+ },
+ "id": 11564,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "43870:23:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256[] memory,uint256,uint256,uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "43650:243:54"
+ },
+ {
+ "assignments": [
+ 11567
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11567,
+ "mutability": "mutable",
+ "name": "actualTotalSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "44067:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11566,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "44067:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11572,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11570,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11558,
+ "src": "44113:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11568,
+ "name": "virtualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11556,
+ "src": "44095:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11569,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6785,
+ "src": "44095:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11571,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "44095:36:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "44067:64:54"
+ },
+ {
+ "assignments": [
+ 11574,
+ null
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11574,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "44310:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11573,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "44310:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 11577,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11575,
+ "name": "_getAmplificationParameter",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15530,
+ "src": "44334:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_bool_$",
+ "typeString": "function () view returns (uint256,bool)"
+ }
+ },
+ "id": 11576,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "44334:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_bool_$",
+ "typeString": "tuple(uint256,bool)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "44309:53:54"
+ },
+ {
+ "assignments": [
+ 11579
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11579,
+ "mutability": "mutable",
+ "name": "currentInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11597,
+ "src": "44878:24:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11578,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "44878:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11591,
+ "initialValue": {
+ "condition": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11582,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11580,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11574,
+ "src": "44906:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 11581,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11560,
+ "src": "44920:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "44906:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 11583,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "44905:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 11587,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11574,
+ "src": "45032:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11588,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11554,
+ "src": "45044:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 11585,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "45001:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11586,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "45001:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 11589,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "45001:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11590,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "44905:148:54",
+ "trueExpression": {
+ "id": 11584,
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11562,
+ "src": "44951:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "44878:175:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11594,
+ "name": "actualTotalSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11567,
+ "src": "45208:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11592,
+ "name": "currentInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11579,
+ "src": "45183:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11593,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "45183:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11595,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "45183:43:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 11549,
+ "id": 11596,
+ "nodeType": "Return",
+ "src": "45176:50:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11544,
+ "nodeType": "StructuredDocumentation",
+ "src": "41576:1719:54",
+ "text": " @dev This function returns the appreciation of BPT relative to the underlying tokens, as an 18 decimal fixed\n point number. It is simply the ratio of the invariant to the BPT supply.\n The total supply is initialized to equal the invariant, so this value starts at one. During Pool operation the\n invariant always grows and shrinks either proportionally to the total supply (in scenarios with no price impact,\n e.g. proportional joins), or grows faster and shrinks more slowly than it (whenever swap fees are collected or\n the token rates increase). Therefore, the rate is a monotonically increasing function.\n WARNING: since this function reads balances directly from the Vault, it is potentially subject to manipulation\n via reentrancy if called within a Vault context (i.e. in the middle of a join or an exit). It is up to the\n caller to ensure that the function is safe to call.\n This may happen e.g. if one of the tokens in the Pool contains some form of callback behavior in the\n `transferFrom` function (like ERC777 tokens do). These tokens are strictly incompatible with the\n Vault and Pool design, and are not safe to be used.\n There are also other situations where calling this function is unsafe. See\n https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n To call this function safely, attempt to trigger the reentrancy guard in the Vault by calling a non-reentrant\n function before calling `getRate`. That will make the transaction revert in an unsafe context.\n (See `whenNotInVaultContext` in `ComposableStablePoolRates`)."
+ },
+ "functionSelector": "679aefce",
+ "id": 11598,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getRate",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 11546,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "43341:8:54"
+ },
+ "parameters": {
+ "id": 11545,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "43316:2:54"
+ },
+ "returnParameters": {
+ "id": 11549,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11548,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11598,
+ "src": "43359:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11547,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "43359:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "43358:9:54"
+ },
+ "scope": 11807,
+ "src": "43300:1933:54",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 11616,
+ "nodeType": "Block",
+ "src": "46952:152:54",
+ "statements": [
+ {
+ "assignments": [
+ null,
+ 11605,
+ 11607,
+ null,
+ null
+ ],
+ "declarations": [
+ null,
+ {
+ "constant": false,
+ "id": 11605,
+ "mutability": "mutable",
+ "name": "virtualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 11616,
+ "src": "46965:21:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11604,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "46965:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11607,
+ "mutability": "mutable",
+ "name": "protocolFeeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 11616,
+ "src": "46988:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11606,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "46988:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ null,
+ null
+ ],
+ "id": 11610,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11608,
+ "name": "_getSupplyAndFeesData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11543,
+ "src": "47021:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "function () view returns (uint256[] memory,uint256,uint256,uint256,uint256)"
+ }
+ },
+ "id": 11609,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "47021:23:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256[] memory,uint256,uint256,uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "46962:82:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11613,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11607,
+ "src": "47079:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11611,
+ "name": "virtualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11605,
+ "src": "47061:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11612,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "add",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6785,
+ "src": "47061:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11614,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "47061:36:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 11603,
+ "id": 11615,
+ "nodeType": "Return",
+ "src": "47054:43:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11599,
+ "nodeType": "StructuredDocumentation",
+ "src": "45239:1649:54",
+ "text": " @dev Returns the effective BPT supply.\n In other pools, this would be the same as `totalSupply`, but there are two key differences here:\n - this pool pre-mints BPT and holds it in the Vault as a token, and as such we need to subtract the Vault's\n balance to get the total \"circulating supply\". This is called the 'virtualSupply'.\n - the Pool owes debt to the Protocol in the form of unminted BPT, which will be minted immediately before the\n next join or exit. We need to take these into account since, even if they don't yet exist, they will\n effectively be included in any Pool operation that involves BPT.\n In the vast majority of cases, this function should be used instead of `totalSupply()`.\n **IMPORTANT NOTE**: calling this function within a Vault context (i.e. in the middle of a join or an exit) is\n potentially unsafe, since the returned value is manipulable. It is up to the caller to ensure safety.\n This is because this function calculates the invariant, which requires the state of the pool to be in sync\n with the state of the Vault. That condition may not be true in the middle of a join or an exit.\n To call this function safely, attempt to trigger the reentrancy guard in the Vault by calling a non-reentrant\n function before calling `getActualSupply`. That will make the transaction revert in an unsafe context.\n (See `whenNotInVaultContext` in `ComposableStablePoolRates`).\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference."
+ },
+ "functionSelector": "876f303b",
+ "id": 11617,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getActualSupply",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11600,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "46917:2:54"
+ },
+ "returnParameters": {
+ "id": 11603,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11602,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11617,
+ "src": "46943:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11601,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "46943:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "46942:9:54"
+ },
+ "scope": 11807,
+ "src": "46893:211:54",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 4616
+ ],
+ "body": {
+ "id": 11674,
+ "nodeType": "Block",
+ "src": "47812:2308:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11624,
+ "name": "_ensureNotPaused",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6162,
+ "src": "48524:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$__$",
+ "typeString": "function () view"
+ }
+ },
+ "id": 11625,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "48524:18:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11626,
+ "nodeType": "ExpressionStatement",
+ "src": "48524:18:54"
+ },
+ {
+ "assignments": [
+ 11631,
+ null,
+ 11633,
+ 11635,
+ 11637
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11631,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11674,
+ "src": "48798:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11629,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "48798:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11630,
+ "nodeType": "ArrayTypeName",
+ "src": "48798:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ null,
+ {
+ "constant": false,
+ "id": 11633,
+ "mutability": "mutable",
+ "name": "protocolFeeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 11674,
+ "src": "48851:25:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11632,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "48851:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11635,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11674,
+ "src": "48890:23:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11634,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "48890:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11637,
+ "mutability": "mutable",
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11674,
+ "src": "48927:43:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11636,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "48927:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11640,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11638,
+ "name": "_getSupplyAndFeesData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11543,
+ "src": "48983:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "function () view returns (uint256[] memory,uint256,uint256,uint256,uint256)"
+ }
+ },
+ "id": 11639,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "48983:23:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256[] memory,uint256,uint256,uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "48784:222:54"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11643,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11641,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11633,
+ "src": "49021:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 11642,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "49041:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "49021:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 11649,
+ "nodeType": "IfStatement",
+ "src": "49017:87:54",
+ "trueBody": {
+ "id": 11648,
+ "nodeType": "Block",
+ "src": "49044:60:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11645,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11633,
+ "src": "49075:17:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11644,
+ "name": "_payProtocolFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3416,
+ "src": "49058:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 11646,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "49058:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11647,
+ "nodeType": "ExpressionStatement",
+ "src": "49058:35:54"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 11651,
+ null
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11651,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11674,
+ "src": "49310:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11650,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "49310:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 11654,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11652,
+ "name": "_getAmplificationParameter",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15530,
+ "src": "49334:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_bool_$",
+ "typeString": "function () view returns (uint256,bool)"
+ }
+ },
+ "id": 11653,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "49334:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_bool_$",
+ "typeString": "tuple(uint256,bool)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "49309:53:54"
+ },
+ {
+ "assignments": [
+ 11656
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11656,
+ "mutability": "mutable",
+ "name": "currentInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11674,
+ "src": "49878:24:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11655,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "49878:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11668,
+ "initialValue": {
+ "condition": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11659,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11657,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11651,
+ "src": "49906:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 11658,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11635,
+ "src": "49920:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "49906:29:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 11660,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "49905:31:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "id": 11664,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11651,
+ "src": "50032:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11665,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11631,
+ "src": "50044:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 11662,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "50001:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11663,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "50001:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 11666,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "50001:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11667,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "49905:148:54",
+ "trueExpression": {
+ "id": 11661,
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11637,
+ "src": "49951:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "49878:175:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11670,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11651,
+ "src": "50084:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11671,
+ "name": "currentInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11656,
+ "src": "50096:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11669,
+ "name": "_updatePostJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12310,
+ "src": "50064:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256)"
+ }
+ },
+ "id": 11672,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "50064:49:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11673,
+ "nodeType": "ExpressionStatement",
+ "src": "50064:49:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11618,
+ "nodeType": "StructuredDocumentation",
+ "src": "47110:616:54",
+ "text": " @dev This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n an exit, because the state of the pool could be out of sync with the state of the Vault. The modifier\n `whenNotInVaultContext` prevents calling this function (and in turn, the external\n `updateProtocolFeePercentageCache`) in such a context.\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference."
+ },
+ "id": 11675,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 11622,
+ "modifierName": {
+ "id": 11621,
+ "name": "whenNotInVaultContext",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12539,
+ "src": "47790:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "47790:21:54"
+ }
+ ],
+ "name": "_beforeProtocolFeeCacheUpdate",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 11620,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "47781:8:54"
+ },
+ "parameters": {
+ "id": 11619,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "47769:2:54"
+ },
+ "returnParameters": {
+ "id": 11623,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "47812:0:54"
+ },
+ "scope": 11807,
+ "src": "47731:2389:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 2804
+ ],
+ "body": {
+ "id": 11727,
+ "nodeType": "Block",
+ "src": "50815:998:54",
+ "statements": [
+ {
+ "assignments": [
+ null,
+ 11686,
+ null
+ ],
+ "declarations": [
+ null,
+ {
+ "constant": false,
+ "id": 11686,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11727,
+ "src": "51383:35:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11684,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "51383:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11685,
+ "nodeType": "ArrayTypeName",
+ "src": "51383:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 11693,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11690,
+ "name": "getPoolId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2649,
+ "src": "51449:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bytes32_$",
+ "typeString": "function () view returns (bytes32)"
+ }
+ },
+ "id": 11691,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51449:11:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11687,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2059,
+ "src": "51424:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 11688,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51424:10:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 11689,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getPoolTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1777,
+ "src": "51424:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "function (bytes32) view external returns (contract IERC20[] memory,uint256[] memory,uint256)"
+ }
+ },
+ "id": 11692,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51424:37:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(contract IERC20[] memory,uint256[] memory,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "51380:81:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11695,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11686,
+ "src": "51485:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11696,
+ "name": "_scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 13078
+ ],
+ "referencedDeclaration": 13078,
+ "src": "51505:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function () view returns (uint256[] memory)"
+ }
+ },
+ "id": 11697,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51505:17:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11694,
+ "name": "_upscaleArray",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3597,
+ "src": "51471:13:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_uint256_$dyn_memory_ptr_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (uint256[] memory,uint256[] memory) pure"
+ }
+ },
+ "id": 11698,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51471:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11699,
+ "nodeType": "ExpressionStatement",
+ "src": "51471:52:54"
+ },
+ {
+ "assignments": [
+ 11704
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11704,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 11727,
+ "src": "51533:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11702,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "51533:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11703,
+ "nodeType": "ArrayTypeName",
+ "src": "51533:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11708,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11706,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11686,
+ "src": "51574:18:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 11705,
+ "name": "_dropBptItem",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13721,
+ "src": "51561:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256[] memory)"
+ }
+ },
+ "id": 11707,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51561:32:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "51533:60:54"
+ },
+ {
+ "assignments": [
+ 11710,
+ null
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11710,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 11727,
+ "src": "51605:18:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11709,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "51605:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ null
+ ],
+ "id": 11713,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11711,
+ "name": "_getAmplificationParameter",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15530,
+ "src": "51629:26:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_bool_$",
+ "typeString": "function () view returns (uint256,bool)"
+ }
+ },
+ "id": 11712,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51629:28:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_bool_$",
+ "typeString": "tuple(uint256,bool)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "51604:53:54"
+ },
+ {
+ "assignments": [
+ 11715
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11715,
+ "mutability": "mutable",
+ "name": "currentInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 11727,
+ "src": "51667:24:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11714,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "51667:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11721,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 11718,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11710,
+ "src": "51725:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11719,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11704,
+ "src": "51737:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 11716,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "51694:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 11717,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "51694:30:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 11720,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51694:52:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "51667:79:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11723,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11710,
+ "src": "51777:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11724,
+ "name": "currentInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11715,
+ "src": "51789:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11722,
+ "name": "_updatePostJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12310,
+ "src": "51757:19:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256)"
+ }
+ },
+ "id": 11725,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "51757:49:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11726,
+ "nodeType": "ExpressionStatement",
+ "src": "51757:49:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11676,
+ "nodeType": "StructuredDocumentation",
+ "src": "50126:610:54",
+ "text": " @dev This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n This function depends on the invariant value, which may be calculated incorrectly in the middle of a join or\n an exit, because the state of the pool could be out of sync with the state of the Vault.\n The modifier `whenNotInVaultContext` prevents calling this function (and in turn, the external\n `disableRecoveryMode`) in such a context.\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference."
+ },
+ "id": 11728,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 11680,
+ "modifierName": {
+ "id": 11679,
+ "name": "whenNotInVaultContext",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12539,
+ "src": "50793:21:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "50793:21:54"
+ }
+ ],
+ "name": "_onDisableRecoveryMode",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 11678,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "50784:8:54"
+ },
+ "parameters": {
+ "id": 11677,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "50772:2:54"
+ },
+ "returnParameters": {
+ "id": 11681,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "50815:0:54"
+ },
+ "scope": 11807,
+ "src": "50741:1072:54",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 11786,
+ "nodeType": "Block",
+ "src": "52181:241:54",
+ "statements": [
+ {
+ "assignments": [
+ 11749
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11749,
+ "mutability": "mutable",
+ "name": "length",
+ "nodeType": "VariableDeclaration",
+ "scope": 11786,
+ "src": "52191:14:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11748,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "52191:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11752,
+ "initialValue": {
+ "expression": {
+ "id": 11750,
+ "name": "toMutate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11732,
+ "src": "52208:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11751,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "52208:15:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "52191:32:54"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11756,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11749,
+ "src": "52269:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "id": 11757,
+ "name": "arguments",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11735,
+ "src": "52277:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11758,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "52277:16:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 11753,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "52233:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 11755,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "52233:35:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 11759,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "52233:61:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 11760,
+ "nodeType": "ExpressionStatement",
+ "src": "52233:61:54"
+ },
+ {
+ "body": {
+ "id": 11784,
+ "nodeType": "Block",
+ "src": "52342:74:54",
+ "statements": [
+ {
+ "expression": {
+ "id": 11782,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 11771,
+ "name": "toMutate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11732,
+ "src": "52356:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11773,
+ "indexExpression": {
+ "id": 11772,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11762,
+ "src": "52365:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "52356:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "id": 11775,
+ "name": "toMutate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11732,
+ "src": "52379:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11777,
+ "indexExpression": {
+ "id": 11776,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11762,
+ "src": "52388:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "52379:11:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 11778,
+ "name": "arguments",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11735,
+ "src": "52392:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 11780,
+ "indexExpression": {
+ "id": 11779,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11762,
+ "src": "52402:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "52392:12:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 11774,
+ "name": "mutation",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11745,
+ "src": "52370:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 11781,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "52370:35:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "52356:49:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11783,
+ "nodeType": "ExpressionStatement",
+ "src": "52356:49:54"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11767,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11765,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11762,
+ "src": "52325:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 11766,
+ "name": "length",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11749,
+ "src": "52329:6:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "52325:10:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 11785,
+ "initializationExpression": {
+ "assignments": [
+ 11762
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11762,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 11785,
+ "src": "52310:9:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11761,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "52310:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11764,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 11763,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "52322:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "52310:13:54"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 11769,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "52337:3:54",
+ "subExpression": {
+ "id": 11768,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11762,
+ "src": "52339:1:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11770,
+ "nodeType": "ExpressionStatement",
+ "src": "52337:3:54"
+ },
+ "nodeType": "ForStatement",
+ "src": "52305:111:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11729,
+ "nodeType": "StructuredDocumentation",
+ "src": "51835:159:54",
+ "text": " @dev Mutates `amounts` by applying `mutation` with each entry in `arguments`.\n Equivalent to `amounts = amounts.map(mutation)`."
+ },
+ "id": 11787,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_mutateAmounts",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11746,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11732,
+ "mutability": "mutable",
+ "name": "toMutate",
+ "nodeType": "VariableDeclaration",
+ "scope": 11787,
+ "src": "52032:25:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11730,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "52032:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11731,
+ "nodeType": "ArrayTypeName",
+ "src": "52032:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11735,
+ "mutability": "mutable",
+ "name": "arguments",
+ "nodeType": "VariableDeclaration",
+ "scope": 11787,
+ "src": "52067:26:54",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11733,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "52067:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11734,
+ "nodeType": "ArrayTypeName",
+ "src": "52067:9:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11745,
+ "mutability": "mutable",
+ "name": "mutation",
+ "nodeType": "VariableDeclaration",
+ "scope": 11787,
+ "src": "52103:58:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ },
+ "typeName": {
+ "id": 11744,
+ "nodeType": "FunctionTypeName",
+ "parameterTypes": {
+ "id": 11740,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11737,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11744,
+ "src": "52112:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11736,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "52112:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11739,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11744,
+ "src": "52121:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11738,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "52121:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "52111:18:54"
+ },
+ "returnParameterTypes": {
+ "id": 11743,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11742,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11744,
+ "src": "52144:7:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11741,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "52144:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "52143:9:54"
+ },
+ "src": "52103:58:54",
+ "stateMutability": "pure",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ },
+ "visibility": "internal"
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "52022:145:54"
+ },
+ "returnParameters": {
+ "id": 11747,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "52181:0:54"
+ },
+ "scope": 11807,
+ "src": "51999:423:54",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "baseFunctions": [
+ 2907,
+ 12357,
+ 13102,
+ 15836
+ ],
+ "body": {
+ "id": 11805,
+ "nodeType": "Block",
+ "src": "53124:58:54",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11802,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11790,
+ "src": "53166:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "id": 11800,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "53141:5:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_ComposableStablePool_$11807",
+ "typeString": "contract super ComposableStablePool"
+ }
+ },
+ "id": 11801,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_isOwnerOnlyAction",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12357,
+ "src": "53141:24:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
+ "typeString": "function (bytes32) view returns (bool)"
+ }
+ },
+ "id": 11803,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "53141:34:54",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 11799,
+ "id": 11804,
+ "nodeType": "Return",
+ "src": "53134:41:54"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11788,
+ "nodeType": "StructuredDocumentation",
+ "src": "52459:145:54",
+ "text": " @dev Inheritance rules still require us to override this in the most derived contract, even though\n it only calls super."
+ },
+ "id": 11806,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_isOwnerOnlyAction",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 11796,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [
+ {
+ "id": 11792,
+ "name": "BasePool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 3860,
+ "src": "52956:8:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ },
+ {
+ "id": 11793,
+ "name": "ComposableStablePoolProtocolFees",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 12358,
+ "src": "52978:32:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolProtocolFees_$12358",
+ "typeString": "contract ComposableStablePoolProtocolFees"
+ }
+ },
+ {
+ "id": 11794,
+ "name": "StablePoolAmplification",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 15837,
+ "src": "53024:23:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_StablePoolAmplification_$15837",
+ "typeString": "contract StablePoolAmplification"
+ }
+ },
+ {
+ "id": 11795,
+ "name": "ComposableStablePoolRates",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 13103,
+ "src": "53061:25:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ }
+ ],
+ "src": "52709:387:54"
+ },
+ "parameters": {
+ "id": 11791,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11790,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 11806,
+ "src": "52637:16:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 11789,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "52637:7:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "52636:18:54"
+ },
+ "returnParameters": {
+ "id": 11799,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11798,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11806,
+ "src": "53114:4:54",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 11797,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "53114:4:54",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "53113:6:54"
+ },
+ "scope": 11807,
+ "src": "52609:573:54",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 11808,
+ "src": "2683:50501:54"
+ }
+ ],
+ "src": "688:52497:54"
+ },
+ "id": 54
+ },
+ "contracts/ComposableStablePoolFactory.sol": {
+ "ast": {
+ "absolutePath": "contracts/ComposableStablePoolFactory.sol",
+ "exportedSymbols": {
+ "ComposableStablePoolFactory": [
+ 11941
+ ]
+ },
+ "id": 11942,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 11809,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:55"
+ },
+ {
+ "id": 11810,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:55"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IPoolVersion.sol",
+ "id": 11811,
+ "nodeType": "ImportDirective",
+ "scope": 11942,
+ "sourceUnit": 420,
+ "src": "747:76:55",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IVersion.sol",
+ "id": 11812,
+ "nodeType": "ImportDirective",
+ "scope": 11942,
+ "sourceUnit": 462,
+ "src": "824:72:55",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/vault/IVault.sol",
+ "id": 11813,
+ "nodeType": "ImportDirective",
+ "scope": 11942,
+ "sourceUnit": 2022,
+ "src": "897:65:55",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/factories/BasePoolFactory.sol",
+ "id": 11814,
+ "nodeType": "ImportDirective",
+ "scope": 11942,
+ "sourceUnit": 4280,
+ "src": "964:78:55",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/factories/FactoryWidePauseWindow.sol",
+ "id": 11815,
+ "nodeType": "ImportDirective",
+ "scope": 11942,
+ "sourceUnit": 4342,
+ "src": "1043:85:55",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePool.sol",
+ "file": "./ComposableStablePool.sol",
+ "id": 11816,
+ "nodeType": "ImportDirective",
+ "scope": 11942,
+ "sourceUnit": 11808,
+ "src": "1130:36:55",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": false,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 11817,
+ "name": "IVersion",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 461,
+ "src": "1208:8:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVersion_$461",
+ "typeString": "contract IVersion"
+ }
+ },
+ "id": 11818,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1208:8:55"
+ },
+ {
+ "baseName": {
+ "id": 11819,
+ "name": "IPoolVersion",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 419,
+ "src": "1218:12:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IPoolVersion_$419",
+ "typeString": "contract IPoolVersion"
+ }
+ },
+ "id": 11820,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1218:12:55"
+ },
+ {
+ "baseName": {
+ "id": 11821,
+ "name": "BasePoolFactory",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4279,
+ "src": "1232:15:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolFactory_$4279",
+ "typeString": "contract BasePoolFactory"
+ }
+ },
+ "id": 11822,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1232:15:55"
+ },
+ {
+ "baseName": {
+ "id": 11823,
+ "name": "FactoryWidePauseWindow",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4341,
+ "src": "1249:22:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FactoryWidePauseWindow_$4341",
+ "typeString": "contract FactoryWidePauseWindow"
+ }
+ },
+ "id": 11824,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1249:22:55"
+ }
+ ],
+ "contractDependencies": [
+ 393,
+ 419,
+ 461,
+ 1022,
+ 4279,
+ 4341,
+ 5041,
+ 5265,
+ 6015,
+ 11807
+ ],
+ "contractKind": "contract",
+ "fullyImplemented": true,
+ "id": 11941,
+ "linearizedBaseContracts": [
+ 11941,
+ 4341,
+ 4279,
+ 6015,
+ 5041,
+ 5265,
+ 393,
+ 1022,
+ 419,
+ 461
+ ],
+ "name": "ComposableStablePoolFactory",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "constant": false,
+ "id": 11826,
+ "mutability": "mutable",
+ "name": "_version",
+ "nodeType": "VariableDeclaration",
+ "scope": 11941,
+ "src": "1278:23:55",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11825,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1278:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 11828,
+ "mutability": "mutable",
+ "name": "_poolVersion",
+ "nodeType": "VariableDeclaration",
+ "scope": 11941,
+ "src": "1307:27:55",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11827,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1307:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 11855,
+ "nodeType": "Block",
+ "src": "1600:78:55",
+ "statements": [
+ {
+ "expression": {
+ "id": 11849,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 11847,
+ "name": "_version",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11826,
+ "src": "1610:8:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 11848,
+ "name": "factoryVersion",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11834,
+ "src": "1621:14:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ "src": "1610:25:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "id": 11850,
+ "nodeType": "ExpressionStatement",
+ "src": "1610:25:55"
+ },
+ {
+ "expression": {
+ "id": 11853,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 11851,
+ "name": "_poolVersion",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11828,
+ "src": "1645:12:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 11852,
+ "name": "poolVersion",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11836,
+ "src": "1660:11:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ "src": "1645:26:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "id": 11854,
+ "nodeType": "ExpressionStatement",
+ "src": "1645:26:55"
+ }
+ ]
+ },
+ "id": 11856,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [
+ {
+ "arguments": [
+ {
+ "id": 11839,
+ "name": "vault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11830,
+ "src": "1531:5:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ {
+ "id": 11840,
+ "name": "protocolFeeProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11832,
+ "src": "1538:19:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 11842,
+ "name": "ComposableStablePool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11807,
+ "src": "1564:20:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePool_$11807_$",
+ "typeString": "type(contract ComposableStablePool)"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePool_$11807_$",
+ "typeString": "type(contract ComposableStablePool)"
+ }
+ ],
+ "id": 11841,
+ "name": "type",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -27,
+ "src": "1559:4:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_metatype_pure$__$returns$__$",
+ "typeString": "function () pure"
+ }
+ },
+ "id": 11843,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "1559:26:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_meta_type_t_contract$_ComposableStablePool_$11807",
+ "typeString": "type(contract ComposableStablePool)"
+ }
+ },
+ "id": 11844,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "creationCode",
+ "nodeType": "MemberAccess",
+ "src": "1559:39:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ }
+ ],
+ "id": 11845,
+ "modifierName": {
+ "id": 11838,
+ "name": "BasePoolFactory",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4279,
+ "src": "1515:15:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_BasePoolFactory_$4279_$",
+ "typeString": "type(contract BasePoolFactory)"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "1515:84:55"
+ }
+ ],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11837,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11830,
+ "mutability": "mutable",
+ "name": "vault",
+ "nodeType": "VariableDeclaration",
+ "scope": 11856,
+ "src": "1362:12:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ "typeName": {
+ "id": 11829,
+ "name": "IVault",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 2021,
+ "src": "1362:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11832,
+ "mutability": "mutable",
+ "name": "protocolFeeProvider",
+ "nodeType": "VariableDeclaration",
+ "scope": 11856,
+ "src": "1384:51:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ "typeName": {
+ "id": 11831,
+ "name": "IProtocolFeePercentagesProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1269,
+ "src": "1384:31:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11834,
+ "mutability": "mutable",
+ "name": "factoryVersion",
+ "nodeType": "VariableDeclaration",
+ "scope": 11856,
+ "src": "1445:28:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11833,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1445:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11836,
+ "mutability": "mutable",
+ "name": "poolVersion",
+ "nodeType": "VariableDeclaration",
+ "scope": 11856,
+ "src": "1483:25:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11835,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1483:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1352:162:55"
+ },
+ "returnParameters": {
+ "id": 11846,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1600:0:55"
+ },
+ "scope": 11941,
+ "src": "1341:337:55",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 460
+ ],
+ "body": {
+ "id": 11864,
+ "nodeType": "Block",
+ "src": "1750:32:55",
+ "statements": [
+ {
+ "expression": {
+ "id": 11862,
+ "name": "_version",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11826,
+ "src": "1767:8:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "functionReturnParameters": 11861,
+ "id": 11863,
+ "nodeType": "Return",
+ "src": "1760:15:55"
+ }
+ ]
+ },
+ "functionSelector": "54fd4d50",
+ "id": 11865,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "version",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 11858,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "1717:8:55"
+ },
+ "parameters": {
+ "id": 11857,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1700:2:55"
+ },
+ "returnParameters": {
+ "id": 11861,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11860,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11865,
+ "src": "1735:13:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11859,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1735:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1734:15:55"
+ },
+ "scope": 11941,
+ "src": "1684:98:55",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "baseFunctions": [
+ 418
+ ],
+ "body": {
+ "id": 11873,
+ "nodeType": "Block",
+ "src": "1859:36:55",
+ "statements": [
+ {
+ "expression": {
+ "id": 11871,
+ "name": "_poolVersion",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11828,
+ "src": "1876:12:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "functionReturnParameters": 11870,
+ "id": 11872,
+ "nodeType": "Return",
+ "src": "1869:19:55"
+ }
+ ]
+ },
+ "functionSelector": "3f819b6f",
+ "id": 11874,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getPoolVersion",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 11867,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "1826:8:55"
+ },
+ "parameters": {
+ "id": 11866,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "1811:2:55"
+ },
+ "returnParameters": {
+ "id": 11870,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11869,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11874,
+ "src": "1844:13:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11868,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1844:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1843:15:55"
+ },
+ "scope": 11941,
+ "src": "1788:107:55",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 11939,
+ "nodeType": "Block",
+ "src": "2380:1246:55",
+ "statements": [
+ {
+ "assignments": [
+ 11904,
+ 11906
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11904,
+ "mutability": "mutable",
+ "name": "pauseWindowDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 11939,
+ "src": "2391:27:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11903,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2391:7:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11906,
+ "mutability": "mutable",
+ "name": "bufferPeriodDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 11939,
+ "src": "2420:28:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11905,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2420:7:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 11909,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11907,
+ "name": "getPauseConfiguration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4340,
+ "src": "2452:21:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function () view returns (uint256,uint256)"
+ }
+ },
+ "id": 11908,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2452:23:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2390:85:55"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11916,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5960,
+ "src": "2679:8:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 11917,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2679:10:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11918,
+ "name": "getProtocolFeePercentagesProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4244,
+ "src": "2740:33:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IProtocolFeePercentagesProvider_$1269_$",
+ "typeString": "function () view returns (contract IProtocolFeePercentagesProvider)"
+ }
+ },
+ "id": 11919,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2740:35:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ }
+ },
+ {
+ "id": 11920,
+ "name": "name",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11877,
+ "src": "2811:4:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "id": 11921,
+ "name": "symbol",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11879,
+ "src": "2853:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ },
+ {
+ "id": 11922,
+ "name": "tokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11882,
+ "src": "2897:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "id": 11923,
+ "name": "rateProviders",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11887,
+ "src": "2948:13:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ {
+ "id": 11924,
+ "name": "tokenRateCacheDurations",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11890,
+ "src": "3016:23:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 11925,
+ "name": "exemptFromYieldProtocolFeeFlag",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11892,
+ "src": "3101:30:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "id": 11926,
+ "name": "amplificationParameter",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11884,
+ "src": "3185:22:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11927,
+ "name": "swapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11894,
+ "src": "3256:17:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11928,
+ "name": "pauseWindowDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11904,
+ "src": "3324:19:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11929,
+ "name": "bufferPeriodDuration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11906,
+ "src": "3395:20:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 11930,
+ "name": "owner",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11896,
+ "src": "3452:5:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 11931,
+ "name": "getPoolVersion",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11874,
+ "src": "3496:14:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_string_memory_ptr_$",
+ "typeString": "function () view returns (string memory)"
+ }
+ },
+ "id": 11932,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3496:16:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ },
+ {
+ "typeIdentifier": "t_contract$_IProtocolFeePercentagesProvider_$1269",
+ "typeString": "contract IProtocolFeePercentagesProvider"
+ },
+ {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ },
+ {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string memory"
+ }
+ ],
+ "expression": {
+ "id": 11914,
+ "name": "ComposableStablePool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11807,
+ "src": "2607:20:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePool_$11807_$",
+ "typeString": "type(contract ComposableStablePool)"
+ }
+ },
+ "id": 11915,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "NewPoolParams",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 9680,
+ "src": "2607:34:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_struct$_NewPoolParams_$9680_storage_ptr_$",
+ "typeString": "type(struct ComposableStablePool.NewPoolParams storage pointer)"
+ }
+ },
+ "id": 11933,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "structConstructorCall",
+ "lValueRequested": false,
+ "names": [
+ "vault",
+ "protocolFeeProvider",
+ "name",
+ "symbol",
+ "tokens",
+ "rateProviders",
+ "tokenRateCacheDurations",
+ "exemptFromYieldProtocolFeeFlag",
+ "amplificationParameter",
+ "swapFeePercentage",
+ "pauseWindowDuration",
+ "bufferPeriodDuration",
+ "owner",
+ "version"
+ ],
+ "nodeType": "FunctionCall",
+ "src": "2607:932:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_struct$_NewPoolParams_$9680_memory_ptr",
+ "typeString": "struct ComposableStablePool.NewPoolParams memory"
+ }
+ ],
+ "expression": {
+ "id": 11912,
+ "name": "abi",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -1,
+ "src": "2571:3:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_abi",
+ "typeString": "abi"
+ }
+ },
+ "id": 11913,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "encode",
+ "nodeType": "MemberAccess",
+ "src": "2571:10:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_abiencode_pure$__$returns$_t_bytes_memory_ptr_$",
+ "typeString": "function () pure returns (bytes memory)"
+ }
+ },
+ "id": 11934,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2571:990:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ }
+ },
+ {
+ "id": 11935,
+ "name": "salt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11898,
+ "src": "3583:4:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes_memory_ptr",
+ "typeString": "bytes memory"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 11911,
+ "name": "_create",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 4278
+ ],
+ "referencedDeclaration": 4278,
+ "src": "2542:7:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$_t_bytes32_$returns$_t_address_$",
+ "typeString": "function (bytes memory,bytes32) returns (address)"
+ }
+ },
+ "id": 11936,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2542:1063:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ ],
+ "id": 11910,
+ "name": "ComposableStablePool",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11807,
+ "src": "2504:20:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ComposableStablePool_$11807_$",
+ "typeString": "type(contract ComposableStablePool)"
+ }
+ },
+ "id": 11937,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2504:1115:55",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ },
+ "functionReturnParameters": 11902,
+ "id": 11938,
+ "nodeType": "Return",
+ "src": "2485:1134:55"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11875,
+ "nodeType": "StructuredDocumentation",
+ "src": "1901:61:55",
+ "text": " @dev Deploys a new `ComposableStablePool`."
+ },
+ "functionSelector": "971e1833",
+ "id": 11940,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "create",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11899,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11877,
+ "mutability": "mutable",
+ "name": "name",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "1992:18:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11876,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "1992:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11879,
+ "mutability": "mutable",
+ "name": "symbol",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2020:20:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 11878,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "2020:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11882,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2050:22:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11880,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2050:6:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 11881,
+ "nodeType": "ArrayTypeName",
+ "src": "2050:8:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11884,
+ "mutability": "mutable",
+ "name": "amplificationParameter",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2082:30:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11883,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2082:7:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11887,
+ "mutability": "mutable",
+ "name": "rateProviders",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2122:36:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11885,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "2122:13:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 11886,
+ "nodeType": "ArrayTypeName",
+ "src": "2122:15:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11890,
+ "mutability": "mutable",
+ "name": "tokenRateCacheDurations",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2168:40:55",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11888,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2168:7:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11889,
+ "nodeType": "ArrayTypeName",
+ "src": "2168:9:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11892,
+ "mutability": "mutable",
+ "name": "exemptFromYieldProtocolFeeFlag",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2218:35:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 11891,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "2218:4:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11894,
+ "mutability": "mutable",
+ "name": "swapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2263:25:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11893,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2263:7:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11896,
+ "mutability": "mutable",
+ "name": "owner",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2298:13:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "typeName": {
+ "id": 11895,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "2298:7:55",
+ "stateMutability": "nonpayable",
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11898,
+ "mutability": "mutable",
+ "name": "salt",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2321:12:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 11897,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2321:7:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "1982:357:55"
+ },
+ "returnParameters": {
+ "id": 11902,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11901,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 11940,
+ "src": "2358:20:55",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ },
+ "typeName": {
+ "id": 11900,
+ "name": "ComposableStablePool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 11807,
+ "src": "2358:20:55",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePool_$11807",
+ "typeString": "contract ComposableStablePool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2357:22:55"
+ },
+ "scope": 11941,
+ "src": "1967:1659:55",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ }
+ ],
+ "scope": 11942,
+ "src": "1168:2460:55"
+ }
+ ],
+ "src": "688:2941:55"
+ },
+ "id": 55
+ },
+ "contracts/ComposableStablePoolProtocolFees.sol": {
+ "ast": {
+ "absolutePath": "contracts/ComposableStablePoolProtocolFees.sol",
+ "exportedSymbols": {
+ "ComposableStablePoolProtocolFees": [
+ 12358
+ ]
+ },
+ "id": 12359,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 11943,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:56"
+ },
+ {
+ "id": 11944,
+ "literals": [
+ "experimental",
+ "ABIEncoderV2"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "712:33:56"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol",
+ "id": 11945,
+ "nodeType": "ImportDirective",
+ "scope": 12359,
+ "sourceUnit": 7159,
+ "src": "747:72:56",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/WordCodec.sol",
+ "id": 11946,
+ "nodeType": "ImportDirective",
+ "scope": 12359,
+ "sourceUnit": 6737,
+ "src": "820:74:56",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/ProtocolFeeCache.sol",
+ "id": 11947,
+ "nodeType": "ImportDirective",
+ "scope": 12359,
+ "sourceUnit": 4695,
+ "src": "895:83:56",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/protocol-fees/InvariantGrowthProtocolSwapFees.sol",
+ "id": 11948,
+ "nodeType": "ImportDirective",
+ "scope": 12359,
+ "sourceUnit": 4421,
+ "src": "979:98:56",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolStorage.sol",
+ "file": "./ComposableStablePoolStorage.sol",
+ "id": 11949,
+ "nodeType": "ImportDirective",
+ "scope": 12359,
+ "sourceUnit": 14042,
+ "src": "1079:43:56",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolRates.sol",
+ "file": "./ComposableStablePoolRates.sol",
+ "id": 11950,
+ "nodeType": "ImportDirective",
+ "scope": 12359,
+ "sourceUnit": 13104,
+ "src": "1123:41:56",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/StableMath.sol",
+ "file": "./StableMath.sol",
+ "id": 11951,
+ "nodeType": "ImportDirective",
+ "scope": 12359,
+ "sourceUnit": 15336,
+ "src": "1165:26:56",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 11952,
+ "name": "ComposableStablePoolStorage",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 14041,
+ "src": "1251:27:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolStorage_$14041",
+ "typeString": "contract ComposableStablePoolStorage"
+ }
+ },
+ "id": 11953,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1251:27:56"
+ },
+ {
+ "baseName": {
+ "id": 11954,
+ "name": "ComposableStablePoolRates",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 13103,
+ "src": "1284:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ },
+ "id": 11955,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1284:25:56"
+ },
+ {
+ "baseName": {
+ "id": 11956,
+ "name": "ProtocolFeeCache",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4694,
+ "src": "1315:16:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ProtocolFeeCache_$4694",
+ "typeString": "contract ProtocolFeeCache"
+ }
+ },
+ "id": 11957,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1315:16:56"
+ }
+ ],
+ "contractDependencies": [
+ 409,
+ 451,
+ 1022,
+ 1040,
+ 1059,
+ 1152,
+ 1188,
+ 1425,
+ 1491,
+ 2230,
+ 3860,
+ 3955,
+ 4136,
+ 4694,
+ 5041,
+ 5478,
+ 6208,
+ 8861,
+ 9352,
+ 9461,
+ 13103,
+ 14041
+ ],
+ "contractKind": "contract",
+ "fullyImplemented": false,
+ "id": 12358,
+ "linearizedBaseContracts": [
+ 12358,
+ 4694,
+ 13103,
+ 14041,
+ 3860,
+ 4136,
+ 6208,
+ 1059,
+ 2230,
+ 3955,
+ 5041,
+ 1022,
+ 451,
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152,
+ 409,
+ 1425,
+ 1491
+ ],
+ "name": "ComposableStablePoolProtocolFees",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 11960,
+ "libraryName": {
+ "id": 11958,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "1344:10:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1338:29:56",
+ "typeName": {
+ "id": 11959,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1359:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "id": 11963,
+ "libraryName": {
+ "id": 11961,
+ "name": "WordCodec",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 6736,
+ "src": "1378:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_WordCodec_$6736",
+ "typeString": "library WordCodec"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1372:28:56",
+ "typeName": {
+ "id": 11962,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1392:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ },
+ {
+ "constant": false,
+ "id": 11965,
+ "mutability": "mutable",
+ "name": "_lastJoinExitData",
+ "nodeType": "VariableDeclaration",
+ "scope": 12358,
+ "src": "2438:33:56",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 11964,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2438:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 11968,
+ "mutability": "constant",
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 12358,
+ "src": "2478:66:56",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11966,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2478:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "30",
+ "id": 11967,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2543:1:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 11971,
+ "mutability": "constant",
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_SIZE",
+ "nodeType": "VariableDeclaration",
+ "scope": 12358,
+ "src": "2550:66:56",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11969,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2550:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "323333",
+ "id": 11970,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2613:3:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_233_by_1",
+ "typeString": "int_const 233"
+ },
+ "value": "233"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 11976,
+ "mutability": "constant",
+ "name": "_LAST_JOIN_EXIT_AMPLIFICATION_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 12358,
+ "src": "2622:147:56",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11972,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2622:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 11975,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 11973,
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11968,
+ "src": "2686:37:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 11974,
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_SIZE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11971,
+ "src": "2734:35:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2686:83:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 11979,
+ "mutability": "constant",
+ "name": "_LAST_JOIN_EXIT_AMPLIFICATION_SIZE",
+ "nodeType": "VariableDeclaration",
+ "scope": 12358,
+ "src": "2776:64:56",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11977,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2776:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "3233",
+ "id": 11978,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2838:2:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_23_by_1",
+ "typeString": "int_const 23"
+ },
+ "value": "23"
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 12040,
+ "nodeType": "Block",
+ "src": "3573:1419:56",
+ "statements": [
+ {
+ "assignments": [
+ 11998,
+ 12001
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 11998,
+ "mutability": "mutable",
+ "name": "virtualSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 12040,
+ "src": "3584:21:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11997,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3584:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12001,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 12040,
+ "src": "3607:25:56",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11999,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3607:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12000,
+ "nodeType": "ArrayTypeName",
+ "src": "3607:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12005,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12003,
+ "name": "registeredBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11983,
+ "src": "3661:18:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 12002,
+ "name": "_dropBptItemFromBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13745,
+ "src": "3636:24:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256,uint256[] memory)"
+ }
+ },
+ "id": 12004,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3636:44:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "tuple(uint256,uint256[] memory)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3583:97:56"
+ },
+ {
+ "assignments": [
+ 12007,
+ 12009
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12007,
+ "mutability": "mutable",
+ "name": "expectedProtocolOwnershipPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 12040,
+ "src": "3854:43:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12006,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3854:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12009,
+ "mutability": "mutable",
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 12040,
+ "src": "3911:43:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12008,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3911:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12015,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12011,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12001,
+ "src": "4003:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 12012,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11985,
+ "src": "4013:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12013,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11987,
+ "src": "4030:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12010,
+ "name": "_getProtocolPoolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12121,
+ "src": "3967:35:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256[] memory,uint256,uint256) view returns (uint256,uint256)"
+ }
+ },
+ "id": 12014,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3967:89:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3840:216:56"
+ },
+ {
+ "assignments": [
+ 12017
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12017,
+ "mutability": "mutable",
+ "name": "protocolFeeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 12040,
+ "src": "4369:25:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12016,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4369:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12023,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12020,
+ "name": "virtualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11998,
+ "src": "4453:13:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12021,
+ "name": "expectedProtocolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12007,
+ "src": "4480:35:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12018,
+ "name": "ProtocolFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4725,
+ "src": "4397:12:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFees_$4725_$",
+ "typeString": "type(library ProtocolFees)"
+ }
+ },
+ "id": 12019,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "bptForPoolOwnershipPercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4724,
+ "src": "4397:42:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12022,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4397:128:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4369:156:56"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12026,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12024,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12017,
+ "src": "4540:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 12025,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4560:1:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "4540:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12032,
+ "nodeType": "IfStatement",
+ "src": "4536:87:56",
+ "trueBody": {
+ "id": 12031,
+ "nodeType": "Block",
+ "src": "4563:60:56",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12028,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12017,
+ "src": "4594:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12027,
+ "name": "_payProtocolFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3416,
+ "src": "4577:16:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 12029,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4577:35:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12030,
+ "nodeType": "ExpressionStatement",
+ "src": "4577:35:56"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12035,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12033,
+ "name": "virtualSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11998,
+ "src": "4904:13:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 12034,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12017,
+ "src": "4920:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4904:33:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12036,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12001,
+ "src": "4939:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 12037,
+ "name": "currentInvariantWithLastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12009,
+ "src": "4949:35:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 12038,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "4903:82:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256[] memory,uint256)"
+ }
+ },
+ "functionReturnParameters": 11996,
+ "id": 12039,
+ "nodeType": "Return",
+ "src": "4896:89:56"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 11980,
+ "nodeType": "StructuredDocumentation",
+ "src": "2847:434:56",
+ "text": " @dev Calculates due protocol fees originating from accumulated swap fees and yield of non-exempt tokens, pays\n them by minting BPT, and returns the actual supply and current balances.\n We also return the current invariant computed using the amplification factor at the last join or exit, which can\n be useful to skip computations in scenarios where the amplification factor is not changing."
+ },
+ "id": 12041,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_payProtocolFeesBeforeJoinExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 11988,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11983,
+ "mutability": "mutable",
+ "name": "registeredBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 12041,
+ "src": "3335:35:56",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11981,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3335:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11982,
+ "nodeType": "ArrayTypeName",
+ "src": "3335:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11985,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 12041,
+ "src": "3380:23:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11984,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3380:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11987,
+ "mutability": "mutable",
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12041,
+ "src": "3413:33:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11986,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3413:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3325:127:56"
+ },
+ "returnParameters": {
+ "id": 11996,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 11990,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12041,
+ "src": "3500:7:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11989,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3500:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11993,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12041,
+ "src": "3521:16:56",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 11991,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3521:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 11992,
+ "nodeType": "ArrayTypeName",
+ "src": "3521:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 11995,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12041,
+ "src": "3551:7:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 11994,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3551:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "3486:82:56"
+ },
+ "scope": 12358,
+ "src": "3286:1706:56",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12120,
+ "nodeType": "Block",
+ "src": "5201:6808:56",
+ "statements": [
+ {
+ "assignments": [
+ 12056,
+ 12058,
+ 12060
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12056,
+ "mutability": "mutable",
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12120,
+ "src": "6628:30:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12055,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6628:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12058,
+ "mutability": "mutable",
+ "name": "totalNonExemptGrowthInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12120,
+ "src": "6672:37:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12057,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6672:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12060,
+ "mutability": "mutable",
+ "name": "totalGrowthInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12120,
+ "src": "6723:28:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12059,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6723:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12066,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12062,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12044,
+ "src": "6785:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ {
+ "id": 12063,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12046,
+ "src": "6795:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12064,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12048,
+ "src": "6812:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12061,
+ "name": "_getGrowthInvariants",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12196,
+ "src": "6764:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "function (uint256[] memory,uint256,uint256) view returns (uint256,uint256,uint256)"
+ }
+ },
+ "id": 12065,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6764:74:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6614:224:56"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12069,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12067,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12060,
+ "src": "10396:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 12068,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12048,
+ "src": "10420:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "10396:49:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12075,
+ "nodeType": "IfStatement",
+ "src": "10392:112:56",
+ "trueBody": {
+ "id": 12074,
+ "nodeType": "Block",
+ "src": "10447:57:56",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "hexValue": "30",
+ "id": 12070,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10469:1:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ {
+ "id": 12071,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12060,
+ "src": "10472:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 12072,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "10468:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_rational_0_by_1_$_t_uint256_$",
+ "typeString": "tuple(int_const 0,uint256)"
+ }
+ },
+ "functionReturnParameters": 12054,
+ "id": 12073,
+ "nodeType": "Return",
+ "src": "10461:32:56"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 12077
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12077,
+ "mutability": "mutable",
+ "name": "swapFeeGrowthInvariantDelta",
+ "nodeType": "VariableDeclaration",
+ "scope": 12120,
+ "src": "10791:35:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12076,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10791:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12081,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12080,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12078,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12056,
+ "src": "10829:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 12079,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12048,
+ "src": "10854:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "10829:50:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10791:88:56"
+ },
+ {
+ "assignments": [
+ 12083
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12083,
+ "mutability": "mutable",
+ "name": "nonExemptYieldGrowthInvariantDelta",
+ "nodeType": "VariableDeclaration",
+ "scope": 12120,
+ "src": "10889:42:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12082,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10889:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12087,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12086,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12084,
+ "name": "totalNonExemptGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12058,
+ "src": "10934:29:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 12085,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12056,
+ "src": "10966:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "10934:54:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10889:99:56"
+ },
+ {
+ "assignments": [
+ 12089
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12089,
+ "mutability": "mutable",
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 12120,
+ "src": "11334:33:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12088,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11334:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12100,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 12096,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "11479:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 12097,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "11479:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12095,
+ "name": "getProtocolFeePercentageCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4581,
+ "src": "11449:29:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 12098,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11449:51:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 12092,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12060,
+ "src": "11406:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12090,
+ "name": "swapFeeGrowthInvariantDelta",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12077,
+ "src": "11370:27:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12091,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "11370:35:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12093,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11370:57:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12094,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "11370:65:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12099,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11370:140:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "11334:176:56"
+ },
+ {
+ "assignments": [
+ 12102
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12102,
+ "mutability": "mutable",
+ "name": "protocolYieldPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 12120,
+ "src": "11521:31:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12101,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11521:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12113,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 12109,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "11671:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 12110,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "YIELD",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1278,
+ "src": "11671:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12108,
+ "name": "getProtocolFeePercentageCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4581,
+ "src": "11641:29:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 12111,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11641:52:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 12105,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12060,
+ "src": "11598:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12103,
+ "name": "nonExemptYieldGrowthInvariantDelta",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12083,
+ "src": "11555:34:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12104,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "11555:42:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12106,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11555:64:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12107,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "11555:72:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12112,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11555:148:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "11521:182:56"
+ },
+ {
+ "expression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12116,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12114,
+ "name": "protocolSwapFeePercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12089,
+ "src": "11928:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 12115,
+ "name": "protocolYieldPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12102,
+ "src": "11956:23:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "11928:51:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12117,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12060,
+ "src": "11981:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 12118,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "11927:75:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 12054,
+ "id": 12119,
+ "nodeType": "Return",
+ "src": "11920:82:56"
+ }
+ ]
+ },
+ "id": 12121,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getProtocolPoolOwnershipPercentage",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12049,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12044,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 12121,
+ "src": "5052:25:56",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12042,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5052:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12043,
+ "nodeType": "ArrayTypeName",
+ "src": "5052:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12046,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 12121,
+ "src": "5087:23:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12045,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5087:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12048,
+ "mutability": "mutable",
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12121,
+ "src": "5120:33:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12047,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5120:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5042:117:56"
+ },
+ "returnParameters": {
+ "id": 12054,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12051,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12121,
+ "src": "5183:7:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12050,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5183:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12053,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12121,
+ "src": "5192:7:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12052,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5192:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5182:18:56"
+ },
+ "scope": 12358,
+ "src": "4998:7011:56",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12195,
+ "nodeType": "Block",
+ "src": "13137:2356:56",
+ "statements": [
+ {
+ "expression": {
+ "id": 12144,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12138,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12136,
+ "src": "13251:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 12141,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12127,
+ "src": "13305:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12142,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12125,
+ "src": "13322:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 12139,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "13274:10:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 12140,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "13274:30:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 12143,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13274:57:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "13251:80:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12145,
+ "nodeType": "ExpressionStatement",
+ "src": "13251:80:56"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12148,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12146,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12136,
+ "src": "13440:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<=",
+ "rightExpression": {
+ "id": 12147,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12129,
+ "src": "13464:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "13440:49:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12155,
+ "nodeType": "IfStatement",
+ "src": "13436:153:56",
+ "trueBody": {
+ "id": 12154,
+ "nodeType": "Block",
+ "src": "13491:98:56",
+ "statements": [
+ {
+ "expression": {
+ "components": [
+ {
+ "id": 12149,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12136,
+ "src": "13513:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12150,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12136,
+ "src": "13535:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12151,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12136,
+ "src": "13557:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 12152,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "13512:66:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256,uint256)"
+ }
+ },
+ "functionReturnParameters": 12137,
+ "id": 12153,
+ "nodeType": "Return",
+ "src": "13505:73:56"
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "id": 12164,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12156,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12132,
+ "src": "13690:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 12159,
+ "name": "lastJoinExitAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12127,
+ "src": "13759:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 12161,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12125,
+ "src": "13809:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "id": 12160,
+ "name": "_getAdjustedBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13002,
+ "src": "13788:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256[] memory) view returns (uint256[] memory)"
+ }
+ },
+ "id": 12162,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13788:30:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 12157,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "13715:10:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 12158,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "13715:30:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 12163,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13715:163:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "13690:188:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12165,
+ "nodeType": "ExpressionStatement",
+ "src": "13690:188:56"
+ },
+ {
+ "expression": {
+ "id": 12172,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12166,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12132,
+ "src": "14051:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 12169,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12136,
+ "src": "14085:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12170,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12132,
+ "src": "14107:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12167,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "14076:4:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 12168,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "min",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8655,
+ "src": "14076:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12171,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14076:54:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "14051:79:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12173,
+ "nodeType": "ExpressionStatement",
+ "src": "14051:79:56"
+ },
+ {
+ "expression": {
+ "id": 12180,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12174,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12132,
+ "src": "14160:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 12177,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12129,
+ "src": "14194:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12178,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12132,
+ "src": "14221:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12175,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "14185:4:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 12176,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "max",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8637,
+ "src": "14185:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12179,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14185:59:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "14160:84:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12181,
+ "nodeType": "ExpressionStatement",
+ "src": "14160:84:56"
+ },
+ {
+ "condition": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12182,
+ "name": "isExemptFromYieldProtocolFee",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 14008,
+ "src": "14858:28:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_bool_$",
+ "typeString": "function () view returns (bool)"
+ }
+ },
+ "id": 12183,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "14858:30:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 12193,
+ "nodeType": "Block",
+ "src": "15140:347:56",
+ "statements": [
+ {
+ "expression": {
+ "id": 12191,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12189,
+ "name": "totalNonExemptGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12134,
+ "src": "15424:29:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 12190,
+ "name": "totalGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12136,
+ "src": "15456:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "15424:52:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12192,
+ "nodeType": "ExpressionStatement",
+ "src": "15424:52:56"
+ }
+ ]
+ },
+ "id": 12194,
+ "nodeType": "IfStatement",
+ "src": "14854:633:56",
+ "trueBody": {
+ "id": 12188,
+ "nodeType": "Block",
+ "src": "14890:244:56",
+ "statements": [
+ {
+ "expression": {
+ "id": 12186,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12184,
+ "name": "totalNonExemptGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12134,
+ "src": "15069:29:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 12185,
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12132,
+ "src": "15101:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "15069:54:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12187,
+ "nodeType": "ExpressionStatement",
+ "src": "15069:54:56"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12122,
+ "nodeType": "StructuredDocumentation",
+ "src": "12015:772:56",
+ "text": " @dev Returns total growth invariant and swap / yield invariant approximations.\n The calculated invariants are bounded such that:\n - if totalGrowthInvariant <= lastPostJoinExitInvariant, the total value has decreased, so we can skip all\n other invariant calculations and just return `totalGrowthInvariant` for all. Protocol fees should be zero\n in this case, so callers using this to compute fees must also check for this, and return zero for the\n protocol ownership percentage.\n - Otherwise, totalGrowthInvariant >= totalNonExemptGrowthInvariant >=\n swapFeeGrowthInvariant >= lastPostJoinExitInvariant\n This was previously an assumption, but is now ensured by the logic in this function."
+ },
+ "id": 12196,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getGrowthInvariants",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12130,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12125,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 12196,
+ "src": "12831:25:56",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12123,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12831:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12124,
+ "nodeType": "ArrayTypeName",
+ "src": "12831:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12127,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 12196,
+ "src": "12866:23:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12126,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12866:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12129,
+ "mutability": "mutable",
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12196,
+ "src": "12899:33:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12128,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12899:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12821:117:56"
+ },
+ "returnParameters": {
+ "id": 12137,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12132,
+ "mutability": "mutable",
+ "name": "swapFeeGrowthInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12196,
+ "src": "12999:30:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12131,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12999:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12134,
+ "mutability": "mutable",
+ "name": "totalNonExemptGrowthInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12196,
+ "src": "13043:37:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12133,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13043:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12136,
+ "mutability": "mutable",
+ "name": "totalGrowthInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12196,
+ "src": "13094:28:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12135,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13094:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12985:147:56"
+ },
+ "scope": 12358,
+ "src": "12792:2701:56",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12281,
+ "nodeType": "Block",
+ "src": "16038:2258:56",
+ "statements": [
+ {
+ "assignments": [
+ 12212
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12212,
+ "mutability": "mutable",
+ "name": "postJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12281,
+ "src": "16668:29:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12211,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16668:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12218,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12215,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12199,
+ "src": "16731:10:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12216,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12202,
+ "src": "16743:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ ],
+ "expression": {
+ "id": 12213,
+ "name": "StableMath",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 15335,
+ "src": "16700:10:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_StableMath_$15335_$",
+ "typeString": "type(library StableMath)"
+ }
+ },
+ "id": 12214,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_calculateInvariant",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 14249,
+ "src": "16700:30:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_array$_t_uint256_$dyn_memory_ptr_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256[] memory) pure returns (uint256)"
+ }
+ },
+ "id": 12217,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "16700:52:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "16668:84:56"
+ },
+ {
+ "assignments": [
+ 12220
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12220,
+ "mutability": "mutable",
+ "name": "supplyGrowthRatio",
+ "nodeType": "VariableDeclaration",
+ "scope": 12281,
+ "src": "16832:25:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12219,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16832:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12225,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12223,
+ "name": "preJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12206,
+ "src": "16887:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12221,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12208,
+ "src": "16860:18:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12222,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6939,
+ "src": "16860:26:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12224,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "16860:45:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "16832:73:56"
+ },
+ {
+ "assignments": [
+ 12227
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12227,
+ "mutability": "mutable",
+ "name": "feelessInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12281,
+ "src": "16915:24:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12226,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "16915:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12232,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12230,
+ "name": "supplyGrowthRatio",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12220,
+ "src": "16971:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12228,
+ "name": "preJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12204,
+ "src": "16942:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12229,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "16942:28:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12231,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "16942:47:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "16915:74:56"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12235,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12233,
+ "name": "postJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12212,
+ "src": "17408:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "id": 12234,
+ "name": "feelessInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12227,
+ "src": "17432:16:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "17408:40:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12275,
+ "nodeType": "IfStatement",
+ "src": "17404:821:56",
+ "trueBody": {
+ "id": 12274,
+ "nodeType": "Block",
+ "src": "17450:775:56",
+ "statements": [
+ {
+ "assignments": [
+ 12237
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12237,
+ "mutability": "mutable",
+ "name": "invariantDeltaFromFees",
+ "nodeType": "VariableDeclaration",
+ "scope": 12274,
+ "src": "17464:30:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12236,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17464:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12241,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12240,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12238,
+ "name": "postJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12212,
+ "src": "17497:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "id": 12239,
+ "name": "feelessInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12227,
+ "src": "17521:16:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "17497:40:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17464:73:56"
+ },
+ {
+ "assignments": [
+ 12243
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12243,
+ "mutability": "mutable",
+ "name": "protocolOwnershipPercentage",
+ "nodeType": "VariableDeclaration",
+ "scope": 12274,
+ "src": "17693:35:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12242,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17693:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12256,
+ "initialValue": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 12248,
+ "name": "invariantDeltaFromFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12237,
+ "src": "17770:22:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "expression": {
+ "id": 12250,
+ "name": "ProtocolFeeType",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1282,
+ "src": "17824:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFeeType_$1282_$",
+ "typeString": "type(library ProtocolFeeType)"
+ }
+ },
+ "id": 12251,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "SWAP",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1272,
+ "src": "17824:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12249,
+ "name": "getProtocolFeePercentageCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4581,
+ "src": "17794:29:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 12252,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17794:51:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12246,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "17761:4:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 12247,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mul",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8687,
+ "src": "17761:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12253,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17761:85:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12254,
+ "name": "postJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12212,
+ "src": "17864:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12244,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "17731:4:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 12245,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8732,
+ "src": "17731:12:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12255,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17731:168:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17693:206:56"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12259,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12257,
+ "name": "protocolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12243,
+ "src": "17918:27:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 12258,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "17948:1:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "17918:31:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12273,
+ "nodeType": "IfStatement",
+ "src": "17914:301:56",
+ "trueBody": {
+ "id": 12272,
+ "nodeType": "Block",
+ "src": "17951:264:56",
+ "statements": [
+ {
+ "assignments": [
+ 12261
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12261,
+ "mutability": "mutable",
+ "name": "protocolFeeAmount",
+ "nodeType": "VariableDeclaration",
+ "scope": 12272,
+ "src": "17969:25:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12260,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "17969:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12267,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12264,
+ "name": "postJoinExitSupply",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12208,
+ "src": "18061:18:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12265,
+ "name": "protocolOwnershipPercentage",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12243,
+ "src": "18101:27:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12262,
+ "name": "ProtocolFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4725,
+ "src": "17997:12:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_ProtocolFees_$4725_$",
+ "typeString": "type(library ProtocolFees)"
+ }
+ },
+ "id": 12263,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "bptForPoolOwnershipPercentage",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4724,
+ "src": "17997:42:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12266,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "17997:149:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "17969:177:56"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12269,
+ "name": "protocolFeeAmount",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12261,
+ "src": "18182:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12268,
+ "name": "_payProtocolFees",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3416,
+ "src": "18165:16:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 12270,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18165:35:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12271,
+ "nodeType": "ExpressionStatement",
+ "src": "18165:35:56"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12277,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12199,
+ "src": "18255:10:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12278,
+ "name": "postJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12212,
+ "src": "18267:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12276,
+ "name": "_updatePostJoinExit",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12310,
+ "src": "18235:19:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256)"
+ }
+ },
+ "id": 12279,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18235:54:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12280,
+ "nodeType": "ExpressionStatement",
+ "src": "18235:54:56"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12197,
+ "nodeType": "StructuredDocumentation",
+ "src": "15499:308:56",
+ "text": " @dev Store the latest invariant based on the adjusted balances after the join or exit, using current rates.\n Also cache the amp factor, so that the invariant is not affected by amp updates between joins and exits.\n Pay protocol fees due on any current join or exit swap."
+ },
+ "id": 12282,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_updateInvariantAfterJoinExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12209,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12199,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 12282,
+ "src": "15860:18:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12198,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15860:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12202,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 12282,
+ "src": "15888:25:56",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12200,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15888:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12201,
+ "nodeType": "ArrayTypeName",
+ "src": "15888:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12204,
+ "mutability": "mutable",
+ "name": "preJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12282,
+ "src": "15923:28:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12203,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15923:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12206,
+ "mutability": "mutable",
+ "name": "preJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 12282,
+ "src": "15961:25:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12205,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15961:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12208,
+ "mutability": "mutable",
+ "name": "postJoinExitSupply",
+ "nodeType": "VariableDeclaration",
+ "scope": 12282,
+ "src": "15996:26:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12207,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "15996:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "15850:178:56"
+ },
+ "returnParameters": {
+ "id": 12210,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "16038:0:56"
+ },
+ "scope": 12358,
+ "src": "15812:2484:56",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12309,
+ "nodeType": "Block",
+ "src": "18661:379:56",
+ "statements": [
+ {
+ "expression": {
+ "id": 12304,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12290,
+ "name": "_lastJoinExitData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11965,
+ "src": "18671:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 12303,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 12293,
+ "name": "currentAmp",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12285,
+ "src": "18724:10:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12294,
+ "name": "_LAST_JOIN_EXIT_AMPLIFICATION_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11976,
+ "src": "18736:36:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12295,
+ "name": "_LAST_JOIN_EXIT_AMPLIFICATION_SIZE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11979,
+ "src": "18774:34:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12291,
+ "name": "WordCodec",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6736,
+ "src": "18703:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_WordCodec_$6736_$",
+ "typeString": "type(library WordCodec)"
+ }
+ },
+ "id": 12292,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "encodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6371,
+ "src": "18703:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 12296,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18703:106:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "|",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 12299,
+ "name": "postJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12287,
+ "src": "18862:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12300,
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11968,
+ "src": "18901:37:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12301,
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_SIZE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11971,
+ "src": "18956:35:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12297,
+ "name": "WordCodec",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 6736,
+ "src": "18824:9:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_WordCodec_$6736_$",
+ "typeString": "type(library WordCodec)"
+ }
+ },
+ "id": 12298,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "encodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6371,
+ "src": "18824:20:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$",
+ "typeString": "function (uint256,uint256,uint256) pure returns (bytes32)"
+ }
+ },
+ "id": 12302,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "18824:181:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "18703:302:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "18671:334:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12305,
+ "nodeType": "ExpressionStatement",
+ "src": "18671:334:56"
+ },
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12306,
+ "name": "_updateOldRates",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12929,
+ "src": "19016:15:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 12307,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19016:17:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12308,
+ "nodeType": "ExpressionStatement",
+ "src": "19016:17:56"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12283,
+ "nodeType": "StructuredDocumentation",
+ "src": "18302:265:56",
+ "text": " @dev Update the stored values of the amp and final post-join/exit invariant, to reset the basis for protocol\n swap fees. Also copy the current rates to the old rates, to establish the new protocol yield basis for protocol\n yield fees."
+ },
+ "id": 12310,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_updatePostJoinExit",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12288,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12285,
+ "mutability": "mutable",
+ "name": "currentAmp",
+ "nodeType": "VariableDeclaration",
+ "scope": 12310,
+ "src": "18601:18:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12284,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18601:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12287,
+ "mutability": "mutable",
+ "name": "postJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12310,
+ "src": "18621:29:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12286,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "18621:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "18600:51:56"
+ },
+ "returnParameters": {
+ "id": 12289,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "18661:0:56"
+ },
+ "scope": 12358,
+ "src": "18572:468:56",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12338,
+ "nodeType": "Block",
+ "src": "19330:384:56",
+ "statements": [
+ {
+ "assignments": [
+ 12319
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12319,
+ "mutability": "mutable",
+ "name": "rawData",
+ "nodeType": "VariableDeclaration",
+ "scope": 12338,
+ "src": "19340:15:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 12318,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "19340:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12321,
+ "initialValue": {
+ "id": 12320,
+ "name": "_lastJoinExitData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11965,
+ "src": "19358:17:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "19340:35:56"
+ },
+ {
+ "expression": {
+ "id": 12328,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12322,
+ "name": "lastJoinExitAmplification",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12314,
+ "src": "19386:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 12325,
+ "name": "_LAST_JOIN_EXIT_AMPLIFICATION_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11976,
+ "src": "19446:36:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12326,
+ "name": "_LAST_JOIN_EXIT_AMPLIFICATION_SIZE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11979,
+ "src": "19496:34:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12323,
+ "name": "rawData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12319,
+ "src": "19414:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12324,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6440,
+ "src": "19414:18:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12327,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19414:126:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "19386:154:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12329,
+ "nodeType": "ExpressionStatement",
+ "src": "19386:154:56"
+ },
+ {
+ "expression": {
+ "id": 12336,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12330,
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12316,
+ "src": "19551:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 12333,
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_OFFSET",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11968,
+ "src": "19611:37:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12334,
+ "name": "_LAST_POST_JOIN_EXIT_INVARIANT_SIZE",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 11971,
+ "src": "19662:35:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12331,
+ "name": "rawData",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12319,
+ "src": "19579:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12332,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "decodeUint",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6440,
+ "src": "19579:18:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 12335,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "19579:128:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "19551:156:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12337,
+ "nodeType": "ExpressionStatement",
+ "src": "19551:156:56"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12311,
+ "nodeType": "StructuredDocumentation",
+ "src": "19046:129:56",
+ "text": " @notice Return the amplification factor and invariant as of the most recent join or exit (including BPT swaps)"
+ },
+ "functionSelector": "3c975d51",
+ "id": 12339,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getLastJoinExitData",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12312,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "19208:2:56"
+ },
+ "returnParameters": {
+ "id": 12317,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12314,
+ "mutability": "mutable",
+ "name": "lastJoinExitAmplification",
+ "nodeType": "VariableDeclaration",
+ "scope": 12339,
+ "src": "19256:33:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12313,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19256:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12316,
+ "mutability": "mutable",
+ "name": "lastPostJoinExitInvariant",
+ "nodeType": "VariableDeclaration",
+ "scope": 12339,
+ "src": "19291:33:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12315,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "19291:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "19255:70:56"
+ },
+ "scope": 12358,
+ "src": "19180:534:56",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "public"
+ },
+ {
+ "baseFunctions": [
+ 2907,
+ 3949,
+ 13102
+ ],
+ "body": {
+ "id": 12356,
+ "nodeType": "Block",
+ "src": "20337:58:56",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12353,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12342,
+ "src": "20379:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "id": 12351,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "20354:5:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_ComposableStablePoolProtocolFees_$12358",
+ "typeString": "contract super ComposableStablePoolProtocolFees"
+ }
+ },
+ "id": 12352,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_isOwnerOnlyAction",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13102,
+ "src": "20354:24:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
+ "typeString": "function (bytes32) view returns (bool)"
+ }
+ },
+ "id": 12354,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "20354:34:56",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 12350,
+ "id": 12355,
+ "nodeType": "Return",
+ "src": "20347:41:56"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12340,
+ "nodeType": "StructuredDocumentation",
+ "src": "19720:145:56",
+ "text": " @dev Inheritance rules still require us to override this in the most derived contract, even though\n it only calls super."
+ },
+ "id": 12357,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_isOwnerOnlyAction",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 12347,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [
+ {
+ "id": 12344,
+ "name": "BasePool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 3860,
+ "src": "20217:8:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ },
+ {
+ "id": 12345,
+ "name": "BasePoolAuthorization",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 3955,
+ "src": "20239:21:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePoolAuthorization_$3955",
+ "typeString": "contract BasePoolAuthorization"
+ }
+ },
+ {
+ "id": 12346,
+ "name": "ComposableStablePoolRates",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 13103,
+ "src": "20274:25:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ }
+ ],
+ "src": "19970:339:56"
+ },
+ "parameters": {
+ "id": 12343,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12342,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 12357,
+ "src": "19898:16:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 12341,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "19898:7:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "19897:18:56"
+ },
+ "returnParameters": {
+ "id": 12350,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12349,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12357,
+ "src": "20327:4:56",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 12348,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "20327:4:56",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "20326:6:56"
+ },
+ "scope": 12358,
+ "src": "19870:525:56",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 12359,
+ "src": "1193:19204:56"
+ }
+ ],
+ "src": "688:19710:56"
+ },
+ "id": 56
+ },
+ "contracts/ComposableStablePoolRates.sol": {
+ "ast": {
+ "absolutePath": "contracts/ComposableStablePoolRates.sol",
+ "exportedSymbols": {
+ "ComposableStablePoolRates": [
+ 13103
+ ]
+ },
+ "id": 13104,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 12360,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:57"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "id": 12361,
+ "nodeType": "ImportDirective",
+ "scope": 13104,
+ "sourceUnit": 1153,
+ "src": "713:87:57",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol",
+ "id": 12362,
+ "nodeType": "ImportDirective",
+ "scope": 13104,
+ "sourceUnit": 429,
+ "src": "801:77:57",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/ERC20Helpers.sol",
+ "id": 12363,
+ "nodeType": "ImportDirective",
+ "scope": 13104,
+ "sourceUnit": 5809,
+ "src": "880:77:57",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol",
+ "file": "@balancer-labs/v2-solidity-utils/contracts/helpers/InputHelpers.sol",
+ "id": 12364,
+ "nodeType": "ImportDirective",
+ "scope": 13104,
+ "sourceUnit": 5921,
+ "src": "958:77:57",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/rates/PriceRateCache.sol",
+ "id": 12365,
+ "nodeType": "ImportDirective",
+ "scope": 13104,
+ "sourceUnit": 4965,
+ "src": "1036:73:57",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/ComposableStablePoolStorage.sol",
+ "file": "./ComposableStablePoolStorage.sol",
+ "id": 12366,
+ "nodeType": "ImportDirective",
+ "scope": 13104,
+ "sourceUnit": 14042,
+ "src": "1111:43:57",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 12367,
+ "name": "ComposableStablePoolStorage",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 14041,
+ "src": "1203:27:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolStorage_$14041",
+ "typeString": "contract ComposableStablePoolStorage"
+ }
+ },
+ "id": 12368,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1203:27:57"
+ }
+ ],
+ "contractDependencies": [
+ 409,
+ 451,
+ 1022,
+ 1040,
+ 1059,
+ 1152,
+ 1188,
+ 1425,
+ 1491,
+ 2230,
+ 3860,
+ 3955,
+ 4136,
+ 5041,
+ 5478,
+ 6208,
+ 8861,
+ 9352,
+ 9461,
+ 14041
+ ],
+ "contractKind": "contract",
+ "fullyImplemented": false,
+ "id": 13103,
+ "linearizedBaseContracts": [
+ 13103,
+ 14041,
+ 3860,
+ 4136,
+ 6208,
+ 1059,
+ 2230,
+ 3955,
+ 5041,
+ 1022,
+ 451,
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152,
+ 409,
+ 1425,
+ 1491
+ ],
+ "name": "ComposableStablePoolRates",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 12371,
+ "libraryName": {
+ "id": 12369,
+ "name": "PriceRateCache",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 4964,
+ "src": "1243:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_PriceRateCache_$4964",
+ "typeString": "library PriceRateCache"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1237:33:57",
+ "typeName": {
+ "id": 12370,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1262:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ },
+ {
+ "id": 12374,
+ "libraryName": {
+ "id": 12372,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "1281:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1275:29:57",
+ "typeName": {
+ "id": 12373,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1296:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "canonicalName": "ComposableStablePoolRates.RatesParams",
+ "id": 12384,
+ "members": [
+ {
+ "constant": false,
+ "id": 12377,
+ "mutability": "mutable",
+ "name": "tokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 12384,
+ "src": "1339:15:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12375,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1339:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 12376,
+ "nodeType": "ArrayTypeName",
+ "src": "1339:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12380,
+ "mutability": "mutable",
+ "name": "rateProviders",
+ "nodeType": "VariableDeclaration",
+ "scope": 12384,
+ "src": "1364:29:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12378,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "1364:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 12379,
+ "nodeType": "ArrayTypeName",
+ "src": "1364:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12383,
+ "mutability": "mutable",
+ "name": "tokenRateCacheDurations",
+ "nodeType": "VariableDeclaration",
+ "scope": 12384,
+ "src": "1403:33:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12381,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1403:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12382,
+ "nodeType": "ArrayTypeName",
+ "src": "1403:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "RatesParams",
+ "nodeType": "StructDefinition",
+ "scope": 13103,
+ "src": "1310:133:57",
+ "visibility": "public"
+ },
+ {
+ "constant": false,
+ "id": 12388,
+ "mutability": "mutable",
+ "name": "_tokenRateCaches",
+ "nodeType": "VariableDeclaration",
+ "scope": 13103,
+ "src": "2228:53:57",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ },
+ "typeName": {
+ "id": 12387,
+ "keyType": {
+ "id": 12385,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2236:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Mapping",
+ "src": "2228:27:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ },
+ "valueType": {
+ "id": 12386,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "2247:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "anonymous": false,
+ "id": 12394,
+ "name": "TokenRateCacheUpdated",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 12393,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12390,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "tokenIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 12394,
+ "src": "2316:26:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12389,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2316:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12392,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "rate",
+ "nodeType": "VariableDeclaration",
+ "scope": 12394,
+ "src": "2344:12:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12391,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2344:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2315:42:57"
+ },
+ "src": "2288:70:57"
+ },
+ {
+ "anonymous": false,
+ "id": 12402,
+ "name": "TokenRateProviderSet",
+ "nodeType": "EventDefinition",
+ "parameters": {
+ "id": 12401,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12396,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "tokenIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 12402,
+ "src": "2390:26:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12395,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2390:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12398,
+ "indexed": true,
+ "mutability": "mutable",
+ "name": "provider",
+ "nodeType": "VariableDeclaration",
+ "scope": 12402,
+ "src": "2418:30:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 12397,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "2418:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12400,
+ "indexed": false,
+ "mutability": "mutable",
+ "name": "cacheDuration",
+ "nodeType": "VariableDeclaration",
+ "scope": 12402,
+ "src": "2450:21:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12399,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2450:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2389:83:57"
+ },
+ "src": "2363:110:57"
+ },
+ {
+ "body": {
+ "id": 12530,
+ "nodeType": "Block",
+ "src": "2522:1226:57",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "expression": {
+ "expression": {
+ "id": 12410,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "2581:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12411,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12377,
+ "src": "2581:17:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 12412,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "2581:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "expression": {
+ "id": 12413,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "2619:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12414,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "rateProviders",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12380,
+ "src": "2619:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ "id": 12415,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "2619:31:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "expression": {
+ "id": 12416,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "2664:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12417,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenRateCacheDurations",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12383,
+ "src": "2664:34:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 12418,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "2664:41:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12407,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "2532:12:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 12409,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5850,
+ "src": "2532:35:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256,uint256) pure"
+ }
+ },
+ "id": 12419,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2532:183:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12420,
+ "nodeType": "ExpressionStatement",
+ "src": "2532:183:57"
+ },
+ {
+ "assignments": [
+ 12424
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12424,
+ "mutability": "mutable",
+ "name": "registeredTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 12530,
+ "src": "2726:32:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12422,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2726:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 12423,
+ "nodeType": "ArrayTypeName",
+ "src": "2726:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12432,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "id": 12426,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "2775:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12427,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12377,
+ "src": "2775:17:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 12429,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "2801:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ ],
+ "id": 12428,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "2794:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 12430,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2794:12:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ },
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 12425,
+ "name": "_insertSorted",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5640,
+ "src": "2761:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$_t_contract$_IERC20_$1152_$returns$_t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr_$",
+ "typeString": "function (contract IERC20[] memory,contract IERC20) pure returns (contract IERC20[] memory)"
+ }
+ },
+ "id": 12431,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2761:46:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2726:81:57"
+ },
+ {
+ "assignments": [
+ 12434
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12434,
+ "mutability": "mutable",
+ "name": "bptIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 12530,
+ "src": "2817:16:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12433,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2817:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12435,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "2817:16:57"
+ },
+ {
+ "body": {
+ "id": 12457,
+ "nodeType": "Block",
+ "src": "3005:72:57",
+ "statements": []
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 12453,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12445,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12443,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12434,
+ "src": "2913:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 12444,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2924:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "2913:12:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 12452,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "baseExpression": {
+ "id": 12446,
+ "name": "registeredTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12424,
+ "src": "2929:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 12448,
+ "indexExpression": {
+ "id": 12447,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12434,
+ "src": "2946:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "2929:26:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 12450,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "2965:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ ],
+ "id": 12449,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "2958:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 12451,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "2958:12:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "2929:41:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "2913:57:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12458,
+ "initializationExpression": {
+ "expression": {
+ "id": 12441,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12436,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12434,
+ "src": "2861:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12440,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 12437,
+ "name": "registeredTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12424,
+ "src": "2872:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 12438,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "2872:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 12439,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "2898:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "2872:27:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "2861:38:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12442,
+ "nodeType": "ExpressionStatement",
+ "src": "2861:38:57"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 12455,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "--",
+ "prefix": false,
+ "src": "2984:10:57",
+ "subExpression": {
+ "id": 12454,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12434,
+ "src": "2984:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12456,
+ "nodeType": "ExpressionStatement",
+ "src": "2984:10:57"
+ },
+ "nodeType": "ForStatement",
+ "src": "2843:234:57"
+ },
+ {
+ "assignments": [
+ 12460
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12460,
+ "mutability": "mutable",
+ "name": "skipBpt",
+ "nodeType": "VariableDeclaration",
+ "scope": 12530,
+ "src": "3087:15:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12459,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3087:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12462,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 12461,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3105:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3087:19:57"
+ },
+ {
+ "body": {
+ "id": 12528,
+ "nodeType": "Block",
+ "src": "3171:571:57",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12477,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12475,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3189:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "id": 12476,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12434,
+ "src": "3194:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3189:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12483,
+ "nodeType": "IfStatement",
+ "src": "3185:63:57",
+ "trueBody": {
+ "id": 12482,
+ "nodeType": "Block",
+ "src": "3204:44:57",
+ "statements": [
+ {
+ "expression": {
+ "id": 12480,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12478,
+ "name": "skipBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12460,
+ "src": "3222:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "hexValue": "31",
+ "id": 12479,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3232:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "3222:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12481,
+ "nodeType": "ExpressionStatement",
+ "src": "3222:11:57"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 12485
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12485,
+ "mutability": "mutable",
+ "name": "k",
+ "nodeType": "VariableDeclaration",
+ "scope": 12528,
+ "src": "3262:9:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12484,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3262:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12489,
+ "initialValue": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12488,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12486,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3274:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "id": 12487,
+ "name": "skipBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12460,
+ "src": "3278:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3274:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3262:23:57"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "id": 12497,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "baseExpression": {
+ "expression": {
+ "id": 12490,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "3303:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12491,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "rateProviders",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12380,
+ "src": "3303:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ "id": 12493,
+ "indexExpression": {
+ "id": 12492,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3328:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "3303:27:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 12495,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3348:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 12494,
+ "name": "IRateProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 428,
+ "src": "3334:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IRateProvider_$428_$",
+ "typeString": "type(contract IRateProvider)"
+ }
+ },
+ "id": 12496,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3334:16:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "src": "3303:47:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12527,
+ "nodeType": "IfStatement",
+ "src": "3299:433:57",
+ "trueBody": {
+ "id": 12526,
+ "nodeType": "Block",
+ "src": "3352:380:57",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12499,
+ "name": "k",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12485,
+ "src": "3392:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 12500,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "3395:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12501,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "rateProviders",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12380,
+ "src": "3395:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ "id": 12503,
+ "indexExpression": {
+ "id": 12502,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3420:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "3395:27:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 12504,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "3424:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12505,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenRateCacheDurations",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12383,
+ "src": "3424:34:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 12507,
+ "indexExpression": {
+ "id": 12506,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3459:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "3424:37:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12498,
+ "name": "_updateTokenRateCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12825,
+ "src": "3370:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_contract$_IRateProvider_$428_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,contract IRateProvider,uint256)"
+ }
+ },
+ "id": 12508,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3370:92:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12509,
+ "nodeType": "ExpressionStatement",
+ "src": "3370:92:57"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 12511,
+ "name": "k",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12485,
+ "src": "3507:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 12512,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "3510:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12513,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "rateProviders",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12380,
+ "src": "3510:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ "id": 12515,
+ "indexExpression": {
+ "id": 12514,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3535:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "3510:27:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 12516,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "3539:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12517,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenRateCacheDurations",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12383,
+ "src": "3539:34:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 12519,
+ "indexExpression": {
+ "id": 12518,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3574:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "3539:37:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12510,
+ "name": "TokenRateProviderSet",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12402,
+ "src": "3486:20:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_contract$_IRateProvider_$428_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,contract IRateProvider,uint256)"
+ }
+ },
+ "id": 12520,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3486:91:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12521,
+ "nodeType": "EmitStatement",
+ "src": "3481:96:57"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12523,
+ "name": "k",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12485,
+ "src": "3715:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12522,
+ "name": "_updateOldRate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12582,
+ "src": "3700:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 12524,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "3700:17:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12525,
+ "nodeType": "ExpressionStatement",
+ "src": "3700:17:57"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12471,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12467,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3136:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "expression": {
+ "expression": {
+ "id": 12468,
+ "name": "rateParams",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12404,
+ "src": "3140:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams memory"
+ }
+ },
+ "id": 12469,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12377,
+ "src": "3140:17:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 12470,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "3140:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "3136:28:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12529,
+ "initializationExpression": {
+ "assignments": [
+ 12464
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12464,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 12529,
+ "src": "3121:9:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12463,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "3121:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12466,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 12465,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "3133:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "3121:13:57"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 12473,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": false,
+ "src": "3166:3:57",
+ "subExpression": {
+ "id": 12472,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12464,
+ "src": "3166:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12474,
+ "nodeType": "ExpressionStatement",
+ "src": "3166:3:57"
+ },
+ "nodeType": "ForStatement",
+ "src": "3116:626:57"
+ }
+ ]
+ },
+ "id": 12531,
+ "implemented": true,
+ "kind": "constructor",
+ "modifiers": [],
+ "name": "",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12405,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12404,
+ "mutability": "mutable",
+ "name": "rateParams",
+ "nodeType": "VariableDeclaration",
+ "scope": 12531,
+ "src": "2491:29:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_memory_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams"
+ },
+ "typeName": {
+ "id": 12403,
+ "name": "RatesParams",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 12384,
+ "src": "2491:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_RatesParams_$12384_storage_ptr",
+ "typeString": "struct ComposableStablePoolRates.RatesParams"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "2490:31:57"
+ },
+ "returnParameters": {
+ "id": 12406,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "2522:0:57"
+ },
+ "scope": 13103,
+ "src": "2479:1269:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12538,
+ "nodeType": "Block",
+ "src": "4724:54:57",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12534,
+ "name": "_ensureNotInVaultContext",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12561,
+ "src": "4734:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$",
+ "typeString": "function ()"
+ }
+ },
+ "id": 12535,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4734:26:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12536,
+ "nodeType": "ExpressionStatement",
+ "src": "4734:26:57"
+ },
+ {
+ "id": 12537,
+ "nodeType": "PlaceholderStatement",
+ "src": "4770:1:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12532,
+ "nodeType": "StructuredDocumentation",
+ "src": "3754:932:57",
+ "text": " @dev Ensure we are not in a Vault context when this function is called, by attempting a no-op internal\n balance operation. If we are already in a Vault transaction (e.g., a swap, join, or exit), the Vault's\n reentrancy protection will cause this function to revert.\n The exact function call doesn't really matter: we're just trying to trigger the Vault reentrancy check\n (and not hurt anything in case it works). An empty operation array with no specific operation at all works\n for that purpose, and is also the least expensive in terms of gas and bytecode size.\n Use this modifier with any function that can cause a state change in a pool and is either public itself,\n or called by a public function *outside* a Vault operation (e.g., join, exit, or swap).\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference."
+ },
+ "id": 12539,
+ "name": "whenNotInVaultContext",
+ "nodeType": "ModifierDefinition",
+ "parameters": {
+ "id": 12533,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4721:2:57"
+ },
+ "src": "4691:87:57",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12560,
+ "nodeType": "Block",
+ "src": "4935:127:57",
+ "statements": [
+ {
+ "assignments": [
+ 12547
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12547,
+ "mutability": "mutable",
+ "name": "noop",
+ "nodeType": "VariableDeclaration",
+ "scope": 12560,
+ "src": "4945:34:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.UserBalanceOp[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12545,
+ "name": "IVault.UserBalanceOp",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1651,
+ "src": "4945:20:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_UserBalanceOp_$1651_storage_ptr",
+ "typeString": "struct IVault.UserBalanceOp"
+ }
+ },
+ "id": 12546,
+ "nodeType": "ArrayTypeName",
+ "src": "4945:22:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_storage_$dyn_storage_ptr",
+ "typeString": "struct IVault.UserBalanceOp[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12553,
+ "initialValue": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 12551,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5009:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 12550,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "4982:26:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_struct$_UserBalanceOp_$1651_memory_ptr_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (struct IVault.UserBalanceOp memory[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12548,
+ "name": "IVault.UserBalanceOp",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1651,
+ "src": "4986:20:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_UserBalanceOp_$1651_storage_ptr",
+ "typeString": "struct IVault.UserBalanceOp"
+ }
+ },
+ "id": 12549,
+ "nodeType": "ArrayTypeName",
+ "src": "4986:22:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_storage_$dyn_storage_ptr",
+ "typeString": "struct IVault.UserBalanceOp[]"
+ }
+ }
+ },
+ "id": 12552,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4982:29:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.UserBalanceOp memory[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4945:66:57"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12557,
+ "name": "noop",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12547,
+ "src": "5050:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.UserBalanceOp memory[] memory"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_array$_t_struct$_UserBalanceOp_$1651_memory_ptr_$dyn_memory_ptr",
+ "typeString": "struct IVault.UserBalanceOp memory[] memory"
+ }
+ ],
+ "expression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12554,
+ "name": "getVault",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 2059,
+ "src": "5021:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_contract$_IVault_$2021_$",
+ "typeString": "function () view returns (contract IVault)"
+ }
+ },
+ "id": 12555,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5021:10:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IVault_$2021",
+ "typeString": "contract IVault"
+ }
+ },
+ "id": 12556,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "manageUserBalance",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 1640,
+ "src": "5021:28:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_payable$_t_array$_t_struct$_UserBalanceOp_$1651_memory_ptr_$dyn_memory_ptr_$returns$__$",
+ "typeString": "function (struct IVault.UserBalanceOp memory[] memory) payable external"
+ }
+ },
+ "id": 12558,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5021:34:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12559,
+ "nodeType": "ExpressionStatement",
+ "src": "5021:34:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12540,
+ "nodeType": "StructuredDocumentation",
+ "src": "4784:102:57",
+ "text": " @dev Reverts if called in the middle of a Vault operation; has no effect otherwise."
+ },
+ "id": 12561,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_ensureNotInVaultContext",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12541,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4924:2:57"
+ },
+ "returnParameters": {
+ "id": 12542,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "4935:0:57"
+ },
+ "scope": 13103,
+ "src": "4891:171:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 12581,
+ "nodeType": "Block",
+ "src": "5233:113:57",
+ "statements": [
+ {
+ "assignments": [
+ 12568
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12568,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 12581,
+ "src": "5243:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 12567,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "5243:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12572,
+ "initialValue": {
+ "baseExpression": {
+ "id": 12569,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "5259:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12571,
+ "indexExpression": {
+ "id": 12570,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12564,
+ "src": "5276:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5259:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "5243:39:57"
+ },
+ {
+ "expression": {
+ "id": 12579,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 12573,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "5292:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12575,
+ "indexExpression": {
+ "id": 12574,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12564,
+ "src": "5309:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "5292:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 12576,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12568,
+ "src": "5318:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12577,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "updateOldRate",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4799,
+ "src": "5318:19:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (bytes32)"
+ }
+ },
+ "id": 12578,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5318:21:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "5292:47:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12580,
+ "nodeType": "ExpressionStatement",
+ "src": "5292:47:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12562,
+ "nodeType": "StructuredDocumentation",
+ "src": "5068:112:57",
+ "text": " @dev Updates the old rate for the token at `index` (including BPT). Assumes `index` is valid."
+ },
+ "id": 12582,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_updateOldRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12565,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12564,
+ "mutability": "mutable",
+ "name": "index",
+ "nodeType": "VariableDeclaration",
+ "scope": 12582,
+ "src": "5209:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12563,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5209:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5208:15:57"
+ },
+ "returnParameters": {
+ "id": 12566,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "5233:0:57"
+ },
+ "scope": 13103,
+ "src": "5185:161:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12596,
+ "nodeType": "Block",
+ "src": "5628:60:57",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 12592,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12585,
+ "src": "5674:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 12591,
+ "name": "_getTokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13623,
+ "src": "5659:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 12593,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5659:21:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12590,
+ "name": "_getTokenRate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12633,
+ "src": "5645:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 12594,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5645:36:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 12589,
+ "id": 12595,
+ "nodeType": "Return",
+ "src": "5638:43:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12583,
+ "nodeType": "StructuredDocumentation",
+ "src": "5352:203:57",
+ "text": " @dev Returns the rate for a given token. All token rates are fixed-point values with 18 decimals.\n If there is no rate provider for the provided token, it returns FixedPoint.ONE."
+ },
+ "functionSelector": "54dea00a",
+ "id": 12597,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getTokenRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12586,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12585,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 12597,
+ "src": "5582:12:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 12584,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "5582:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5581:14:57"
+ },
+ "returnParameters": {
+ "id": 12589,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12588,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12597,
+ "src": "5619:7:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12587,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5619:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5618:9:57"
+ },
+ "scope": 13103,
+ "src": "5560:128:57",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 12632,
+ "nodeType": "Block",
+ "src": "5772:641:57",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12607,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12604,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12599,
+ "src": "6182:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12605,
+ "name": "getBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13574,
+ "src": "6191:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 12606,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6191:13:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6182:22:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12612,
+ "nodeType": "IfStatement",
+ "src": "6178:74:57",
+ "trueBody": {
+ "id": 12611,
+ "nodeType": "Block",
+ "src": "6206:46:57",
+ "statements": [
+ {
+ "expression": {
+ "expression": {
+ "id": 12608,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "6227:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 12609,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ONE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6743,
+ "src": "6227:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 12603,
+ "id": 12610,
+ "nodeType": "Return",
+ "src": "6220:21:57"
+ }
+ ]
+ }
+ },
+ {
+ "assignments": [
+ 12614
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12614,
+ "mutability": "mutable",
+ "name": "tokenRateCache",
+ "nodeType": "VariableDeclaration",
+ "scope": 12632,
+ "src": "6262:22:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 12613,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6262:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12618,
+ "initialValue": {
+ "baseExpression": {
+ "id": 12615,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "6287:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12617,
+ "indexExpression": {
+ "id": 12616,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12599,
+ "src": "6304:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "6287:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6262:48:57"
+ },
+ {
+ "expression": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 12624,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12619,
+ "name": "tokenRateCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12614,
+ "src": "6327:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 12622,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6353:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 12621,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6345:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 12620,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6345:7:57",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 12623,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6345:10:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "6327:28:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 12627,
+ "name": "tokenRateCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12614,
+ "src": "6375:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12628,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getCurrentRate",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4766,
+ "src": "6375:29:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 12629,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6375:31:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12630,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "6327:79:57",
+ "trueExpression": {
+ "expression": {
+ "id": 12625,
+ "name": "FixedPoint",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 7158,
+ "src": "6358:10:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_FixedPoint_$7158_$",
+ "typeString": "type(library FixedPoint)"
+ }
+ },
+ "id": 12626,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ONE",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6743,
+ "src": "6358:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 12603,
+ "id": 12631,
+ "nodeType": "Return",
+ "src": "6320:86:57"
+ }
+ ]
+ },
+ "id": 12633,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getTokenRate",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12600,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12599,
+ "mutability": "mutable",
+ "name": "index",
+ "nodeType": "VariableDeclaration",
+ "scope": 12633,
+ "src": "5717:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12598,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5717:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5716:15:57"
+ },
+ "returnParameters": {
+ "id": 12603,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12602,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 12633,
+ "src": "5763:7:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12601,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "5763:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "5762:9:57"
+ },
+ "scope": 13103,
+ "src": "5694:719:57",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12686,
+ "nodeType": "Block",
+ "src": "6786:383:57",
+ "statements": [
+ {
+ "assignments": [
+ 12648
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12648,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 12686,
+ "src": "6796:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 12647,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6796:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12654,
+ "initialValue": {
+ "baseExpression": {
+ "id": 12649,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "6812:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12653,
+ "indexExpression": {
+ "arguments": [
+ {
+ "id": 12651,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12636,
+ "src": "6844:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 12650,
+ "name": "_getTokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13623,
+ "src": "6829:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 12652,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6829:21:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "6812:39:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6796:55:57"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 12661,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12656,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12648,
+ "src": "6969:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 12659,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6986:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 12658,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "6978:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 12657,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "6978:7:57",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 12660,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6978:10:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "6969:19:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 12662,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "6990:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 12663,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "TOKEN_DOES_NOT_HAVE_RATE_PROVIDER",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 737,
+ "src": "6990:40:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12655,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "6960:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 12664,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6960:71:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12665,
+ "nodeType": "ExpressionStatement",
+ "src": "6960:71:57"
+ },
+ {
+ "expression": {
+ "id": 12670,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12666,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12639,
+ "src": "7042:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 12667,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12648,
+ "src": "7049:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12668,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getCurrentRate",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4766,
+ "src": "7049:20:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 12669,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7049:22:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7042:29:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12671,
+ "nodeType": "ExpressionStatement",
+ "src": "7042:29:57"
+ },
+ {
+ "expression": {
+ "id": 12676,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 12672,
+ "name": "oldRate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12641,
+ "src": "7081:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 12673,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12648,
+ "src": "7091:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12674,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getOldRate",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4781,
+ "src": "7091:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 12675,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7091:18:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7081:28:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12677,
+ "nodeType": "ExpressionStatement",
+ "src": "7081:28:57"
+ },
+ {
+ "expression": {
+ "id": 12684,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "components": [
+ {
+ "id": 12678,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12643,
+ "src": "7120:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12679,
+ "name": "expires",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12645,
+ "src": "7130:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "id": 12680,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "TupleExpression",
+ "src": "7119:19:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 12681,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12648,
+ "src": "7141:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12682,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getTimestamps",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4839,
+ "src": "7141:19:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256,uint256)"
+ }
+ },
+ "id": 12683,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "7141:21:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "src": "7119:43:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12685,
+ "nodeType": "ExpressionStatement",
+ "src": "7119:43:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12634,
+ "nodeType": "StructuredDocumentation",
+ "src": "6419:146:57",
+ "text": " @dev Returns the cached value for token's rate. Reverts if the token doesn't belong to the pool or has no rate\n provider."
+ },
+ "functionSelector": "7f1260d1",
+ "id": 12687,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getTokenRateCache",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12637,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12636,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 12687,
+ "src": "6597:12:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 12635,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "6597:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6596:14:57"
+ },
+ "returnParameters": {
+ "id": 12646,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12639,
+ "mutability": "mutable",
+ "name": "rate",
+ "nodeType": "VariableDeclaration",
+ "scope": 12687,
+ "src": "6671:12:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12638,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6671:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12641,
+ "mutability": "mutable",
+ "name": "oldRate",
+ "nodeType": "VariableDeclaration",
+ "scope": 12687,
+ "src": "6697:15:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12640,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6697:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12643,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 12687,
+ "src": "6726:16:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12642,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6726:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12645,
+ "mutability": "mutable",
+ "name": "expires",
+ "nodeType": "VariableDeclaration",
+ "scope": 12687,
+ "src": "6756:15:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12644,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6756:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "6657:124:57"
+ },
+ "scope": 13103,
+ "src": "6570:599:57",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 12737,
+ "nodeType": "Block",
+ "src": "8051:325:57",
+ "statements": [
+ {
+ "assignments": [
+ 12700
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12700,
+ "mutability": "mutable",
+ "name": "index",
+ "nodeType": "VariableDeclaration",
+ "scope": 12737,
+ "src": "8061:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12699,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "8061:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12704,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12702,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12690,
+ "src": "8092:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 12701,
+ "name": "_getTokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13623,
+ "src": "8077:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 12703,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8077:21:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "8061:37:57"
+ },
+ {
+ "assignments": [
+ 12706
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12706,
+ "mutability": "mutable",
+ "name": "provider",
+ "nodeType": "VariableDeclaration",
+ "scope": 12737,
+ "src": "8108:22:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 12705,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "8108:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12710,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12708,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12700,
+ "src": "8150:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12707,
+ "name": "_getRateProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13983,
+ "src": "8133:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_contract$_IRateProvider_$428_$",
+ "typeString": "function (uint256) view returns (contract IRateProvider)"
+ }
+ },
+ "id": 12709,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8133:23:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "8108:48:57"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 12720,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 12714,
+ "name": "provider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12706,
+ "src": "8183:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ ],
+ "id": 12713,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "8175:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 12712,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8175:7:57",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 12715,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8175:17:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 12718,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "8204:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 12717,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "8196:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 12716,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "8196:7:57",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 12719,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8196:10:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "8175:31:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 12721,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "8208:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 12722,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "TOKEN_DOES_NOT_HAVE_RATE_PROVIDER",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 737,
+ "src": "8208:40:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12711,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "8166:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 12723,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8166:83:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12724,
+ "nodeType": "ExpressionStatement",
+ "src": "8166:83:57"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12726,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12700,
+ "src": "8281:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12727,
+ "name": "provider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12706,
+ "src": "8288:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ {
+ "id": 12728,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12692,
+ "src": "8298:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12725,
+ "name": "_updateTokenRateCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12825,
+ "src": "8259:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_contract$_IRateProvider_$428_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,contract IRateProvider,uint256)"
+ }
+ },
+ "id": 12729,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8259:48:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12730,
+ "nodeType": "ExpressionStatement",
+ "src": "8259:48:57"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 12732,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12700,
+ "src": "8343:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12733,
+ "name": "provider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12706,
+ "src": "8350:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ {
+ "id": 12734,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12692,
+ "src": "8360:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12731,
+ "name": "TokenRateProviderSet",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12402,
+ "src": "8322:20:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_contract$_IRateProvider_$428_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,contract IRateProvider,uint256)"
+ }
+ },
+ "id": 12735,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "8322:47:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12736,
+ "nodeType": "EmitStatement",
+ "src": "8317:52:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12688,
+ "nodeType": "StructuredDocumentation",
+ "src": "7175:760:57",
+ "text": " @dev Sets a new duration for a token rate cache.\n Note this function also updates the current cached value.\n This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a\n join or an exit because the state of the pool could be out of sync with the state of the Vault.\n It will also revert if there was no rate provider set initially.\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference.\n @param duration Number of seconds until the current token rate is fetched again."
+ },
+ "functionSelector": "f4b7964d",
+ "id": 12738,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 12695,
+ "modifierName": {
+ "id": 12694,
+ "name": "authenticate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 4992,
+ "src": "8016:12:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "8016:12:57"
+ },
+ {
+ "id": 12697,
+ "modifierName": {
+ "id": 12696,
+ "name": "whenNotInVaultContext",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12539,
+ "src": "8029:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "8029:21:57"
+ }
+ ],
+ "name": "setTokenRateCacheDuration",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12693,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12690,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 12738,
+ "src": "7975:12:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 12689,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "7975:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12692,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 12738,
+ "src": "7989:16:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12691,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "7989:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "7974:32:57"
+ },
+ "returnParameters": {
+ "id": 12698,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "8051:0:57"
+ },
+ "scope": 13103,
+ "src": "7940:436:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 12786,
+ "nodeType": "Block",
+ "src": "9076:330:57",
+ "statements": [
+ {
+ "assignments": [
+ 12747
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12747,
+ "mutability": "mutable",
+ "name": "index",
+ "nodeType": "VariableDeclaration",
+ "scope": 12786,
+ "src": "9086:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12746,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9086:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12751,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12749,
+ "name": "token",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12741,
+ "src": "9117:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 12748,
+ "name": "_getTokenIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13623,
+ "src": "9102:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 12750,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9102:21:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9086:37:57"
+ },
+ {
+ "assignments": [
+ 12753
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12753,
+ "mutability": "mutable",
+ "name": "provider",
+ "nodeType": "VariableDeclaration",
+ "scope": 12786,
+ "src": "9134:22:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 12752,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "9134:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12757,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12755,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12747,
+ "src": "9176:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12754,
+ "name": "_getRateProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13983,
+ "src": "9159:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_contract$_IRateProvider_$428_$",
+ "typeString": "function (uint256) view returns (contract IRateProvider)"
+ }
+ },
+ "id": 12756,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9159:23:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9134:48:57"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ },
+ "id": 12767,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "arguments": [
+ {
+ "id": 12761,
+ "name": "provider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12753,
+ "src": "9209:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ ],
+ "id": 12760,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "9201:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 12759,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9201:7:57",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 12762,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9201:17:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address",
+ "typeString": "address"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 12765,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "9230:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 12764,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "9222:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_address_$",
+ "typeString": "type(address)"
+ },
+ "typeName": {
+ "id": 12763,
+ "name": "address",
+ "nodeType": "ElementaryTypeName",
+ "src": "9222:7:57",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 12766,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9222:10:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_address_payable",
+ "typeString": "address payable"
+ }
+ },
+ "src": "9201:31:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 12768,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "9234:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 12769,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "TOKEN_DOES_NOT_HAVE_RATE_PROVIDER",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 737,
+ "src": "9234:40:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12758,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "9192:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 12770,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9192:83:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12771,
+ "nodeType": "ExpressionStatement",
+ "src": "9192:83:57"
+ },
+ {
+ "assignments": [
+ 12773
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12773,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 12786,
+ "src": "9285:16:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12772,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9285:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12779,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "baseExpression": {
+ "id": 12774,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "9304:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12776,
+ "indexExpression": {
+ "id": 12775,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12747,
+ "src": "9321:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "9304:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12777,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getDuration",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4814,
+ "src": "9304:35:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 12778,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9304:37:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9285:56:57"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12781,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12747,
+ "src": "9373:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12782,
+ "name": "provider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12753,
+ "src": "9380:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ {
+ "id": 12783,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12773,
+ "src": "9390:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12780,
+ "name": "_updateTokenRateCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12825,
+ "src": "9351:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_contract$_IRateProvider_$428_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,contract IRateProvider,uint256)"
+ }
+ },
+ "id": 12784,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9351:48:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12785,
+ "nodeType": "ExpressionStatement",
+ "src": "9351:48:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12739,
+ "nodeType": "StructuredDocumentation",
+ "src": "8382:614:57",
+ "text": " @dev Forces a rate cache hit for a token.\n This function will revert when called within a Vault context (i.e. in the middle of a join or an exit).\n This function depends on `getRate` via the rate provider, which may be calculated incorrectly in the middle of a\n join or an exit because the state of the pool could be out of sync with the state of the Vault.\n It will also revert if the requested token does not have an associated rate provider.\n See https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345 for reference."
+ },
+ "functionSelector": "2df2c7c0",
+ "id": 12787,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [
+ {
+ "id": 12744,
+ "modifierName": {
+ "id": 12743,
+ "name": "whenNotInVaultContext",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12539,
+ "src": "9054:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_modifier$__$",
+ "typeString": "modifier ()"
+ }
+ },
+ "nodeType": "ModifierInvocation",
+ "src": "9054:21:57"
+ }
+ ],
+ "name": "updateTokenRateCache",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12742,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12741,
+ "mutability": "mutable",
+ "name": "token",
+ "nodeType": "VariableDeclaration",
+ "scope": 12787,
+ "src": "9031:12:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 12740,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "9031:6:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9030:14:57"
+ },
+ "returnParameters": {
+ "id": 12745,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "9076:0:57"
+ },
+ "scope": 13103,
+ "src": "9001:405:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "external"
+ },
+ {
+ "body": {
+ "id": 12824,
+ "nodeType": "Block",
+ "src": "9725:229:57",
+ "statements": [
+ {
+ "assignments": [
+ 12798
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12798,
+ "mutability": "mutable",
+ "name": "rate",
+ "nodeType": "VariableDeclaration",
+ "scope": 12824,
+ "src": "9735:12:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12797,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9735:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12802,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 12799,
+ "name": "provider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12792,
+ "src": "9750:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 12800,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getRate",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 427,
+ "src": "9750:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
+ "typeString": "function () view external returns (uint256)"
+ }
+ },
+ "id": 12801,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9750:18:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9735:33:57"
+ },
+ {
+ "assignments": [
+ 12804
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12804,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 12824,
+ "src": "9778:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 12803,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "9778:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12808,
+ "initialValue": {
+ "baseExpression": {
+ "id": 12805,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "9794:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12807,
+ "indexExpression": {
+ "id": 12806,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12790,
+ "src": "9811:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "9794:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "9778:39:57"
+ },
+ {
+ "expression": {
+ "id": 12817,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 12809,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "9828:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12811,
+ "indexExpression": {
+ "id": 12810,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12790,
+ "src": "9845:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "9828:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "id": 12814,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12798,
+ "src": "9882:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12815,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12794,
+ "src": "9888:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 12812,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12804,
+ "src": "9854:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12813,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "updateRateAndDuration",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4882,
+ "src": "9854:27:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$_t_uint256_$_t_uint256_$returns$_t_bytes32_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32,uint256,uint256) view returns (bytes32)"
+ }
+ },
+ "id": 12816,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9854:43:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "9828:69:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12818,
+ "nodeType": "ExpressionStatement",
+ "src": "9828:69:57"
+ },
+ {
+ "eventCall": {
+ "arguments": [
+ {
+ "id": 12820,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12790,
+ "src": "9935:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "id": 12821,
+ "name": "rate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12798,
+ "src": "9942:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12819,
+ "name": "TokenRateCacheUpdated",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12394,
+ "src": "9913:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256)"
+ }
+ },
+ "id": 12822,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "9913:34:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12823,
+ "nodeType": "EmitStatement",
+ "src": "9908:39:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12788,
+ "nodeType": "StructuredDocumentation",
+ "src": "9412:173:57",
+ "text": " @dev Internal function to update a token rate cache for a known provider and duration.\n It trusts the given values, and does not perform any checks."
+ },
+ "id": 12825,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_updateTokenRateCache",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12795,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12790,
+ "mutability": "mutable",
+ "name": "index",
+ "nodeType": "VariableDeclaration",
+ "scope": 12825,
+ "src": "9630:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12789,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9630:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12792,
+ "mutability": "mutable",
+ "name": "provider",
+ "nodeType": "VariableDeclaration",
+ "scope": 12825,
+ "src": "9653:22:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 12791,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "9653:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12794,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 12825,
+ "src": "9685:16:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12793,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "9685:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "9620:87:57"
+ },
+ "returnParameters": {
+ "id": 12796,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "9725:0:57"
+ },
+ "scope": 13103,
+ "src": "9590:364:57",
+ "stateMutability": "nonpayable",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12850,
+ "nodeType": "Block",
+ "src": "10080:161:57",
+ "statements": [
+ {
+ "assignments": [
+ 12830
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12830,
+ "mutability": "mutable",
+ "name": "totalTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 12850,
+ "src": "10090:19:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12829,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10090:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12833,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12831,
+ "name": "_getTotalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 13554
+ ],
+ "referencedDeclaration": 13554,
+ "src": "10112:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 12832,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10112:17:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10090:39:57"
+ },
+ {
+ "body": {
+ "id": 12848,
+ "nodeType": "Block",
+ "src": "10181:54:57",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12845,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12835,
+ "src": "10222:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12844,
+ "name": "_cacheTokenRateIfNecessary",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12900,
+ "src": "10195:26:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 12846,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10195:29:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12847,
+ "nodeType": "ExpressionStatement",
+ "src": "10195:29:57"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12840,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12838,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12835,
+ "src": "10159:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 12839,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12830,
+ "src": "10163:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "10159:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12849,
+ "initializationExpression": {
+ "assignments": [
+ 12835
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12835,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 12849,
+ "src": "10144:9:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12834,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10144:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12837,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 12836,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10156:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10144:13:57"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 12842,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "10176:3:57",
+ "subExpression": {
+ "id": 12841,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12835,
+ "src": "10178:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12843,
+ "nodeType": "ExpressionStatement",
+ "src": "10176:3:57"
+ },
+ "nodeType": "ForStatement",
+ "src": "10139:96:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12826,
+ "nodeType": "StructuredDocumentation",
+ "src": "9960:67:57",
+ "text": " @dev Caches the rates of all tokens if necessary"
+ },
+ "id": 12851,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_cacheTokenRatesIfNecessary",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12827,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10068:2:57"
+ },
+ "returnParameters": {
+ "id": 12828,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10080:0:57"
+ },
+ "scope": 13103,
+ "src": "10032:209:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12899,
+ "nodeType": "Block",
+ "src": "10426:853:57",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12860,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12857,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12854,
+ "src": "10868:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12858,
+ "name": "getBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13574,
+ "src": "10877:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 12859,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10877:13:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "10868:22:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12862,
+ "nodeType": "IfStatement",
+ "src": "10864:35:57",
+ "trueBody": {
+ "functionReturnParameters": 12856,
+ "id": 12861,
+ "nodeType": "Return",
+ "src": "10892:7:57"
+ }
+ },
+ {
+ "assignments": [
+ 12864
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12864,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 12899,
+ "src": "10909:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 12863,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "10909:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12868,
+ "initialValue": {
+ "baseExpression": {
+ "id": 12865,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "10925:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12867,
+ "indexExpression": {
+ "id": 12866,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12854,
+ "src": "10942:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "10925:23:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10909:39:57"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 12874,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12869,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12864,
+ "src": "10962:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 12872,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "10979:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 12871,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "ElementaryTypeNameExpression",
+ "src": "10971:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_bytes32_$",
+ "typeString": "type(bytes32)"
+ },
+ "typeName": {
+ "id": 12870,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "10971:7:57",
+ "typeDescriptions": {}
+ }
+ },
+ "id": 12873,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "10971:10:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "10962:19:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12898,
+ "nodeType": "IfStatement",
+ "src": "10958:315:57",
+ "trueBody": {
+ "id": 12897,
+ "nodeType": "Block",
+ "src": "10983:290:57",
+ "statements": [
+ {
+ "assignments": [
+ 12876,
+ 12878
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12876,
+ "mutability": "mutable",
+ "name": "duration",
+ "nodeType": "VariableDeclaration",
+ "scope": 12897,
+ "src": "10998:16:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12875,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10998:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 12878,
+ "mutability": "mutable",
+ "name": "expires",
+ "nodeType": "VariableDeclaration",
+ "scope": 12897,
+ "src": "11016:15:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12877,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11016:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12882,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 12879,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12864,
+ "src": "11035:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 12880,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getTimestamps",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4839,
+ "src": "11035:19:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256,uint256)"
+ }
+ },
+ "id": 12881,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11035:21:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
+ "typeString": "tuple(uint256,uint256)"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "10997:59:57"
+ },
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12886,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "id": 12883,
+ "name": "block",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -4,
+ "src": "11074:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_magic_block",
+ "typeString": "block"
+ }
+ },
+ "id": 12884,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "timestamp",
+ "nodeType": "MemberAccess",
+ "src": "11074:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "id": 12885,
+ "name": "expires",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12878,
+ "src": "11092:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "11074:25:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12896,
+ "nodeType": "IfStatement",
+ "src": "11070:193:57",
+ "trueBody": {
+ "id": 12895,
+ "nodeType": "Block",
+ "src": "11101:162:57",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12888,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12854,
+ "src": "11207:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [
+ {
+ "id": 12890,
+ "name": "index",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12854,
+ "src": "11231:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12889,
+ "name": "_getRateProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13983,
+ "src": "11214:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_contract$_IRateProvider_$428_$",
+ "typeString": "function (uint256) view returns (contract IRateProvider)"
+ }
+ },
+ "id": 12891,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11214:23:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ {
+ "id": 12892,
+ "name": "duration",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12876,
+ "src": "11239:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12887,
+ "name": "_updateTokenRateCache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12825,
+ "src": "11185:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_contract$_IRateProvider_$428_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,contract IRateProvider,uint256)"
+ }
+ },
+ "id": 12893,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11185:63:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12894,
+ "nodeType": "ExpressionStatement",
+ "src": "11185:63:57"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12852,
+ "nodeType": "StructuredDocumentation",
+ "src": "10247:114:57",
+ "text": " @dev Caches the rate for a token if necessary. It ignores the call if there is no provider set."
+ },
+ "id": 12900,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_cacheTokenRateIfNecessary",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12855,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12854,
+ "mutability": "mutable",
+ "name": "index",
+ "nodeType": "VariableDeclaration",
+ "scope": 12900,
+ "src": "10402:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12853,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "10402:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "10401:15:57"
+ },
+ "returnParameters": {
+ "id": 12856,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "10426:0:57"
+ },
+ "scope": 13103,
+ "src": "10366:913:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 12928,
+ "nodeType": "Block",
+ "src": "11550:174:57",
+ "statements": [
+ {
+ "assignments": [
+ 12904
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12904,
+ "mutability": "mutable",
+ "name": "totalTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 12928,
+ "src": "11560:19:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12903,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11560:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12907,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12905,
+ "name": "_getTotalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 13554
+ ],
+ "referencedDeclaration": 13554,
+ "src": "11582:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 12906,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11582:17:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "11560:39:57"
+ },
+ {
+ "body": {
+ "id": 12926,
+ "nodeType": "Block",
+ "src": "11651:67:57",
+ "statements": [
+ {
+ "condition": {
+ "arguments": [
+ {
+ "id": 12919,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12909,
+ "src": "11686:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12918,
+ "name": "_hasRateProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13999,
+ "src": "11669:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$",
+ "typeString": "function (uint256) view returns (bool)"
+ }
+ },
+ "id": 12920,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11669:19:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12925,
+ "nodeType": "IfStatement",
+ "src": "11665:42:57",
+ "trueBody": {
+ "expression": {
+ "arguments": [
+ {
+ "id": 12922,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12909,
+ "src": "11705:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12921,
+ "name": "_updateOldRate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12582,
+ "src": "11690:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$returns$__$",
+ "typeString": "function (uint256)"
+ }
+ },
+ "id": 12923,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "11690:17:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 12924,
+ "nodeType": "ExpressionStatement",
+ "src": "11690:17:57"
+ }
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12914,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12912,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12909,
+ "src": "11629:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 12913,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12904,
+ "src": "11633:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "11629:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12927,
+ "initializationExpression": {
+ "assignments": [
+ 12909
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12909,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 12927,
+ "src": "11614:9:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12908,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11614:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12911,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 12910,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "11626:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "11614:13:57"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 12916,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "11646:3:57",
+ "subExpression": {
+ "id": 12915,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12909,
+ "src": "11648:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12917,
+ "nodeType": "ExpressionStatement",
+ "src": "11646:3:57"
+ },
+ "nodeType": "ForStatement",
+ "src": "11609:109:57"
+ }
+ ]
+ },
+ "id": 12929,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_updateOldRates",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12901,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "11538:2:57"
+ },
+ "returnParameters": {
+ "id": 12902,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "11550:0:57"
+ },
+ "scope": 13103,
+ "src": "11514:210:57",
+ "stateMutability": "nonpayable",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 13001,
+ "nodeType": "Block",
+ "src": "12030:496:57",
+ "statements": [
+ {
+ "assignments": [
+ 12940
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12940,
+ "mutability": "mutable",
+ "name": "totalTokensWithoutBpt",
+ "nodeType": "VariableDeclaration",
+ "scope": 13001,
+ "src": "12040:29:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12939,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12040:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12943,
+ "initialValue": {
+ "expression": {
+ "id": 12941,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12933,
+ "src": "12072:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 12942,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "12072:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12040:47:57"
+ },
+ {
+ "assignments": [
+ 12948
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12948,
+ "mutability": "mutable",
+ "name": "adjustedBalances",
+ "nodeType": "VariableDeclaration",
+ "scope": 13001,
+ "src": "12097:33:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12946,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12097:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12947,
+ "nodeType": "ArrayTypeName",
+ "src": "12097:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12954,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 12952,
+ "name": "totalTokensWithoutBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12940,
+ "src": "12147:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12951,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "12133:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12949,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12137:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12950,
+ "nodeType": "ArrayTypeName",
+ "src": "12137:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 12953,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12133:36:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12097:72:57"
+ },
+ {
+ "body": {
+ "id": 12997,
+ "nodeType": "Block",
+ "src": "12232:254:57",
+ "statements": [
+ {
+ "assignments": [
+ 12966
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12966,
+ "mutability": "mutable",
+ "name": "skipBptIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 12997,
+ "src": "12246:20:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12965,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12246:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12976,
+ "initialValue": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12970,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12967,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12269:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">=",
+ "rightExpression": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 12968,
+ "name": "getBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13574,
+ "src": "12274:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 12969,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12274:13:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "12269:18:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "id": 12974,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12298:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12975,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "12269:30:57",
+ "trueExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12973,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12971,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12290:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "+",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 12972,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12294:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "12290:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12246:53:57"
+ },
+ {
+ "expression": {
+ "id": 12995,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 12977,
+ "name": "adjustedBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12948,
+ "src": "12313:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 12979,
+ "indexExpression": {
+ "id": 12978,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12330:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "12313:19:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "arguments": [
+ {
+ "id": 12981,
+ "name": "skipBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12966,
+ "src": "12352:12:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 12980,
+ "name": "_hasRateProvider",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13999,
+ "src": "12335:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$",
+ "typeString": "function (uint256) view returns (bool)"
+ }
+ },
+ "id": 12982,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12335:30:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "baseExpression": {
+ "id": 12991,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12933,
+ "src": "12464:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 12993,
+ "indexExpression": {
+ "id": 12992,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12473:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "12464:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12994,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "12335:140:57",
+ "trueExpression": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "id": 12984,
+ "name": "balances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12933,
+ "src": "12401:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 12986,
+ "indexExpression": {
+ "id": 12985,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12410:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "12401:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "baseExpression": {
+ "id": 12987,
+ "name": "_tokenRateCaches",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12388,
+ "src": "12414:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_mapping$_t_uint256_$_t_bytes32_$",
+ "typeString": "mapping(uint256 => bytes32)"
+ }
+ },
+ "id": 12989,
+ "indexExpression": {
+ "id": 12988,
+ "name": "skipBptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12966,
+ "src": "12431:12:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "12414:30:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "id": 12983,
+ "name": "_adjustedBalance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13026,
+ "src": "12384:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_bytes32_$returns$_t_uint256_$",
+ "typeString": "function (uint256,bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 12990,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12384:61:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "12313:162:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12996,
+ "nodeType": "ExpressionStatement",
+ "src": "12313:162:57"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 12961,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 12959,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12200:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 12960,
+ "name": "totalTokensWithoutBpt",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12940,
+ "src": "12204:21:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "12200:25:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 12998,
+ "initializationExpression": {
+ "assignments": [
+ 12956
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 12956,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 12998,
+ "src": "12185:9:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 12955,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12185:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 12958,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 12957,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "12197:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "12185:13:57"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 12963,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "12227:3:57",
+ "subExpression": {
+ "id": 12962,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12956,
+ "src": "12229:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12964,
+ "nodeType": "ExpressionStatement",
+ "src": "12227:3:57"
+ },
+ "nodeType": "ForStatement",
+ "src": "12180:306:57"
+ },
+ {
+ "expression": {
+ "id": 12999,
+ "name": "adjustedBalances",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12948,
+ "src": "12503:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "functionReturnParameters": 12938,
+ "id": 13000,
+ "nodeType": "Return",
+ "src": "12496:23:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 12930,
+ "nodeType": "StructuredDocumentation",
+ "src": "11730:197:57",
+ "text": " @dev Apply the token ratios to a set of balances, only if they have a rate provider.\n The `balances` array is assumed to not include BPT to ensure that token indices align."
+ },
+ "id": 13002,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_getAdjustedBalances",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 12934,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12933,
+ "mutability": "mutable",
+ "name": "balances",
+ "nodeType": "VariableDeclaration",
+ "scope": 13002,
+ "src": "11962:25:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12931,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "11962:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12932,
+ "nodeType": "ArrayTypeName",
+ "src": "11962:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "11961:27:57"
+ },
+ "returnParameters": {
+ "id": 12938,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 12937,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 13002,
+ "src": "12012:16:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 12935,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12012:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 12936,
+ "nodeType": "ArrayTypeName",
+ "src": "12012:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12011:18:57"
+ },
+ "scope": 13103,
+ "src": "11932:594:57",
+ "stateMutability": "view",
+ "virtual": false,
+ "visibility": "internal"
+ },
+ {
+ "body": {
+ "id": 13025,
+ "nodeType": "Block",
+ "src": "12715:99:57",
+ "statements": [
+ {
+ "expression": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 13015,
+ "name": "balance",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13004,
+ "src": "12754:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 13016,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13006,
+ "src": "12763:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 13017,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getOldRate",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4781,
+ "src": "12763:16:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 13018,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12763:18:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 13013,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "12745:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 13014,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mul",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8687,
+ "src": "12745:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 13019,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12745:37:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "expression": {
+ "id": 13020,
+ "name": "cache",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13006,
+ "src": "12784:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "id": 13021,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "getCurrentRate",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 4766,
+ "src": "12784:20:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_uint256_$bound_to$_t_bytes32_$",
+ "typeString": "function (bytes32) pure returns (uint256)"
+ }
+ },
+ "id": 13022,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12784:22:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 13011,
+ "name": "Math",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 8768,
+ "src": "12732:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Math_$8768_$",
+ "typeString": "type(library Math)"
+ }
+ },
+ "id": 13012,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "divDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 8732,
+ "src": "12732:12:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 13023,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "12732:75:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "functionReturnParameters": 13010,
+ "id": 13024,
+ "nodeType": "Return",
+ "src": "12725:82:57"
+ }
+ ]
+ },
+ "id": 13026,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_adjustedBalance",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 13007,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 13004,
+ "mutability": "mutable",
+ "name": "balance",
+ "nodeType": "VariableDeclaration",
+ "scope": 13026,
+ "src": "12652:15:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13003,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12652:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13006,
+ "mutability": "mutable",
+ "name": "cache",
+ "nodeType": "VariableDeclaration",
+ "scope": 13026,
+ "src": "12669:13:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 13005,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "12669:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12651:32:57"
+ },
+ "returnParameters": {
+ "id": 13010,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 13009,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 13026,
+ "src": "12706:7:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13008,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "12706:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "12705:9:57"
+ },
+ "scope": 13103,
+ "src": "12626:188:57",
+ "stateMutability": "pure",
+ "virtual": false,
+ "visibility": "private"
+ },
+ {
+ "baseFunctions": [
+ 3519
+ ],
+ "body": {
+ "id": 13077,
+ "nodeType": "Block",
+ "src": "13019:398:57",
+ "statements": [
+ {
+ "assignments": [
+ 13035
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 13035,
+ "mutability": "mutable",
+ "name": "totalTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 13077,
+ "src": "13126:19:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13034,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13126:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 13038,
+ "initialValue": {
+ "arguments": [],
+ "expression": {
+ "argumentTypes": [],
+ "id": 13036,
+ "name": "_getTotalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 13554
+ ],
+ "referencedDeclaration": 13554,
+ "src": "13148:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
+ "typeString": "function () view returns (uint256)"
+ }
+ },
+ "id": 13037,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13148:17:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13126:39:57"
+ },
+ {
+ "assignments": [
+ 13043
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 13043,
+ "mutability": "mutable",
+ "name": "scalingFactors",
+ "nodeType": "VariableDeclaration",
+ "scope": 13077,
+ "src": "13175:31:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 13041,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13175:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13042,
+ "nodeType": "ArrayTypeName",
+ "src": "13175:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 13049,
+ "initialValue": {
+ "arguments": [
+ {
+ "id": 13047,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13035,
+ "src": "13223:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 13046,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "13209:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (uint256[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 13044,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13213:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13045,
+ "nodeType": "ArrayTypeName",
+ "src": "13213:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ }
+ },
+ "id": 13048,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13209:26:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13175:60:57"
+ },
+ {
+ "body": {
+ "id": 13073,
+ "nodeType": "Block",
+ "src": "13288:91:57",
+ "statements": [
+ {
+ "expression": {
+ "id": 13071,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 13060,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13043,
+ "src": "13302:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "id": 13062,
+ "indexExpression": {
+ "id": 13061,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13051,
+ "src": "13317:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": true,
+ "nodeType": "IndexAccess",
+ "src": "13302:17:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "arguments": [
+ {
+ "id": 13068,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13051,
+ "src": "13365:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 13067,
+ "name": "_getTokenRate",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 12633,
+ "src": "13351:13:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 13069,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13351:16:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "arguments": [
+ {
+ "id": 13064,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13051,
+ "src": "13340:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 13063,
+ "name": "_getScalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13888,
+ "src": "13322:17:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_uint256_$",
+ "typeString": "function (uint256) view returns (uint256)"
+ }
+ },
+ "id": 13065,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13322:20:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13066,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "mulDown",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 6845,
+ "src": "13322:28:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$",
+ "typeString": "function (uint256,uint256) pure returns (uint256)"
+ }
+ },
+ "id": 13070,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13322:46:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "13302:66:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13072,
+ "nodeType": "ExpressionStatement",
+ "src": "13302:66:57"
+ }
+ ]
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13056,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13054,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13051,
+ "src": "13266:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 13055,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13035,
+ "src": "13270:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "13266:15:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 13074,
+ "initializationExpression": {
+ "assignments": [
+ 13051
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 13051,
+ "mutability": "mutable",
+ "name": "i",
+ "nodeType": "VariableDeclaration",
+ "scope": 13074,
+ "src": "13251:9:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13050,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13251:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 13053,
+ "initialValue": {
+ "hexValue": "30",
+ "id": 13052,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "13263:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "13251:13:57"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 13058,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "++",
+ "prefix": true,
+ "src": "13283:3:57",
+ "subExpression": {
+ "id": 13057,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13051,
+ "src": "13285:1:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13059,
+ "nodeType": "ExpressionStatement",
+ "src": "13283:3:57"
+ },
+ "nodeType": "ForStatement",
+ "src": "13246:133:57"
+ },
+ {
+ "expression": {
+ "id": 13075,
+ "name": "scalingFactors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13043,
+ "src": "13396:14:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[] memory"
+ }
+ },
+ "functionReturnParameters": 13033,
+ "id": 13076,
+ "nodeType": "Return",
+ "src": "13389:21:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 13027,
+ "nodeType": "StructuredDocumentation",
+ "src": "12844:85:57",
+ "text": " @dev Overrides scaling factor getter to compute the tokens' rates."
+ },
+ "id": 13078,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_scalingFactors",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 13029,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "12983:8:57"
+ },
+ "parameters": {
+ "id": 13028,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "12958:2:57"
+ },
+ "returnParameters": {
+ "id": 13033,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 13032,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 13078,
+ "src": "13001:16:57",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
+ "typeString": "uint256[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 13030,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "13001:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13031,
+ "nodeType": "ArrayTypeName",
+ "src": "13001:9:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
+ "typeString": "uint256[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13000:18:57"
+ },
+ "scope": 13103,
+ "src": "12934:483:57",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ },
+ {
+ "baseFunctions": [
+ 2907
+ ],
+ "body": {
+ "id": 13101,
+ "nodeType": "Block",
+ "src": "13627:128:57",
+ "statements": [
+ {
+ "expression": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 13099,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "components": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "id": 13093,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13087,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13081,
+ "src": "13645:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "==",
+ "rightExpression": {
+ "arguments": [
+ {
+ "expression": {
+ "expression": {
+ "id": 13089,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "13669:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolRates_$13103",
+ "typeString": "contract ComposableStablePoolRates"
+ }
+ },
+ "id": 13090,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "setTokenRateCacheDuration",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 12738,
+ "src": "13669:30:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_external_nonpayable$_t_contract$_IERC20_$1152_$_t_uint256_$returns$__$",
+ "typeString": "function (contract IERC20,uint256) external"
+ }
+ },
+ "id": 13091,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "memberName": "selector",
+ "nodeType": "MemberAccess",
+ "src": "13669:39:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes4",
+ "typeString": "bytes4"
+ }
+ ],
+ "id": 13088,
+ "name": "getActionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5031,
+ "src": "13657:11:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes4_$returns$_t_bytes32_$",
+ "typeString": "function (bytes4) view returns (bytes32)"
+ }
+ },
+ "id": 13092,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13657:52:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "src": "13645:64:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ }
+ ],
+ "id": 13094,
+ "isConstant": false,
+ "isInlineArray": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "TupleExpression",
+ "src": "13644:66:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "||",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 13097,
+ "name": "actionId",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13081,
+ "src": "13739:8:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ ],
+ "expression": {
+ "id": 13095,
+ "name": "super",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -25,
+ "src": "13714:5:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_super$_ComposableStablePoolRates_$13103",
+ "typeString": "contract super ComposableStablePoolRates"
+ }
+ },
+ "id": 13096,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "_isOwnerOnlyAction",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 2907,
+ "src": "13714:24:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
+ "typeString": "function (bytes32) view returns (bool)"
+ }
+ },
+ "id": 13098,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "13714:34:57",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "13644:104:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "functionReturnParameters": 13086,
+ "id": 13100,
+ "nodeType": "Return",
+ "src": "13637:111:57"
+ }
+ ]
+ },
+ "documentation": {
+ "id": 13079,
+ "nodeType": "StructuredDocumentation",
+ "src": "13423:107:57",
+ "text": " @dev Overrides only owner action to allow setting the cache duration for the token rates"
+ },
+ "id": 13102,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "_isOwnerOnlyAction",
+ "nodeType": "FunctionDefinition",
+ "overrides": {
+ "id": 13083,
+ "nodeType": "OverrideSpecifier",
+ "overrides": [],
+ "src": "13603:8:57"
+ },
+ "parameters": {
+ "id": 13082,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 13081,
+ "mutability": "mutable",
+ "name": "actionId",
+ "nodeType": "VariableDeclaration",
+ "scope": 13102,
+ "src": "13563:16:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 13080,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "13563:7:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13562:18:57"
+ },
+ "returnParameters": {
+ "id": 13086,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 13085,
+ "mutability": "mutable",
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 13102,
+ "src": "13621:4:57",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 13084,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "13621:4:57",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "src": "13620:6:57"
+ },
+ "scope": 13103,
+ "src": "13535:220:57",
+ "stateMutability": "view",
+ "virtual": true,
+ "visibility": "internal"
+ }
+ ],
+ "scope": 13104,
+ "src": "1156:12601:57"
+ }
+ ],
+ "src": "688:13070:57"
+ },
+ "id": 57
+ },
+ "contracts/ComposableStablePoolStorage.sol": {
+ "ast": {
+ "absolutePath": "contracts/ComposableStablePoolStorage.sol",
+ "exportedSymbols": {
+ "ComposableStablePoolStorage": [
+ 14041
+ ]
+ },
+ "id": 14042,
+ "license": "GPL-3.0-or-later",
+ "nodeType": "SourceUnit",
+ "nodes": [
+ {
+ "id": 13105,
+ "literals": [
+ "solidity",
+ "^",
+ "0.7",
+ ".0"
+ ],
+ "nodeType": "PragmaDirective",
+ "src": "688:23:58"
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/helpers/BalancerErrors.sol",
+ "id": 13106,
+ "nodeType": "ImportDirective",
+ "scope": 14042,
+ "sourceUnit": 1012,
+ "src": "713:90:58",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/solidity-utils/openzeppelin/IERC20.sol",
+ "id": 13107,
+ "nodeType": "ImportDirective",
+ "scope": 14042,
+ "sourceUnit": 1153,
+ "src": "804:87:58",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol",
+ "file": "@balancer-labs/v2-interfaces/contracts/pool-utils/IRateProvider.sol",
+ "id": 13108,
+ "nodeType": "ImportDirective",
+ "scope": 14042,
+ "sourceUnit": 429,
+ "src": "892:77:58",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "@balancer-labs/v2-pool-utils/contracts/BasePool.sol",
+ "file": "@balancer-labs/v2-pool-utils/contracts/BasePool.sol",
+ "id": 13109,
+ "nodeType": "ImportDirective",
+ "scope": 14042,
+ "sourceUnit": 3861,
+ "src": "971:61:58",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "absolutePath": "contracts/StableMath.sol",
+ "file": "./StableMath.sol",
+ "id": 13110,
+ "nodeType": "ImportDirective",
+ "scope": 14042,
+ "sourceUnit": 15336,
+ "src": "1034:26:58",
+ "symbolAliases": [],
+ "unitAlias": ""
+ },
+ {
+ "abstract": true,
+ "baseContracts": [
+ {
+ "baseName": {
+ "id": 13111,
+ "name": "BasePool",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 3860,
+ "src": "1111:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_BasePool_$3860",
+ "typeString": "contract BasePool"
+ }
+ },
+ "id": 13112,
+ "nodeType": "InheritanceSpecifier",
+ "src": "1111:8:58"
+ }
+ ],
+ "contractDependencies": [
+ 409,
+ 451,
+ 1022,
+ 1040,
+ 1059,
+ 1152,
+ 1188,
+ 1425,
+ 1491,
+ 2230,
+ 3860,
+ 3955,
+ 4136,
+ 5041,
+ 5478,
+ 6208,
+ 8861,
+ 9352,
+ 9461
+ ],
+ "contractKind": "contract",
+ "fullyImplemented": false,
+ "id": 14041,
+ "linearizedBaseContracts": [
+ 14041,
+ 3860,
+ 4136,
+ 6208,
+ 1059,
+ 2230,
+ 3955,
+ 5041,
+ 1022,
+ 451,
+ 9461,
+ 5478,
+ 8861,
+ 1040,
+ 1188,
+ 9352,
+ 1152,
+ 409,
+ 1425,
+ 1491
+ ],
+ "name": "ComposableStablePoolStorage",
+ "nodeType": "ContractDefinition",
+ "nodes": [
+ {
+ "id": 13115,
+ "libraryName": {
+ "id": 13113,
+ "name": "FixedPoint",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 7158,
+ "src": "1132:10:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_FixedPoint_$7158",
+ "typeString": "library FixedPoint"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1126:29:58",
+ "typeName": {
+ "id": 13114,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1147:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ },
+ {
+ "id": 13118,
+ "libraryName": {
+ "id": 13116,
+ "name": "WordCodec",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 6736,
+ "src": "1166:9:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_WordCodec_$6736",
+ "typeString": "library WordCodec"
+ }
+ },
+ "nodeType": "UsingForDirective",
+ "src": "1160:28:58",
+ "typeName": {
+ "id": 13117,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "1180:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ }
+ },
+ {
+ "canonicalName": "ComposableStablePoolStorage.StorageParams",
+ "id": 13127,
+ "members": [
+ {
+ "constant": false,
+ "id": 13121,
+ "mutability": "mutable",
+ "name": "registeredTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 13127,
+ "src": "1225:25:58",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 13119,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1225:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13120,
+ "nodeType": "ArrayTypeName",
+ "src": "1225:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_storage_ptr",
+ "typeString": "contract IERC20[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13124,
+ "mutability": "mutable",
+ "name": "tokenRateProviders",
+ "nodeType": "VariableDeclaration",
+ "scope": 13127,
+ "src": "1260:34:58",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 13122,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "1260:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 13123,
+ "nodeType": "ArrayTypeName",
+ "src": "1260:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13126,
+ "mutability": "mutable",
+ "name": "exemptFromYieldProtocolFeeFlag",
+ "nodeType": "VariableDeclaration",
+ "scope": 13127,
+ "src": "1304:35:58",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 13125,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "1304:4:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "name": "StorageParams",
+ "nodeType": "StructDefinition",
+ "scope": 14041,
+ "src": "1194:152:58",
+ "visibility": "public"
+ },
+ {
+ "constant": true,
+ "id": 13130,
+ "mutability": "constant",
+ "name": "_MIN_NON_BPT_TOKENS",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "1518:48:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13128,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1518:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "32",
+ "id": 13129,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "1565:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13132,
+ "mutability": "immutable",
+ "name": "_totalTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "1702:38:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13131,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1702:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13134,
+ "mutability": "immutable",
+ "name": "_bptIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "1859:35:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13133,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "1859:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13136,
+ "mutability": "immutable",
+ "name": "_token0",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "1970:32:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 13135,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "1970:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13138,
+ "mutability": "immutable",
+ "name": "_token1",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2008:32:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 13137,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2008:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13140,
+ "mutability": "immutable",
+ "name": "_token2",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2046:32:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 13139,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2046:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13142,
+ "mutability": "immutable",
+ "name": "_token3",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2084:32:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 13141,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2084:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13144,
+ "mutability": "immutable",
+ "name": "_token4",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2122:32:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 13143,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2122:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13146,
+ "mutability": "immutable",
+ "name": "_token5",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2160:32:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "typeName": {
+ "id": 13145,
+ "name": "IERC20",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 1152,
+ "src": "2160:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13148,
+ "mutability": "immutable",
+ "name": "_scalingFactor0",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2550:42:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13147,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2550:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13150,
+ "mutability": "immutable",
+ "name": "_scalingFactor1",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2598:42:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13149,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2598:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13152,
+ "mutability": "immutable",
+ "name": "_scalingFactor2",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2646:42:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13151,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2646:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13154,
+ "mutability": "immutable",
+ "name": "_scalingFactor3",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2694:42:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13153,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2694:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13156,
+ "mutability": "immutable",
+ "name": "_scalingFactor4",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2742:42:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13155,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2742:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13158,
+ "mutability": "immutable",
+ "name": "_scalingFactor5",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2790:42:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13157,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "2790:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13160,
+ "mutability": "immutable",
+ "name": "_rateProvider0",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2935:47:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 13159,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "2935:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13162,
+ "mutability": "immutable",
+ "name": "_rateProvider1",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "2988:47:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 13161,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "2988:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13164,
+ "mutability": "immutable",
+ "name": "_rateProvider2",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "3041:47:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 13163,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "3041:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13166,
+ "mutability": "immutable",
+ "name": "_rateProvider3",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "3094:47:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 13165,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "3094:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13168,
+ "mutability": "immutable",
+ "name": "_rateProvider4",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "3147:47:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 13167,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "3147:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13170,
+ "mutability": "immutable",
+ "name": "_rateProvider5",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "3200:47:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ },
+ "typeName": {
+ "id": 13169,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "3200:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "visibility": "internal"
+ },
+ {
+ "constant": false,
+ "id": 13172,
+ "mutability": "immutable",
+ "name": "_rateProviderInfoBitmap",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "3811:49:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 13171,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "3811:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": false,
+ "id": 13174,
+ "mutability": "immutable",
+ "name": "_exemptFromYieldProtocolFee",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "3964:50:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "typeName": {
+ "id": 13173,
+ "name": "bool",
+ "nodeType": "ElementaryTypeName",
+ "src": "3964:4:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "visibility": "private"
+ },
+ {
+ "constant": true,
+ "id": 13177,
+ "mutability": "constant",
+ "name": "_RATE_PROVIDER_FLAGS_OFFSET",
+ "nodeType": "VariableDeclaration",
+ "scope": 14041,
+ "src": "4021:56:58",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13175,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4021:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "value": {
+ "hexValue": "36",
+ "id": 13176,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4076:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_6_by_1",
+ "typeString": "int_const 6"
+ },
+ "value": "6"
+ },
+ "visibility": "private"
+ },
+ {
+ "body": {
+ "id": 13544,
+ "nodeType": "Block",
+ "src": "4125:4772:58",
+ "statements": [
+ {
+ "assignments": [
+ 13183
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 13183,
+ "mutability": "mutable",
+ "name": "totalTokens",
+ "nodeType": "VariableDeclaration",
+ "scope": 13544,
+ "src": "4446:19:58",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13182,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "4446:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 13187,
+ "initialValue": {
+ "expression": {
+ "expression": {
+ "id": 13184,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "4468:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13185,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "4468:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13186,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "4468:30:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "4446:52:58"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13191,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13189,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "4517:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "id": 13190,
+ "name": "_MIN_NON_BPT_TOKENS",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13130,
+ "src": "4531:19:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4517:33:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ {
+ "expression": {
+ "id": 13192,
+ "name": "Errors",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1011,
+ "src": "4552:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_Errors_$1011_$",
+ "typeString": "type(library Errors)"
+ }
+ },
+ "id": 13193,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "MIN_TOKENS",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 578,
+ "src": "4552:17:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 13188,
+ "name": "_require",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [
+ 479,
+ 498
+ ],
+ "referencedDeclaration": 479,
+ "src": "4508:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_bool_$_t_uint256_$returns$__$",
+ "typeString": "function (bool,uint256) pure"
+ }
+ },
+ "id": 13194,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4508:62:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 13195,
+ "nodeType": "ExpressionStatement",
+ "src": "4508:62:58"
+ },
+ {
+ "expression": {
+ "arguments": [
+ {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13201,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13199,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "4616:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 13200,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4630:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "4616:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ {
+ "expression": {
+ "expression": {
+ "id": 13202,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "4633:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13203,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "tokenRateProviders",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13124,
+ "src": "4633:25:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ "id": 13204,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "4633:32:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "expression": {
+ "id": 13196,
+ "name": "InputHelpers",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 5920,
+ "src": "4580:12:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_InputHelpers_$5920_$",
+ "typeString": "type(library InputHelpers)"
+ }
+ },
+ "id": 13198,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "ensureInputLengthMatch",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 5828,
+ "src": "4580:35:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$__$",
+ "typeString": "function (uint256,uint256) pure"
+ }
+ },
+ "id": 13205,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "4580:86:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_tuple$__$",
+ "typeString": "tuple()"
+ }
+ },
+ "id": 13206,
+ "nodeType": "ExpressionStatement",
+ "src": "4580:86:58"
+ },
+ {
+ "expression": {
+ "id": 13209,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13207,
+ "name": "_totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13132,
+ "src": "4677:12:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 13208,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "4692:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "4677:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13210,
+ "nodeType": "ExpressionStatement",
+ "src": "4677:26:58"
+ },
+ {
+ "expression": {
+ "id": 13216,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13211,
+ "name": "_token0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13136,
+ "src": "4829:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "baseExpression": {
+ "expression": {
+ "id": 13212,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "4839:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13213,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "4839:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13215,
+ "indexExpression": {
+ "hexValue": "30",
+ "id": 13214,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4863:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "4839:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "4829:36:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13217,
+ "nodeType": "ExpressionStatement",
+ "src": "4829:36:58"
+ },
+ {
+ "expression": {
+ "id": 13223,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13218,
+ "name": "_token1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13138,
+ "src": "4875:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "baseExpression": {
+ "expression": {
+ "id": 13219,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "4885:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13220,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "4885:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13222,
+ "indexExpression": {
+ "hexValue": "31",
+ "id": 13221,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4909:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "4885:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "4875:36:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13224,
+ "nodeType": "ExpressionStatement",
+ "src": "4875:36:58"
+ },
+ {
+ "expression": {
+ "id": 13230,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13225,
+ "name": "_token2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13140,
+ "src": "4921:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "baseExpression": {
+ "expression": {
+ "id": 13226,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "4931:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13227,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "4931:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13229,
+ "indexExpression": {
+ "hexValue": "32",
+ "id": 13228,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4955:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "4931:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "4921:36:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13231,
+ "nodeType": "ExpressionStatement",
+ "src": "4921:36:58"
+ },
+ {
+ "expression": {
+ "id": 13244,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13232,
+ "name": "_token3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13142,
+ "src": "4967:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13235,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13233,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "4977:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "33",
+ "id": 13234,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "4991:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "src": "4977:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 13241,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5031:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 13240,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "5024:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 13242,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5024:9:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13243,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "4977:56:58",
+ "trueExpression": {
+ "baseExpression": {
+ "expression": {
+ "id": 13236,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "4995:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13237,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "4995:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13239,
+ "indexExpression": {
+ "hexValue": "33",
+ "id": 13238,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5019:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "4995:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "4967:66:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13245,
+ "nodeType": "ExpressionStatement",
+ "src": "4967:66:58"
+ },
+ {
+ "expression": {
+ "id": 13258,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13246,
+ "name": "_token4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13144,
+ "src": "5043:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13249,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13247,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "5053:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "34",
+ "id": 13248,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5067:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4_by_1",
+ "typeString": "int_const 4"
+ },
+ "value": "4"
+ },
+ "src": "5053:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 13255,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5107:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 13254,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "5100:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 13256,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5100:9:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13257,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5053:56:58",
+ "trueExpression": {
+ "baseExpression": {
+ "expression": {
+ "id": 13250,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5071:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13251,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5071:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13253,
+ "indexExpression": {
+ "hexValue": "34",
+ "id": 13252,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5095:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4_by_1",
+ "typeString": "int_const 4"
+ },
+ "value": "4"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5071:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "5043:66:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13259,
+ "nodeType": "ExpressionStatement",
+ "src": "5043:66:58"
+ },
+ {
+ "expression": {
+ "id": 13272,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13260,
+ "name": "_token5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13146,
+ "src": "5119:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13263,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13261,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "5129:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "35",
+ "id": 13262,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5143:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "src": "5129:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "arguments": [
+ {
+ "hexValue": "30",
+ "id": 13269,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5183:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ }
+ ],
+ "id": 13268,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "5176:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 13270,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5176:9:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13271,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5129:56:58",
+ "trueExpression": {
+ "baseExpression": {
+ "expression": {
+ "id": 13264,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5147:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13265,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5147:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13267,
+ "indexExpression": {
+ "hexValue": "35",
+ "id": 13266,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5171:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5147:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "5119:66:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "id": 13273,
+ "nodeType": "ExpressionStatement",
+ "src": "5119:66:58"
+ },
+ {
+ "expression": {
+ "id": 13281,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13274,
+ "name": "_scalingFactor0",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13148,
+ "src": "5196:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 13276,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5236:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13277,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5236:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13279,
+ "indexExpression": {
+ "hexValue": "30",
+ "id": 13278,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5260:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5236:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 13275,
+ "name": "_computeScalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3504,
+ "src": "5214:21:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 13280,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5214:49:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5196:67:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13282,
+ "nodeType": "ExpressionStatement",
+ "src": "5196:67:58"
+ },
+ {
+ "expression": {
+ "id": 13290,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13283,
+ "name": "_scalingFactor1",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13150,
+ "src": "5273:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 13285,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5313:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13286,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5313:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13288,
+ "indexExpression": {
+ "hexValue": "31",
+ "id": 13287,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5337:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5313:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 13284,
+ "name": "_computeScalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3504,
+ "src": "5291:21:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 13289,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5291:49:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5273:67:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13291,
+ "nodeType": "ExpressionStatement",
+ "src": "5273:67:58"
+ },
+ {
+ "expression": {
+ "id": 13299,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13292,
+ "name": "_scalingFactor2",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13152,
+ "src": "5350:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 13294,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5390:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13295,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5390:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13297,
+ "indexExpression": {
+ "hexValue": "32",
+ "id": 13296,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5414:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_2_by_1",
+ "typeString": "int_const 2"
+ },
+ "value": "2"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5390:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 13293,
+ "name": "_computeScalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3504,
+ "src": "5368:21:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 13298,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5368:49:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5350:67:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13300,
+ "nodeType": "ExpressionStatement",
+ "src": "5350:67:58"
+ },
+ {
+ "expression": {
+ "id": 13313,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13301,
+ "name": "_scalingFactor3",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13154,
+ "src": "5427:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13304,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13302,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "5445:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "33",
+ "id": 13303,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5459:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "src": "5445:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "hexValue": "30",
+ "id": 13311,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5515:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "id": 13312,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5445:71:58",
+ "trueExpression": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 13306,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5485:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13307,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5485:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13309,
+ "indexExpression": {
+ "hexValue": "33",
+ "id": 13308,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5509:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_3_by_1",
+ "typeString": "int_const 3"
+ },
+ "value": "3"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5485:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 13305,
+ "name": "_computeScalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3504,
+ "src": "5463:21:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 13310,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5463:49:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5427:89:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13314,
+ "nodeType": "ExpressionStatement",
+ "src": "5427:89:58"
+ },
+ {
+ "expression": {
+ "id": 13327,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13315,
+ "name": "_scalingFactor4",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13156,
+ "src": "5526:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13318,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13316,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "5544:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "34",
+ "id": 13317,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5558:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4_by_1",
+ "typeString": "int_const 4"
+ },
+ "value": "4"
+ },
+ "src": "5544:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "hexValue": "30",
+ "id": 13325,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5614:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "id": 13326,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5544:71:58",
+ "trueExpression": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 13320,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5584:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13321,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5584:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13323,
+ "indexExpression": {
+ "hexValue": "34",
+ "id": 13322,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5608:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_4_by_1",
+ "typeString": "int_const 4"
+ },
+ "value": "4"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5584:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 13319,
+ "name": "_computeScalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3504,
+ "src": "5562:21:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 13324,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5562:49:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5526:89:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13328,
+ "nodeType": "ExpressionStatement",
+ "src": "5526:89:58"
+ },
+ {
+ "expression": {
+ "id": 13341,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13329,
+ "name": "_scalingFactor5",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13158,
+ "src": "5625:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13332,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13330,
+ "name": "totalTokens",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13183,
+ "src": "5643:11:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "35",
+ "id": 13331,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5657:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "src": "5643:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseExpression": {
+ "hexValue": "30",
+ "id": 13339,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5713:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "id": 13340,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "Conditional",
+ "src": "5643:71:58",
+ "trueExpression": {
+ "arguments": [
+ {
+ "baseExpression": {
+ "expression": {
+ "id": 13334,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "5683:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13335,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "5683:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13337,
+ "indexExpression": {
+ "hexValue": "35",
+ "id": 13336,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "5707:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_5_by_1",
+ "typeString": "int_const 5"
+ },
+ "value": "5"
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "5683:26:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ ],
+ "id": 13333,
+ "name": "_computeScalingFactor",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 3504,
+ "src": "5661:21:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_internal_view$_t_contract$_IERC20_$1152_$returns$_t_uint256_$",
+ "typeString": "function (contract IERC20) view returns (uint256)"
+ }
+ },
+ "id": 13338,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "5661:49:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "5625:89:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13342,
+ "nodeType": "ExpressionStatement",
+ "src": "5625:89:58"
+ },
+ {
+ "assignments": [
+ 13344
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 13344,
+ "mutability": "mutable",
+ "name": "bptIndex",
+ "nodeType": "VariableDeclaration",
+ "scope": 13544,
+ "src": "6142:16:58",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "typeName": {
+ "id": 13343,
+ "name": "uint256",
+ "nodeType": "ElementaryTypeName",
+ "src": "6142:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 13345,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6142:16:58"
+ },
+ {
+ "body": {
+ "id": 13369,
+ "nodeType": "Block",
+ "src": "6344:72:58",
+ "statements": []
+ },
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ },
+ "id": 13365,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13356,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13354,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13344,
+ "src": "6245:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "hexValue": "30",
+ "id": 13355,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6256:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_0_by_1",
+ "typeString": "int_const 0"
+ },
+ "value": "0"
+ },
+ "src": "6245:12:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "&&",
+ "rightExpression": {
+ "commonType": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ },
+ "id": 13364,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "baseExpression": {
+ "expression": {
+ "id": 13357,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "6261:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13358,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "6261:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13360,
+ "indexExpression": {
+ "id": 13359,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13344,
+ "src": "6285:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "IndexAccess",
+ "src": "6261:33:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": ">",
+ "rightExpression": {
+ "arguments": [
+ {
+ "id": 13362,
+ "name": "this",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": -28,
+ "src": "6304:4:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_ComposableStablePoolStorage_$14041",
+ "typeString": "contract ComposableStablePoolStorage"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_contract$_ComposableStablePoolStorage_$14041",
+ "typeString": "contract ComposableStablePoolStorage"
+ }
+ ],
+ "id": 13361,
+ "name": "IERC20",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 1152,
+ "src": "6297:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_type$_t_contract$_IERC20_$1152_$",
+ "typeString": "type(contract IERC20)"
+ }
+ },
+ "id": 13363,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "typeConversion",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6297:12:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IERC20_$1152",
+ "typeString": "contract IERC20"
+ }
+ },
+ "src": "6261:48:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "src": "6245:64:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "id": 13370,
+ "initializationExpression": {
+ "expression": {
+ "id": 13352,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13346,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13344,
+ "src": "6186:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13351,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "expression": {
+ "expression": {
+ "id": 13347,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "6197:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13348,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "6197:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13349,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "6197:30:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "-",
+ "rightExpression": {
+ "hexValue": "31",
+ "id": 13350,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "number",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "6230:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_rational_1_by_1",
+ "typeString": "int_const 1"
+ },
+ "value": "1"
+ },
+ "src": "6197:34:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6186:45:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13353,
+ "nodeType": "ExpressionStatement",
+ "src": "6186:45:58"
+ },
+ "loopExpression": {
+ "expression": {
+ "id": 13367,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "nodeType": "UnaryOperation",
+ "operator": "--",
+ "prefix": false,
+ "src": "6323:10:58",
+ "subExpression": {
+ "id": 13366,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13344,
+ "src": "6323:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13368,
+ "nodeType": "ExpressionStatement",
+ "src": "6323:10:58"
+ },
+ "nodeType": "ForStatement",
+ "src": "6168:248:58"
+ },
+ {
+ "expression": {
+ "id": 13373,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "id": 13371,
+ "name": "_bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13134,
+ "src": "6425:9:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "Assignment",
+ "operator": "=",
+ "rightHandSide": {
+ "id": 13372,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13344,
+ "src": "6437:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "6425:20:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "id": 13374,
+ "nodeType": "ExpressionStatement",
+ "src": "6425:20:58"
+ },
+ {
+ "assignments": [
+ 13378
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 13378,
+ "mutability": "mutable",
+ "name": "rateProviders",
+ "nodeType": "VariableDeclaration",
+ "scope": 13544,
+ "src": "6923:36:58",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[]"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 13376,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "6923:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 13377,
+ "nodeType": "ArrayTypeName",
+ "src": "6923:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 13386,
+ "initialValue": {
+ "arguments": [
+ {
+ "expression": {
+ "expression": {
+ "id": 13382,
+ "name": "params",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13179,
+ "src": "6982:6:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_struct$_StorageParams_$13127_memory_ptr",
+ "typeString": "struct ComposableStablePoolStorage.StorageParams memory"
+ }
+ },
+ "id": 13383,
+ "isConstant": false,
+ "isLValue": true,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "registeredTokens",
+ "nodeType": "MemberAccess",
+ "referencedDeclaration": 13121,
+ "src": "6982:23:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IERC20_$1152_$dyn_memory_ptr",
+ "typeString": "contract IERC20[] memory"
+ }
+ },
+ "id": 13384,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "memberName": "length",
+ "nodeType": "MemberAccess",
+ "src": "6982:30:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ }
+ ],
+ "expression": {
+ "argumentTypes": [
+ {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ ],
+ "id": 13381,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "lValueRequested": false,
+ "nodeType": "NewExpression",
+ "src": "6962:19:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr_$",
+ "typeString": "function (uint256) pure returns (contract IRateProvider[] memory)"
+ },
+ "typeName": {
+ "baseType": {
+ "id": 13379,
+ "name": "IRateProvider",
+ "nodeType": "UserDefinedTypeName",
+ "referencedDeclaration": 428,
+ "src": "6966:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_contract$_IRateProvider_$428",
+ "typeString": "contract IRateProvider"
+ }
+ },
+ "id": 13380,
+ "nodeType": "ArrayTypeName",
+ "src": "6966:15:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_storage_ptr",
+ "typeString": "contract IRateProvider[]"
+ }
+ }
+ },
+ "id": 13385,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "kind": "functionCall",
+ "lValueRequested": false,
+ "names": [],
+ "nodeType": "FunctionCall",
+ "src": "6962:51:58",
+ "tryCall": false,
+ "typeDescriptions": {
+ "typeIdentifier": "t_array$_t_contract$_IRateProvider_$428_$dyn_memory_ptr",
+ "typeString": "contract IRateProvider[] memory"
+ }
+ },
+ "nodeType": "VariableDeclarationStatement",
+ "src": "6923:90:58"
+ },
+ {
+ "assignments": [
+ 13388
+ ],
+ "declarations": [
+ {
+ "constant": false,
+ "id": 13388,
+ "mutability": "mutable",
+ "name": "rateProviderInfoBitmap",
+ "nodeType": "VariableDeclaration",
+ "scope": 13544,
+ "src": "7024:30:58",
+ "stateVariable": false,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ },
+ "typeName": {
+ "id": 13387,
+ "name": "bytes32",
+ "nodeType": "ElementaryTypeName",
+ "src": "7024:7:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bytes32",
+ "typeString": "bytes32"
+ }
+ },
+ "visibility": "internal"
+ }
+ ],
+ "id": 13389,
+ "nodeType": "VariableDeclarationStatement",
+ "src": "7024:30:58"
+ },
+ {
+ "body": {
+ "id": 13470,
+ "nodeType": "Block",
+ "src": "7281:853:58",
+ "statements": [
+ {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13404,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13402,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13391,
+ "src": "7299:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "<",
+ "rightExpression": {
+ "id": 13403,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13344,
+ "src": "7303:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7299:12:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "condition": {
+ "commonType": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ },
+ "id": 13417,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftExpression": {
+ "id": 13415,
+ "name": "i",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13391,
+ "src": "7403:1:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "nodeType": "BinaryOperation",
+ "operator": "!=",
+ "rightExpression": {
+ "id": 13416,
+ "name": "bptIndex",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 13344,
+ "src": "7408:8:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_uint256",
+ "typeString": "uint256"
+ }
+ },
+ "src": "7403:13:58",
+ "typeDescriptions": {
+ "typeIdentifier": "t_bool",
+ "typeString": "bool"
+ }
+ },
+ "falseBody": {
+ "id": 13431,
+ "nodeType": "Block",
+ "src": "7508:89:58",
+ "statements": [
+ {
+ "id": 13430,
+ "nodeType": "Continue",
+ "src": "7574:8:58"
+ }
+ ]
+ },
+ "id": 13432,
+ "nodeType": "IfStatement",
+ "src": "7399:198:58",
+ "trueBody": {
+ "id": 13429,
+ "nodeType": "Block",
+ "src": "7418:84:58",
+ "statements": [
+ {
+ "expression": {
+ "id": 13427,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": false,
+ "lValueRequested": false,
+ "leftHandSide": {
+ "baseExpression": {
+ "id": 13418,
+ "name": "rateProviders",
+