Problem
The supervisor is only scanForStuck the first 5 vaults
|
if scanForStuck { |
|
// TODO: add pagination - this will inevitably fails and at minimum creates inconsistent execution |
|
// effort between runs |
|
let registeredYieldVaults = FlowYieldVaultsSchedulerRegistry.getRegisteredYieldVaultIDs() |
|
var scanned = 0 |
|
for yieldVaultID in registeredYieldVaults { |
|
if scanned >= FlowYieldVaultsSchedulerRegistry.MAX_BATCH_SIZE { |
|
break |
|
} |
|
scanned = scanned + 1 |
Steps to Reproduce
create a test where the 6th vault gets stuck.
Problem
The supervisor is only scanForStuck the first 5 vaults
FlowYieldVaults/cadence/contracts/FlowYieldVaultsSchedulerV1.cdc
Lines 188 to 197 in fc25906
Steps to Reproduce
create a test where the 6th vault gets stuck.