defi-kit 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-YCNP4FUP.mjs → chunk-PQDN7IHL.mjs} +745 -260
- package/dist/chunk-PQDN7IHL.mjs.map +1 -0
- package/dist/{chunk-WMII4CAV.mjs → chunk-PU3MJ7WD.mjs} +10 -2
- package/dist/chunk-PU3MJ7WD.mjs.map +1 -0
- package/dist/eth.d.mts +2 -2
- package/dist/eth.d.ts +2 -2
- package/dist/eth.js +743 -258
- package/dist/eth.js.map +1 -1
- package/dist/eth.mjs +2 -2
- package/dist/gno.d.mts +2 -2
- package/dist/gno.d.ts +2 -2
- package/dist/gno.js +743 -258
- package/dist/gno.js.map +1 -1
- package/dist/gno.mjs +2 -2
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{schema-ZbsAhqUm.d.mts → schema-oePREKH2.d.mts} +5 -5
- package/dist/{schema-ZbsAhqUm.d.ts → schema-oePREKH2.d.ts} +5 -5
- package/package.json +2 -2
- package/dist/chunk-WMII4CAV.mjs.map +0 -1
- package/dist/chunk-YCNP4FUP.mjs.map +0 -1
package/dist/gno.js
CHANGED
|
@@ -6570,6 +6570,9 @@ var dai_default = [{ inputs: [{ internalType: "uint256", name: "chainId_", type:
|
|
|
6570
6570
|
// eth-sdk/abis/mainnet/usdc.json
|
|
6571
6571
|
var usdc_default = [{ 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: "authorizer", type: "address" }, { indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" }], name: "AuthorizationCanceled", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "authorizer", type: "address" }, { indexed: true, internalType: "bytes32", name: "nonce", type: "bytes32" }], name: "AuthorizationUsed", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_account", type: "address" }], name: "Blacklisted", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newBlacklister", type: "address" }], name: "BlacklisterChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "burner", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "Burn", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newMasterMinter", type: "address" }], name: "MasterMinterChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "minter", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }], name: "Mint", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "minter", type: "address" }, { indexed: false, internalType: "uint256", name: "minterAllowedAmount", type: "uint256" }], name: "MinterConfigured", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "oldMinter", type: "address" }], name: "MinterRemoved", type: "event" }, { anonymous: false, inputs: [{ indexed: false, internalType: "address", name: "previousOwner", type: "address" }, { indexed: false, internalType: "address", name: "newOwner", type: "address" }], name: "OwnershipTransferred", type: "event" }, { anonymous: false, inputs: [], name: "Pause", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newAddress", type: "address" }], name: "PauserChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "newRescuer", type: "address" }], name: "RescuerChanged", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" }, { indexed: false, internalType: "uint256", name: "value", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [{ indexed: true, internalType: "address", name: "_account", type: "address" }], name: "UnBlacklisted", type: "event" }, { anonymous: false, inputs: [], name: "Unpause", type: "event" }, { inputs: [], name: "CANCEL_AUTHORIZATION_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "DOMAIN_SEPARATOR", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "PERMIT_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "RECEIVE_WITH_AUTHORIZATION_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "TRANSFER_WITH_AUTHORIZATION_TYPEHASH", 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: "value", type: "uint256" }], name: "approve", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "authorizer", type: "address" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }], name: "authorizationState", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "balanceOf", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_account", type: "address" }], name: "blacklist", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "blacklister", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "uint256", name: "_amount", type: "uint256" }], name: "burn", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "authorizer", type: "address" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "cancelAuthorization", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "minter", type: "address" }, { internalType: "uint256", name: "minterAllowedAmount", type: "uint256" }], name: "configureMinter", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "currency", outputs: [{ internalType: "string", name: "", type: "string" }], 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: "decrement", type: "uint256" }], name: "decreaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "increment", type: "uint256" }], name: "increaseAllowance", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "string", name: "tokenName", type: "string" }, { internalType: "string", name: "tokenSymbol", type: "string" }, { internalType: "string", name: "tokenCurrency", type: "string" }, { internalType: "uint8", name: "tokenDecimals", type: "uint8" }, { internalType: "address", name: "newMasterMinter", type: "address" }, { internalType: "address", name: "newPauser", type: "address" }, { internalType: "address", name: "newBlacklister", type: "address" }, { internalType: "address", name: "newOwner", type: "address" }], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "string", name: "newName", type: "string" }], name: "initializeV2", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "lostAndFound", type: "address" }], name: "initializeV2_1", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_account", type: "address" }], name: "isBlacklisted", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "account", type: "address" }], name: "isMinter", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "masterMinter", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_to", type: "address" }, { internalType: "uint256", name: "_amount", type: "uint256" }], name: "mint", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "minter", type: "address" }], name: "minterAllowance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], 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: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "paused", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function" }, { inputs: [], name: "pauser", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "spender", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "deadline", type: "uint256" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "permit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "validAfter", type: "uint256" }, { internalType: "uint256", name: "validBefore", type: "uint256" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "receiveWithAuthorization", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "minter", type: "address" }], name: "removeMinter", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "contract IERC20", name: "tokenContract", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }], name: "rescueERC20", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "rescuer", outputs: [{ internalType: "address", name: "", type: "address" }], 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: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }], name: "transfer", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }], name: "transferFrom", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "from", type: "address" }, { internalType: "address", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, { internalType: "uint256", name: "validAfter", type: "uint256" }, { internalType: "uint256", name: "validBefore", type: "uint256" }, { internalType: "bytes32", name: "nonce", type: "bytes32" }, { internalType: "uint8", name: "v", type: "uint8" }, { internalType: "bytes32", name: "r", type: "bytes32" }, { internalType: "bytes32", name: "s", type: "bytes32" }], name: "transferWithAuthorization", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_account", type: "address" }], name: "unBlacklist", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newBlacklister", type: "address" }], name: "updateBlacklister", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newMasterMinter", type: "address" }], name: "updateMasterMinter", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newPauser", type: "address" }], name: "updatePauser", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "newRescuer", type: "address" }], name: "updateRescuer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "version", outputs: [{ internalType: "string", name: "", type: "string" }], stateMutability: "view", type: "function" }];
|
|
6572
6572
|
|
|
6573
|
+
// eth-sdk/abis/mainnet/usdt.json
|
|
6574
|
+
var usdt_default = [{ constant: true, inputs: [], name: "name", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_upgradedAddress", type: "address" }], name: "deprecate", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "_spender", type: "address" }, { name: "_value", type: "uint256" }], name: "approve", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "deprecated", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_evilUser", type: "address" }], name: "addBlackList", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "totalSupply", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_from", type: "address" }, { name: "_to", type: "address" }, { name: "_value", type: "uint256" }], name: "transferFrom", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "upgradedAddress", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }], name: "balances", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "decimals", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "maximumFee", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "_totalSupply", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "unpause", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_maker", type: "address" }], name: "getBlackListStatus", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }, { name: "", type: "address" }], name: "allowed", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "paused", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "who", type: "address" }], name: "balanceOf", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [], name: "pause", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "getOwner", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "owner", outputs: [{ name: "", type: "address" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "symbol", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_to", type: "address" }, { name: "_value", type: "uint256" }], name: "transfer", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "newBasisPoints", type: "uint256" }, { name: "newMaxFee", type: "uint256" }], name: "setParams", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "amount", type: "uint256" }], name: "issue", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "amount", type: "uint256" }], name: "redeem", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [{ name: "_owner", type: "address" }, { name: "_spender", type: "address" }], name: "allowance", outputs: [{ name: "remaining", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "basisPointsRate", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }], name: "isBlackListed", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "_clearedUser", type: "address" }], name: "removeBlackList", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "MAX_UINT", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "newOwner", type: "address" }], name: "transferOwnership", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "_blackListedUser", type: "address" }], name: "destroyBlackFunds", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { inputs: [{ name: "_initialSupply", type: "uint256" }, { name: "_name", type: "string" }, { name: "_symbol", type: "string" }, { name: "_decimals", type: "uint256" }], payable: false, stateMutability: "nonpayable", type: "constructor" }, { anonymous: false, inputs: [{ indexed: false, name: "amount", type: "uint256" }], name: "Issue", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "amount", type: "uint256" }], name: "Redeem", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "newAddress", type: "address" }], name: "Deprecate", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "feeBasisPoints", type: "uint256" }, { indexed: false, name: "maxFee", type: "uint256" }], name: "Params", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "_blackListedUser", type: "address" }, { indexed: false, name: "_balance", type: "uint256" }], name: "DestroyedBlackFunds", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "_user", type: "address" }], name: "AddedBlackList", type: "event" }, { anonymous: false, inputs: [{ indexed: false, name: "_user", type: "address" }], name: "RemovedBlackList", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "owner", type: "address" }, { indexed: true, name: "spender", type: "address" }, { indexed: false, name: "value", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "from", type: "address" }, { indexed: true, name: "to", type: "address" }, { indexed: false, name: "value", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [], name: "Pause", type: "event" }, { anonymous: false, inputs: [], name: "Unpause", type: "event" }];
|
|
6575
|
+
|
|
6573
6576
|
// eth-sdk/abis/mainnet/weth.json
|
|
6574
6577
|
var weth_default = [{ constant: true, inputs: [], name: "name", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "guy", type: "address" }, { name: "wad", type: "uint256" }], name: "approve", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "totalSupply", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "src", type: "address" }, { name: "dst", type: "address" }, { name: "wad", type: "uint256" }], name: "transferFrom", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [{ name: "wad", type: "uint256" }], name: "withdraw", outputs: [], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: true, inputs: [], name: "decimals", outputs: [{ name: "", type: "uint8" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }], name: "balanceOf", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { constant: true, inputs: [], name: "symbol", outputs: [{ name: "", type: "string" }], payable: false, stateMutability: "view", type: "function" }, { constant: false, inputs: [{ name: "dst", type: "address" }, { name: "wad", type: "uint256" }], name: "transfer", outputs: [{ name: "", type: "bool" }], payable: false, stateMutability: "nonpayable", type: "function" }, { constant: false, inputs: [], name: "deposit", outputs: [], payable: true, stateMutability: "payable", type: "function" }, { constant: true, inputs: [{ name: "", type: "address" }, { name: "", type: "address" }], name: "allowance", outputs: [{ name: "", type: "uint256" }], payable: false, stateMutability: "view", type: "function" }, { payable: true, stateMutability: "payable", type: "fallback" }, { anonymous: false, inputs: [{ indexed: true, name: "src", type: "address" }, { indexed: true, name: "guy", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Approval", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "src", type: "address" }, { indexed: true, name: "dst", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Transfer", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "dst", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Deposit", type: "event" }, { anonymous: false, inputs: [{ indexed: true, name: "src", type: "address" }, { indexed: false, name: "wad", type: "uint256" }], name: "Withdrawal", type: "event" }];
|
|
6575
6578
|
|
|
@@ -6677,6 +6680,7 @@ function getMainnetSdk(defaultSignerOrProvider) {
|
|
|
6677
6680
|
},
|
|
6678
6681
|
"dai": getContract("0x6B175474E89094C44Da98b954EedeAC495271d0F", dai_default, defaultSignerOrProvider),
|
|
6679
6682
|
"usdc": getContract("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", usdc_default, defaultSignerOrProvider),
|
|
6683
|
+
"usdt": getContract("0xdAC17F958D2ee523a2206206994597C13D831ec7", usdt_default, defaultSignerOrProvider),
|
|
6680
6684
|
"weth": getContract("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", weth_default, defaultSignerOrProvider)
|
|
6681
6685
|
};
|
|
6682
6686
|
}
|
|
@@ -6982,6 +6986,14 @@ var contracts = {
|
|
|
6982
6986
|
weth: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
|
|
6983
6987
|
}
|
|
6984
6988
|
};
|
|
6989
|
+
var contractAddressOverrides = {
|
|
6990
|
+
gnosis: {
|
|
6991
|
+
aura: {
|
|
6992
|
+
booster: "0x98Ef32edd24e2c92525E59afc4475C1242a30184",
|
|
6993
|
+
reward_pool_deposit_wrapper: "0x0Fec3d212BcC29eF3E505B555D7a7343DF0B7F76"
|
|
6994
|
+
}
|
|
6995
|
+
}
|
|
6996
|
+
};
|
|
6985
6997
|
var config_default = (0, import_eth_sdk.defineConfig)({
|
|
6986
6998
|
contracts
|
|
6987
6999
|
});
|
|
@@ -9509,8 +9521,8 @@ var gnoPools_default = [
|
|
|
9509
9521
|
// src/protocols/aura/actions.ts
|
|
9510
9522
|
var import_zodiac_roles_sdk6 = require("zodiac-roles-sdk");
|
|
9511
9523
|
|
|
9512
|
-
// src/protocols/balancer/
|
|
9513
|
-
var
|
|
9524
|
+
// src/protocols/balancer/_ethPools.ts
|
|
9525
|
+
var ethPools_default2 = [
|
|
9514
9526
|
{
|
|
9515
9527
|
bpt: "0x00612Eb4F312eB6ace7aCC8781196601078aE339",
|
|
9516
9528
|
id: "0x00612eb4f312eb6ace7acc8781196601078ae3390002000000000000000005a2",
|
|
@@ -10036,6 +10048,25 @@ var info_default3 = [
|
|
|
10036
10048
|
}
|
|
10037
10049
|
]
|
|
10038
10050
|
},
|
|
10051
|
+
{
|
|
10052
|
+
bpt: "0x20a61B948E33879ce7F23e535CC7BAA3BC66c5a9",
|
|
10053
|
+
id: "0x20a61b948e33879ce7f23e535cc7baa3bc66c5a9000000000000000000000555",
|
|
10054
|
+
name: "R-DAI-BLP",
|
|
10055
|
+
type: "ComposableStable",
|
|
10056
|
+
gauge: "0x6F3b31296FD2457eba6Dca3BED65ec79e06c1295",
|
|
10057
|
+
tokens: [
|
|
10058
|
+
{
|
|
10059
|
+
address: "0x183015a9bA6fF60230fdEaDc3F43b3D788b13e21",
|
|
10060
|
+
symbol: "R",
|
|
10061
|
+
id: "0x"
|
|
10062
|
+
},
|
|
10063
|
+
{
|
|
10064
|
+
address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
10065
|
+
symbol: "DAI",
|
|
10066
|
+
id: "0x"
|
|
10067
|
+
}
|
|
10068
|
+
]
|
|
10069
|
+
},
|
|
10039
10070
|
{
|
|
10040
10071
|
bpt: "0x20FacEcaa68E9b7c92d2d0ec9136D864Df805233",
|
|
10041
10072
|
id: "0x20facecaa68e9b7c92d2d0ec9136d864df805233000100000000000000000190",
|
|
@@ -10952,45 +10983,6 @@ var info_default3 = [
|
|
|
10952
10983
|
}
|
|
10953
10984
|
]
|
|
10954
10985
|
},
|
|
10955
|
-
{
|
|
10956
|
-
bpt: "0x5b3b589B45531a2f0aE203d5044782bA46aEFC4c",
|
|
10957
|
-
id: "0x5b3b589b45531a2f0ae203d5044782ba46aefc4c00010000000000000000061a",
|
|
10958
|
-
name: "17DNT-17CVC-17OCEAN-17POLY-17USDC-17ENJ",
|
|
10959
|
-
type: "Weighted",
|
|
10960
|
-
gauge: null,
|
|
10961
|
-
tokens: [
|
|
10962
|
-
{
|
|
10963
|
-
address: "0x0AbdAce70D3790235af448C88547603b945604ea",
|
|
10964
|
-
symbol: "DNT",
|
|
10965
|
-
id: "0x"
|
|
10966
|
-
},
|
|
10967
|
-
{
|
|
10968
|
-
address: "0x41e5560054824eA6B0732E656E3Ad64E20e94E45",
|
|
10969
|
-
symbol: "CVC",
|
|
10970
|
-
id: "0x"
|
|
10971
|
-
},
|
|
10972
|
-
{
|
|
10973
|
-
address: "0x967da4048cD07aB37855c090aAF366e4ce1b9F48",
|
|
10974
|
-
symbol: "OCEAN",
|
|
10975
|
-
id: "0x"
|
|
10976
|
-
},
|
|
10977
|
-
{
|
|
10978
|
-
address: "0x9992eC3cF6A55b00978cdDF2b27BC6882d88D1eC",
|
|
10979
|
-
symbol: "POLY",
|
|
10980
|
-
id: "0x"
|
|
10981
|
-
},
|
|
10982
|
-
{
|
|
10983
|
-
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
10984
|
-
symbol: "USDC",
|
|
10985
|
-
id: "0x"
|
|
10986
|
-
},
|
|
10987
|
-
{
|
|
10988
|
-
address: "0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c",
|
|
10989
|
-
symbol: "ENJ",
|
|
10990
|
-
id: "0x"
|
|
10991
|
-
}
|
|
10992
|
-
]
|
|
10993
|
-
},
|
|
10994
10986
|
{
|
|
10995
10987
|
bpt: "0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56",
|
|
10996
10988
|
id: "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014",
|
|
@@ -11553,25 +11545,6 @@ var info_default3 = [
|
|
|
11553
11545
|
}
|
|
11554
11546
|
]
|
|
11555
11547
|
},
|
|
11556
|
-
{
|
|
11557
|
-
bpt: "0x80bE0c303D8Ad2A280878b50a39B1ee8E54DBD22",
|
|
11558
|
-
id: "0x80be0c303d8ad2a280878b50a39b1ee8e54dbd2200020000000000000000000f",
|
|
11559
|
-
name: "B-50LPT-50WETH",
|
|
11560
|
-
type: "Weighted",
|
|
11561
|
-
gauge: null,
|
|
11562
|
-
tokens: [
|
|
11563
|
-
{
|
|
11564
|
-
address: "0x58b6A8A3302369DAEc383334672404Ee733aB239",
|
|
11565
|
-
symbol: "LPT",
|
|
11566
|
-
id: "0x"
|
|
11567
|
-
},
|
|
11568
|
-
{
|
|
11569
|
-
address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
11570
|
-
symbol: "WETH",
|
|
11571
|
-
id: "0x"
|
|
11572
|
-
}
|
|
11573
|
-
]
|
|
11574
|
-
},
|
|
11575
11548
|
{
|
|
11576
11549
|
bpt: "0x8167A1117691f39e05e9131cfA88F0e3A620E967",
|
|
11577
11550
|
id: "0x8167a1117691f39e05e9131cfa88f0e3a620e96700020000000000000000038c",
|
|
@@ -12067,30 +12040,6 @@ var info_default3 = [
|
|
|
12067
12040
|
}
|
|
12068
12041
|
]
|
|
12069
12042
|
},
|
|
12070
|
-
{
|
|
12071
|
-
bpt: "0x988f2B03Aea264378518B7235d08c6cB2583AAA4",
|
|
12072
|
-
id: "0x988f2b03aea264378518b7235d08c6cb2583aaa40001000000000000000004b5",
|
|
12073
|
-
name: "29WBTC-4wstETH-67TRAC",
|
|
12074
|
-
type: "Weighted",
|
|
12075
|
-
gauge: null,
|
|
12076
|
-
tokens: [
|
|
12077
|
-
{
|
|
12078
|
-
address: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
|
|
12079
|
-
symbol: "WBTC",
|
|
12080
|
-
id: "0x"
|
|
12081
|
-
},
|
|
12082
|
-
{
|
|
12083
|
-
address: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
|
|
12084
|
-
symbol: "wstETH",
|
|
12085
|
-
id: "0x"
|
|
12086
|
-
},
|
|
12087
|
-
{
|
|
12088
|
-
address: "0xaA7a9CA87d3694B5755f213B5D04094b8d0F0A6F",
|
|
12089
|
-
symbol: "TRAC",
|
|
12090
|
-
id: "0x"
|
|
12091
|
-
}
|
|
12092
|
-
]
|
|
12093
|
-
},
|
|
12094
12043
|
{
|
|
12095
12044
|
bpt: "0x98b76Fb35387142f97d601A297276bB152Ae8ab0",
|
|
12096
12045
|
id: "0x98b76fb35387142f97d601a297276bb152ae8ab0000200000000000000000662",
|
|
@@ -13812,139 +13761,621 @@ var info_default3 = [
|
|
|
13812
13761
|
}
|
|
13813
13762
|
];
|
|
13814
13763
|
|
|
13815
|
-
// src/protocols/balancer/
|
|
13816
|
-
var
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
var USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
13825
|
-
var deposit = (pool, tokens = pool.tokens) => {
|
|
13826
|
-
const tokenAddresses = pool.tokens.map((token) => token.address).filter((address) => tokens.some((token) => token.address === address));
|
|
13827
|
-
const tokenPoolIds = pool.tokens.filter(
|
|
13828
|
-
(token) => tokens.some((t) => token.address === t.address) && token.id !== null && token.id !== "0x"
|
|
13829
|
-
).map((token) => token.id);
|
|
13830
|
-
const permissions = [
|
|
13831
|
-
...allowErc20Approve(tokenAddresses, [contracts.mainnet.balancer.vault]),
|
|
13832
|
-
allow.mainnet.balancer.vault.joinPool(
|
|
13833
|
-
pool.id,
|
|
13834
|
-
import_zodiac_roles_sdk5.c.avatar,
|
|
13835
|
-
import_zodiac_roles_sdk5.c.avatar,
|
|
13836
|
-
void 0,
|
|
13837
|
-
// Independently if one of the tokens added is ETH or not we must
|
|
13838
|
-
// add the send: true because Roles mod does not support scoping
|
|
13839
|
-
// the same function with different option values.
|
|
13764
|
+
// src/protocols/balancer/_gnoPools.ts
|
|
13765
|
+
var gnoPools_default2 = [
|
|
13766
|
+
{
|
|
13767
|
+
bpt: "0x00dF7f58e1Cf932eBe5f54De5970Fb2Bdf0ef06D",
|
|
13768
|
+
id: "0x00df7f58e1cf932ebe5f54de5970fb2bdf0ef06d00010000000000000000005b",
|
|
13769
|
+
name: "B-50wstETH-25BAL-25AURA",
|
|
13770
|
+
type: "Weighted",
|
|
13771
|
+
gauge: null,
|
|
13772
|
+
tokens: [
|
|
13840
13773
|
{
|
|
13841
|
-
|
|
13774
|
+
address: "0x1509706a6c66CA549ff0cB464de88231DDBe213B",
|
|
13775
|
+
symbol: "AURA",
|
|
13776
|
+
id: "0x"
|
|
13777
|
+
},
|
|
13778
|
+
{
|
|
13779
|
+
address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
|
|
13780
|
+
symbol: "wstETH",
|
|
13781
|
+
id: "0x"
|
|
13782
|
+
},
|
|
13783
|
+
{
|
|
13784
|
+
address: "0x7eF541E2a22058048904fE5744f9c7E4C57AF717",
|
|
13785
|
+
symbol: "BAL",
|
|
13786
|
+
id: "0x"
|
|
13842
13787
|
}
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13846
|
-
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13850
|
-
|
|
13851
|
-
|
|
13852
|
-
// { recipient: c.avatar, sender: c.avatar }
|
|
13853
|
-
// ),
|
|
13854
|
-
allow.mainnet.balancer.vault.setRelayerApproval(
|
|
13855
|
-
import_zodiac_roles_sdk5.c.avatar,
|
|
13856
|
-
contracts.mainnet.balancer.relayer
|
|
13857
|
-
),
|
|
13858
|
-
allow.mainnet.balancer.relayer.multicall(
|
|
13859
|
-
import_zodiac_roles_sdk5.c.every(
|
|
13860
|
-
import_zodiac_roles_sdk5.c.or(
|
|
13861
|
-
import_zodiac_roles_sdk5.c.calldataMatches(
|
|
13862
|
-
allow.mainnet.balancer.relayerLibrary.joinPool(
|
|
13863
|
-
import_zodiac_roles_sdk5.c.or(
|
|
13864
|
-
pool.id,
|
|
13865
|
-
...tokenPoolIds
|
|
13866
|
-
),
|
|
13867
|
-
void 0,
|
|
13868
|
-
import_zodiac_roles_sdk5.c.or(import_zodiac_roles_sdk5.c.avatar, contracts.mainnet.balancer.relayer),
|
|
13869
|
-
import_zodiac_roles_sdk5.c.or(import_zodiac_roles_sdk5.c.avatar, contracts.mainnet.balancer.relayer)
|
|
13870
|
-
)
|
|
13871
|
-
),
|
|
13872
|
-
import_zodiac_roles_sdk5.c.calldataMatches(
|
|
13873
|
-
allow.mainnet.balancer.relayerLibrary.exitPool(
|
|
13874
|
-
import_zodiac_roles_sdk5.c.or(
|
|
13875
|
-
pool.id,
|
|
13876
|
-
...tokenPoolIds
|
|
13877
|
-
),
|
|
13878
|
-
void 0,
|
|
13879
|
-
import_zodiac_roles_sdk5.c.avatar,
|
|
13880
|
-
import_zodiac_roles_sdk5.c.avatar
|
|
13881
|
-
)
|
|
13882
|
-
)
|
|
13883
|
-
// With the latest changes that Balancer made, there's no need to swap
|
|
13884
|
-
// tokens in order to join or exit pools
|
|
13885
|
-
// c.calldataMatches(
|
|
13886
|
-
// allow.mainnet.balancer.relayerLibrary.swap(
|
|
13887
|
-
// {
|
|
13888
|
-
// poolId: c.or(
|
|
13889
|
-
// ...(tokenPoolIds as [string, string, ...string[]])
|
|
13890
|
-
// ),
|
|
13891
|
-
// },
|
|
13892
|
-
// { recipient: c.avatar, sender: c.avatar }
|
|
13893
|
-
// )
|
|
13894
|
-
// )
|
|
13895
|
-
)
|
|
13896
|
-
),
|
|
13897
|
-
{ send: true }
|
|
13898
|
-
)
|
|
13899
|
-
);
|
|
13900
|
-
}
|
|
13901
|
-
return permissions;
|
|
13902
|
-
};
|
|
13903
|
-
var stake2 = (pool) => {
|
|
13904
|
-
const permissions = [];
|
|
13905
|
-
if (pool.gauge) {
|
|
13906
|
-
permissions.push(
|
|
13907
|
-
...allowErc20Approve([pool.bpt], [pool.gauge]),
|
|
13788
|
+
]
|
|
13789
|
+
},
|
|
13790
|
+
{
|
|
13791
|
+
bpt: "0x06135A9Ae830476d3a941baE9010B63732a055F4",
|
|
13792
|
+
id: "0x06135a9ae830476d3a941bae9010b63732a055f4000000000000000000000065",
|
|
13793
|
+
name: "stEUR/EURe",
|
|
13794
|
+
type: "ComposableStable",
|
|
13795
|
+
gauge: null,
|
|
13796
|
+
tokens: [
|
|
13908
13797
|
{
|
|
13909
|
-
|
|
13910
|
-
|
|
13798
|
+
address: "0x004626A008B1aCdC4c74ab51644093b155e59A23",
|
|
13799
|
+
symbol: "stEUR",
|
|
13800
|
+
id: "0x"
|
|
13911
13801
|
},
|
|
13912
13802
|
{
|
|
13913
|
-
|
|
13914
|
-
|
|
13803
|
+
address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
|
|
13804
|
+
symbol: "EURe",
|
|
13805
|
+
id: "0x"
|
|
13806
|
+
}
|
|
13807
|
+
]
|
|
13808
|
+
},
|
|
13809
|
+
{
|
|
13810
|
+
bpt: "0x2086f52651837600180dE173B09470F54EF74910",
|
|
13811
|
+
id: "0x2086f52651837600180de173b09470f54ef7491000000000000000000000004f",
|
|
13812
|
+
name: "staBAL3",
|
|
13813
|
+
type: "ComposableStable",
|
|
13814
|
+
gauge: null,
|
|
13815
|
+
tokens: [
|
|
13816
|
+
{
|
|
13817
|
+
address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
|
|
13818
|
+
symbol: "USDT",
|
|
13819
|
+
id: "0x"
|
|
13915
13820
|
},
|
|
13916
13821
|
{
|
|
13917
|
-
|
|
13918
|
-
|
|
13822
|
+
address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
|
|
13823
|
+
symbol: "USDC",
|
|
13824
|
+
id: "0x"
|
|
13919
13825
|
},
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
|
|
13924
|
-
}
|
|
13925
|
-
|
|
13926
|
-
|
|
13927
|
-
|
|
13928
|
-
|
|
13929
|
-
|
|
13930
|
-
|
|
13931
|
-
|
|
13932
|
-
|
|
13933
|
-
|
|
13934
|
-
{
|
|
13935
|
-
|
|
13936
|
-
|
|
13937
|
-
|
|
13938
|
-
|
|
13939
|
-
|
|
13940
|
-
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13947
|
-
|
|
13826
|
+
{
|
|
13827
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
13828
|
+
symbol: "WXDAI",
|
|
13829
|
+
id: "0x"
|
|
13830
|
+
}
|
|
13831
|
+
]
|
|
13832
|
+
},
|
|
13833
|
+
{
|
|
13834
|
+
bpt: "0x21d4c792Ea7E38e0D0819c2011A2b1Cb7252Bd99",
|
|
13835
|
+
id: "0x21d4c792ea7e38e0d0819c2011a2b1cb7252bd9900020000000000000000001e",
|
|
13836
|
+
name: "50COW-50GNO",
|
|
13837
|
+
type: "Weighted",
|
|
13838
|
+
gauge: null,
|
|
13839
|
+
tokens: [
|
|
13840
|
+
{
|
|
13841
|
+
address: "0x177127622c4A00F3d409B75571e12cB3c8973d3c",
|
|
13842
|
+
symbol: "COW",
|
|
13843
|
+
id: "0x"
|
|
13844
|
+
},
|
|
13845
|
+
{
|
|
13846
|
+
address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
|
|
13847
|
+
symbol: "GNO",
|
|
13848
|
+
id: "0x"
|
|
13849
|
+
}
|
|
13850
|
+
]
|
|
13851
|
+
},
|
|
13852
|
+
{
|
|
13853
|
+
bpt: "0x388Cae2f7d3704C937313d990298Ba67D70a3709",
|
|
13854
|
+
id: "0x388cae2f7d3704c937313d990298ba67d70a3709000200000000000000000026",
|
|
13855
|
+
name: "50AGVE-50GNO",
|
|
13856
|
+
type: "Weighted",
|
|
13857
|
+
gauge: null,
|
|
13858
|
+
tokens: [
|
|
13859
|
+
{
|
|
13860
|
+
address: "0x3a97704a1b25F08aa230ae53B352e2e72ef52843",
|
|
13861
|
+
symbol: "AGVE",
|
|
13862
|
+
id: "0x"
|
|
13863
|
+
},
|
|
13864
|
+
{
|
|
13865
|
+
address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
|
|
13866
|
+
symbol: "GNO",
|
|
13867
|
+
id: "0x"
|
|
13868
|
+
}
|
|
13869
|
+
]
|
|
13870
|
+
},
|
|
13871
|
+
{
|
|
13872
|
+
bpt: "0x4683e340a8049261057D5aB1b29C8d840E75695e",
|
|
13873
|
+
id: "0x4683e340a8049261057d5ab1b29c8d840e75695e00020000000000000000005a",
|
|
13874
|
+
name: "B-50wstETH-50GNO",
|
|
13875
|
+
type: "Weighted",
|
|
13876
|
+
gauge: null,
|
|
13877
|
+
tokens: [
|
|
13878
|
+
{
|
|
13879
|
+
address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
|
|
13880
|
+
symbol: "wstETH",
|
|
13881
|
+
id: "0x"
|
|
13882
|
+
},
|
|
13883
|
+
{
|
|
13884
|
+
address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
|
|
13885
|
+
symbol: "GNO",
|
|
13886
|
+
id: "0x"
|
|
13887
|
+
}
|
|
13888
|
+
]
|
|
13889
|
+
},
|
|
13890
|
+
{
|
|
13891
|
+
bpt: "0x4bcf6b48906fA0f68bEa1FC255869A41241d4851",
|
|
13892
|
+
id: "0x4bcf6b48906fa0f68bea1fc255869a41241d4851000200000000000000000021",
|
|
13893
|
+
name: "50WXDAI-50MPS",
|
|
13894
|
+
type: "Weighted",
|
|
13895
|
+
gauge: null,
|
|
13896
|
+
tokens: [
|
|
13897
|
+
{
|
|
13898
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
13899
|
+
symbol: "WXDAI",
|
|
13900
|
+
id: "0x"
|
|
13901
|
+
},
|
|
13902
|
+
{
|
|
13903
|
+
address: "0xfa57AA7beED63D03Aaf85fFd1753f5f6242588fb",
|
|
13904
|
+
symbol: "MPS",
|
|
13905
|
+
id: "0x"
|
|
13906
|
+
}
|
|
13907
|
+
]
|
|
13908
|
+
},
|
|
13909
|
+
{
|
|
13910
|
+
bpt: "0x4cdABE9E07ca393943AcFB9286bBbd0D0a310Ff6",
|
|
13911
|
+
id: "0x4cdabe9e07ca393943acfb9286bbbd0d0a310ff600020000000000000000005c",
|
|
13912
|
+
name: "B-50wstETH-50COW",
|
|
13913
|
+
type: "Weighted",
|
|
13914
|
+
gauge: null,
|
|
13915
|
+
tokens: [
|
|
13916
|
+
{
|
|
13917
|
+
address: "0x177127622c4A00F3d409B75571e12cB3c8973d3c",
|
|
13918
|
+
symbol: "COW",
|
|
13919
|
+
id: "0x"
|
|
13920
|
+
},
|
|
13921
|
+
{
|
|
13922
|
+
address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
|
|
13923
|
+
symbol: "wstETH",
|
|
13924
|
+
id: "0x"
|
|
13925
|
+
}
|
|
13926
|
+
]
|
|
13927
|
+
},
|
|
13928
|
+
{
|
|
13929
|
+
bpt: "0x5C78d05b8ECF97507d1cf70646082c54FaA4dA95",
|
|
13930
|
+
id: "0x5c78d05b8ecf97507d1cf70646082c54faa4da95000000000000000000000030",
|
|
13931
|
+
name: "bb-agEUR-EURe",
|
|
13932
|
+
type: "ComposableStable",
|
|
13933
|
+
gauge: "0x210ABdFD989f3eE5C08614a8f4e096Cf8408f5DF",
|
|
13934
|
+
tokens: [
|
|
13935
|
+
{
|
|
13936
|
+
address: "0x4b1E2c2762667331Bc91648052F646d1b0d35984",
|
|
13937
|
+
symbol: "agEUR",
|
|
13938
|
+
id: "0x"
|
|
13939
|
+
},
|
|
13940
|
+
{
|
|
13941
|
+
address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
|
|
13942
|
+
symbol: "EURe",
|
|
13943
|
+
id: "0x"
|
|
13944
|
+
}
|
|
13945
|
+
]
|
|
13946
|
+
},
|
|
13947
|
+
{
|
|
13948
|
+
bpt: "0x66888E4F35063Ad8bb11506A6fde5024fb4f1dB0",
|
|
13949
|
+
id: "0x66888e4f35063ad8bb11506a6fde5024fb4f1db0000100000000000000000053",
|
|
13950
|
+
name: "staBAL3-WETH-WBTC-BPT",
|
|
13951
|
+
type: "Weighted",
|
|
13952
|
+
gauge: null,
|
|
13953
|
+
tokens: [
|
|
13954
|
+
{
|
|
13955
|
+
address: "0x2086f52651837600180dE173B09470F54EF74910",
|
|
13956
|
+
symbol: "staBAL3",
|
|
13957
|
+
id: "0x2086f52651837600180de173b09470f54ef7491000000000000000000000004f"
|
|
13958
|
+
},
|
|
13959
|
+
{
|
|
13960
|
+
address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
|
|
13961
|
+
symbol: "USDT",
|
|
13962
|
+
id: "0x"
|
|
13963
|
+
},
|
|
13964
|
+
{
|
|
13965
|
+
address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
|
|
13966
|
+
symbol: "USDC",
|
|
13967
|
+
id: "0x"
|
|
13968
|
+
},
|
|
13969
|
+
{
|
|
13970
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
13971
|
+
symbol: "WXDAI",
|
|
13972
|
+
id: "0x"
|
|
13973
|
+
},
|
|
13974
|
+
{
|
|
13975
|
+
address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
|
|
13976
|
+
symbol: "WETH",
|
|
13977
|
+
id: "0x"
|
|
13978
|
+
},
|
|
13979
|
+
{
|
|
13980
|
+
address: "0x8e5bBbb09Ed1ebdE8674Cda39A0c169401db4252",
|
|
13981
|
+
symbol: "WBTC",
|
|
13982
|
+
id: "0x"
|
|
13983
|
+
}
|
|
13984
|
+
]
|
|
13985
|
+
},
|
|
13986
|
+
{
|
|
13987
|
+
bpt: "0x7644fA5D0eA14FcF3E813Fdf93ca9544f8567655",
|
|
13988
|
+
id: "0x7644fa5d0ea14fcf3e813fdf93ca9544f8567655000000000000000000000066",
|
|
13989
|
+
name: "sBAL3",
|
|
13990
|
+
type: "ComposableStable",
|
|
13991
|
+
gauge: null,
|
|
13992
|
+
tokens: [
|
|
13993
|
+
{
|
|
13994
|
+
address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
|
|
13995
|
+
symbol: "USDT",
|
|
13996
|
+
id: "0x"
|
|
13997
|
+
},
|
|
13998
|
+
{
|
|
13999
|
+
address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
|
|
14000
|
+
symbol: "sDAI",
|
|
14001
|
+
id: "0x"
|
|
14002
|
+
},
|
|
14003
|
+
{
|
|
14004
|
+
address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
|
|
14005
|
+
symbol: "USDC",
|
|
14006
|
+
id: "0x"
|
|
14007
|
+
}
|
|
14008
|
+
]
|
|
14009
|
+
},
|
|
14010
|
+
{
|
|
14011
|
+
bpt: "0x79C872Ed3Acb3fc5770dd8a0cD9Cd5dB3B3Ac985",
|
|
14012
|
+
id: "0x79c872ed3acb3fc5770dd8a0cd9cd5db3b3ac985000200000000000000000067",
|
|
14013
|
+
name: "50OLAS-50WXDAI",
|
|
14014
|
+
type: "Weighted",
|
|
14015
|
+
gauge: null,
|
|
14016
|
+
tokens: [
|
|
14017
|
+
{
|
|
14018
|
+
address: "0xcE11e14225575945b8E6Dc0D4F2dD4C570f79d9f",
|
|
14019
|
+
symbol: "OLAS",
|
|
14020
|
+
id: "0x"
|
|
14021
|
+
},
|
|
14022
|
+
{
|
|
14023
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
14024
|
+
symbol: "WXDAI",
|
|
14025
|
+
id: "0x"
|
|
14026
|
+
}
|
|
14027
|
+
]
|
|
14028
|
+
},
|
|
14029
|
+
{
|
|
14030
|
+
bpt: "0xa99FD9950B5D5dCeEaf4939E221dcA8cA9B938aB",
|
|
14031
|
+
id: "0xa99fd9950b5d5dceeaf4939e221dca8ca9b938ab000100000000000000000025",
|
|
14032
|
+
name: "25WETH-25BAL-25GNO-25wxDAI",
|
|
14033
|
+
type: "Weighted",
|
|
14034
|
+
gauge: "0xC092E0a4f5a2AdF3CF91E27cf4B7d7917D12CA2B",
|
|
14035
|
+
tokens: [
|
|
14036
|
+
{
|
|
14037
|
+
address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
|
|
14038
|
+
symbol: "WETH",
|
|
14039
|
+
id: "0x"
|
|
14040
|
+
},
|
|
14041
|
+
{
|
|
14042
|
+
address: "0x7eF541E2a22058048904fE5744f9c7E4C57AF717",
|
|
14043
|
+
symbol: "BAL",
|
|
14044
|
+
id: "0x"
|
|
14045
|
+
},
|
|
14046
|
+
{
|
|
14047
|
+
address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
|
|
14048
|
+
symbol: "GNO",
|
|
14049
|
+
id: "0x"
|
|
14050
|
+
},
|
|
14051
|
+
{
|
|
14052
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
14053
|
+
symbol: "WXDAI",
|
|
14054
|
+
id: "0x"
|
|
14055
|
+
}
|
|
14056
|
+
]
|
|
14057
|
+
},
|
|
14058
|
+
{
|
|
14059
|
+
bpt: "0xB8bB1ce9C6E5401D66fE2126dB6E7387E1E24fFE",
|
|
14060
|
+
id: "0xb8bb1ce9c6e5401d66fe2126db6e7387e1e24ffe00020000000000000000003d",
|
|
14061
|
+
name: "50WETH-50GNO",
|
|
14062
|
+
type: "Weighted",
|
|
14063
|
+
gauge: "0xd264f4d4Ad98FEf4b198547059C07a8E8bBF2F0E",
|
|
14064
|
+
tokens: [
|
|
14065
|
+
{
|
|
14066
|
+
address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
|
|
14067
|
+
symbol: "WETH",
|
|
14068
|
+
id: "0x"
|
|
14069
|
+
},
|
|
14070
|
+
{
|
|
14071
|
+
address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
|
|
14072
|
+
symbol: "GNO",
|
|
14073
|
+
id: "0x"
|
|
14074
|
+
}
|
|
14075
|
+
]
|
|
14076
|
+
},
|
|
14077
|
+
{
|
|
14078
|
+
bpt: "0xbAd20c15A773bf03ab973302F61FAbceA5101f0A",
|
|
14079
|
+
id: "0xbad20c15a773bf03ab973302f61fabcea5101f0a000000000000000000000034",
|
|
14080
|
+
name: "bb-WETH-wstETH",
|
|
14081
|
+
type: "ComposableStable",
|
|
14082
|
+
gauge: "0x27519F69b2Ac912aeb6fE066180FB25a17c71755",
|
|
14083
|
+
tokens: [
|
|
14084
|
+
{
|
|
14085
|
+
address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
|
|
14086
|
+
symbol: "WETH",
|
|
14087
|
+
id: "0x"
|
|
14088
|
+
},
|
|
14089
|
+
{
|
|
14090
|
+
address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
|
|
14091
|
+
symbol: "wstETH",
|
|
14092
|
+
id: "0x"
|
|
14093
|
+
}
|
|
14094
|
+
]
|
|
14095
|
+
},
|
|
14096
|
+
{
|
|
14097
|
+
bpt: "0xBc2acf5E821c5c9f8667A36bB1131dAd26Ed64F9",
|
|
14098
|
+
id: "0xbc2acf5e821c5c9f8667a36bb1131dad26ed64f9000200000000000000000063",
|
|
14099
|
+
name: "B-50sDAI-50wstETH",
|
|
14100
|
+
type: "Weighted",
|
|
14101
|
+
gauge: null,
|
|
14102
|
+
tokens: [
|
|
14103
|
+
{
|
|
14104
|
+
address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
|
|
14105
|
+
symbol: "wstETH",
|
|
14106
|
+
id: "0x"
|
|
14107
|
+
},
|
|
14108
|
+
{
|
|
14109
|
+
address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
|
|
14110
|
+
symbol: "sDAI",
|
|
14111
|
+
id: "0x"
|
|
14112
|
+
}
|
|
14113
|
+
]
|
|
14114
|
+
},
|
|
14115
|
+
{
|
|
14116
|
+
bpt: "0xC5Df11757F4A8DFACcC731d13b9577f67055c6c6",
|
|
14117
|
+
id: "0xc5df11757f4a8dfaccc731d13b9577f67055c6c6000200000000000000000077",
|
|
14118
|
+
name: "B-50EURe-50GBPe",
|
|
14119
|
+
type: "Weighted",
|
|
14120
|
+
gauge: null,
|
|
14121
|
+
tokens: [
|
|
14122
|
+
{
|
|
14123
|
+
address: "0x5Cb9073902F2035222B9749F8fB0c9BFe5527108",
|
|
14124
|
+
symbol: "GBPe",
|
|
14125
|
+
id: "0x"
|
|
14126
|
+
},
|
|
14127
|
+
{
|
|
14128
|
+
address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
|
|
14129
|
+
symbol: "EURe",
|
|
14130
|
+
id: "0x"
|
|
14131
|
+
}
|
|
14132
|
+
]
|
|
14133
|
+
},
|
|
14134
|
+
{
|
|
14135
|
+
bpt: "0xc9F00C3a713008DDf69b768d90d4978549bFDF94",
|
|
14136
|
+
id: "0xc9f00c3a713008ddf69b768d90d4978549bfdf9400000000000000000000006d",
|
|
14137
|
+
name: "crvUSD/sDAI",
|
|
14138
|
+
type: "ComposableStable",
|
|
14139
|
+
gauge: null,
|
|
14140
|
+
tokens: [
|
|
14141
|
+
{
|
|
14142
|
+
address: "0xaBEf652195F98A91E490f047A5006B71c85f058d",
|
|
14143
|
+
symbol: "crvUSD",
|
|
14144
|
+
id: "0x"
|
|
14145
|
+
},
|
|
14146
|
+
{
|
|
14147
|
+
address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
|
|
14148
|
+
symbol: "sDAI",
|
|
14149
|
+
id: "0x"
|
|
14150
|
+
}
|
|
14151
|
+
]
|
|
14152
|
+
},
|
|
14153
|
+
{
|
|
14154
|
+
bpt: "0xDd439304A77f54B1F7854751Ac1169b279591Ef7",
|
|
14155
|
+
id: "0xdd439304a77f54b1f7854751ac1169b279591ef7000000000000000000000064",
|
|
14156
|
+
name: "EURe/sDAI",
|
|
14157
|
+
type: "ComposableStable",
|
|
14158
|
+
gauge: null,
|
|
14159
|
+
tokens: [
|
|
14160
|
+
{
|
|
14161
|
+
address: "0xaf204776c7245bF4147c2612BF6e5972Ee483701",
|
|
14162
|
+
symbol: "sDAI",
|
|
14163
|
+
id: "0x"
|
|
14164
|
+
},
|
|
14165
|
+
{
|
|
14166
|
+
address: "0xcB444e90D8198415266c6a2724b7900fb12FC56E",
|
|
14167
|
+
symbol: "EURe",
|
|
14168
|
+
id: "0x"
|
|
14169
|
+
}
|
|
14170
|
+
]
|
|
14171
|
+
},
|
|
14172
|
+
{
|
|
14173
|
+
bpt: "0xEA54604e7E1DdEc8320cF838CFE857FbF44Aad9f",
|
|
14174
|
+
id: "0xea54604e7e1ddec8320cf838cfe857fbf44aad9f000200000000000000000078",
|
|
14175
|
+
name: "B-50GBPe-50WXDAI",
|
|
14176
|
+
type: "Weighted",
|
|
14177
|
+
gauge: null,
|
|
14178
|
+
tokens: [
|
|
14179
|
+
{
|
|
14180
|
+
address: "0x5Cb9073902F2035222B9749F8fB0c9BFe5527108",
|
|
14181
|
+
symbol: "GBPe",
|
|
14182
|
+
id: "0x"
|
|
14183
|
+
},
|
|
14184
|
+
{
|
|
14185
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
14186
|
+
symbol: "WXDAI",
|
|
14187
|
+
id: "0x"
|
|
14188
|
+
}
|
|
14189
|
+
]
|
|
14190
|
+
},
|
|
14191
|
+
{
|
|
14192
|
+
bpt: "0xEb30C85CC528537f5350CF5684Ce6a4538e13394",
|
|
14193
|
+
id: "0xeb30c85cc528537f5350cf5684ce6a4538e13394000200000000000000000059",
|
|
14194
|
+
name: "B-50USD-50wstETH",
|
|
14195
|
+
type: "Weighted",
|
|
14196
|
+
gauge: null,
|
|
14197
|
+
tokens: [
|
|
14198
|
+
{
|
|
14199
|
+
address: "0x2086f52651837600180dE173B09470F54EF74910",
|
|
14200
|
+
symbol: "staBAL3",
|
|
14201
|
+
id: "0x2086f52651837600180de173b09470f54ef7491000000000000000000000004f"
|
|
14202
|
+
},
|
|
14203
|
+
{
|
|
14204
|
+
address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
|
|
14205
|
+
symbol: "USDT",
|
|
14206
|
+
id: "0x"
|
|
14207
|
+
},
|
|
14208
|
+
{
|
|
14209
|
+
address: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
|
|
14210
|
+
symbol: "USDC",
|
|
14211
|
+
id: "0x"
|
|
14212
|
+
},
|
|
14213
|
+
{
|
|
14214
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
14215
|
+
symbol: "WXDAI",
|
|
14216
|
+
id: "0x"
|
|
14217
|
+
},
|
|
14218
|
+
{
|
|
14219
|
+
address: "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6",
|
|
14220
|
+
symbol: "wstETH",
|
|
14221
|
+
id: "0x"
|
|
14222
|
+
}
|
|
14223
|
+
]
|
|
14224
|
+
},
|
|
14225
|
+
{
|
|
14226
|
+
bpt: "0xfbc3112172bA256454047D7436d1E08B3cdc5031",
|
|
14227
|
+
id: "0xfbc3112172ba256454047d7436d1e08b3cdc5031000200000000000000000015",
|
|
14228
|
+
name: "80MIVA-20WXDAI",
|
|
14229
|
+
type: "Weighted",
|
|
14230
|
+
gauge: null,
|
|
14231
|
+
tokens: [
|
|
14232
|
+
{
|
|
14233
|
+
address: "0x63e62989D9EB2d37dfDB1F93A22f063635b07d51",
|
|
14234
|
+
symbol: "MIVA",
|
|
14235
|
+
id: "0x"
|
|
14236
|
+
},
|
|
14237
|
+
{
|
|
14238
|
+
address: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
|
|
14239
|
+
symbol: "WXDAI",
|
|
14240
|
+
id: "0x"
|
|
14241
|
+
}
|
|
14242
|
+
]
|
|
14243
|
+
}
|
|
14244
|
+
];
|
|
14245
|
+
|
|
14246
|
+
// src/protocols/balancer/actions.ts
|
|
14247
|
+
var import_zodiac_roles_sdk5 = require("zodiac-roles-sdk");
|
|
14248
|
+
var BAL = "0xba100000625a3754423978a60c9317c58a424e3D";
|
|
14249
|
+
var WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
14250
|
+
var B_80BAL_20WETH = "0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56";
|
|
14251
|
+
var B_80BAL_20WETH_PID = "0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014";
|
|
14252
|
+
var bb_a_USD_v1 = "0x7B50775383d3D6f0215A8F290f2C9e2eEBBEceb2";
|
|
14253
|
+
var bb_a_USD_v2 = "0xA13a9247ea42D743238089903570127DdA72fE44";
|
|
14254
|
+
var bb_a_USD_v3 = "0xfeBb0bbf162E64fb9D0dfe186E517d84C395f016";
|
|
14255
|
+
var USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
14256
|
+
var deposit = (pool, tokens = pool.tokens) => {
|
|
14257
|
+
const tokenAddresses = pool.tokens.map((token) => token.address).filter((address) => tokens.some((token) => token.address === address));
|
|
14258
|
+
const tokenPoolIds = pool.tokens.filter(
|
|
14259
|
+
(token) => tokens.some((t) => token.address === t.address) && token.id !== null && token.id !== "0x"
|
|
14260
|
+
).map((token) => token.id);
|
|
14261
|
+
const permissions = [
|
|
14262
|
+
...allowErc20Approve(tokenAddresses, [contracts.mainnet.balancer.vault]),
|
|
14263
|
+
allow.mainnet.balancer.vault.joinPool(
|
|
14264
|
+
pool.id,
|
|
14265
|
+
import_zodiac_roles_sdk5.c.avatar,
|
|
14266
|
+
import_zodiac_roles_sdk5.c.avatar,
|
|
14267
|
+
void 0,
|
|
14268
|
+
// Independently if one of the tokens added is ETH or not we must
|
|
14269
|
+
// add the send: true because Roles mod does not support scoping
|
|
14270
|
+
// the same function with different option values.
|
|
14271
|
+
{
|
|
14272
|
+
send: true
|
|
14273
|
+
}
|
|
14274
|
+
),
|
|
14275
|
+
allow.mainnet.balancer.vault.exitPool(pool.id, import_zodiac_roles_sdk5.c.avatar, import_zodiac_roles_sdk5.c.avatar)
|
|
14276
|
+
];
|
|
14277
|
+
if (tokenPoolIds.length > 0) {
|
|
14278
|
+
permissions.push(
|
|
14279
|
+
// With the latest changes that Balancer made, there's no need to swap
|
|
14280
|
+
// tokens in order to join or exit pools
|
|
14281
|
+
// allow.mainnet.balancer.vault.swap(
|
|
14282
|
+
// { poolId: c.or(...(tokenPoolIds as [string, string, ...string[]])) },
|
|
14283
|
+
// { recipient: c.avatar, sender: c.avatar }
|
|
14284
|
+
// ),
|
|
14285
|
+
allow.mainnet.balancer.vault.setRelayerApproval(
|
|
14286
|
+
import_zodiac_roles_sdk5.c.avatar,
|
|
14287
|
+
contracts.mainnet.balancer.relayer
|
|
14288
|
+
),
|
|
14289
|
+
allow.mainnet.balancer.relayer.multicall(
|
|
14290
|
+
import_zodiac_roles_sdk5.c.every(
|
|
14291
|
+
import_zodiac_roles_sdk5.c.or(
|
|
14292
|
+
import_zodiac_roles_sdk5.c.calldataMatches(
|
|
14293
|
+
allow.mainnet.balancer.relayerLibrary.joinPool(
|
|
14294
|
+
import_zodiac_roles_sdk5.c.or(
|
|
14295
|
+
pool.id,
|
|
14296
|
+
...tokenPoolIds
|
|
14297
|
+
),
|
|
14298
|
+
void 0,
|
|
14299
|
+
import_zodiac_roles_sdk5.c.or(import_zodiac_roles_sdk5.c.avatar, contracts.mainnet.balancer.relayer),
|
|
14300
|
+
import_zodiac_roles_sdk5.c.or(import_zodiac_roles_sdk5.c.avatar, contracts.mainnet.balancer.relayer)
|
|
14301
|
+
)
|
|
14302
|
+
),
|
|
14303
|
+
import_zodiac_roles_sdk5.c.calldataMatches(
|
|
14304
|
+
allow.mainnet.balancer.relayerLibrary.exitPool(
|
|
14305
|
+
import_zodiac_roles_sdk5.c.or(
|
|
14306
|
+
pool.id,
|
|
14307
|
+
...tokenPoolIds
|
|
14308
|
+
),
|
|
14309
|
+
void 0,
|
|
14310
|
+
import_zodiac_roles_sdk5.c.avatar,
|
|
14311
|
+
import_zodiac_roles_sdk5.c.avatar
|
|
14312
|
+
)
|
|
14313
|
+
)
|
|
14314
|
+
// With the latest changes that Balancer made, there's no need to swap
|
|
14315
|
+
// tokens in order to join or exit pools
|
|
14316
|
+
// c.calldataMatches(
|
|
14317
|
+
// allow.mainnet.balancer.relayerLibrary.swap(
|
|
14318
|
+
// {
|
|
14319
|
+
// poolId: c.or(
|
|
14320
|
+
// ...(tokenPoolIds as [string, string, ...string[]])
|
|
14321
|
+
// ),
|
|
14322
|
+
// },
|
|
14323
|
+
// { recipient: c.avatar, sender: c.avatar }
|
|
14324
|
+
// )
|
|
14325
|
+
// )
|
|
14326
|
+
)
|
|
14327
|
+
),
|
|
14328
|
+
{ send: true }
|
|
14329
|
+
)
|
|
14330
|
+
);
|
|
14331
|
+
}
|
|
14332
|
+
return permissions;
|
|
14333
|
+
};
|
|
14334
|
+
var stake2 = (pool) => {
|
|
14335
|
+
const permissions = [];
|
|
14336
|
+
if (pool.gauge) {
|
|
14337
|
+
permissions.push(
|
|
14338
|
+
...allowErc20Approve([pool.bpt], [pool.gauge]),
|
|
14339
|
+
{
|
|
14340
|
+
...allow.mainnet.balancer.gauge["deposit(uint256)"](),
|
|
14341
|
+
targetAddress: pool.gauge
|
|
14342
|
+
},
|
|
14343
|
+
{
|
|
14344
|
+
...allow.mainnet.balancer.gauge["withdraw(uint256)"](),
|
|
14345
|
+
targetAddress: pool.gauge
|
|
14346
|
+
},
|
|
14347
|
+
{
|
|
14348
|
+
...allow.mainnet.balancer.gauge["claim_rewards()"](),
|
|
14349
|
+
targetAddress: pool.gauge
|
|
14350
|
+
},
|
|
14351
|
+
allow.mainnet.balancer.minter.mint(pool.gauge)
|
|
14352
|
+
);
|
|
14353
|
+
}
|
|
14354
|
+
return permissions;
|
|
14355
|
+
};
|
|
14356
|
+
var lock = () => {
|
|
14357
|
+
return [
|
|
14358
|
+
...allowErc20Approve([BAL, WETH], [contracts.mainnet.balancer.vault]),
|
|
14359
|
+
...allowErc20Approve([B_80BAL_20WETH], [contracts.mainnet.balancer.vebal]),
|
|
14360
|
+
allow.mainnet.balancer.vault.joinPool(
|
|
14361
|
+
B_80BAL_20WETH_PID,
|
|
14362
|
+
import_zodiac_roles_sdk5.c.avatar,
|
|
14363
|
+
import_zodiac_roles_sdk5.c.avatar,
|
|
14364
|
+
void 0,
|
|
14365
|
+
{ send: true }
|
|
14366
|
+
),
|
|
14367
|
+
allow.mainnet.balancer.vault.exitPool(
|
|
14368
|
+
B_80BAL_20WETH_PID,
|
|
14369
|
+
import_zodiac_roles_sdk5.c.avatar,
|
|
14370
|
+
import_zodiac_roles_sdk5.c.avatar
|
|
14371
|
+
),
|
|
14372
|
+
// As Safes are smart contracts they are not allowed to lock veBAL
|
|
14373
|
+
// if the they are not whitelisted previously by Balancer:
|
|
14374
|
+
// https://forum.balancer.fi/t/allow-for-gnosis-safe-to-be-used-for-vebal-locking/2698
|
|
14375
|
+
allow.mainnet.balancer.vebal.create_lock(),
|
|
14376
|
+
allow.mainnet.balancer.vebal.increase_amount(),
|
|
14377
|
+
allow.mainnet.balancer.vebal.increase_unlock_time(),
|
|
14378
|
+
allow.mainnet.balancer.vebal.withdraw(),
|
|
13948
14379
|
allow.mainnet.balancer.fee_distributor.claimToken(
|
|
13949
14380
|
import_zodiac_roles_sdk5.c.avatar,
|
|
13950
14381
|
import_zodiac_roles_sdk5.c.or(BAL, bb_a_USD_v1, bb_a_USD_v2, bb_a_USD_v3, USDC)
|
|
@@ -13967,11 +14398,11 @@ var findPool = (pools, nameIdOrBpt) => {
|
|
|
13967
14398
|
}
|
|
13968
14399
|
return pool;
|
|
13969
14400
|
};
|
|
13970
|
-
var findToken3 = (symbolOrAddress) => {
|
|
13971
|
-
const
|
|
13972
|
-
const tokens =
|
|
14401
|
+
var findToken3 = (pools, symbolOrAddress) => {
|
|
14402
|
+
const nameOrAddressOrIdLower = symbolOrAddress.toLowerCase();
|
|
14403
|
+
const tokens = pools.flatMap((pool) => [...pool.tokens]);
|
|
13973
14404
|
const token = tokens.find(
|
|
13974
|
-
(token2) => token2.symbol.toLowerCase() ===
|
|
14405
|
+
(token2) => token2.symbol.toLowerCase() === nameOrAddressOrIdLower || token2.address.toLowerCase() === nameOrAddressOrIdLower
|
|
13975
14406
|
);
|
|
13976
14407
|
if (!token) {
|
|
13977
14408
|
throw new NotFoundError(`Token not found: ${symbolOrAddress}`);
|
|
@@ -13979,13 +14410,18 @@ var findToken3 = (symbolOrAddress) => {
|
|
|
13979
14410
|
return token;
|
|
13980
14411
|
};
|
|
13981
14412
|
var eth3 = {
|
|
13982
|
-
deposit: async (
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
14413
|
+
deposit: async ({
|
|
14414
|
+
targets,
|
|
14415
|
+
tokens
|
|
14416
|
+
}) => {
|
|
14417
|
+
return targets.flatMap(
|
|
14418
|
+
(target) => deposit(
|
|
14419
|
+
findPool(ethPools_default2, target),
|
|
14420
|
+
tokens == null ? void 0 : tokens.map((addressOrSymbol) => findToken3(ethPools_default2, addressOrSymbol))
|
|
14421
|
+
)
|
|
14422
|
+
);
|
|
14423
|
+
},
|
|
14424
|
+
stake: async (options) => options.targets.flatMap((target) => stake2(findPool(ethPools_default2, target))),
|
|
13989
14425
|
lock: async () => {
|
|
13990
14426
|
return lock();
|
|
13991
14427
|
}
|
|
@@ -14010,11 +14446,29 @@ var eth3 = {
|
|
|
14010
14446
|
// src/protocols/aura/actions.ts
|
|
14011
14447
|
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
14012
14448
|
var AURA = "0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF";
|
|
14013
|
-
var deposit2 = (pool, tokens = pool.tokens) => {
|
|
14449
|
+
var deposit2 = (chain, pool, tokens = pool.tokens) => {
|
|
14014
14450
|
const tokenAddresses = pool.tokens.map((token) => token.address).filter((address) => tokens.some((token) => token.address === address));
|
|
14451
|
+
let booster;
|
|
14452
|
+
let reward_pool_deposit_wrapper;
|
|
14453
|
+
let balancer_pools;
|
|
14454
|
+
switch (chain) {
|
|
14455
|
+
case "eth" /* eth */:
|
|
14456
|
+
booster = contracts.mainnet.aura.booster;
|
|
14457
|
+
reward_pool_deposit_wrapper = contracts.mainnet.aura.reward_pool_deposit_wrapper;
|
|
14458
|
+
balancer_pools = ethPools_default2;
|
|
14459
|
+
break;
|
|
14460
|
+
case "gno" /* gno */:
|
|
14461
|
+
booster = contractAddressOverrides.gnosis.aura.booster;
|
|
14462
|
+
reward_pool_deposit_wrapper = contractAddressOverrides.gnosis.aura.reward_pool_deposit_wrapper;
|
|
14463
|
+
balancer_pools = gnoPools_default2;
|
|
14464
|
+
break;
|
|
14465
|
+
}
|
|
14015
14466
|
const permissions = [
|
|
14016
|
-
...allowErc20Approve([pool.bpt], [
|
|
14017
|
-
|
|
14467
|
+
...allowErc20Approve([pool.bpt], [booster]),
|
|
14468
|
+
{
|
|
14469
|
+
...allow.mainnet.aura.booster.deposit(pool.id),
|
|
14470
|
+
targetAddress: booster
|
|
14471
|
+
},
|
|
14018
14472
|
{
|
|
14019
14473
|
...allow.mainnet.aura.rewarder.withdrawAndUnwrap(),
|
|
14020
14474
|
targetAddress: pool.rewarder
|
|
@@ -14031,15 +14485,16 @@ var deposit2 = (pool, tokens = pool.tokens) => {
|
|
|
14031
14485
|
];
|
|
14032
14486
|
if (tokenAddresses.length > 0) {
|
|
14033
14487
|
permissions.push(
|
|
14034
|
-
...allowErc20Approve(tokenAddresses, [
|
|
14035
|
-
|
|
14036
|
-
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
|
|
14042
|
-
|
|
14488
|
+
...allowErc20Approve(tokenAddresses, [reward_pool_deposit_wrapper]),
|
|
14489
|
+
{
|
|
14490
|
+
...allow.mainnet.aura.reward_pool_deposit_wrapper.depositSingle(
|
|
14491
|
+
pool.rewarder,
|
|
14492
|
+
import_zodiac_roles_sdk6.c.or(...tokenAddresses),
|
|
14493
|
+
void 0,
|
|
14494
|
+
findPool(balancer_pools, pool.bpt).id
|
|
14495
|
+
),
|
|
14496
|
+
targetAddress: reward_pool_deposit_wrapper
|
|
14497
|
+
}
|
|
14043
14498
|
);
|
|
14044
14499
|
}
|
|
14045
14500
|
return permissions;
|
|
@@ -14148,9 +14603,9 @@ var stakeTokens_default2 = [
|
|
|
14148
14603
|
|
|
14149
14604
|
// src/protocols/aura/index.ts
|
|
14150
14605
|
var findPool2 = (pools, nameOrAddressOrId) => {
|
|
14151
|
-
const
|
|
14606
|
+
const nameOrAddressOrIdLower = nameOrAddressOrId.toLowerCase();
|
|
14152
14607
|
const pool = pools.find(
|
|
14153
|
-
(pool2) => pool2.name.toLowerCase() ===
|
|
14608
|
+
(pool2) => pool2.name.toLowerCase() === nameOrAddressOrIdLower || pool2.bpt.toLowerCase() === nameOrAddressOrIdLower || pool2.id.toLowerCase() === nameOrAddressOrIdLower
|
|
14154
14609
|
);
|
|
14155
14610
|
if (!pool) {
|
|
14156
14611
|
throw new NotFoundError(`Pool not found: ${nameOrAddressOrId}`);
|
|
@@ -14158,10 +14613,10 @@ var findPool2 = (pools, nameOrAddressOrId) => {
|
|
|
14158
14613
|
return pool;
|
|
14159
14614
|
};
|
|
14160
14615
|
var findToken4 = (pools, symbolOrAddress) => {
|
|
14161
|
-
const
|
|
14616
|
+
const nameOrAddressOrIdLower = symbolOrAddress.toLowerCase();
|
|
14162
14617
|
const tokens = pools.flatMap((pool) => [...pool.tokens]);
|
|
14163
14618
|
const token = tokens.find(
|
|
14164
|
-
(token2) => token2.symbol.toLowerCase() ===
|
|
14619
|
+
(token2) => token2.symbol.toLowerCase() === nameOrAddressOrIdLower || token2.address.toLowerCase() === nameOrAddressOrIdLower
|
|
14165
14620
|
);
|
|
14166
14621
|
if (!token) {
|
|
14167
14622
|
throw new NotFoundError(`Token not found: ${symbolOrAddress}`);
|
|
@@ -14169,9 +14624,9 @@ var findToken4 = (pools, symbolOrAddress) => {
|
|
|
14169
14624
|
return token;
|
|
14170
14625
|
};
|
|
14171
14626
|
var findStakeToken2 = (nameOrAddress) => {
|
|
14172
|
-
const
|
|
14627
|
+
const nameOrAddressOrIdLower = nameOrAddress.toLowerCase();
|
|
14173
14628
|
const stakeToken = stakeTokens_default2.find(
|
|
14174
|
-
(stakeToken2) => stakeToken2.address.toLowerCase() ===
|
|
14629
|
+
(stakeToken2) => stakeToken2.address.toLowerCase() === nameOrAddressOrIdLower || stakeToken2.symbol.toLowerCase() === nameOrAddressOrIdLower
|
|
14175
14630
|
);
|
|
14176
14631
|
if (!stakeToken) {
|
|
14177
14632
|
throw new NotFoundError(`Token not found on eth: ${nameOrAddress}`);
|
|
@@ -14185,6 +14640,7 @@ var eth4 = {
|
|
|
14185
14640
|
}) => {
|
|
14186
14641
|
return targets.flatMap(
|
|
14187
14642
|
(target) => deposit2(
|
|
14643
|
+
"eth" /* eth */,
|
|
14188
14644
|
findPool2(ethPools_default, target),
|
|
14189
14645
|
tokens == null ? void 0 : tokens.map((addressOrSymbol) => findToken4(ethPools_default, addressOrSymbol))
|
|
14190
14646
|
)
|
|
@@ -14214,6 +14670,7 @@ var gno = {
|
|
|
14214
14670
|
}) => {
|
|
14215
14671
|
return targets.flatMap(
|
|
14216
14672
|
(target) => deposit2(
|
|
14673
|
+
"gno" /* gno */,
|
|
14217
14674
|
findPool2(gnoPools_default, target),
|
|
14218
14675
|
tokens == null ? void 0 : tokens.map((addressOrSymbol) => findToken4(gnoPools_default, addressOrSymbol))
|
|
14219
14676
|
)
|
|
@@ -14222,7 +14679,7 @@ var gno = {
|
|
|
14222
14679
|
};
|
|
14223
14680
|
|
|
14224
14681
|
// src/protocols/compound/v2/_info.ts
|
|
14225
|
-
var
|
|
14682
|
+
var info_default3 = [
|
|
14226
14683
|
{
|
|
14227
14684
|
cToken: "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E",
|
|
14228
14685
|
token: "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
|
|
@@ -14435,7 +14892,7 @@ var borrow = (token) => {
|
|
|
14435
14892
|
// src/protocols/compound/v2/index.ts
|
|
14436
14893
|
var findToken5 = (symbolOrAddress) => {
|
|
14437
14894
|
const nameOrAddressLower = symbolOrAddress.toLowerCase();
|
|
14438
|
-
const token =
|
|
14895
|
+
const token = info_default3.find(
|
|
14439
14896
|
(token2) => token2.symbol.toLowerCase() === nameOrAddressLower || token2.token.toLowerCase() === nameOrAddressLower
|
|
14440
14897
|
);
|
|
14441
14898
|
if (!token) {
|
|
@@ -14457,7 +14914,7 @@ var eth5 = {
|
|
|
14457
14914
|
};
|
|
14458
14915
|
|
|
14459
14916
|
// src/protocols/convex/_info.ts
|
|
14460
|
-
var
|
|
14917
|
+
var info_default4 = [
|
|
14461
14918
|
{
|
|
14462
14919
|
name: "cDAI+cUSDC",
|
|
14463
14920
|
id: "0",
|
|
@@ -16361,6 +16818,34 @@ var info_default5 = [
|
|
|
16361
16818
|
crvLPToken: "0x2482DFb5A65D901d137742AB1095f26374509352",
|
|
16362
16819
|
cvxDepositToken: "0x8c97D911BF1f47B7d33334B9dcf197Bfe93c7104",
|
|
16363
16820
|
rewarder: "0x4C204392a9E4d5f8390541971B59FC95B24782b5"
|
|
16821
|
+
},
|
|
16822
|
+
{
|
|
16823
|
+
name: "xETHpxETH",
|
|
16824
|
+
id: "299",
|
|
16825
|
+
crvLPToken: "0x3C91EAeac42DfaEad5F356167c52837e443b9f94",
|
|
16826
|
+
cvxDepositToken: "0xCef9FA76c26747B341984633dac29E20E7B64aF8",
|
|
16827
|
+
rewarder: "0xc30946E3c09D86c3546e11286BC2779b2a40A972"
|
|
16828
|
+
},
|
|
16829
|
+
{
|
|
16830
|
+
name: "ETH+pxETH-f",
|
|
16831
|
+
id: "300",
|
|
16832
|
+
crvLPToken: "0x982bcd444C9445c15CCe3eca506ef01E8348Fe5D",
|
|
16833
|
+
cvxDepositToken: "0x359589fb4fc290009c3a0B10a232610e9E0A310B",
|
|
16834
|
+
rewarder: "0x29aB65DB26116249b0D30c2349C1C7Fa56648203"
|
|
16835
|
+
},
|
|
16836
|
+
{
|
|
16837
|
+
name: "pxETHmkUSD-f",
|
|
16838
|
+
id: "301",
|
|
16839
|
+
crvLPToken: "0x6ade6971Ca3d90990C30d39c78b0534C7166e07b",
|
|
16840
|
+
cvxDepositToken: "0x1C9427B79093Aacc5BEe197Bf32aB72403992371",
|
|
16841
|
+
rewarder: "0x484A34B0154A97B09828736888b95bb298F3a8DF"
|
|
16842
|
+
},
|
|
16843
|
+
{
|
|
16844
|
+
name: "mkUSDPay",
|
|
16845
|
+
id: "302",
|
|
16846
|
+
crvLPToken: "0x9e10f9Fb6F0D32B350CEe2618662243d4f24C64a",
|
|
16847
|
+
cvxDepositToken: "0x66710eBFdeD4aAf3D6675Bdd7c9cE11F0914D71E",
|
|
16848
|
+
rewarder: "0x09E18C6F03b5ee9D3F39c3865aa53A12E46E54B2"
|
|
16364
16849
|
}
|
|
16365
16850
|
];
|
|
16366
16851
|
|
|
@@ -16452,7 +16937,7 @@ var stakeTokens_default3 = [
|
|
|
16452
16937
|
// src/protocols/convex/index.ts
|
|
16453
16938
|
var findPool3 = (nameOrAddressOrId) => {
|
|
16454
16939
|
const symbolAddressLower = nameOrAddressOrId.toLowerCase();
|
|
16455
|
-
const pool =
|
|
16940
|
+
const pool = info_default4.find(
|
|
16456
16941
|
(pool2) => pool2.name.toLowerCase() === symbolAddressLower || pool2.crvLPToken.toLowerCase() === symbolAddressLower || pool2.id.toLowerCase() === symbolAddressLower
|
|
16457
16942
|
);
|
|
16458
16943
|
if (!pool) {
|
|
@@ -16679,7 +17164,7 @@ var borrow2 = ({
|
|
|
16679
17164
|
var import_ethers7 = require("ethers");
|
|
16680
17165
|
|
|
16681
17166
|
// src/protocols/maker/_info.ts
|
|
16682
|
-
var
|
|
17167
|
+
var info_default5 = [
|
|
16683
17168
|
{
|
|
16684
17169
|
address: "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
|
|
16685
17170
|
symbol: "BAT",
|
|
@@ -17166,7 +17651,7 @@ var queryCdps = async (proxy, targets) => {
|
|
|
17166
17651
|
};
|
|
17167
17652
|
var queryIlk = async (cdp) => {
|
|
17168
17653
|
const ilkId = await sdk.maker.CdpManager.ilks(cdp);
|
|
17169
|
-
const ilk =
|
|
17654
|
+
const ilk = info_default5.find((ilk2) => ilk2.ilk === ilkId);
|
|
17170
17655
|
if (!ilk) {
|
|
17171
17656
|
throw new Error(`Unexpected ilk ${ilkId} of cdp ${cdp.toNumber()}`);
|
|
17172
17657
|
}
|
|
@@ -17200,7 +17685,7 @@ var eth9 = {
|
|
|
17200
17685
|
};
|
|
17201
17686
|
|
|
17202
17687
|
// src/protocols/spark/_info.ts
|
|
17203
|
-
var
|
|
17688
|
+
var info_default6 = [
|
|
17204
17689
|
{
|
|
17205
17690
|
symbol: "DAI",
|
|
17206
17691
|
token: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
@@ -17423,7 +17908,7 @@ var borrowEther3 = () => {
|
|
|
17423
17908
|
// src/protocols/spark/index.ts
|
|
17424
17909
|
var findToken6 = (symbolOrAddress) => {
|
|
17425
17910
|
const nameOrAddressLower = symbolOrAddress.toLowerCase();
|
|
17426
|
-
const token =
|
|
17911
|
+
const token = info_default6.find(
|
|
17427
17912
|
(token2) => token2.symbol.toLowerCase() === nameOrAddressLower || token2.token.toLowerCase() === nameOrAddressLower
|
|
17428
17913
|
);
|
|
17429
17914
|
if (!token) {
|
|
@@ -17447,7 +17932,7 @@ var eth10 = {
|
|
|
17447
17932
|
);
|
|
17448
17933
|
}
|
|
17449
17934
|
};
|
|
17450
|
-
var allTokenSymbols = [...
|
|
17935
|
+
var allTokenSymbols = [...info_default6.map((token) => token.symbol), "ETH"];
|
|
17451
17936
|
|
|
17452
17937
|
// src/protocols/annotate.ts
|
|
17453
17938
|
var annotate = (actionFunction, path) => {
|
|
@@ -17643,13 +18128,13 @@ var gno4 = {
|
|
|
17643
18128
|
var import_zod5 = require("zod");
|
|
17644
18129
|
var ethTokens2 = [
|
|
17645
18130
|
...new Set(
|
|
17646
|
-
|
|
18131
|
+
ethPools_default2.flatMap((pool) => pool.tokens).flatMap((token) => [token.address, token.symbol])
|
|
17647
18132
|
)
|
|
17648
18133
|
];
|
|
17649
18134
|
var zPool = import_zod5.z.enum([
|
|
17650
|
-
...
|
|
17651
|
-
...
|
|
17652
|
-
...
|
|
18135
|
+
...ethPools_default2.map((pool) => pool.name),
|
|
18136
|
+
...ethPools_default2.map((pool) => pool.bpt),
|
|
18137
|
+
...ethPools_default2.map((pool) => pool.id)
|
|
17653
18138
|
]);
|
|
17654
18139
|
var zToken3 = import_zod5.z.enum(ethTokens2);
|
|
17655
18140
|
var eth15 = {
|
|
@@ -17671,8 +18156,8 @@ var eth15 = {
|
|
|
17671
18156
|
// src/protocols/compound/v2/schema.ts
|
|
17672
18157
|
var import_zod6 = require("zod");
|
|
17673
18158
|
var zToken4 = import_zod6.z.enum([
|
|
17674
|
-
...
|
|
17675
|
-
...
|
|
18159
|
+
...info_default3.map((token) => token.symbol),
|
|
18160
|
+
...info_default3.map((token) => token.token)
|
|
17676
18161
|
]);
|
|
17677
18162
|
var eth16 = {
|
|
17678
18163
|
deposit: import_zod6.z.object({
|
|
@@ -17686,9 +18171,9 @@ var eth16 = {
|
|
|
17686
18171
|
// src/protocols/convex/schema.ts
|
|
17687
18172
|
var import_zod7 = require("zod");
|
|
17688
18173
|
var zPool2 = import_zod7.z.enum([
|
|
17689
|
-
...
|
|
17690
|
-
...
|
|
17691
|
-
...
|
|
18174
|
+
...info_default4.map((pool) => pool.name),
|
|
18175
|
+
...info_default4.map((pool) => pool.crvLPToken),
|
|
18176
|
+
...info_default4.map((pool) => pool.id)
|
|
17692
18177
|
]);
|
|
17693
18178
|
var zStakeToken4 = import_zod7.z.enum([
|
|
17694
18179
|
...stakeTokens_default3.map((token) => token.symbol),
|
|
@@ -17736,9 +18221,9 @@ var eth19 = {
|
|
|
17736
18221
|
// src/protocols/spark/schema.ts
|
|
17737
18222
|
var import_zod11 = require("zod");
|
|
17738
18223
|
var zToken5 = import_zod11.z.enum([
|
|
17739
|
-
...
|
|
18224
|
+
...info_default6.map((token) => token.symbol),
|
|
17740
18225
|
"DSR_sDAI",
|
|
17741
|
-
...
|
|
18226
|
+
...info_default6.map((token) => token.token)
|
|
17742
18227
|
]);
|
|
17743
18228
|
var eth20 = {
|
|
17744
18229
|
deposit: import_zod11.z.object({
|