Verified contractPartial
Curve_ZapIn_General_V3_1_1
Address0x77ed360e62ca6f2d1582f00da8b0b8489ca1e2e2
- Balance
0 ETH
- Transactions
547
- Compiler
solc 0.5.17
- Same code
Only this contract
Details
- Compiler
- solc 0.5.17+commit.d19bba13
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- istanbul
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 12,079,456
- Creation transaction
- 0x102aad8678…f5c79ce842
Read9
- affiliateBalance(address,address) → (uint256)
- affiliates(address) → (bool)
- curveReg() → (address)
- feeWhitelist(address) → (bool)
- goodwill() → (uint256)
- isOwner() → (bool)
- owner() → (address)
- stopped() → (bool)
- totalAffiliateBalance(address) → (uint256)
Write11
- ZapIn(address,address,address,uint256,uint256,address,bytes,address) → (uint256)
- affilliateWithdraw(address[])
- renounceOwnership()
- set_affiliate(address,bool)
- set_feeWhitelist(address,bool)
- set_new_affiliateSplit(uint256)
- set_new_goodwill(uint256)
- toggleContractActive()
- transferOwnership(address)
- updateCurveRegistry(address)
- withdrawTokens(address[])
Events2
- OwnershipTransferred(address,address)
- zapIn(address,address,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_curveRegistry",
"type": "address",
"internalType": "contract ICurveRegistry"
},
{
"name": "_goodwill",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "_affiliateSplit",
"type": "uint16",
"internalType": "uint16"
}
],
"payable": false,
"stateMutability": "nonpayable"
},
{
"name": "OwnershipTransferred",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "zapIn",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "pool",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "tokensRec",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "fallback",
"payable": true,
"stateMutability": "payable"
},
{
"name": "ZapIn",
"type": "function",
"inputs": [
{
"name": "_fromTokenAddress",
"type": "address",
"internalType": "address"
},
{
"name": "_toTokenAddress",
"type": "address",
"internalType": "address"
},
{
"name": "_swapAddress",
"type": "address",
"internalType": "address"
},
{
"name": "_incomingTokenQty",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_minPoolTokens",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_swapTarget",
"type": "address",
"internalType": "address"
},
{
"name": "_swapCallData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "affiliate",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "crvTokensBought",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": true,
"constant": false,
"stateMutability": "payable"
},
{
"name": "affiliateBalance",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "affiliates",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "affilliateWithdraw",
"type": "function",
"inputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "curveReg",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ICurveRegistry"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "feeWhitelist",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "goodwill",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "isOwner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "set_affiliate",
"type": "function",
"inputs": [
{
"name": "_affiliate",
"type": "address",
"internalType": "address"
},
{
"name": "_status",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "set_feeWhitelist",
"type": "function",
"inputs": [
{
"name": "zapAddress",
"type": "address",
"internalType": "address"
},
{
"name": "status",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "set_new_affiliateSplit",
"type": "function",
"inputs": [
{
"name": "_new_affiliateSplit",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "set_new_goodwill",
"type": "function",
"inputs": [
{
"name": "_new_goodwill",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "stopped",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "toggleContractActive",
"type": "function",
"inputs": [],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "totalAffiliateBalance",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "updateCurveRegistry",
"type": "function",
"inputs": [
{
"name": "newCurveRegistry",
"type": "address",
"internalType": "contract ICurveRegistry"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "withdrawTokens",
"type": "function",
"inputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
}
],
"outputs": [],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.