getPerformance method
Gets a wallet's indexed performance in one vault.
Implementation
@override
Future<YieldVaultPositionPerformance> getPerformance(String vaultId, String ownerAddress) async {
Future<YieldVaultPositionPerformance> instrumentationOperation() async {
final operationScope = _state.flowScope.capture(replace: false);
await operationScope.ready();
operationScope.check();
final response = await _api.get<YieldVaultPositionPerformance>(path: dynRepeatedQuery("/yield/vaults/${Uri.encodeComponent(vaultId)}/performance", [("ownerAddress", <String>[ownerAddress])]), token: null, sessionPublicKey: _state.sessionPublicKey, parse: YieldVaultPositionPerformance.fromJson);
operationScope.check();
return response;
}
return await _api.instrumentation.runAsync("earn.getPerformance", instrumentationOperation);
}