Smart Contract interaction
Interacting with Kiln DeFi without access to Kiln Connect API or User Facing applications.
We DO NOT recommend you proceed with this path unless you are an experienced user and have an urgent need to access the funds.
Please be aware of scam, if you are not sure about something, ask Support, or wait for your prefered UI to be back online.
View your position via Etherscan
Open your wallet address on Etherscan:
Click on token holdings and over the ERC-20 to see names related to your preferred application, it will open the holder history filtered on your wallet, where you can find all transaction you did for this defi product.
You can already see here the amount you hold, here
3136.22
cwAaveUSDT
On the transaction page, over the Interacted With (To) address and click on it.
On the deposit contract page, navigate to the
Contract
tab and sub tabRead as Proxy
, find31. maxRedeem (0xd905777e)
Input your wallet address, and click query.
eg. for
0x2eEC5D4dcBB5C15A7924b54E6CB516A6BB0A1C3F
it returns:3136221376
it's the amount in USDT your principal + rewards is worth.To see this amount in a human readable format, read the
19. decimals (0x313ce567)
function on the same page.eg. for this defi position I receive
6
decimals
You can then multiply the maxRedeem value
3136221376
to 1e-decimals
, so here3136221376
*1e-
6
=3 136,221376
To confirm the asset read the
11. asset (0x38d52e0f)
function on the same page, and click on the asset address, you will see the asset deposited in this defi position here.USDT
.Doing so I can confirm that I own and can redeem anytime
3 136,221376 USDT
Redeem via Etherscan
Requirement, connnect you wallet to a browser wallet or use Wallet Connect to connect to Etherscan.
In this example we show how you can withdraw all your asset from your position in Etherscan.
Find the defi position deposit contract (see View your position via Etherscan)
On the deposit contract page, navigate to the
Contract
tab and sub tabRead as Proxy
, find12.balanceOf 0x70a08231)
Past your wallet address and click query.
eg. for
0x2eEC5D4dcBB5C15A7924b54E6CB516A6BB0A1C3F
, it's3136221376
, this is the amount of shared you own, it's representing your principal + all rewards.
On the deposit contract page, navigate to the
Contract
tab and sub tabWrite as Proxy
, find16.redeem (0xba087652)
Input the value you got from the previous
balanceOf
read on step 2, and your wallet forreceiver
andowner
. (Make sure you connect your wallet on top)You will be prompted in your wallet to sign the transaction.
After signing this one transaction you will directly receive the assets directly in your wallet.
Last updated
Was this helpful?