diff --git a/src/protocol/beefy/loader/investment/import-investments.ts b/src/protocol/beefy/loader/investment/import-investments.ts index afb6ff3e..077cfeb1 100644 --- a/src/protocol/beefy/loader/investment/import-investments.ts +++ b/src/protocol/beefy/loader/investment/import-investments.ts @@ -447,9 +447,11 @@ function fetchBeefyBridgedVaultShareRateIfNeeded item.blockDatetime, - formatOutput: (item, shareRateBlockNumber) => ({ ...item, shareRateBlockNumber }), + formatOutput: (item, shareRateBlockNumberOnOriginChain) => ({ ...item, shareRateBlockNumberOnOriginChain }), }), + Rx.tap((item) => logger.trace({ msg: "loading share rate", data: { chain: ctx.chain, transferData: item } })), + // then we can fetch the share rate in the context of the origin chain fetchBeefyTransferData$({ ctx, @@ -460,24 +462,25 @@ function fetchBeefyBridgedVaultShareRateIfNeeded ({ ...item, diff --git a/src/protocol/common/connector/block-from-datetime.ts b/src/protocol/common/connector/block-from-datetime.ts index e632b9b3..7208d308 100644 --- a/src/protocol/common/connector/block-from-datetime.ts +++ b/src/protocol/common/connector/block-from-datetime.ts @@ -114,6 +114,8 @@ function fetchBlockFromDatetimeUsingExplorerAPI$