Skip to content

Commit

Permalink
fix: add set feehandler
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrizsabin committed Sep 23, 2024
1 parent 87818c2 commit 6fb3772
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions contracts/sui/intent_v1/sources/main.move
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ module intents_v1::main {
self.get_connection_state_mut().set_relayer(relayer);
}

entry fun set_fee_handler(self:&mut Storage,_cap:&AdminCap,handler:address){
self.fee_handler=handler;
}

entry fun get_receive_msg_args(self:&Storage,msg:vector<u8>):Params{
let msg= order_message::decode(&msg);
let bytes= if (msg.get_type() == FILL) {
Expand Down Expand Up @@ -463,15 +467,16 @@ module intents_v1::main {
*self.orders.borrow<u128,SwapOrder>(id)
}

entry public fun get_protocol_fee(self:&Storage):u8 {
self.fee
}



public fun get_version(self:&Storage):u64{
self.version

}



public fun get_funds(self:&Storage):&Bag {
&self.funds
}
Expand Down

0 comments on commit 6fb3772

Please sign in to comment.