Skip to content

Commit

Permalink
update dex lock args setup
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Feb 19, 2024
1 parent 964ec1d commit deb5f5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/dex-lock/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ impl DexArgs {

let owner_lock = Script::from_slice(&data[..owner_size]).map_err(|_e| Error::Encoding)?;
let setup = data[owner_size];
if setup != 0 {
// If the third bit of setup is 0, it means FT(0b0000_0000), otherwise it means
// NFT(0b0000_0100)
if setup != 0 && setup != 4 {
return Err(Error::DexSetupInvalid);
}
let total_value =
Expand Down

0 comments on commit deb5f5a

Please sign in to comment.