From c96bf485fe2f04771e2e7f57a9124bd5dad59638 Mon Sep 17 00:00:00 2001 From: Jem <0x0xjem@gmail.com> Date: Thu, 11 Jul 2024 16:38:27 +0400 Subject: [PATCH] Add referrerFee to RoutingParams https://github.com/Axis-Fi/axis-core/pull/216 --- script/guides/create-auction.s.sol | 1 + src/interfaces/IAuctionHouse.sol | 2 ++ 2 files changed, 3 insertions(+) diff --git a/script/guides/create-auction.s.sol b/script/guides/create-auction.s.sol index 1d00c2d..d2835df 100644 --- a/script/guides/create-auction.s.sol +++ b/script/guides/create-auction.s.sol @@ -34,6 +34,7 @@ contract CreateAuctionScript is Script, Constants { baseToken: address(baseToken), quoteToken: address(quoteToken), curator: address(0), // Optional + referrerFee: 0, // Optional callbacks: ICallback(address(0)), // Optional callbackData: abi.encode(""), // Optional derivativeType: toKeycode(""), // Optional diff --git a/src/interfaces/IAuctionHouse.sol b/src/interfaces/IAuctionHouse.sol index 8c76b0a..a929d68 100644 --- a/src/interfaces/IAuctionHouse.sol +++ b/src/interfaces/IAuctionHouse.sol @@ -51,6 +51,7 @@ interface IAuctionHouse { /// @param baseToken Token provided by seller. Declared as an address to avoid dependency hell. /// @param quoteToken Token to accept as payment. Declared as an address to avoid dependency hell. /// @param curator (optional) Address of the proposed curator + /// @param referrerFee (optional) Percent of bid/purchase amount received paid to a referrer in basis points, i.e. 1% = 100. /// @param callbacks (optional) Callbacks implementation for extended functionality /// @param callbackData (optional) abi-encoded data to be sent to the onCreate callback function /// @param derivativeType (optional) Derivative type, represented by the Keycode for the derivative submodule @@ -61,6 +62,7 @@ interface IAuctionHouse { address baseToken; address quoteToken; address curator; + uint48 referrerFee; ICallback callbacks; bytes callbackData; Keycode derivativeType;