MoCVendors
Last updated
Last updated
View Source:
↗ Extends: , , , ,
MoCVendors - version: 0.1.12
Constants & Variables
Parameters
account
address
markup
uint256
Parameters
account
address
markup
uint256
Parameters
account
address
Parameters
account
address
staking
uint256
Parameters
account
address
staking
uint256
Parameters
account
address
Parameters
vendorGuardianAddress
address
Parameters
vendorAdress
address
paidMoC
uint256
paidRBTC
uint256
Checks if vendor (msg.sender) is active
Arguments
Checks if address is allowed to call function
Arguments
Initializes the contract
Arguments
connectorAddress
address
MoCConnector contract address
_governor
address
Governor contract address
_vendorGuardianAddress
address
Address which will be authorized to register and unregister vendors.
Gets the count of active registered vendors
Returns
Amount of active registered vendors
Arguments
Allows to register a vendor
Returns
true if vendor was registered successfully; otherwise false
Arguments
account
address
Vendor address
markup
uint256
Markup which vendor will perceive from mint/redeem operations
Allows to unregister a vendor
Returns
false if vendor was unregistered successfully; otherwise false
Arguments
account
address
Vendor address
Allows an active vendor (msg.sender) to add staking
Arguments
staking
uint256
Staking the vendor wants to add
Allows an active vendor (msg.sender) to remove staking
Arguments
staking
uint256
Staking the vendor wants to remove
⤾ overrides IMoCVendors.updatePaidMarkup
Allows to update paid markup to vendor
Arguments
account
address
Vendor address
mocAmount
uint256
paid markup in MoC
rbtcAmount
uint256
paid markup in RBTC
⤾ overrides IMoCVendors.getIsActive
Gets if a vendor is active
Returns
true if vendor is active; false otherwise
Arguments
account
address
Vendor address
⤾ overrides IMoCVendors.getMarkup
Gets vendor markup
Returns
Vendor markup
Arguments
account
address
Vendor address
⤾ overrides IMoCVendors.getTotalPaidInMoC
Gets vendor total paid in MoC
Returns
Vendor total paid in MoC
Arguments
account
address
Vendor address
⤾ overrides IMoCVendors.getStaking
Gets vendor staking
Returns
Vendor staking
Arguments
account
address
Vendor address
⤾ overrides IMoCVendors.resetTotalPaidInMoC
Allows to reset all active vendor's total paid in MoC during settlement
Arguments
Returns the address is authorized to register and unregister vendors.
Arguments
Sets the address which will be authorized to register and unregister vendors.
Arguments
_vendorGuardianAddress
address
Address which will be authorized to register and unregister vendors.
Arguments
Arguments
_governor
address
_vendorGuardianAddress
address
Sets the address which will be authorized to register and unregister vendors.
Arguments
_vendorGuardianAddress
address
Address which will be authorized to register and unregister vendors.