supplyPlp method
Transaction
supplyPlp(
- String owner,
- Object amountUsdc, [
- PlpSupplyOptions options = const PlpSupplyOptions()
Queue a supply request pulling amountUsdc from the account's existing
custody balance. request_supply auto-settles USDC then
account.withdraws the payment into queue escrow; the PLP fill is
delivered at the next flush, not returned here. Command order is auth →
request (auth is a hot potato consumed by this call). The minPlpOut
slot is the per-request floor on PLP minted at flush —
PlpSupplyOptions.minPlpOut when given, otherwise 0 (no floor). At the
shipped attempt count of one, the first flush whose mark quotes less
cancels and refunds the request; three is the configurable maximum, not
the default.
Implementation
Transaction supplyPlp(String owner, Object amountUsdc,
[PlpSupplyOptions options = const PlpSupplyOptions()]) =>
_txOf(authed.requestSupply(
config: _c._config,
wrapper: _c.wrapperIdFor(owner),
amount: usdcToRaw(amountUsdc),
minPlpOut: options.minPlpOut ?? BigInt.zero,
));