@@ -322,7 +322,7 @@ access(all) contract FlowYieldVaultsStrategiesV2 {
322322 /// Returns the Types of Strategies composed by this StrategyComposer
323323 access (all ) view fun getComposedStrategyTypes (): {Type : Bool } {
324324 let composed : {Type : Bool } = {}
325- for t in self .config . keys {
325+ for t in self .config {
326326 composed [t ] = true
327327 }
328328 return composed
@@ -332,7 +332,7 @@ access(all) contract FlowYieldVaultsStrategiesV2 {
332332 access (all ) view fun getSupportedInitializationVaults (forStrategy : Type ): {Type : Bool } {
333333 let supported : {Type : Bool } = {}
334334 if let strategyConfig = &self .config [forStrategy ] as &{Type : FlowYieldVaultsStrategiesV2 .CollateralConfig }? {
335- for collateralType in strategyConfig . keys {
335+ for collateralType in strategyConfig {
336336 supported [collateralType ] = true
337337 }
338338 }
@@ -891,7 +891,7 @@ access(all) contract FlowYieldVaultsStrategiesV2 {
891891 }
892892
893893 // Validate keys
894- for stratType in config . keys {
894+ for stratType in config {
895895 assert (stratType .isSubtype (of : Type <@{FlowYieldVaults .Strategy }>()),
896896 message : " Invalid config key \( stratType .identifier ) - not a FlowYieldVaults.Strategy Type" )
897897 for collateralType in config [stratType ]! .keys {
@@ -904,12 +904,12 @@ access(all) contract FlowYieldVaultsStrategiesV2 {
904904 let existingComposerConfig = self .configs [composer ] ?? {}
905905 var mergedComposerConfig = existingComposerConfig
906906
907- for stratType in config . keys {
907+ for stratType in config {
908908 let newPerCollateral = config [stratType ]!
909909 let existingPerCollateral = mergedComposerConfig [stratType ] ?? {}
910910 var mergedPerCollateral : {Type : FlowYieldVaultsStrategiesV2 .CollateralConfig } = existingPerCollateral
911911
912- for collateralType in newPerCollateral . keys {
912+ for collateralType in newPerCollateral {
913913 mergedPerCollateral [collateralType ] = newPerCollateral [collateralType ]!
914914 }
915915 mergedComposerConfig [stratType ] = mergedPerCollateral
0 commit comments