Skip to content

Commit

Permalink
fix: use ipfs.io
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Aug 23, 2024
1 parent 9b0fbaa commit a7e303c
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,13 @@
"payloadId": 20
}
]
},
"ipfs": {
"ipfsHash": "QmfTePWzU913WxRbQ2ohFeXQgTN6A6Q4PPUdA2Fp9V9YvL",
"description": "\n## Simple Summary\n\nThis proposal will increase the optimal usageRatio from 80% to 90% across all aave v3 deployments including Gnosis, Polygon, Metis, Base, Avalanche and Scroll\n\n## Motivation\n\nCurrently, the optimal usage ratios vary across different Aave instances, reflecting a balance between liquidity utilization and risk management. By increasing the optimal usage ratio for WETH to 90%, higher returns for liquidity providers and improved borrowing conditions for users can be achieved.\n\n## Specification\n\nThis proposal will increase WETH Optimal Usage Ratio to 90% on the following markets which are currently at 80%, in order to unify them all:\n\nGnosis V3\n\nPolygon V3\n\nMetis V3\n\nBase V3\n\nAvalanche V3\n\nScroll V3\n\n## References\n\n- Implementation: [AaveV3Polygon](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Polygon_IncreaseWETHOptimalRatio_20240818.sol), [AaveV3Avalanche](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Avalanche_IncreaseWETHOptimalRatio_20240818.sol), [AaveV3Metis](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Metis_IncreaseWETHOptimalRatio_20240818.sol), [AaveV3Base](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Base_IncreaseWETHOptimalRatio_20240818.sol), [AaveV3Gnosis](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Gnosis_IncreaseWETHOptimalRatio_20240818.sol), [AaveV3Scroll](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Scroll_IncreaseWETHOptimalRatio_20240818.sol)\n- Tests: [AaveV3Polygon](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Polygon_IncreaseWETHOptimalRatio_20240818.t.sol), [AaveV3Avalanche](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Avalanche_IncreaseWETHOptimalRatio_20240818.t.sol), [AaveV3Metis](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Metis_IncreaseWETHOptimalRatio_20240818.t.sol), [AaveV3Base](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Base_IncreaseWETHOptimalRatio_20240818.t.sol), [AaveV3Gnosis](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Gnosis_IncreaseWETHOptimalRatio_20240818.t.sol), [AaveV3Scroll](https://github.com/bgd-labs/aave-proposals-v3/blob/a0ddfdc8504eec2e76d47e918cb7ff3741a4b7b4/src/20240818_Multi_IncreaseWETHOptimalRatio/AaveV3Scroll_IncreaseWETHOptimalRatio_20240818.t.sol)\n- [Snapshot](https://snapshot.org/#/aave.eth/proposal/0x2930599cae3cec0a16bd0aef13524347e0c5e85cff7dd66ae9b2bed90fc5d1fe)\n- [Discussion](https://governance.aave.com/t/arfc-increase-weth-optimal-ratio-to-90-on-all-aave-markets/18556)\n\n## Copyright\n\nCopyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).\n",
"title": "Increase WETH Optimal Ratio",
"author": "ACI",
"discussions": "https://governance.aave.com/t/arfc-increase-weth-optimal-ratio-to-90-on-all-aave-markets/18556",
"snapshot": "https://snapshot.org/#/aave.eth/proposal/0x2930599cae3cec0a16bd0aef13524347e0c5e85cff7dd66ae9b2bed90fc5d1fe"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "20590706",
"lastSeenBlock": "20590796",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "20590706",
"lastSeenBlock": "20590796",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "124405082",
"lastSeenBlock": "124405625",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "35626108",
"lastSeenBlock": "35626314",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "18208234",
"lastSeenBlock": "18208381",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"lastSeenBlock": "15362404",
"lastSeenBlock": "15362766",
"isFinal": {}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "60937892",
"lastSeenBlock": "60938403",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "42395937",
"lastSeenBlock": "42396979",
"isFinal": {
"0": false,
"1": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "245842920",
"lastSeenBlock": "245847267",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "49609837",
"lastSeenBlock": "49610359",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "8629760",
"lastSeenBlock": "8630129",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "41612269",
"lastSeenBlock": "41612630",
"isFinal": {
"0": true,
"1": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastSeenBlock": "18809796",
"lastSeenBlock": "18810340",
"isFinal": {
"0": true,
"1": true,
Expand Down
6 changes: 5 additions & 1 deletion src/providers/rpcProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export const rpcProvider: GovernanceCacheAdapter = {
const client = CHAIN_ID_CLIENT_MAP[chainId];

const proposal = await getProposal({client, proposalId, governance});
return {proposal, logs: {} as any, ipfs: await getProposalMetadata(proposal.ipfsHash)};
return {
proposal,
logs: {} as any,
ipfs: await getProposalMetadata(proposal.ipfsHash, 'https://ipfs.io/ipfs'),
};
},
};
2 changes: 1 addition & 1 deletion src/providers/storage/fileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const syncProposalCache: GovernanceCacheAdapterWithSync['syncProposalCache'] = a

if (!cache.ipfs) {
try {
cache.ipfs = await getProposalMetadata(cache.proposal.ipfsHash);
cache.ipfs = await getProposalMetadata(cache.proposal.ipfsHash, 'https://ipfs.io/ipfs');
} catch (e) {
console.log(e);
}
Expand Down

0 comments on commit a7e303c

Please sign in to comment.