Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"settings": {
"evmVersion": "paris",
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": [],
"viaIR": true,
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
},
"sources": {
"contracts/vault/MerklStrategy.sol": {
"content": "// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;
contract MerklStrategy {
address private immutable merkl;
constructor(address _merkl) {
merkl = _merkl;
}
function getRewards(bytes calldata data) external {
(bool success, bytes memory result) = merkl.call(data);
if (!success) {
string memory errorMessage = result.length > 0
? abi.decode(result, (string))
: "Unknown error";
revert(errorMessage);
}
}
}
"
}
}
}}
Submitted on: 2025-10-17 14:25:53
Comments
Log in to comment.
No comments yet.