FactoryBase
Git Source Inherits: Ownable, IFactory Author: @oscarsernarosero @mpetersoCode55 @cirsteve creates the pools in an automated and permissioned fashionState Variables
VERSION
MAX_PROTOCOL_FEE
yTokenAllowList
deployerAllowList
protocolFeeCollector
proposedProtocolFeeCollector
protocolFee
Functions
onlyAllowedDeployers
onlyAllowedYTokens
onlyProposedProtocolFeeCollector
setYTokenAllowList
sets the y token allow list| Name | Type | Description |
|---|---|---|
_address | address | of the allow list contract |
getYTokenAllowList
gets the y token allow list| Name | Type | Description |
|---|---|---|
<none> | address | _address of the current allow list contract |
setDeployerAllowList
Only the owner can set the deployer allow list sets the deployer allow list| Name | Type | Description |
|---|---|---|
_address | address | of the allow list contract |
getDeployerAllowList
gets the deployer allow list| Name | Type | Description |
|---|---|---|
<none> | address | _address of the current allow list contract |
setProtocolFee
Only the owner can set the protocol fee This is the function to update the protocol fees per trade.| Name | Type | Description |
|---|---|---|
_protocolFee | uint16 | percentage of the transaction that will get collected as fees (in percentage basis points: 10000 -> 100.00%; 500 -> 5.00%; 1 -> 0.01%) |
proposeProtocolFeeCollector
that only the current fee collector address can call this function function to propose a new protocol fee collector| Name | Type | Description |
|---|---|---|
_protocolFeeCollector | address | the new fee collector |