Skip to content

Commit

Permalink
update comet authorization to approval
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryang-21 committed Mar 21, 2024
1 parent c5ba6e0 commit fa05cd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backstop/src/emissions/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ pub fn execute_claim(e: &Env, from: &Address, pool_addresses: &Vec<Address>, to:
(&e.current_contract_address()).into_val(e),
(&lp_id).into_val(e),
(&claimed).into_val(e),
e.ledger().sequence().into_val(e),
];
e.authorize_as_current_contract(vec![
&e,
InvokerContractAuthEntry::Contract(SubContractInvocation {
context: ContractContext {
contract: blnd_id.clone(),
fn_name: Symbol::new(e, "transfer"),
fn_name: Symbol::new(e, "approve"),
args: args.clone(),
},
sub_invocations: vec![e],
Expand Down

0 comments on commit fa05cd1

Please sign in to comment.