Open nfmelendez opened 5 hours ago
The script should reproduce at a block number but unfourtunately we couldn't
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
import { Previewer } from "@exactly/protocol/periphery/Previewer.sol";
import { BaseScript } from "./Base.s.sol";
contract DebugScript is BaseScript {
function run() external {
vm.createSelectFork("optimism", 128_326_874);
Previewer(protocol("Previewer")).exactly(address(0));
}
}
hooks/activity uses exactly(address) function just create a map with key= market asset and value = market address
api/activity uses exactly(address) function to create a map with key= market address and value = the complete market object but actually is uses few fields:
In Conclusion the minimum data we need from each market is:
The previewer is being used in
api/activity
andhooks/activity
and sometimes fails with "Execution reverted for an unknown reason". The problem started 21/11/2024 at 17:00 UTC.We contacted alchemy the friday 22/11 and they said
So after alchemy fixed it the problem was reduced, also we added a retry that reduced the problem ocurrence but still we are getting it.