You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contract Variables to add (all variables are internal)
address feeSweeper : Address of contract that will receive the protocol fees when withdrawProtocolFees is called. This is important to make withdrawProtocolFees permissionless, and reduce the risk of informing the wrong receiver of protocol fees.
Functions to add
getFeeSweeper
return:
feeSweeper
setFeeSweeper
permissioned
arguments:
address newFeeSweeper : Address of the contract that will receive fees when withdrawProtocolFees is called
Logic:
feeSweeper = newFeeSweeper (nothing to validate, except the permission)
Emit event FeeSweeperChanged with new fee sweeper address
withdrawProtocolFees
Withdraw protocol fees of a given token to feeSweeper contract.
permissionless
arguments
address token : Token which will be withdrawn
Logic
Transfer protocolFees[token] to feeSweeper contract
protocolFees[token] = 0
Emit event CoWProtocolFeeWithdrawn
address token
address feeSweeper
uint256 amount
The text was updated successfully, but these errors were encountered:
Depends on #1241
Contract Variables to add (all variables are internal)
address feeSweeper
: Address of contract that will receive the protocol fees whenwithdrawProtocolFees
is called. This is important to makewithdrawProtocolFees
permissionless, and reduce the risk of informing the wrong receiver of protocol fees.Functions to add
getFeeSweeper
feeSweeper
setFeeSweeper
address newFeeSweeper
: Address of the contract that will receive fees whenwithdrawProtocolFees
is calledfeeSweeper
=newFeeSweeper
(nothing to validate, except the permission)FeeSweeperChanged
with new fee sweeper addresswithdrawProtocolFees
Withdraw protocol fees of a given
token
tofeeSweeper
contract.address token
: Token which will be withdrawnprotocolFees[token]
tofeeSweeper
contractprotocolFees[token]
= 0CoWProtocolFeeWithdrawn
address token
address feeSweeper
uint256 amount
The text was updated successfully, but these errors were encountered: