CyanPaymentPlanV2

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xca0f018e at 20627025
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots

No balances found for "CyanPaymentPlanV2"

No transactions found for "CyanPaymentPlanV2"


Functions
Getter at block 21296705
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
Read-only
claimableServiceFee(addressview returns (uint256)
getCurrencyAddressByPlanId(uint256 planIdview returns (address)
getPaymentInfoByPlanId(uint256 planIdbool isEarlyPaymentview returns (uint256uint256uint256uint256uint256)
getPlanStatus(uint256 planIdview returns (uint8)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
items(uint256view returns (uint256 amountuint256 tokenIdaddress contractAddressaddress cyanVaultAddressuint8 itemType)
paymentPlan(uint256view returns (struct Plan planuint256 createdDateaddress cyanWalletAddressuint8 status)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
activateBNPL(uint256[] planIds
claimServiceFee(address currencyAddress
createBNPL(struct Item itemstruct Plan planuint256 planIduint256 signedBlockNumbytes signaturepayable 
createPawn(struct Item itemstruct Plan planuint256 planIduint256 signedBlockNumbytes signature
createPawnByRefinance(struct Item itemstruct Plan planuint256 planIduint256 existingPlanIduint256 signedBlockNumbytes signaturepayable 
createPawnFromBendDao(struct Item itemstruct Plan planuint256 planIduint256 signedBlockNumbytes signature
earlyUnwindCyan(uint256 planIduint256[2] apePlanIdsuint256 sellPriceaddress cyanBuyerAddressuint256 signatureExpiryDatebytes signature
earlyUnwindOpensea(uint256 planIduint256[2] apePlanIdsuint256 sellPricebytes offeruint256 signatureExpiryDatebytes signature
fundBNPL(uint256[] planIds
grantRole(bytes32 roleaddress account
initialize(address _cyanSigneraddress _cyanSuperAdminaddress _walletFactory
liquidate(uint256 planIduint256[2] apePlanIdsuint256 estimatedValue
pay(uint256 planIdbool isEarlyPaymentpayable 
rejectBNPL(uint256 planIdpayable 
renounceRole(bytes32 roleaddress account
revive(uint256 planIduint256 penaltyAmountuint256 signatureExpiryDatebytes signaturepayable 
revokeRole(bytes32 roleaddress account
setAutoRepayStatus(uint256 planIduint8 autoRepayStatus
triggerAutoRepay(uint256 planId
updateCyanSignerAddress(address _cyanSigner
updateWalletFactoryAddress(address factory
Events
ClaimedServiceFee(address indexed currencyuint256 indexed amount
Completed(uint256 indexed planId
CompletedByRevival(uint256 indexed planIduint256 penaltyAmount
CompletedEarly(uint256 indexed planIduint8 indexed paidNumOfPayment
CreatedBNPL(uint256 indexed planId
CreatedPawn(uint256 indexed planIduint8 createType
EarlyUnwind(uint256 indexed planId
Initialized(uint8 version
LiquidatedPaymentPlan(uint256 indexed planIduint256 indexed estimatedPriceuint256 indexed unpaidAmount
Paid(uint256 indexed planId
Revived(uint256 indexed planIduint256 penaltyAmount
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SetAutoRepayStatus(uint256 indexed planIduint8 indexed autoRepayStatus
UpdatedBNPL(uint256 indexed planIduint8 indexed planStatus
UpdatedCyanSigner(address indexed signer
UpdatedWalletFactory(address indexed factory
Constructor
constructor(
Fallback and receive
receive(
Errors
EthTransferFailed(
InvalidAddress(
InvalidAmount(
InvalidAutoRepaymentDate(
InvalidAutoRepaymentStatus(
InvalidCurrency(
InvalidCyanBuyer(
InvalidItem(
InvalidPaidCount(
InvalidReviveDate(
InvalidSender(
InvalidSignature(
InvalidStage(
PaymentPlanAlreadyExists(
PaymentPlanNotFound(