Verified contractExactMIT
GigaHelper
Address0x9988e86c009cb2cf0f9c8e783dee155bca71169d
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.20
- Same code
Only this contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 25,057,529
- Creation transaction
- 0xfcc209cca3…cd887ec1a2
GigaHelper.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract GigaHelper {
function collect(
address pair,
address realFactory,
address curve,
address nft,
address payable receiver
) external {
bytes memory extra = abi.encodePacked(
realFactory,
curve,
nft,
uint8(0)
);
uint256[] memory ids = new uint256[](1);
ids[0] = 1;
bytes memory main = abi.encodeWithSignature(
"swapNFTsForToken(uint256[],uint256,address,bool,address)",
ids,
uint256(0),
receiver,
false,
address(0)
);
bytes memory full = bytes.concat(main, extra);
(bool ok, bytes memory why) = pair.call(full);
require(ok, string(why));
}
receive() external payable {}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.