diff --git a/.gitignore b/.gitignore index 6bad54c..c7feb6a 100644 --- a/.gitignore +++ b/.gitignore @@ -31,4 +31,4 @@ docs/ # Dotenv file .env -notes.md \ No newline at end of file +*.notes.md diff --git a/gov-input/mainnet/AddCollateral-ARB-Griff.json b/gov-input/mainnet/AddCollateral-ARB-Griff.json new file mode 100644 index 0000000..d4f9edf --- /dev/null +++ b/gov-input/mainnet/AddCollateral-ARB-Griff.json @@ -0,0 +1,44 @@ +{ + "chainid": "42161", + "description": "New vault type ARB-Griff\n\n## Overview\n\nDeloy the first Delegate vault for ARB delegated to griff.eth\n\n## Details\n\nThe motivation of this proposal is showcase the delegate vault feature, and to attract additional delegates who may also be interested.\n\nThe parameters and oracle of this vault type match the existing ARB vault type, so no new risk to the protocol is added in this proposal. If passed, this proposal will increase debt ceiling for ARB assets by 5M OD, therefore increasing the potential maximum exposure to the ARB asset. ", + "network": "mainnet", + "newCollateralAddress": "0x912CE59144191C1204E64559FE8253a0e49E6548", + "newCollateralType": "ARB-Griff", + "proposalType": "AddCollateral", + "ProtocolToken_Address": "", + "ODGovernor_Address": "", + "SAFEEngine_Address": "", + "OracleRelayer_Address": "", + "LiquidationEngine_Address": "", + "TaxCollector_Address": "", + "GlobalSettlement_Address": "", + "Delegatee": "0x839395e20bbB182fa440d08F850E6c7A8f6F0780", + "CollateralAuctionHouseParams": { + "minimumBid": "100000000000000000000", + "minDiscount": "1000000000000000000", + "maxDiscount": "900000000000000000", + "perSecondDiscountUpdateRate": "999985752120000000000000000" + }, + "SAFEEngineCollateralParams": { + "collateralDebtCeiling": "5000000000000000000000000000000000000000000000000000", + "collateralDebtFloor": "200000000000000000000000000000000000000000000000" + }, + "TaxCollectorCollateralParams": { + "stabilityFee": "1000000001547125957863212448" + }, + "LiquidationEngineCollateralParams": { + "newCAHChild": "0x4FB268e154571b7a99F85D69732255b16B98B4b4", + "liquidationPenalty": "1100000000000000000", + "liquidationQuantity": "100000000000000000000000000000000000000000000000000" + }, + "OracleRelayerCollateralParams": { + "delayedOracle": "0xa4e0410E7eb9a02aa9C0505F629d01890c816A77", + "safetyCRatio": "1850000000000000000000000000", + "liquidationCRatio": "1750000000000000000000000000" + }, + "TaxReceiver": { + "receiver": "0x9C86C719Aa29D426C50Ee3BAEd40008D292b02CF", + "canTakeBackTax": true, + "taxPercentage": "500000000000000000" + } +} \ No newline at end of file diff --git a/gov-input/mainnet/ModifyParameters-liquidation-penalty-fix.json b/gov-input/mainnet/ModifyParameters-liquidation-penalty-fix.json new file mode 100644 index 0000000..b24b054 --- /dev/null +++ b/gov-input/mainnet/ModifyParameters-liquidation-penalty-fix.json @@ -0,0 +1,22 @@ +{ + "chainid": 42161, + "description": "Fix liquidation penalty\n## Overview\n\nThis proposal updates the liquidation penalty for GRT, PT_wstETH_26JUN2025, PT_rETH_26JUN2025 to the correct value of 15% (1.15e18) instead of the current value 15e18 ", + "network": "mainnet", + "proposalType": "TargetsAndCalldata", + "ODGovernor_Address": "", + "objectArray": [ + { + "target": "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "calldata": "0x12f3352647525400000000000000000000000000000000000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000" + }, + { + "target": "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "calldata": "0x12f3352650542d7773744554482d32364a554e32303235000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000" + }, + { + "target": "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "calldata": "0x12f3352650542d724554482d32364a554e323032350000000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000" + } + ], + "arrayLength": "3" +} \ No newline at end of file diff --git a/gov-output/mainnet/add-collateral-7_26_2024-75301284.json b/gov-output/mainnet/add-collateral-7_26_2024-75301284.json new file mode 100644 index 0000000..a1482fb --- /dev/null +++ b/gov-output/mainnet/add-collateral-7_26_2024-75301284.json @@ -0,0 +1,73 @@ +{ + "CollateralAuctionHouseParams": { + "minimumBid": "100000000000000000000", + "minDiscount": "1000000000000000000", + "maxDiscount": "900000000000000000", + "perSecondDiscountUpdateRate": "999985752120000000000000000" + }, + "Delegatee": "0x839395e20bbB182fa440d08F850E6c7A8f6F0780", + "GlobalSettlement_Address": "0x1c6B7ab018be82ed6b5c63aE82D9f07bb7B231A2", + "LiquidationEngineCollateralParams": { + "newCAHChild": "0x4FB268e154571b7a99F85D69732255b16B98B4b4", + "liquidationPenalty": "1100000000000000000", + "liquidationQuantity": "100000000000000000000000000000000000000000000000000" + }, + "LiquidationEngine_Address": "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "ODGovernor_Address": "0xf704735CE81165261156b41D33AB18a08803B86F", + "OracleRelayerCollateralParams": { + "delayedOracle": "0xa4e0410E7eb9a02aa9C0505F629d01890c816A77", + "safetyCRatio": "1850000000000000000000000000", + "liquidationCRatio": "1750000000000000000000000000" + }, + "OracleRelayer_Address": "0x7404fc1F3796748FAE17011b57Fad9713185c1d6", + "ProtocolToken_Address": "0x000D636bD52BFc1B3a699165Ef5aa340BEA8939c", + "SAFEEngineCollateralParams": { + "collateralDebtCeiling": "5000000000000000000000000000000000000000000000000000", + "collateralDebtFloor": "200000000000000000000000000000000000000000000000" + }, + "SAFEEngine_Address": "0xEff45E8e2353893BD0558bD5892A42786E9142F1", + "TaxCollectorCollateralParams": { + "stabilityFee": "1000000001547125957863212448" + }, + "TaxCollector_Address": "0xc93F938A95488a03b976A15B20fAcFD52D087fB2", + "TaxReceiver": { + "receiver": "0x9C86C719Aa29D426C50Ee3BAEd40008D292b02CF", + "canTakeBackTax": true, + "taxPercentage": "500000000000000000" + }, + "calldatas": [ + "0x25e792e84152422d47726966660000000000000000000000000000000000000000000000000000000000000000000000912ce59144191c1204e64559fe8253a0e49e6548000000000000000000000000839395e20bbb182fa440d08f850e6c7a8f6f0780", + "0x34463c604152422d47726966660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000c7d713b49da00000000000000000000000000000000000000000000033b2b383ec254bdcf6c0000", + "0x34463c604152422d4772696666000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000d5d238a4abe9806872a4904598d6d8800000000000000000000000000000000000023084f676940b7915149bd08b30d000000000000", + "0x34463c604152422d47726966660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000033b2e3cb548ff197d3905a0", + "0x34463c604152422d47726966660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000600000000000000000000000004fb268e154571b7a99f85d69732255b16b98b4b40000000000000000000000000000000000000000000000000f43fc2c04ee00000000000000000000000000446c3b15f9926687d2c40534fdb564000000000000", + "0x34463c604152422d4772696666000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000a4e0410e7eb9a02aa9c0505f629d01890c816a77000000000000000000000000000000000000000005fa48bcf474ed3d7a000000000000000000000000000000000000000000000005a790ea17ace06a96000000", + "0x12f335264152422d477269666600000000000000000000000000000000000000000000007365636f6e646172795461785265636569766572000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000009c86c719aa29d426c50ee3baed40008d292b02cf000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000006f05b59d3b20000" + ], + "chainid": "42161", + "description": "New vault type ARB-Griff\n\n## Overview\n\nDeloy the first Delegate vault for ARB delegated to griff.eth\n\n## Details\n\nThe motivation of this proposal is showcase the delegate vault feature, and to attract additional delegates who may also be interested.\n\nThe parameters and oracle of this vault type match the existing ARB vault type, so no new risk to the protocol is added in this proposal. If passed, this proposal will increase debt ceiling for ARB assets by 5M OD, therefore increasing the potential maximum exposure to the ARB asset. ", + "descriptionHash": "0xd908bb26d5e57c1c1f85abf9cd94cf77546db04b55d162fba3592174ee4e3008", + "network": "mainnet", + "newCollateralAddress": "0x912CE59144191C1204E64559FE8253a0e49E6548", + "newCollateralType": "ARB-Griff", + "proposalId": "75301284062601897046050662420655724157858705094028771870473254044758698844052", + "proposalType": "AddCollateral", + "targets": [ + "0xa83c0f1e9eD8E383919Dde0fC90744ae370EB7B3", + "0x5dc1E86361faC018f24Ae0D1E5eB01D70AB32A82", + "0xEff45E8e2353893BD0558bD5892A42786E9142F1", + "0xc93F938A95488a03b976A15B20fAcFD52D087fB2", + "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "0x7404fc1F3796748FAE17011b57Fad9713185c1d6", + "0xc93F938A95488a03b976A15B20fAcFD52D087fB2" + ], + "values": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] +} \ No newline at end of file diff --git a/gov-output/mainnet/targetsAndCalldata-7_26_2024-103038957.json b/gov-output/mainnet/targetsAndCalldata-7_26_2024-103038957.json new file mode 100644 index 0000000..cbb06e9 --- /dev/null +++ b/gov-output/mainnet/targetsAndCalldata-7_26_2024-103038957.json @@ -0,0 +1,39 @@ +{ + "ODGovernor_Address": "0xf704735CE81165261156b41D33AB18a08803B86F", + "arrayLength": "3", + "calldatas": [ + "0x12f3352647525400000000000000000000000000000000000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000", + "0x12f3352650542d7773744554482d32364a554e32303235000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000", + "0x12f3352650542d724554482d32364a554e323032350000000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000" + ], + "chainid": 42161, + "description": "Fix liquidation penalty\n## Overview\n\nThis proposal updates the liquidation penalty for GRT, PT_wstETH_26JUN2025, PT_rETH_26JUN2025 to the correct value of 15% (1.15e18) instead of the current value 15e18 ", + "descriptionHash": "0x32b9d73db523ebcef176c06c3b78426fb860dd6309e83a0cdf65e588b1a629e0", + "network": "mainnet", + "objectArray": [ + { + "target": "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "calldata": "0x12f3352647525400000000000000000000000000000000000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000" + }, + { + "target": "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "calldata": "0x12f3352650542d7773744554482d32364a554e32303235000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000" + }, + { + "target": "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "calldata": "0x12f3352650542d724554482d32364a554e323032350000000000000000000000000000006c69717569646174696f6e50656e616c74790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000ff59ee833b30000" + } + ], + "proposalId": "103038957245027205616543221997443355381942544919211660811035140784651310116680", + "proposalType": "TargetsAndCalldata", + "targets": [ + "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "0x17e546dDCE2EA8A74Bd667269457A2e80b309965", + "0x17e546dDCE2EA8A74Bd667269457A2e80b309965" + ], + "values": [ + 0, + 0, + 0 + ] +} \ No newline at end of file diff --git a/tasks/parseMarkdown.js b/tasks/parseMarkdown.js index 62996b1..9f28d04 100644 --- a/tasks/parseMarkdown.js +++ b/tasks/parseMarkdown.js @@ -1,8 +1,11 @@ const fs = require("fs"); const path = require("path"); -const basePath = path.join(__dirname, "../notes.md"); +// Example usage: node tasks/parseMarkdown.js newcollateral.notes.md + +const args = process.argv.slice(2); +const basePath = args[0] const contents = fs.readFileSync(basePath, 'utf8') -const obj = { details: contents }; +const obj = { description: contents }; console.log(JSON.stringify(obj)) \ No newline at end of file