sc63
December 2, 2024, 8:44am
1
Hi Team - hoping somebody out there can help me recover my ALGO that are locked into the Algofi V1 - Lending Protocol.
locked in here:
Algofi V1 - Lending Protocol (Manager contract)
ID 465818260
Is there any LEGIT help here or is it just a bunch of scamming hyena’s?
Please prove me wrong
2 Likes
adioc
December 3, 2024, 3:04am
5
Hello @sc63 ,
Here is a python script to withdraw your funds:
from algosdk import mnemonic, account
from algosdk.v2client.algod import AlgodClient
from algosdk.v2client.indexer import IndexerClient
from algofi.v1.client import AlgofiMainnetClient
sender = "MKV..." # for rekeyed accounts set this to the original address
key = mnemonic.to_private_key("word1 word2 ... word25")
algod = AlgodClient("", "https://mainnet-api.algonode.cloud")
indexer = IndexerClient("", "https://mainnet-idx.algonode.cloud")
client = AlgofiMainnetClient(algod_client=algod, indexer_client=indexer, user_address=sender)
user_state = client.get_user_state(sender)
# remove vALGO from vault
amount = user_state['vALGO']['active_collateral_underlying']
txn = client.prepare_remove_algos_from_vault_transactions(amount)
txn.sign_with_private_key(sender, key)
txn.submit(client.algod, wait=True)
You’ll need a [GitHub - guanzo/algofi-py-sdk: The official Python SDK for the Algofi Lending Protocol ] installed.
2 Likes
sc63
December 3, 2024, 3:33am
6
Thanks very much for this - you are a champion!
Will have a crack at this tonight.
2 Likes
Hi everyone,
I don’t have any expérience with coding, but I was wondering if there is a way to retrieve these 4,153.38 Algos that seem to be lent through Algofi, and therefore stuck in limbo as de speak?
Thank you,
Mintyournft.algo