Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: build merkl airdrop csv based on user pool shares #1575

Merged
merged 26 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3b288f0
chore: bal addresses needs updated bal tools
gosuto-inzasheru Dec 11, 2024
9bb8453
feat: query v3 subgraph for user balances
gosuto-inzasheru Dec 11, 2024
fb6e70a
feat: consolidate multiple snapshots into an airdrop file
gosuto-inzasheru Dec 17, 2024
4c29d9c
fix: prevent division by zero
gosuto-inzasheru Jan 6, 2025
f060366
feat: get user shares from gauge similar to from pool
gosuto-inzasheru Jan 9, 2025
287176a
feat: consider both pool and gauge shares
gosuto-inzasheru Jan 9, 2025
af401a1
feat: add checksums based on total supply onchain
gosuto-inzasheru Jan 9, 2025
38ec5ae
chore: add v3 stable pool abi
gosuto-inzasheru Jan 9, 2025
3da824e
feat: for loop over multiple reward tokens and pools
gosuto-inzasheru Jan 10, 2025
882e8c0
feat: move watchlist to json file
gosuto-inzasheru Jan 10, 2025
8fef05f
fix: dev branch has been merged and deleted
gosuto-inzasheru Jan 10, 2025
dcc720e
feat: use latest version of bal_addresses by default
gosuto-inzasheru Jan 10, 2025
95f5fdc
feat: retrieve pref gauge from subgraph
gosuto-inzasheru Jan 14, 2025
88312a5
feat: add airdrop checksum
gosuto-inzasheru Feb 3, 2025
63d5f10
feat: automatic epoch ts calc
gosuto-inzasheru Feb 3, 2025
7c29616
fix: determine start before loop
gosuto-inzasheru Feb 3, 2025
c1d4e32
fix: morpho fee need multiplication
gosuto-inzasheru Feb 3, 2025
2341c27
chore: update morpho reward wei with real amount
gosuto-inzasheru Feb 3, 2025
8e75bfa
chore: upload airdrop artifact
gosuto-inzasheru Feb 3, 2025
94f693d
Automated processing of Payload PR (validations, transformations, and…
gosuto-inzasheru Feb 3, 2025
d311294
chore: add payload for epoch 0
gosuto-inzasheru Feb 3, 2025
ba30b4c
Automated processing of Payload PR (validations, transformations, and…
gosuto-inzasheru Feb 3, 2025
42cc31e
docs: add instructions for running script
gosuto-inzasheru Feb 3, 2025
40adbfa
Automated processing of Payload PR (validations, transformations, and…
gosuto-inzasheru Feb 3, 2025
9606694
perf: let bal tools determine blocks subgraph url
gosuto-inzasheru Feb 4, 2025
8786900
Automated processing of Payload PR (validations, transformations, and…
gosuto-inzasheru Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions MaxiOps/merkl/airdrops/morpho-csUSDC-csUSDT-epoch_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"rewardToken": "0x58D97B57BB95320F9a05dC918Aef65434969c2B2",
"rewards": {
Xeonus marked this conversation as resolved.
Show resolved Hide resolved
"0x027917095a4d4964eff7280676f405126bf9a6b5": {
"epoch_0": "5786896850296901"
},
"0x4bc8121278056bfcac2bd14d455659224d6ddf48": {
"epoch_0": "19329447678395428"
},
"0x977767f401fc909614905857c9174bd08af02363": {
"epoch_0": "1413141904207619"
},
"0xd2525cd44dd450627cec73754f97378e417f6c2e": {
"epoch_0": "3868510996392043"
},
"0xe01c417384a1e7f2e11393baa52f721d2e95d1aa": {
"epoch_0": "1403163766237861576414"
},
"0x854b004700885a61107b458f11ecc169a019b764": {
"epoch_0": "102358382310414949"
}
}
}
124 changes: 124 additions & 0 deletions MaxiOps/merkl/payloads/morpho-epoch_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"version": "1.0",
"chainId": "1",
"createdAt": 1738594743,
"meta": {
"name": "Create Merkl Campaign",
"txBuilderVersion": "1.16.3",
"createdFromSafeAddress": "0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e"
},
"transactions": [
{
"to": "0x4095F064B8d3c3548A3bebfd0Bbfd04750E30077",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "internalType": "bytes[]", "name": "data", "type": "bytes[]" }
],
"name": "multicall",
"payable": true
},
"contractInputsValues": {
"data": "[0x6b89026a000000000000000000000000330eefa8a787552dc5cad3c3ca644844b1e61ddb0000000000000000000000009ff471f9f98f42e5151c7855fd1b5aa906b1af7e00000000000000000000000058d97b57bb95320f9a05dc918aef65434969c2b200000000000000000000000000000000000000000000004c748391b4a2e8d38100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000eea2e120be5d26eee545e8535fccb5ea38f2340b502263927520adc30d7b9744d57e8ed75beee9c9ed92f47281a47b6efde7881ff35c39746de9b1b4b760457bd5cea201b922bdd85e98a7aa6e41bfa2b35490c4f35ac002acbc7611e499641fda1675d6f40dbacba5bd634b77d8c5350b935b121e8034ff94cd54cb560ea43574883beda04be8b8c91be901a111ee3bbeeca4b3e234e55b74fd15eb60be000bdc40443901247232d54e158ac337213593c694e01d512c50ac1825afd86c7a04f0ee6b3d000af89e2079c54e5392a4b2e9764a67280bf7723974d2aabcb6a234ed66388c926aeb083ef314a54d346a7fadf42fed4351d540d4a7e97bbd6105e69d8b447d2ade6278cf85592dbc41d1a08e1e968c287ffbc45dbc279a22fe6f5ef0f2f6320f481f1f7cce40bad9b86bea2f56ec5de68912646ee84d283f1f796826641b15795a0d6f5abd084a938f9bc02439d6c9e0e63e6a464c654719ea48e111e632b50acbdfd8e3b6d96b135812ff2643e67fe054b001c985e1687e7e5ce07f33bf03f812a39b88029cc602b6f3748abd014c5f06c6f76cd2b89d182188be0195d6d3e28c15340eea5a3e8cc70aff7dbfb39bc1ba5cc698e2577265875dbdb]"
}
},
{
"to": "0x58D97B57BB95320F9a05dC918Aef65434969c2B2",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"name": "approve",
"payable": false
},
"contractInputsValues": {
"spender": "0x8BB4C975Ff3c250e0ceEA271728547f3802B36Fd",
"amount": "1410348263937287721964"
}
},
{
"to": "0x8BB4C975Ff3c250e0ceEA271728547f3802B36Fd",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [],
"name": "acceptConditions",
"payable": false
},
"contractInputsValues": null
},
{
"to": "0x8BB4C975Ff3c250e0ceEA271728547f3802B36Fd",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "campaignId",
"type": "bytes32"
},
{
"internalType": "address",
"name": "creator",
"type": "address"
},
{
"internalType": "address",
"name": "rewardToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "campaignType",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "startTimestamp",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "duration",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "campaignData",
"type": "bytes"
}
],
"internalType": "struct CampaignParameters",
"name": "newCampaign",
"type": "tuple"
}
],
"name": "createCampaign",
"payable": false
},
"contractInputsValues": {
"newCampaign": "[\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"0x0000000000000000000000000000000000000000\",\"0x58D97B57BB95320F9a05dC918Aef65434969c2B2\",\"1410348263937287721964\",4,1738594800,3600,\"0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f616e676c652d626c6f672e696e667572612d697066732e696f2f697066732f516d527538616f33535a41524a6d6e654e7a39467172334535536667777a41313759315534324579447962585047000000000000000000000000000000000000000000000000000000000000000000000000000000000000166373555344432d6373555344543a3a65706f63685f300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\"]"
}
}
]
}
Loading