diff --git a/src/govv3/generateProposalReport.ts b/src/govv3/generateProposalReport.ts index 0ffd866..b4b6227 100644 --- a/src/govv3/generateProposalReport.ts +++ b/src/govv3/generateProposalReport.ts @@ -54,7 +54,6 @@ export async function generateProposalReport({ report += '\n'; const ipfsMeta = await getCachedIpfs(proposal.ipfsHash); - console.log(ipfsMeta); report += `### Ipfs
diff --git a/src/govv3/payloadsController.ts b/src/govv3/payloadsController.ts index 661e3fc..dbe0bc4 100644 --- a/src/govv3/payloadsController.ts +++ b/src/govv3/payloadsController.ts @@ -95,7 +95,9 @@ export const getPayloadsController = (address: Hex, publicClient: PublicClient): [getSolidityStorageSlotUint(SLOTS.PAYLOADS_MAPPING, BigInt(id))]: encodePacked( ['uint40', 'uint40', 'uint8', 'uint8', 'address'], [ - Number(currentBlock.timestamp - BigInt(payload.delay) - 1n), // altering queued time so can be executed in current block + // we substract 240n(4min), as tenderly might have been fallen behind + // therefore using block_number -1 (latest on tenderly) and a 4min margin should give a save margin + Number(currentBlock.timestamp - BigInt(payload.delay) - 1n - 240n), // altering queued time so can be executed in current block payload.createdAt, PayloadState.Queued, payload.maximumAccessLevelRequired, diff --git a/src/govv3/simulate.ts b/src/govv3/simulate.ts index 8335838..ad61d5b 100644 --- a/src/govv3/simulate.ts +++ b/src/govv3/simulate.ts @@ -28,7 +28,6 @@ export async function simulateProposal(governanceAddress: Hex, publicClient: Pub publicClient: publicClient, }) ); - return; const payloads: { payload: Awaited>; simulation: TenderlySimulationResponse;