diff --git a/contracts/dex-lock/src/helper.rs b/contracts/dex-lock/src/helper.rs index 2f615e8..ecf5292 100644 --- a/contracts/dex-lock/src/helper.rs +++ b/contracts/dex-lock/src/helper.rs @@ -15,7 +15,7 @@ const MIN_ARGS_SIZE: usize = 66; pub struct DexArgs { // the minimum length of serialized lock script is 49bytes pub owner_lock: Script, - // 0b_xxxx_x0xx is for UDT asset and 0b_xxxx_x1xx is for NFT + // 0b_xxxx_x0xx is for FT asset and 0b_xxxx_x1xx is for NFT asset pub setup: u8, pub total_value: u128, } @@ -35,7 +35,7 @@ impl DexArgs { let owner_lock = Script::from_slice(&data[..owner_size]).map_err(|_e| Error::Encoding)?; let setup = data[owner_size]; // If the third bit of setup is 0, it means FT(0b_xxxx_x0xx), otherwise it means - // NFT(0b_xxxx_x1xx) + // NFT(0b_xxxx_x1xx). The remaining bits are temporarily reserved or not implemented if setup != 0 && setup != 4 { return Err(Error::DexSetupInvalid); }