Contract ed713667466708c78d59163cb2c79e94de66d6e94eed1da32a1aa42ba0a06434

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.8#f46e9e0610213bbb72285566f9dd960ff96d03d8
rsver 1.88.0

Instances

  • CCCE3GEMJ34DHS43KYLPH6FX5CT3ONVZF6DTZCSVW3I5VRLJUKHYGDUE

Interface

Approve multiple tokens in ONE transaction!

User signs ONCE, and all tokens are approved for spending by a specified wallet

Parameters:

  • owner: User authorizing the approvals
  • spender: Wallet that will be allowed to spend (can be any address)
  • tokens: Vector of token contract addresses
  • amounts: Vector of amounts to approve (must match tokens length)
  • expiration_ledger: When the approvals expire
fn approve_multiple(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    spender: soroban_sdk::Address,
    tokens: soroban_sdk::Vec,
    amounts: soroban_sdk::Vec,
    expiration_ledger: u32,
) -> Result<(), ApproveError>

Imports

WebAssembly Text (WAT) ▶