BendExchange
It is the core contract of the Bend exchange.
Methods
matchAskWithTakerBid
Match a takerBid with a matchAsk
Parameters
Name | Type | Description |
---|---|---|
takerBid | OrderTypes.TakerOrder | taker bid order |
makerAsk | OrderTypes.MakerOrder | maker ask order |
matchAskWithTakerBidUsingETHAndWETH
Match ask with a taker bid order using ETH
Parameters
Name | Type | Description |
---|---|---|
takerBid | OrderTypes.TakerOrder | taker bid order |
makerAsk | OrderTypes.MakerOrder | maker ask order |
matchBidWithTakerAsk
Match a takerAsk with a makerBid
Parameters
Name | Type | Description |
---|---|---|
takerAsk | OrderTypes.TakerOrder | taker ask order |
makerBid | OrderTypes.MakerOrder | maker bid order |
cancelAllOrdersForSender
Cancel all pending orders for a sender
Parameters
Name | Type | Description |
---|---|---|
minNonce | uint256 | minimum user nonce |
cancelMultipleMakerOrders
Cancel maker orders
Parameters
Name | Type | Description |
---|---|---|
orderNonces | uint256[] | array of order nonces |
CancelMultipleOrders
Parameters
Name | Type | Description |
---|---|---|
user | address | user address |
orderNonces | uint256[] | array of order nonces that are cancelled |
renounceOwnership
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
updateAuthorizationManager
Update authorization manager
Parameters
Name | Type | Description |
---|---|---|
_authorizationManager | address | new authorization manager address |
updateCurrencyManager
Update currency manager
Parameters
Name | Type | Description |
---|---|---|
_currencyManager | address | new currency manager address |
updateExecutionManager
Update execution manager
Parameters
Name | Type | Description |
---|---|---|
_executionManager | address | new execution manager address |
updateProtocolFeeRecipient
Update protocol fee and recipient
Parameters
Name | Type | Description |
---|---|---|
_protocolFeeRecipient | address | new recipient for protocol fees |
updateRoyaltyFeeManager
Update royalty fee manager
Parameters
Name | Type | Description |
---|---|---|
_royaltyFeeManager | address | new fee manager address |
updateTransferManager
Update transfer manager
Parameters
Name | Type | Description |
---|---|---|
_transferManager | address | new transfer manager address |
updateInterceptorManager
Update interceptor manager
Parameters
Name | Type | Description |
---|---|---|
_interceptorManager | address | new interceptor manager address |
View methods
DOMAIN_SEPARATOR
Returns
Name | Type | Description |
---|---|---|
DOMAIN_SEPARATOR | bytes32 | EIP-712 domain separator for the exchange |
WETH
Returns
Name | Type | Description |
---|---|---|
WETH | address | address of the WETH ("Wrapped Ether") contract |
authorizationManager
Returns
Name | Type | Description |
---|---|---|
contract IAuthorizationManager | address of the AuthorizationManager |
currencyManager
Returns
Name | Type | Description |
---|---|---|
currencyManager | contract ICurrencyManager | address of the CurrencyManager |
executionManager
Returns
Name | Type | Description |
---|---|---|
executionManager | contract IExecutionManager | address of the ExecutionManager |
royaltyFeeManager
Returns
Name | Type | Description |
---|---|---|
royaltyFeeManager | contract IRoyaltyFeeManager | address of the RoyaltyFeeManager |
transferManager
Returns
Name | Type | Description |
---|---|---|
transferManager | contract ITransferManager | address of the TransferManager contract |
interceptorManager
Returns
Name | Type | Description |
---|---|---|
interceptorManager | contract IInterceptorManager | address of the InterceptorManager contract |
isUserOrderNonceExecutedOrCancelled
Check whether user order nonce is executed or cancelled
Parameters
Name | Type | Description |
---|---|---|
user | address | address of user |
orderNonce | uint256 | nonce of the order |
Returns
Name | Type | Description |
---|---|---|
- | bool | whether the user order nonce is executed or cancelled (for cancels, it needs to be checked against the minOrderNonce too) |
protocolFeeRecipient
Returns
Name | Type | Description |
---|---|---|
protocolFeeRecipient | address | address of the protocol fee recipient |
owner
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
userMinOrderNonce
Parameters
Name | Type | Description |
---|---|---|
user | address | user address |
Returns
Name | Type | Description |
---|---|---|
minOrderNonce | uint256 | minimum order nonce that defines the validity of user orders. If an order has a nonce inferior to the minOrderNonce, it cannot be executed. |
Events
CancelAllOrders
Parameters
Name | Type | Description |
---|---|---|
user | address | user address |
newMinNonce | uint256 | new minimum order nonce |
NewAuthorizationManager
Parameters
Name | Type | Description |
---|---|---|
authorizationManager | address | address of the new AuthorizationManager |
NewCurrencyManager
Parameters
Name | Type | Description |
---|---|---|
currencyManager | address | address of the new CurrencyManager |
NewExecutionManager
Parameters
Name | Type | Description |
---|---|---|
executionManager | address | address of the new ExecutionManager |
NewProtocolFeeRecipient
Parameters
Name | Type | Description |
---|---|---|
protocolFeeRecipient | address | address of the new protocol fee recipient |
NewRoyaltyFeeManager
Parameters
Name | Type | Description |
---|---|---|
royaltyFeeManager | address | address of the new RoyaltyFeeManager |
NewTransferManager
Parameters
Name | Type | Description |
---|---|---|
transferManager | address | address of the new TransferManager |
NewInterceptorManager
Parameters
Name | Type | Description |
---|---|---|
interceptorManager | address | address of the new InterceptorManager |
OwnershipTransferred
Parameters
Name | Type | Description |
---|---|---|
previousOwner | address | address of the previous owner |
newOwner | address | address of the new owner |
RoyaltyPayment
Parameters
Name | Type | Description |
---|---|---|
collection | address | collection address |
tokenId | uint256 | tokenId |
royaltyRecipient | address | royalty fee recipient |
currency | address | currency used (e.g., WETH) |
amount | uint256 | royalty amount transferred |
ProtocolFeePayment
Parameters
Name | Type | Description |
---|---|---|
collection | address | collection address |
tokenId | uint256 | tokenId |
protocolFeeRecipient | address | protocol fee recipient |
currency | address | currency used (e.g., WETH) |
amount | uint256 | royalty amount transferred |
TakerAsk
Parameters
Name | Type | Description |
---|---|---|
orderHash | bytes32 | order hash |
orderNonce | uint256 | user order nonce (for the maker) |
taker | address | taker address |
maker | address | maker address |
strategy | address | address of the execution strategy |
currency | address | currency address |
collection | address | collection address |
tokenId | uint256 | tokenId |
amount | uint256 | amount of tokens transferred |
price | uint256 | gross transaction price |
TakerBid
Parameters
Name | Type | Description |
---|---|---|
orderHash | bytes32 | order hash |
orderNonce | uint256 | user order nonce (for the maker) |
taker | address | taker address |
maker | address | maker address |
strategy | address | address of the execution strategy |
currency | address | currency address |
collection | address | collection address |
tokenId | uint256 | tokenId |
amount | uint256 | amount of tokens transferred |
price | uint256 | gross transaction price |
Last updated