Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
fix: adjust for governance delay
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Nov 25, 2022
1 parent 43ec207 commit 7700ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"start": "yarn build && node dist/index.js",
"build": "ncc build ./main.ts -o dist --minify",
"publish:local": "yarn build && npm pack && npm i -g bgd-labs-aave-tenderly-cli-0.0.8.tgz && rm bgd-labs-aave-tenderly-cli-0.0.8.tgz",
"publish:local": "yarn build && npm pack && npm i -g bgd-labs-aave-tenderly-cli-0.0.9.tgz && rm bgd-labs-aave-tenderly-cli-0.0.9.tgz",
"ci:publish": "yarn build && npm publish --access=public"
},
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/governance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ export async function passAndExecuteProposal({
]);
// queue proposal
const activeProposal = await governance.getProposalById(proposalId);
const delay = await governance.getVotingDelay();
await provider.send("evm_increaseBlocks", [
BigNumber.from(activeProposal.endBlock)
.sub(BigNumber.from(activeProposal.startBlock))
.add(delay)
.add(1)
.toHexString(),
]);
Expand Down

0 comments on commit 7700ac2

Please sign in to comment.