Datamine NetworkDatamine NetworkCommunity
Back to videos

Altcoins: Datamine Network: Lockquidity $LOCK - Live Code Review - Smart Contract Security🛡️

Published on Apr 25, 2026

## Resolving Smart Contract False Positives on Automated Scanners Automated token scanners on platforms like DexScreener often generate false positives when evaluating highly decentralized systems. For the Lockquidity (LOCK) token, these scanners flag warnings such as "owner can change balance" or "hidden owner has suspicious functions." These warning flags occur because legacy automated auditing tools mistakenly identify the system's decentralized, ownerless vault contract—which holds the project's permanent liquidity—as a human-controlled owner address with private keys. An on-chain code review of the open-source contracts reveals that the LOCK smart contract is completely ownerless. The contract is initialized via a factory contract rather than a developer's wallet, ensuring there are no admin keys, DAO controls, or central points of failure that could lead to a "honeypot" scenario. ### Structural Security and Audits LOCK is built upon the core smart contract architecture of FLUX, which underwent a $120,000 security audit fully funded by the community and conducted by the blockchain security firm SlowMist. To address high gas fees on Layer 1, which had reached up to $30 per transaction on Ethereum and disrupted the tokenomics, the developer migrated operations to Arbitrum Layer 2. On Arbitrum, transaction costs are reduced to approximately $0.01, ensuring the sustainable execution of the ecosystem's tokenomics. ### The Architecture of the Ownerless Vault and Sweep Function The core of the LOCK tokenomics relies on an automated vault system. When LOCK is burned, rather than simply reducing supply, the protocol utilizes a unique mechanism that sends tokens to a decentralized vault. An external `sweep` function allows any user in the world to trigger the vault. When called, the vault executes the following steps: 1. Swaps exactly half of the accumulated LOCK tokens in the vault for ETH using standard Uniswap factory and router addresses. 2. Pairs the remaining LOCK with the newly acquired ETH. 3. Automatically deposits the paired assets back into the Uniswap liquidity pool as permanent, locked liquidity. Because this function is external, it is completely decentralized. Anyone can call it at any time, eliminating the need for centralized servers or management. ### Key Token Metrics and Market Efficiency The permanent liquidity pool for LOCK holds approximately $93,000 to $115,000 in decentralized liquidity (backed by roughly 40 ETH), representing around 95% to 96% of its total market cap. This high liquidity-to-market-cap ratio limits volatility and offers a unique stability model where the pool's value scales passively with the price of Ethereum.
🎥 Video Transcript
Hey guys, I wanted to make another video and I wanted to show you guys a very interesting thing we ran into recently. We've been trying to apply to some new exchanges and some new listings and partnerships and a lot of times I've noticed we're getting some pushback because the tokens first of all we're trying to list are liquidity and liquidity is fairly new I'd say it's about 2 years. So you know it's it's not like a week old and it has some real numbers behind it but I want to show you guys like from a perspective. So this is Dexscreener and on Dexscreener you can see um on the right side here you can see owner can change balance, right? And then if you scroll down a bit hidden owner has suspicious functions. So you know basically as we're listing you know they'll run these automated systems and you know these auditors will come back like oh you know there's some very suspicious things this must be like you know a honeypot or something and I just wanted to make a video and show you guys no these are false positives and well I'll show you you know I'll I'll prove it and uh I'll also show you guys that liquidity which is part of our ecosystem. So we have four different tokens Diamond Flux are audited by SlowMist you know they've been running for 6 years no issues so far but you can see like you know the we we we like paid $120,000 for our audits and um yeah I mean I think it was definitely worth it back then and then we have Arbitrum Flux and liquidity which are all both based on Flux smart contract but they're running on Arbitrum layer 2. So they're running there because you know we ran into some gas issues on layer 1 back then in Ethereum and it was like $30 to mint and this was like really breaking our tokenomics. So we went to Arbitrum to fix it and you know now it's like 1 cent here and 1 cent here and you know so it's great but I just wanted to show you guys um basically some proof that liquidity is secure and it's a legit project and let's take a look at some numbers first. So these are the current numbers liquidity is in red here it has $93,000 in liquidity about 40 Ethereum completely decentralized and no one really owns that 40 Ethereum. It's in a liquidity pool and it's locked, right? So the whole point of liquidity here is also that just one more um number to pay attention to it is $98,000. $93,000 $98,000 market cap nothing like this exists. Liquidity is the only one it's like it's a very unique token waiting and what we're waiting for is really the supply inflation to go down as you can see the supply inflation go down yet liquidity is going up. Pretty crazy, right? Like we went from 270% to 80% this year and we're expecting to be about 50% soon by the end of the year so so yeah I mean that's the tokenomics but the gist of it is that no one owns this liquidity it is in a decentralized vault and I think what's happening here is the systems that are picking these these things up they're like okay this vault you know this vault is the owner so that's why you know it'll it'll show like that but you know you don't have to take my word for it what we can do is we can go through the code. So what I did is I compared the changes in Flux compared to liquidity as as you know like liquidity is based on Flux so it's the same source code just minor changes so we'll look at the differences and I will go line by line see exactly what's how it works. So we're going to skip like comments because you know they're just simple comments and all of this is just comments comments comments comments the contract name is different error messages are also updated because the tokens that are locked are different there's a new variable for the vault itself which hold hold the the tokens just comments just changes in text changes in text we take the vault in a constructor and no it's not my address I will show you how how this works um the the token is initialized by by factory below basically you don't initialize the the token you initialize the vault sorry the the factory and the factory will create the token and the vault this way I don't own it and no one else owns it it's completely ownerless there is no owner so some more comment updates there's a new variable because the tokenomics are slightly different skipping all the comments just comments comments comments the biggest change here is that this is the biggest change in tokenomics before we used to burn and now we're sending the tokens to the vault you can see it right here this was the one of the biggest changes some more changes and comments let's skip all of this slight changes in tokenomics because you because in in liquidity the minimum number starts like 0.001 versus Flux where it used to start zero at one and we did this so we forced people to burn like you have to burn to get your reward so you can you can you can come in and you know you can experiment but um it's going to be a very small amount just so you can see it works and then you have to burn to really be part of the you know to to to generate the the token so it's pretty cool. This way it forces everyone to play. And the main changes here so we have the vault itself this is where the tokens will go and you'll see it's completely ownerless these addresses here are Uniswap factory Uniswap router and this is wrapped ETH. These are all standard addresses on Ethereum you can copy and paste and take a look exactly where they are I even added comment here that says you can find these addresses the init init part here this will be called by the factory and it just basically says which token are we is going to be held in the vault and there's a sweep function anyone in the world can call it as you can see external basically anyone in the world can call this and what it's going to do is it's going to take all the it's going to take half the tokens in the vault swap them for ETH take both and then add them to the liquidity pool. And this is the entire thing this is how the vault works we we send the tokens here and then eventually someone comes in and does a sweep. Why does a sweep why why sweep here why not do it every single time? Because we wanted to make sure that you can burn small amounts and then eventually once you know it's just so we don't have to add like 0.0001 cent to the to the pool we can just uh have some like meaningful number and then anyone can call I mean someone can call still like 1 cent if they want it's just I think it makes more sense to do like every hour I think right now I I I built a bot that does it like every 4 hours or something so which is fine okay and then this is just the square root uh this basically figures out how many tokens need to be swapped basically takes like half of the of the pool and this is the thing that will swap as you can see we basically get the pair get the amount we swap half and then we add the liquidity back so pretty straightforward let's see what else yeah I mean that's it right so the swap and liquidity so this is the vault as you can see nothing suspicious here the only thing I will just show you below how we we call the initialize then this is done through the factory as I explained we call this once when we created the token which create it creates vault then creates the token passes the address of the vault calls vault initialize that so this was called once can never be called again no one is an owner it's amazing this is completely decentralized right so in this then you have a couple of interfaces and this is you know these are all the changes there's no more changes between this and the audited Flux contract you can see nothing here is scary I it's very foolproof and um in my opinion >> [clears throat] >> it's going to stand the test of time um yeah I mean these are pretty much all the changes you know I wanted to maybe show you guys a little bit more on the on some numbers here I think I think we're doing pretty good you know 87% inflation for liquidity Flux is 39% liquidity is at all time high even though Ethereum is not doing that great and all this liquidity is backed by Ethereum so Ethereum goes up to 12,000 that's still our target you know that's all of this liquidity will go up by 5x and then this is when I would assume people would start taking profits but it is completely fine because, you know, that just increases the liquidity. And, you know, the supply is growing, which is amazing to see for flags. It's growing for RB flags. And, we want them to grow because this is how you reduce the inflation. So, the more tokens are out in the wild, the lower the inflation is, and the less pressure the mentors are applying. And, right now it's 39%. It feels almost non-existent. You know, you have some people coming here every so often selling a little bit, but it barely moves the price. And, for liquidity, it's going to be even better because 95% of it is a liquidity. So, yeah, I mean, just a quick video. I think I think I I I really I hope that this gives the the you know, the companies that we're applying to enough um proof. And, if not, we will, you know, we'll make more content like this. But, yeah, also, if you're interested, check out some other videos we have in the channel because it explains more of the idea and how each thing works. So, thanks everyone.