0x659e6676d4d3b06805216bab17156d3bf17670a7

Verified contract

Proxy

Active on Ethereum with 1 txns
Deployed by via 0xf84279af at 17472122
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $0.1
0xa56ff963449418ed7a286ca920d0d7cf5b33f0e9b07e3683cd83cf6bd312f355
From

Functions
Getter at block 21217723
baseToken(view returns (address)
0x0000000000000000000000000000000000000000
changeFee(view returns (uint56)
125
factory(view returns (address)
0xa16be8d32934a9aab272102ac4bb890481f4074e
feeRate(view returns (uint16)
100
flashFeeAndProtocolFee(view returns (uint256 feeAmountuint256 protocolFeeAmount)
(feeAmount=12500000000000000, protocolFeeAmount=0)
flashFeeToken(view returns (address)
0x0000000000000000000000000000000000000000
initialized(view returns (bool)
true
merkleRoot(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
nft(view returns (address)
0x32bb5a147b5371fd901aa4a72b7f82c58a87e36d
payRoyalties(view returns (bool)
false
price(view returns (uint256)
1030645653865917575
royaltyRegistry(view returns (address)
0xad2184fb5dbcfc05d8f056542fb25b04fa32a95d
stolenNftOracle(view returns (address)
0x190eb447e37489975d5de9977bf8ad6c9ae096f3
useStolenNftOracle(view returns (bool)
false
virtualBaseTokenReserves(view returns (uint128)
22412386060650349419
virtualNftReserves(view returns (uint128)
21745966692414832000
Read-only
availableForFlashLoan(address tokenuint256 tokenIdview returns (bool)
buyQuote(uint256 outputAmountview returns (uint256 netInputAmountuint256 feeAmountuint256 protocolFeeAmount)
changeFeeQuote(uint256 inputAmountview returns (uint256 feeAmountuint256 protocolFeeAmount)
flashFee(addressuint256view returns (uint256)
sellQuote(uint256 inputAmountview returns (uint256 netOutputAmountuint256 feeAmountuint256 protocolFeeAmount)
sumWeightsAndValidateProof(uint256[] tokenIdsuint256[] tokenWeightsstruct PrivatePoolMerkleMultiProof proofview returns (uint256)
State-modifying
buy(uint256[] tokenIdsuint256[] tokenWeightsstruct PrivatePoolMerkleMultiProof proofpayable returns (uint256 netInputAmountuint256 feeAmountuint256 protocolFeeAmount)
change(uint256[] inputTokenIdsuint256[] inputTokenWeightsstruct PrivatePoolMerkleMultiProof inputProofstruct IStolenNftOracleMessage[] stolenNftProofsuint256[] outputTokenIdsuint256[] outputTokenWeightsstruct PrivatePoolMerkleMultiProof outputProofpayable returns (uint256 feeAmountuint256 protocolFeeAmount)
deposit(uint256[] tokenIdsuint256 baseTokenAmountpayable 
execute(address targetbytes datapayable returns (bytes)
flashLoan(address receiveraddress tokenuint256 tokenIdbytes datapayable returns (bool)
initialize(address _baseTokenaddress _nftuint128 _virtualBaseTokenReservesuint128 _virtualNftReservesuint56 _changeFeeuint16 _feeRatebytes32 _merkleRootbool _useStolenNftOraclebool _payRoyalties
onERC721Received(addressaddressuint256bytesreturns (bytes4)
sell(uint256[] tokenIdsuint256[] tokenWeightsstruct PrivatePoolMerkleMultiProof proofstruct IStolenNftOracleMessage[] stolenNftProofsreturns (uint256 netOutputAmountuint256 feeAmountuint256 protocolFeeAmount)
setAllParameters(uint128 newVirtualBaseTokenReservesuint128 newVirtualNftReservesbytes32 newMerkleRootuint16 newFeeRatebool newUseStolenNftOraclebool newPayRoyaltiesuint56 newChangeFee
setChangeFee(uint56 _newChangeFee
setFeeRate(uint16 newFeeRate
setMerkleRoot(bytes32 newMerkleRoot
setPayRoyalties(bool newPayRoyalties
setUseStolenNftOracle(bool newUseStolenNftOracle
setVirtualReserves(uint128 newVirtualBaseTokenReservesuint128 newVirtualNftReserves
withdraw(address _nftuint256[] tokenIdsaddress tokenuint256 tokenAmount
Events
Buy(uint256[] tokenIdsuint256[] tokenWeightsuint256 inputAmountuint256 feeAmountuint256 protocolFeeAmountuint256 royaltyFeeAmount
Change(uint256[] inputTokenIdsuint256[] inputTokenWeightsuint256[] outputTokenIdsuint256[] outputTokenWeightsuint256 feeAmountuint256 protocolFeeAmount
Deposit(uint256[] tokenIdsuint256 baseTokenAmount
Initialize(address indexed baseTokenaddress indexed nftuint128 virtualBaseTokenReservesuint128 virtualNftReservesuint56 changeFeeuint16 feeRatebytes32 merkleRootbool useStolenNftOraclebool payRoyalties
Sell(uint256[] tokenIdsuint256[] tokenWeightsuint256 outputAmountuint256 feeAmountuint256 protocolFeeAmountuint256 royaltyFeeAmount
SetChangeFee(uint56 changeFee
SetFeeRate(uint16 feeRate
SetMerkleRoot(bytes32 merkleRoot
SetPayRoyalties(bool payRoyalties
SetUseStolenNftOracle(bool useStolenNftOracle
SetVirtualReserves(uint128 virtualBaseTokenReservesuint128 virtualNftReserves
Withdraw(address indexed nftuint256[] tokenIdsaddress tokenuint256 amount
Constructor

This contract contains no constructor objects.

Fallback and receive
receive(
Errors
AlreadyInitialized(
FeeRateTooHigh(
FlashLoanFailed(
InsufficientInputWeight(
InvalidEthAmount(
InvalidMerkleProof(
InvalidRoyaltyFee(
InvalidTarget(
InvalidTokenWeights(
NotAvailableForFlashLoan(
PrivatePoolNftNotSupported(
Unauthorized(
VirtualReservesNotSet(