CyanPaymentPlanV2

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xa9a5031a at 17081637
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 21313146
CYAN_AUTO_OPERATOR_ROLE(view returns (bytes32)
0x3476efba29c1dd189ede426d6e97aa39c0683187a42f9eec0c97d2d56eb0a4bc
CYAN_ROLE(view returns (bytes32)
0x321163fcbab3bac890d4fb1f03b22c5c6bd95bc472ee55584937974a1db03356
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
Read-only
claimableServiceFee(addressview returns (uint256)
getClaimableServiceFee(address currencyAddressview returns (uint256)
getCurrencyAddressByPlanId(uint256 planIdview returns (address)
getExpectedPlan(struct CyanPaymentPlanV2Plan planpure returns (uint256uint256uint256uint256uint256)
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 CyanPaymentPlanV2Plan planuint256 createdDateaddress cyanWalletAddressuint8 status)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
activateBNPL(uint256 planId
claimServiceFee(address currencyAddress
createBNPL(struct CyanPaymentPlanV2Item itemstruct CyanPaymentPlanV2Plan planuint256 planIduint256 signedBlockNumbytes signaturepayable 
createPawn(struct CyanPaymentPlanV2Item itemstruct CyanPaymentPlanV2Plan planuint256 planIduint256 signedBlockNumbytes signature
fundBNPL(uint256 planId
grantRole(bytes32 roleaddress account
initialize(address _cyanSigneraddress _cyanSuperAdminaddress _walletFactoryuint256 _baseDiscountRate
liquidate(uint256 planIduint256 estimatedValue
pay(uint256 planIdbool isEarlyPaymentpayable 
rejectBNPLPaymentPlan(uint256 planIdpayable 
renounceRole(bytes32 roleaddress account
revive(uint256 planIduint256 penaltyAmountbytes signaturepayable 
revokeRole(bytes32 roleaddress account
setAutoRepayStatus(uint256 planIduint8 autoRepayStatus
triggerAutoRepay(uint256 planId
updateBaseDiscountRate(uint256 _baseDiscountRate
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 planIduint256 indexed baseDiscountRateuint8 indexed paidNumOfPayment
CreatedBNPL(uint256 indexed planId
CreatedPawn(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
UpdateBaseDiscountRate(uint256 indexed baseDiscountRate
UpdatedBNPL(uint256 indexed planIduint8 indexed planStatus
UpdatedCyanSigner(address indexed signer
UpdatedWalletFactory(address indexed factory
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
InvalidAddress(
InvalidAmount(
InvalidAutoRepaymentDate(
InvalidAutoRepaymentStatus(
InvalidBaseDiscountRate(
InvalidBlockNumber(
InvalidDownPayment(
InvalidDownPaymentPercent(
InvalidInterestRate(
InvalidItem(
InvalidPaidCount(
InvalidReviveDate(
InvalidSender(
InvalidServiceFeeRate(
InvalidSignature(
InvalidStage(
InvalidTerm(
InvalidTokenPrice(
InvalidTotalNumberOfPayments(
PaymentPlanAlreadyExists(
PaymentPlanNotFound(