Skip to content

Commit

Permalink
Add referrerFee to RoutingParams
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJem committed Jul 11, 2024
1 parent 22743b1 commit c96bf48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions script/guides/create-auction.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/interfaces/IAuctionHouse.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -61,6 +62,7 @@ interface IAuctionHouse {
address baseToken;
address quoteToken;
address curator;
uint48 referrerFee;
ICallback callbacks;
bytes callbackData;
Keycode derivativeType;
Expand Down

0 comments on commit c96bf48

Please sign in to comment.