pub struct SmartAccountVaultRedeemFeesRequest {
pub max_slippage_bps: Option<i64>,
pub paymaster_context: Option<PaymasterContext>,
pub paymaster_url: Option<Url>,
pub use_cdp_paymaster: Option<bool>,
pub vault_id: VaultId,
}Expand description
SmartAccountVaultRedeemFeesRequest
JSON schema
{
"allOf": [
{
"$ref": "#/components/schemas/VaultRedeemFeesRequest"
},
{
"description": "A request to redeem the fee shares held by the vault's fee recipient EVM Smart Account for the vault's underlying asset (e.g. USDC). The share approval and redemption are batched into a single user operation.",
"examples": [
{
"useCdpPaymaster": true,
"vaultId": "vault_019f5f10-096a-7a23-86df-f479650d813f"
}
],
"type": "object",
"properties": {
"paymasterContext": {
"$ref": "#/components/schemas/PaymasterContext"
},
"paymasterUrl": {
"description": "Optional custom Paymaster URL to use for gas sponsorship. This allows you to use your own Paymaster service instead of CDP's Paymaster. Cannot be used together with `useCdpPaymaster`.",
"examples": [
"https://api.developer.coinbase.com/rpc/v1/base/AbCdEf123456"
],
"allOf": [
{
"$ref": "#/components/schemas/Url"
}
]
},
"useCdpPaymaster": {
"description": "Whether to use CDP Paymaster to sponsor gas fees. When true, the user operation gas will be paid by the Paymaster, allowing the account to redeem fees without holding native gas tokens. Cannot be used together with `paymasterUrl`.",
"examples": [
true
],
"type": "boolean"
}
}
}
]
}Fields§
§max_slippage_bps: Option<i64>The maximum share-price movement tolerated between calldata construction and onchain execution, in basis points. Defaults to 100 bps (1%) when omitted.
paymaster_context: Option<PaymasterContext>§paymaster_url: Option<Url>Optional custom Paymaster URL to use for gas sponsorship. This allows you to use your own Paymaster service instead of CDP’s Paymaster. Cannot be used together with useCdpPaymaster.
use_cdp_paymaster: Option<bool>Whether to use CDP Paymaster to sponsor gas fees. When true, the user operation gas will be paid by the Paymaster, allowing the account to redeem fees without holding native gas tokens. Cannot be used together with paymasterUrl.
vault_id: VaultIdImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SmartAccountVaultRedeemFeesRequest
impl<'de> Deserialize<'de> for SmartAccountVaultRedeemFeesRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SmartAccountVaultRedeemFeesRequest> for SmartAccountVaultRedeemFeesRequest
impl From<&SmartAccountVaultRedeemFeesRequest> for SmartAccountVaultRedeemFeesRequest
Source§fn from(value: &SmartAccountVaultRedeemFeesRequest) -> Self
fn from(value: &SmartAccountVaultRedeemFeesRequest) -> Self
Converts to this type from the input type.
Source§impl From<SmartAccountVaultRedeemFeesRequest> for SmartAccountVaultRedeemFeesRequest
impl From<SmartAccountVaultRedeemFeesRequest> for SmartAccountVaultRedeemFeesRequest
Source§fn from(value: SmartAccountVaultRedeemFeesRequest) -> Self
fn from(value: SmartAccountVaultRedeemFeesRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SmartAccountVaultRedeemFeesRequest> for SmartAccountVaultRedeemFeesRequest
impl TryFrom<SmartAccountVaultRedeemFeesRequest> for SmartAccountVaultRedeemFeesRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SmartAccountVaultRedeemFeesRequest,
) -> Result<Self, ConversionError>
fn try_from( value: SmartAccountVaultRedeemFeesRequest, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SmartAccountVaultRedeemFeesRequest
impl RefUnwindSafe for SmartAccountVaultRedeemFeesRequest
impl Send for SmartAccountVaultRedeemFeesRequest
impl Sync for SmartAccountVaultRedeemFeesRequest
impl Unpin for SmartAccountVaultRedeemFeesRequest
impl UnsafeUnpin for SmartAccountVaultRedeemFeesRequest
impl UnwindSafe for SmartAccountVaultRedeemFeesRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more