forked from compound-finance/comet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: workflow and script for multiplier
- Loading branch information
1 parent
48d7010
commit d8127e9
Showing
3 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
.github/workflows/calculate-multiplier-for-rewards-v2-campaign.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Calculate multiplier for RewardsV2 Campaign | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
network: | ||
type: choice | ||
description: Network | ||
options: | ||
- fuji | ||
- mainnet | ||
- goerli | ||
- sepolia | ||
- mumbai | ||
- polygon | ||
- arbitrum | ||
- arbitrum-goerli | ||
- base | ||
- base-goerli | ||
- linea-goerli | ||
- optimism | ||
- scroll-goerli | ||
- scroll | ||
required: true | ||
deployment: | ||
description: Deployment Name (e.g. "usdc", "weth") | ||
required: true | ||
duration: | ||
description: Duration in seconds | ||
required: true | ||
amount: | ||
description: Amount in tokens (e.g. 1, 100, 1000) | ||
required: true | ||
jobs: | ||
calculate-multiplier-for-rewards-v2-campaign: | ||
name: Calculate multiplier for RewardsV2 Campaign | ||
runs-on: ubuntu-latest | ||
env: | ||
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }} | ||
SNOWTRACE_KEY: ${{ secrets.SNOWTRACE_KEY }} | ||
INFURA_KEY: ${{ secrets.INFURA_KEY }} | ||
QUICKNODE_KEY: ${{ secrets.QUICKNODE_KEY }} | ||
POLYGONSCAN_KEY: ${{ secrets.POLYGONSCAN_KEY }} | ||
ARBISCAN_KEY: ${{ secrets.ARBISCAN_KEY }} | ||
BASESCAN_KEY: ${{ secrets.BASESCAN_KEY }} | ||
LINEASCAN_KEY: ${{ secrets.LINEASCAN_KEY }} | ||
OPTIMISMSCAN_KEY: ${{ secrets.OPTIMISMSCAN_KEY }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install packages | ||
run: yarn install --non-interactive --frozen-lockfile | ||
|
||
- name: Compile | ||
run: yarn hardhat compile | ||
|
||
- name: Check types | ||
run: yarn tsc | ||
|
||
- name: Run Calculate Multiplier for RewardsV2 Campaign | ||
run: yarn hardhat calculateMultiplier --network ${{ github.event.inputs.network }} --deployment ${{ github.event.inputs.deployment }} --duration ${{ github.event.inputs.duration }} --amount ${{ github.event.inputs.amount }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters