A CC Transfer using the Splice Wallet UI
A manual CC transfer using the UI of the Splice wallet (the wallet UI built into every validator) is an example of an AmuletRules_Transfer. There are three types of manual transfers possible with the Splice Wallet UI:
Amulet legacy transfer offer where the receiver has to accept the transfer offer and then automation on the sender’s side completes the transfer. The
senderis assigned to the ValidatorRewardCoupon user field.These transfers are never featured. Since CIP-0078 CC Fee Removal was implemented, no fees are charged and thus no activity records are created.
A two-step, CN token standard based Transfer offer first locks the desired CC amount; on acceptance, it is unlocked and the transfer is completed. This does not rely on automation and works well for external parties. Note that there the two steps show up in the wallet:
The first step locks the CC as part of creating the transfer offer.
When the
receiveraccepts the transfer, the CC is unlocked and the CC amount is transferred to thereceiver.Since CIP-0078 CC Fee Removal was implemented, these steps neither charge any fees nor do they generate any activity records.
One-step transfer to a
receiverthat has preapproved incoming CC transfers set up via a TransferPreapproval contract. The validator operator of thereceiveris theproviderparty on theTransferPreapproval. TheTransferPreapprovalcontract is only visible to: thereceiver, the receiver’s validator operator party, and SuperValidators.The transfer is featured if the
providerparty is a featured application provider. The reason for this being a featured transfer, is that thisproviderparty enabled the receipt of the CC for the external party by creating theTransferPreapprovaland taking care of its regular renewal. The legacy or token standard based one-step transfers work the same.As for the other two transfers, no fees are charged. If the transfer is featured, then an
AppRewardCouponis created for theproviderwith the amount set toAmuletConfig.transferConfig.extraFeaturedAppRewardAmount / conversionRatewhere theUSD / CCconversionRateis read from theOpenMiningRoundcontract referenced in the transfer.
When comparing the Amulet legacy and token standard two-step transfers,
a difference is that the token standard transfer has additional coupons
for the CC locking fees.
Comments