Contract ba443fe6304fb0b3bafd60b6e78ff3c35ba217277e8790f7fd130ddab63761f2

← Back to Index 📥 Download WASM

Meta

rssdkver 20.5.0#9e2c3022b4355b224a7a814e13ba51761eeb14bb
rsver 1.77.2

Instances

  • CC4NVT6EIS336ZXBGEOKMKRVDZVUUXYHC4OOAFUKI6P6GLIEX46PU3SI
  • CD6SKTYLU34UELOBSLS624S4YGPLPW2A7SM7VYIFVBB5Y3LI6UVCOIMM

Interface

Set the details for an admin transfer. Also sets the admin of the pool to this contract. Must be called by the current admin of the pool.

Arguments

  • pool - The address of the pool the admin transfer is for
  • cur_admin - The current admin of the pool
  • new_admin - The new admin of the pool

Panics

  • AdminTransferExists - If the contract has already been initialized
fn set_admin_transfer(
    env: soroban_sdk::Env,
    pool: soroban_sdk::Address,
    cur_admin: soroban_sdk::Address,
    new_admin: soroban_sdk::Address,
)

Get the new admin for an admin transfer

Arguments

  • pool - The address of the pool the admin transfer is for
fn get_admin_transfer(
    env: soroban_sdk::Env,
    pool: soroban_sdk::Address,
) -> Option

Transfer the admin of a pool from the current admin to the new admin

Arguments

  • pool - The address of the pool the admin transfer is for

Panics

  • NoAdminTransferExists - If no admin transfer exists for the pool
fn transfer_admin(env: soroban_sdk::Env, pool: soroban_sdk::Address)

Cancel an admin transfer. Must be called by the creator of the admin transfer.

Arguments

  • pool - The address of the pool the admin transfer is for
fn cancel_admin_transfer(env: soroban_sdk::Env, pool: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶