BeneficiarySuperApp
Summary
The BeneficiarySuperApp
is the contract that accumulates network funds from the Geo Web's land market (claim fees, network fees, and rejection penalties).
These funds will be transferred out in batches in a process controlled by the community multi-sig initially. Eventually, the programmability of streams can be utilized to fund initiatives in real-time.
The BeneficiarySuperApp
is also utilized to keep track of the last deletion time of network fee payment streams for parcels. It uses Superfluid's Super App construction.
Code
Contract Functions
BeneficiarySuperApp
cfaV1
struct CFAv1Library.InitData cfaV1
paramsStore
contract IPCOLicenseParamsStore paramsStore
lastDeletion
mapping(address => uint256) lastDeletion
Timestamp of last deletion from each beacon proxy
beneficiary
address beneficiary
Beneficiary of funds.
initialize
function initialize(contract IPCOLicenseParamsStore paramsStore_, address beneficiary_) external
getParamsStore
function getParamsStore() external view returns (contract IPCOLicenseParamsStore)
Params Store
setParamsStore
function setParamsStore(contract IPCOLicenseParamsStore paramsStore_) external
Set Params Store
getBeneficiary
function getBeneficiary() external view returns (address)
Beneficiary
setBeneficiary
function setBeneficiary(address beneficiary_) external
Set Beneficiary
getLastDeletion
function getLastDeletion(address sender) external view returns (uint256)
Get last deletion for sender
_setLastDeletion
function _setLastDeletion(address beaconProxy) internal
Set last deletion of beacon proxy to now
Parameters
Name | Type | Description |
---|---|---|
beaconProxy | address | Beacon proxy |
afterAgreementTerminated
function afterAgreementTerminated(contract ISuperToken superToken, address agreementClass, bytes32, bytes agreementData, bytes, bytes ctx) external returns (bytes newCtx)
_isSameToken
function _isSameToken(contract ISuperToken superToken) private view returns (bool)
_isCFAv1
function _isCFAv1(address agreementClass) private view returns (bool)
onlyHost
modifier onlyHost()
ICFABeneficiary
getLastDeletion
function getLastDeletion(address sender) external view returns (uint256)
Get last deletion for sender