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.
pool - The address of the pool the admin transfer is forcur_admin - The current admin of the poolnew_admin - The new admin of the poolAdminTransferExists - If the contract has already been initializedfn 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
pool - The address of the pool the admin transfer is forfn 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
pool - The address of the pool the admin transfer is forNoAdminTransferExists - If no admin transfer exists for the poolfn transfer_admin(env: soroban_sdk::Env, pool: soroban_sdk::Address)
Cancel an admin transfer. Must be called by the creator of the admin transfer.
pool - The address of the pool the admin transfer is forfn cancel_admin_transfer(env: soroban_sdk::Env, pool: soroban_sdk::Address)