How to fully repay your borrow and/or redeem your supply on Venus Protocol
How to fully repay your borrow balance and redeem your supply balance on Venus Protocol by interacting directly with its smart contracts
I see users have been complaining about this since Venus launched, and I thought it would have been a quick fix by the Venus team. But since it’s already been 2 weeks, hopefully this quick guide will be helpful.
Repaying your borrow
Step 1 — Go to the smart contract of the vToken you want to repay on BSCScan
One way to do this is to try and borrow or repay on the Venus app and copy the address that MetaMask tries to interact with.
For easy reference, here’s a list of links to the vToken smart contracts, taken from Venus’ docs.
vSXP: 0x2fF3d0F6990a40261c66E1ff2017aCBc282EB6d0
vUSDC: 0xecA88125a5ADbe82614ffC12D0DB554E2e2867C8
vUSDT: 0xfD5840Cd36d94D7229439859C0112a4185BC0255
vBUSD: 0x95c78222B3D6e262426483D42CfA53685A67Ab9D
vBNB: 0xA07c5b74C9B40447a954e1466938b865b6BBea36
vXVS: 0x151B1e2635A717bcDc836ECd6FbB62B674FE3E1D
vBTC: 0x882C173bC7Ff3b7786CA16dfeD3DFFfb9Ee7847B
vETH: 0xf508fCD89b8bd15579dc79A6827cB4686A3592c8
vLTC: 0x57A5297F2cB2c0AaC9D554660acd6D385Ab50c6B
vXRP: 0xB248a295732e0225acd3337607cc01068e3b9c10
Step 2 — Write to repayBorrow() with value -1
Go to the “Contract” => “Write As Proxy”, “Connect to web3” then scroll down to “repayBorrow”, enter the value “-1” and write to the contract.
How does this work?
According to the Compound and Venus docs:
This doesn’t work for BNB though, as it requires the Maximillion contract to be deployed, which I believe Venus hasn’t done yet.
Redeeming your supply
Step 1 — Go to the smart contract of the vToken you want to repay on BSCScan
Same as step 1 above.
Step 2 — Get your supply balance
Go to the “Contract” => “Write As Proxy”, then scroll down to “balanceOf”, enter your wallet address and copy the response.
Step 3— Redeem your supply
Go to the “Contract” => “Write As Proxy”, “Connect to web3” then scroll down to “redeem”, paste the value from step 2 and write to the contract.
x.