Skip to content

Commit

Permalink
v1.0.6: Update ipfs base url (#66)
Browse files Browse the repository at this point in the history
* Update ipfs base url

* update readme
  • Loading branch information
jaredvu authored Apr 25, 2024
1 parent 254a502 commit 804a6e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/treasury/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ As of epoch 28, 205,165,433.5392799029 DYDX were allocated to rewards. Reasoning
- The liquidity module rewards were set to 0 on Sep-29-2022 02:16:23 PM UTC, which is unix timestamp 1664460983.
- This occurred as part of a governance proposal executed on block 15639536 ([source](https://etherscan.io/tx/0xcda8c40f45aac4ef7f5d6aa5d82cb84e89057c03842b549c00151ffbae854a4e#eventlog)).
- 194,095,887 DYDX tokens were allocated for trading, MM, and retroactive mining rewards up to epoch 28 (note, this doesn't include epoch 29 rewards since they aren't allocated on-chain yet). Reasoning:
- Latest V3 rewards are [here](https://cloudflare-ipfs.com/ipfs/bafybeic22w5uxknvce4kzci7fftgezsccxgpvruyh2ro4a4qkbxpi5pdqu). Note this includes retroactive allocations as well.
- Latest V3 rewards are [here](https://hedgies.mypinata.cloud/ipfs/bafybeic22w5uxknvce4kzci7fftgezsccxgpvruyh2ro4a4qkbxpi5pdqu). Note this includes retroactive allocations as well.
- Number can be reproduced by running the below script.

## Future allocated rewards after epoch 28
Expand Down Expand Up @@ -134,7 +134,7 @@ def compute_cumulative_rewards(data):
return sum(int(entry[1]) for entry in data)
def main():
url = "https://cloudflare-ipfs.com/ipfs/bafybeic22w5uxknvce4kzci7fftgezsccxgpvruyh2ro4a4qkbxpi5pdqu"
url = "https://hedgies.mypinata.cloud/ipfs/bafybeic22w5uxknvce4kzci7fftgezsccxgpvruyh2ro4a4qkbxpi5pdqu"
data = fetch_data(url)
total_rewards = compute_cumulative_rewards(data)
print(f"Cumulative rewards: {total_rewards}")
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dydxfoundation-v3/governance",
"version": "1.0.5",
"version": "1.0.6",
"description": "dYdX governance smart contracts",
"main": "dist/src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/tx-builder/utils/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { base58 } from 'ethers/lib/utils';

import { IPFSProposalData, UserRewardBalances } from '../types/GovernanceReturnTypes';

const IPFS_ENDPOINT = 'https://cloudflare-ipfs.com/ipfs';
const IPFS_ENDPOINT = 'https://hedgies.mypinata.cloud/ipfs';

export function getLink(hash: string): string {
return `${IPFS_ENDPOINT}/${hash}`;
Expand Down

0 comments on commit 804a6e4

Please sign in to comment.