AlgoFi V1 funds recovery

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 :slightly_smiling_face:

2 Likes

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

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