Skip to content

Commit

Permalink
Merge pull request #46 from the-standard/202411-merkl-yield
Browse files Browse the repository at this point in the history
202411 merkl yield
  • Loading branch information
ZakMooney authored Nov 14, 2024
2 parents 667dc84 + 78f08d7 commit 171af89
Show file tree
Hide file tree
Showing 31 changed files with 1,569 additions and 113 deletions.
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Home from './pages/Home';
import Vaults from './pages/vaults/Vaults';
import Vault from './pages/vault/Vault';
import VaultHistory from './pages/vault/VaultHistory';
import VaultMerkl from './pages/vault/VaultMerkl';
import LiquidationPools from './pages/liquidation-pools/LiquidationPools';
import TstStaking from './pages/tst-staking/TstStaking';
import LegacyPools from './pages/legacy-pools/LegacyPools';
Expand All @@ -31,6 +32,7 @@ function App() {
<Route path="vaults" element={<DashLayout><Vaults /></DashLayout>} />
<Route path="vault/:vaultType/:vaultId" element={<DashLayout><Vault /></DashLayout>} />
<Route path="vault/:vaultType/:vaultId/history" element={<DashLayout><VaultHistory /></DashLayout>} />
<Route path="vault/:vaultType/:vaultId/merkl" element={<DashLayout><VaultMerkl /></DashLayout>} />
<Route path="legacy-pools" element={<DashLayout><LegacyPools /></DashLayout>} />
<Route path="liquidation-pools" element={<DashLayout><LiquidationPools /></DashLayout>} />
<Route path="staking-pool" element={<DashLayout><TstStaking /></DashLayout>} />
Expand Down
32 changes: 32 additions & 0 deletions src/abis/merkl.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export const abi = [
{
"inputs":[
{
"internalType":"address[]",
"name":"users",
"type":"address[]"
},
{
"internalType":"address[]",
"name":"tokens",
"type":"address[]"
},
{
"internalType":"uint256[]",
"name":"amounts",
"type":"uint256[]"
},
{
"internalType":"bytes32[][]",
"name":"proofs",
"type":"bytes32[][]"
}
],
"name":"claim",
"outputs":[],
"stateMutability":"nonpayable",
"type":"function"
}
];

export default abi;
33 changes: 33 additions & 0 deletions src/abis/smartVaultV4.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,39 @@ export const abi = [
],
"stateMutability": "view",
"type": "function"
},
{
"type": "function",
"name": "merklClaim",
"inputs": [
{
"name": "_distributor",
"type": "address",
"internalType": "address"
},
{
"name": "users",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "amounts",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "proofs",
"type": "bytes32[][]",
"internalType": "bytes32[][]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
];

Expand Down
30 changes: 30 additions & 0 deletions src/assets/merkl-powered-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 171af89

Please sign in to comment.