0 txs
154 calls
constructor
constructor()
functions
allocationOf
viewfunction allocationOf(address token, address beneficiary) view returns (uint256)
beneficiaries
viewfunction beneficiaries() view returns (address[])
bennyAmountTradedFor
viewfunction bennyAmountTradedFor(address) view returns (uint256)
getBeneficiaryBasicData
viewfunction getBeneficiaryBasicData(address beneficiary) view returns (uint256 allocation, address creditToken, uint256 debtOwed)
getBeneficiaryData
viewfunction getBeneficiaryData(address beneficiary) view returns (tuple)
getBeneficiaryTokens
viewfunction getBeneficiaryTokens(address beneficiary, address token) view returns (uint256)
getDefaultBeneficiaryBasicData
viewfunction getDefaultBeneficiaryBasicData() view returns (uint256 allocation, address creditToken, uint256 debtOwed)
getOperatorTokens
viewfunction getOperatorTokens(address token) view returns (uint256)
getOTCPriceImpact
viewfunction getOTCPriceImpact() view returns (uint128)
getOwnerTokens
viewfunction getOwnerTokens(address token) view returns (uint256)
getSetting
viewfunction getSetting(address borrowerContract) view returns (uint8, bytes4, bytes4)
hasBeneficiaryDebtOutstanding
viewfunction hasBeneficiaryDebtOutstanding() view returns (bool)
isTokenWhitelisted
viewfunction isTokenWhitelisted(address token) view returns (bool)
isWhitelisted
viewfunction isWhitelisted(bytes4 func) view returns (bool)
mutualConsentProposals
viewfunction mutualConsentProposals(bytes32) view returns (address)
operator
viewfunction operator() view returns (address)
owner
viewfunction owner() view returns (address)
proposalCount
viewfunction proposalCount() view returns (uint128)
totalBennyAmountTradedFor
viewfunction totalBennyAmountTradedFor(address) view returns (uint256)
addSpigot
nonpayablefunction addSpigot(address borrowerContract, tuple setting)
claimOperatorTokens
nonpayablefunction claimOperatorTokens(address token) returns (uint256 claimed)
claimOwnerTokens
nonpayablefunction claimOwnerTokens(address token) returns (uint256 claimed)
impairBeneficiaryDebtOwed
nonpayablefunction impairBeneficiaryDebtOwed(address beneficiary)
initializeFromFactory
nonpayablefunction initializeFromFactory(address _operator, tuple defaultBeneficiary, address _weth)
operate
nonpayablefunction operate(address borrowerContract, bytes data) returns (bool)
otcSwap
nonpayablefunction otcSwap(address beneficiary, address oracle, tuple otc)
pullTokens
nonpayablefunction pullTokens(address borrowerContract, address token, bytes data) returns (uint256 claimed)
reassignTokens
nonpayablefunction reassignTokens(address beneficiary, address[] tokens)
recoverBeneficiaryTokens
nonpayablefunction recoverBeneficiaryTokens(address beneficiary, address token, address to)
recoverSpigotTokens
nonpayablefunction recoverSpigotTokens(address token, address to)
removeSpigot
nonpayablefunction removeSpigot(address borrowerContract)
repayBeneficiary
nonpayablefunction repayBeneficiary(bytes functionData, address beneficiary, uint256 amount)
repayBeneficiaryWithTradedTokens
nonpayablefunction repayBeneficiaryWithTradedTokens(bytes functionData, address beneficiary)
resetBeneficiaries
nonpayablefunction resetBeneficiaries(address operator, tuple defaultBeneficiary, tuple[] beneficiaries_, address[] tokens)
revokeConsent
nonpayablefunction revokeConsent(uint256, bytes _reconstructedMsgData)
sweepOwnerOperatorTokens
nonpayablefunction sweepOwnerOperatorTokens(address token, address to) returns (uint256 operatorTokens, uint256 ownerTokens)
tradeAndDistribute
nonpayablefunction tradeAndDistribute(address beneficiary, address sellToken, uint256 sellAmount, uint256 minBuyAmount, bytes zeroExTradeData)
updateAllowedOTCPriceImpact
nonpayablefunction updateAllowedOTCPriceImpact(uint128 allowedPriceImpact)
updateBeneficiaryPoolAddress
nonpayablefunction updateBeneficiaryPoolAddress(address beneficiary, address poolAddress)
updateBeneficiaryRepaymentFunc
nonpayablefunction updateBeneficiaryRepaymentFunc(address beneficiary, bytes4 repaymentFunc)
updateBorrowerContractSplit
nonpayablefunction updateBorrowerContractSplit(address borrowerContract, uint8 ownerSplit)
updateOperator
nonpayablefunction updateOperator(address newOperator)
updateOwner
nonpayablefunction updateOwner(address newOwner) returns (bool)
updateStableCoinWhitelist
nonpayablefunction updateStableCoinWhitelist(address token, bool includeToken)
updateWhitelistedFunction
nonpayablefunction updateWhitelistedFunction(bytes4 func, bool allowed)
events
AddSpigot
event AddSpigot(address indexed borrowerContract, uint256 ownerSplit, bytes4 claimFnSig, bytes4 trsfrFnSig)
BeneficiaryAdded
event BeneficiaryAdded(address indexed beneficiary, uint96 amount)
ClaimOperatorTokens
event ClaimOperatorTokens(address indexed token, uint256 indexed amount, address operator)
ClaimOwnerTokens
event ClaimOwnerTokens(address indexed token, uint256 indexed amount, address owner)
ClaimTokens
event ClaimTokens(address indexed token, uint256 indexed amount, uint256 operatorTokens, address borrowerContract)
DefaultBeneficiaryUpdated
event DefaultBeneficiaryUpdated(address indexed oldDefaultBeneficiary, address indexed newDefaultBeneficiary)
Distributed
event Distributed(address indexed token, uint256 indexed amount)
MutualConsentAccepted
event MutualConsentAccepted(bytes32 indexed proposalId)
MutualConsentRegistered
event MutualConsentRegistered(bytes32 indexed proposalId, address indexed taker, uint256 indexed nonce, bytes msgData)
MutualConsentRevoked
event MutualConsentRevoked(bytes32 indexed proposalId)
MutualConsentRevokedAll
event MutualConsentRevokedAll(uint256 indexed newNonce)
Reassigned
event Reassigned(address indexed token, address indexed beneficiary)
RemoveSpigot
event RemoveSpigot(address indexed borrowerContract, address token)
RemoveSpigot
event RemoveSpigot(address indexed borrowerContract)
Repaid
event Repaid(address indexed token, address indexed beneficiary, uint256 indexed amount)
UpdateBorrowerContractSplit
event UpdateBorrowerContractSplit(address indexed borrowerContract, uint8 indexed split)
UpdateOperator
event UpdateOperator(address indexed newOperator)
UpdateOwner
event UpdateOwner(address indexed newOwner)
UpdateWhitelistFunction
event UpdateWhitelistFunction(bytes4 indexed func, bool indexed allowed)
errors
AlreadyInitialized
error AlreadyInitialized()
AlreadyReassigned
error AlreadyReassigned(address beneficiary, address token)
AmountZero
error AmountZero()
BadAddress
error BadAddress()
BadBeneficiary
error BadBeneficiary()
BadFunction
error BadFunction()
BadSetting
error BadSetting()
BadStatus
error BadStatus()
BeneficiaryDebtOutstanding
error BeneficiaryDebtOutstanding()
CallerAccessDenied
error CallerAccessDenied()
CannotBeZeroAddress
error CannotBeZeroAddress()
CannotClaimBeneficiaryTradedTokens
error CannotClaimBeneficiaryTradedTokens()
CannotOverpayBeneficiaryDebt
error CannotOverpayBeneficiaryDebt()
CannotReassignDefaultBeneficiary
error CannotReassignDefaultBeneficiary()
ClaimFailed
error ClaimFailed()
DuplicateDefaultBenenficiary
error DuplicateDefaultBenenficiary()
InsufficientFunds
error InsufficientFunds()
InvalidBorrowerContract
error InvalidBorrowerContract()
InvalidConsent
error InvalidConsent()
InvalidSplit
error InvalidSplit()
InvalidToken
error InvalidToken()
LineHasActiveCreditPositions
error LineHasActiveCreditPositions(uint256)
LineMustBeDefaultBeneficiary
error LineMustBeDefaultBeneficiary(address beneficiary)
MustRepayWithTradedTokens
error MustRepayWithTradedTokens()
NoClaimableTokens
error NoClaimableTokens()
NotBeneficiary
error NotBeneficiary(address beneficiary)
NoTradedTokens
error NoTradedTokens()
NotUserConsent
error NotUserConsent()
OperatorFnCallFailed
error OperatorFnCallFailed()
OperatorFnNotValid
error OperatorFnNotValid()
OperatorFnNotWhitelisted
error OperatorFnNotWhitelisted()
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
RepaymentExceedsDistributedAmount
error RepaymentExceedsDistributedAmount()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
SendingEthFailed
error SendingEthFailed()
SpigotSettingsExist
error SpigotSettingsExist()
TradeFailed
error TradeFailed()
Unauthorized
error Unauthorized()
UnsupportedMutualConsentFunction
error UnsupportedMutualConsentFunction()
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d733a4b01afa7021a4cc50ef6e7a8e6f5531265c5575af43d82803e903d91602b57fd5bf3