How to cancel limit orders involving rebase tokens on the smart contract — UniTrade

For tokens with elastic supply type, tokens amount shrink after a negative rebase which causes your pending order cancel requests to not work since you are technically requesting to cancel a bigger amount than then the one pending in our smart contract.

To solve this, you need to send the “deficit amount” directly to our orderBook smart contract address and then go back to our site, and cancel it.

By “directly” we mean send it straight from your wallet to our smart contract address ( we are not referring to placing a limit order here )

Our orderBook contract address: 0xc1bf1b4929da9303773ecea5e251fdec22cc6828

Finding the deficit amount

The deficit amount is the difference between the token amount presently in our smart contract and the amount of tokens initially received before the negative rebase.

To find it, use the limit order TxHash and check the number of tokens you initially sent, then take that number and subtract it by the number of tokens presently in our smart contract. You can find the amount of the token in our smart contract using this link:


Before copy and pasting the above link to your browser, notice the end of the link and make sure to replace where it says TokenSymbolHere with the actual token symbol you are dealing with ( example: AMPL, BASE, etc… ).

For instance if you are dealing with AMPL token, your link should look like this

Sending the deficit amount

Before sending the full difference amount, you need to make sure first that the amount displayed on our contract is up to date because the token supply changes after every rebase.

Step 1

Send just 1 unit of that token to our contract to initiate an interaction which will update the token amount displayed

Step 2

After the transaction is fully completed, go back to the contract link we provided earlier ( refresh the page to make sure ), take the updated quantity you will see and use that number to do the calculation we suggested earlier to find the difference.

Step 3

Send that difference to our smart contract address and wait for the transaction to be fully completed then go back to, connect the same wallet and cancel your order as usual.

— — -

Need more assistance? Contact the UniTrade team at




UniTradeApp $TRADE

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Tobias Disse, Haischel Dabian, Dan Acristinii (Kryha): Blockchain satellite comms

Conversations on the future of fintech, Blockchain, and other things

Stargate: A Private Decentralized Application Platform

Does Your Company Need a Blockchain?

Avisa Games Guild partners with Gamic Guild in accordance with a mutual concept towards…

The Life and Death of Plasma

Enabling India’s Blockchain Engineers

Mastercard and digital currencies: Launch of a test platform for central banks

Mastercard and digital currencies: Launch of a test platform for central banks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


UniTradeApp $TRADE

More from Medium

[News] Metacube participate in NFT META Seoul.

PTP the CRV on Avalanche blockchain

2022:Feb — Nifty Trees

Escrow — Smart Contract