Folks router error

I found out this page Referral Program

I was not able to optin using prepareReferrerOptIntoAsset method, so i wrote my own


    const lsig = getReferrerLogicSig(referrerAddr);
    console.log("lsig address",lsig.lsig.address())
    const app = await  client.disassemble(lsig.lsig.logic).do()
    console.log("app",app)
    const txFund = algosdk.makePaymentTxnWithSuggestedParamsFromObject({
       amount: 100_000,
       from: referrerAddr,
       to: lsig.lsig.address(),
       suggestedParams: {...params, fee: 2000, flatFee:true}
    })
    const txOptin = algosdk.makeAssetTransferTxnWithSuggestedParamsFromObject({
       amount: 0,
       assetIndex: 452399768,
       from: lsig.lsig.address(),
       to: lsig.lsig.address(),
       suggestedParams: {...params, fee: 0, flatFee:true},
    })
    var toSignGrouped = algosdk.assignGroupID([txFund,txOptin]);
    console.log("toSignGrouped",toSignGrouped)
    signed.push(toSignGrouped[0].signTxn(refacc.sk));
    signed.push(algosdk.signLogicSigTransactionObject(toSignGrouped[1], lsig).blob)

    console.log("signed",signed)
    let tx = await client.sendRawTransaction(signed).do();
    console.log("tx",tx)

these seems to fund the referal escrow account

however this does not work either

no matter what i put in the referer, i get the error that account AVBX7ME2FLXP6RA7FPI5C6Y6JJJ5JTNWKEFAOVRBCVJ3M4A66P3AQ427BE is not opted in into the vote coin

can somebody please opt in the vote coin to the account Algorand Account ? Thanks

The Vote Coin is currently ranked Top #6 project token in algorand ecosystem.

Was also discussed in the folks forum Vote Coin as borrowable asset at Folks Finance

2 Likes