Skip to content

Commit

Permalink
[app] remove rooch dex cap store
Browse files Browse the repository at this point in the history
  • Loading branch information
mx819812523 committed Dec 19, 2024
1 parent c5dd542 commit 8c2d037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/rooch_dex/sources/swap.move
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ module rooch_dex::swap {
amount_y_out: u64
}

struct RoochDexCap has store, key {}
struct RoochDexCap has key {}

fun init() {
object::transfer(object::new_named_object(RoochDexCap{}), sender())
object::transfer_extend(object::new_named_object(RoochDexCap{}), sender())
}


public entry fun create_admin(_admin: &mut Object<admin::AdminCap>, receiver: address){
let new_admin = object::new(RoochDexCap{});
object::transfer(new_admin, receiver)
object::transfer_extend(new_admin, receiver)
}

public entry fun delete_admin(_admin: &mut Object<admin::AdminCap>, admin_id: ObjectID){
Expand Down

0 comments on commit 8c2d037

Please sign in to comment.