Skip to content

Commit

Permalink
Remove spendabable balance
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Oct 20, 2023
1 parent d0ba644 commit 2887d7a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions soroban-sdk/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ pub trait Interface {
/// address has no existing balance, returns 0.
fn balance(env: Env, id: Address) -> i128;

/// Returns the spendable balance of `id`.
///
/// # Arguments
///
/// * `id` - The address for which a spendable balance is being queried.
/// This will return the same value as `balance()` unless this is called
/// on the Stellar Asset Contract, in which case this can be less due to
/// reserves/liabilities.
fn spendable_balance(env: Env, id: Address) -> i128;

/// Transfer `amount` from `from` to `to`.
///
/// # Arguments
Expand Down Expand Up @@ -248,7 +238,6 @@ pub(crate) const SPEC_XDR_INPUT: &[&[u8]] = &[
&StellarAssetSpec::spec_xdr_set_admin(),
&StellarAssetSpec::spec_xdr_admin(),
&StellarAssetSpec::spec_xdr_set_authorized(),
&StellarAssetSpec::spec_xdr_spendable_balance(),
&StellarAssetSpec::spec_xdr_symbol(),
&StellarAssetSpec::spec_xdr_transfer(),
&StellarAssetSpec::spec_xdr_transfer_from(),
Expand Down

0 comments on commit 2887d7a

Please sign in to comment.