Function sentry::routes::campaign::update_latest_spendable
source · pub async fn update_latest_spendable<C>(
adapter: &Adapter<C>,
pool: &DbPool,
channel_context: &ChainOf<Channel>,
address: Address
) -> Result<Spendable, LatestSpendableError>where
C: Locked + 'static,
Expand description
Gets the latest Spendable from the Adapter and updates it in the Database before returning it