ProtocolFeesCollector
Berachain0xb8cf46cf1b1476e707619913a70b2085d26f1707
Solidity v0.7.1+commit.f4a555be
概覽
讀取函式
Get the action identifier for a given function selector.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| selector | bytes4 | The 4-byte function selector used to derive the action id.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The 32-byte action identifier corresponding to the provided selector.✨ AI |
Returns the address of the authorizer contract used for permission and role checks.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the authorizer contract that handles permissioning for protocol actions.✨ AI |
Return the amounts of protocol fees collected for each provided token address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| tokens | address[] | Array of ERC20 token addresses to query protocol-collected fee balances for.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| feeAmounts | uint256[] | feeAmounts: Array of uint256 values giving the collected fee amount for each token, in the token's smallest unit, matching the input order.✨ AI |
Returns the current flash loan fee percentage charged by the protocol.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The current flash loan fee percentage as a uint256 value used by the protocol.✨ AI |
Returns the current swap fee percentage charged by the protocol.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The current swap fee percentage as a uint256; encoding uses the contract's fixed-point scale.✨ AI |
Returns the Vault contract address that receives protocol fees.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The Vault contract address where the collector sends or stores protocol fees.✨ AI |
寫入函式
Set the protocol's flash loan fee percentage to a new value.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newFlashLoanFeePercentage | uint256 | New flash loan fee percentage, represented as a uint256 in the contract's fee units.✨ AI |
Sets the protocol's swap fee percentage to the provided value.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newSwapFeePercentage | uint256 | New swap fee percentage as an unsigned integer in the contract's internal units.✨ AI |
Withdraws collected protocol fees for the given tokens and sends each specified amount to the recipient.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| tokens | address[] | Array of token contract addresses whose collected fees will be withdrawn.✨ AI |
| amounts | uint256[] | Array of amounts to withdraw for each corresponding token (same length as tokens).✨ AI |
| recipient | address | Address that will receive the withdrawn token amounts.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newFlashLoanFeePercentage | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newSwapFeePercentage | uint256 |