Together, these two parts aim to grant a manager specific permissions to approve and swap tokens on the QCLE - Token List through the 1inch AggregationRouterV6 contract.
QCLE - Token List: https://famous-reindeer-ccf.notion.site/QCLE-Token-List-dbb2ee6ab44841d0a6a6ac4196beb8b2
1inch AggregationRouterV6 contract: 0x111111125421cA6dc452d289314280a0f8842A65
Used Roles Modifier Functions:
- scopeTarget: Specifies the contracts that the manager can interact with.
- scopeFunction: Defines the approve [1] and swap [2] functions for the 1inch AggregationRouterV6.
- scopeParameter:
- Ensures that the
dstReceiver address for 1inch swaps is the QCLE custody contract: 0x8a90fc2041b90ABeAB19724BC2a64c0568F60fBC.
- Ensures that the
dstToken in the swap function falls within the asset universe constraints of the QCLE - Token List.
To facilitate the settlement of deposit and redemption requests without additional proposals, the manager is also granted the permission to transfer [3] WETH back to the QCLE fund contract: 0xB6aB76d451B98a992FB84A93602527CC30cd3b22.
Function Signatures:
[1] Approve: 0x095ea7b3
[2] Swap: 0x07ed2379
[3] Transfer: 0xa9059cbb","title":"Part 2: QCLE - Initial Permissions"}