CyanPaymentPlanV2
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
6
Slot
XX
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
Balances ($0.00)
No balances found for "CyanPaymentPlanV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "CyanPaymentPlanV2"
ABI
ABI objects
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(address) view returns (uint256)
getClaimableServiceFee(address currencyAddress) view returns (uint256)
getCurrencyAddressByPlanId(uint256 planId) view returns (address)
getExpectedPlan(struct CyanPaymentPlanV2Plan plan) pure returns (uint256, uint256, uint256, uint256, uint256)
getPaymentInfoByPlanId(uint256 planId, bool isEarlyPayment) view returns (uint256, uint256, uint256, uint256, uint256)
getPlanStatus(uint256 planId) view returns (uint8)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
items(uint256) view returns (uint256 amount, uint256 tokenId, address contractAddress, address cyanVaultAddress, uint8 itemType)
paymentPlan(uint256) view returns (struct CyanPaymentPlanV2Plan plan, uint256 createdDate, address cyanWalletAddress, uint8 status)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events activateBNPL(uint256 planId)
claimServiceFee(address currencyAddress)
createBNPL(struct CyanPaymentPlanV2Item item, struct CyanPaymentPlanV2Plan plan, uint256 planId, uint256 signedBlockNum, bytes signature) payable
createPawn(struct CyanPaymentPlanV2Item item, struct CyanPaymentPlanV2Plan plan, uint256 planId, uint256 signedBlockNum, bytes signature)
fundBNPL(uint256 planId)
grantRole(bytes32 role, address account)
initialize(address _cyanSigner, address _cyanSuperAdmin, address _walletFactory, uint256 _baseDiscountRate)
liquidate(uint256 planId, uint256 estimatedValue)
pay(uint256 planId, bool isEarlyPayment) payable
rejectBNPLPaymentPlan(uint256 planId) payable
renounceRole(bytes32 role, address account)
revive(uint256 planId, uint256 penaltyAmount, bytes signature) payable
revokeRole(bytes32 role, address account)
setAutoRepayStatus(uint256 planId, uint8 autoRepayStatus)
triggerAutoRepay(uint256 planId)
updateBaseDiscountRate(uint256 _baseDiscountRate)
updateCyanSignerAddress(address _cyanSigner)
updateWalletFactoryAddress(address factory)
ClaimedServiceFee(address indexed currency, uint256 indexed amount)
Completed(uint256 indexed planId)
CompletedByRevival(uint256 indexed planId, uint256 penaltyAmount)
CompletedEarly(uint256 indexed planId, uint256 indexed baseDiscountRate, uint8 indexed paidNumOfPayment)
CreatedBNPL(uint256 indexed planId)
CreatedPawn(uint256 indexed planId)
Initialized(uint8 version)
LiquidatedPaymentPlan(uint256 indexed planId, uint256 indexed estimatedPrice, uint256 indexed unpaidAmount)
Paid(uint256 indexed planId)
Revived(uint256 indexed planId, uint256 penaltyAmount)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SetAutoRepayStatus(uint256 indexed planId, uint8 indexed autoRepayStatus)
UpdateBaseDiscountRate(uint256 indexed baseDiscountRate)
UpdatedBNPL(uint256 indexed planId, uint8 indexed planStatus)
UpdatedCyanSigner(address indexed signer)
UpdatedWalletFactory(address indexed factory)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
InvalidAddress()
InvalidAmount()
InvalidAutoRepaymentDate()
InvalidAutoRepaymentStatus()
InvalidBaseDiscountRate()
InvalidBlockNumber()
InvalidDownPayment()
InvalidDownPaymentPercent()
InvalidInterestRate()
InvalidItem()
InvalidPaidCount()
InvalidReviveDate()
InvalidSender()
InvalidServiceFeeRate()
InvalidSignature()
InvalidStage()
InvalidTerm()
InvalidTokenPrice()
InvalidTotalNumberOfPayments()
PaymentPlanAlreadyExists()
PaymentPlanNotFound()