BSGAI, a fixed-supply BEP-20 utility token. I wrote the upgradeable contract and a proxy of its own, hardened both after a review, and deployed to BNB Chain.

BigSun's utility token, BSGAI, needed a hard cap of 20 million: a quarter for an initial exchange offering, and three quarters for development, the ecosystem and team incentives.
It also had to be repairable without putting holders at risk. An upgradeable token has a weak moment: between deploying its proxy and initialising it, anyone could claim it. The deployment had to close that gap, and leave room for future versions without disturbing the balances already stored.
BSGAI is an upgradeable token behind a proxy of its own. The deployment script validates the contract, deploys the proxy with the initialising call inside the same transaction, then checks the supply, the owner and the balances. Holders only ever see the proxy's address.
Twenty million BSGAI with 18 decimals, minted once into two allocations, 25% for the exchange offering and 75% for the issuer, each recorded by its own event.
A small ERC-1967 proxy refuses to deploy without its initialising data, so the token can never exist, even for one block, in an uninitialised state.
A storage gap of fifty slots lets later versions add state without shifting the storage that balances already use, and only the owner can authorise an upgrade.
The scripts validate that an upgrade is safe before it runs, check supply, owner and balances straight after deployment, and print what a block explorer needs to verify the source.
A custom proxy that demands initialising data
Instead of the plugin's stock proxy.
Deployment and initialisation become one atomic step, and the proxy verifies on the explorer under the project's own contract.
A storage gap in the first version
Instead of adding it when it is first needed.
Future versions can add state without shifting the storage that balances already use.
Checks in the deployment script
Instead of an on-chain supply check.
The on-chain check could never run, so it was removed and replaced by assertions made straight after deployment.
Owner-only upgrades and a locked implementation
Instead of an immutable token.
The token can be repaired, while the implementation contract itself can never be initialised or taken over.
I was the only developer on the contracts. I decided how the token would be deployed safely: a proxy of its own that cannot exist uninitialised, and checks that run straight after deployment. After a review I hardened both contracts, then deployed the token to BNB Chain.
The token was deployed to BNB Chain in June 2026, initialised in the same transaction as its proxy and checked straight after.
The issuer can repair or extend the logic later without moving the token's address or disturbing the balances already held.