Closed karelianpie closed 1 year ago
Add a config setter to be able to change configurations (chainId, context and assetServiceState) dynamically after initialisation. Usage:
// Initialise a Yearn instance const sdkInstance = new Yearn(1, { provider, zapper: ZAPPER_API_KEY, // ... }); // then we can dynamically change the config by sdkInstance.config = { chainId: 250, context: { anotherProvider, zapper: 'anotherZapperKey', // ... }, };
N/A
Currently after initialisation it is not possible to change the configs in the context
Ran locally with yalc
@xgambitox shall we close this?
Closing for now as it's stalled, reopen if to be continued
Description
Add a config setter to be able to change configurations (chainId, context and assetServiceState) dynamically after initialisation. Usage:
Related Issue
N/A
Motivation and Context
Currently after initialisation it is not possible to change the configs in the context
How Has This Been Tested?
Ran locally with yalc