DeadFish bots… parody, but not too much

Viewing 5 reply threads
  • Author
    • #15175

      As you maybe have noticed, inspired by @zark and the hackathon organized by @mrv777, I’ve been playing around with twitter bots in order to bring some of the Ardor capabilities to the amazing world of twitter.

      The energy of Zark is just too contagious and making fun of the real DeFi projects was very appealing as I see this phenomenon as the usual ethereum generated hype to squeeze some money out of the pockets of some dreamers. The smarter ones take advantage, the the majority will remain hurt by this new 2020 ICO fever.
      Just to make it clear, it’s not that Ethereum or Vitalik are the ones wanting this. As far as I’ve understood, they actually don’t like the use of their blockchain for things like DeFi, but people that put so much money in their ecosystem get creative to invent some profitable hype.
      So back to the bots. As the tsunami Zark was delivering DeFi manually the idea came up to make that automatic so that with the simple trigger of a bot the DeFi asset would be automatically transferred to the mentioned account. So @defibot1 was born and any user could simply tweet:
      #DeFiMAGIC -ARDOR account-
      and the bot would send 100M DeFi tokens to the ardor account (livenet) in the tweet.
      Then we added a bit of spice to the bot, why not let it react to nice words? And therefore the DeFi bot with AI was born! ๐Ÿ˜€
      The rule is simple, you just tweet:
      #DeFiMAGIC -ardor account- write something nice to the bot
      #DeFiMAGIC ARDOR-1111-11-11-1-1-1 you have beautiful eyes!
      and the bot would add on top of the default 100M DeFi an additional variable amount between 0 and 100M depending to how nice you are.
      To check the transactions issued by the bot follow the account ARDOR-39J4-YK9C-UVYB-D28BG (switch to the Ignis chain to see the asset transactions)

      The wished outcome of this new bot is to create some fun engagement over what people say to the bot. Unfortunately so far users continue to simply put hashtag and ardor account and that the bot doesn’t like giving always a low “bonus” amount and not allowed us to engage in the way I would have expected. Maybe the rules are not too clear so we need to explain that better.

      But we didn’t stop there. Eheh…
      Why not let twitter users create and transfer the DeFi asset without even having to leave twitter and not even want to go through the hassle of dealing with wallets, etc?
      So that’s when @defimagic was born. As this is a bit more complex, at the moment the bot is running on the ardor testnet. It still has some little bugs so testnet is just fine at the moment.
      So what does this new bot work?
      Simple. Here are the possible commands:

      #DeFiWOW HELP
      This allows users to get a DM from the bot with the possible commands.
      If the bot cannot send a DM to the user (typically when the user doesn’t follow the bot) then a reply to the user tweet is done informing that the user should follow the bot to be able to get DM.

      This allows any twitter user to create a new Ardor account. Once triggered the user will receive a DM with the ardor address created.

      #DeFiWOW SEND -amount of DeFi- bla bla bla -recipient twitter account- bla bla bla
      This allows to send a certain amount of DeFi from your DeFi holdings to another twitter user. It’s critical that the amount follows the word SEND. The position of the recipient twitter account doesn’t matter within the rest of the text.
      When sending to a twitter account that didn’t CREATE yet an account, the create will be automatically done for the recipient so that the SEND can happen without too many hassles. The recipient can then doesn’t need to run the CREATE command. Using the DETAILS command will show the details of his/her account.

      This command allows the user to receive from the bot a DM with: ardor address, private key, public key and amount of DeFi in the wallet

      #DeFiWOW MAGIC
      This allows the user to receive 100 Million DeFi tokens from the asset issuer account. In order to trigger the MAGIC account, a user should have CREATEd or received a SEND from another user.
      The MAGIC command can only be triggered once per user.
      After the first 100 users claiming MAGIC, the amount is halved to 50M. This amount is halved again after another 100 users claiming MAGIC, and from that point on, every halving will happen after 200, 400, 800… users claiming MAGIC.

      But how does it work under the hood.
      For this bot the HD Wallet capabilities have been used. The SEED derived account with index 0 is the asset issuer and the one taking over the transaction fees for all the user transactions.
      To start, the account with index 0 is created via the client, the asset is generated or transferred from another user, and its ardor address is added to the account property bundling list.
      After that every time a new account is created via CREATE or as receiver of SEND the account property “bundling” is added for that account to the asset issuer. The new accounts are sequential SEED addresses starting from ID 1. A database table holds information about:

      twitter ID, SEED ID, Ardor account, Magic

      When a new account is generated, the table will get a new row with the info regarding that specific account. Magic can have values 0 and 1 to track when the user has triggered MAGIC. When triggered the value is changed from 0 to 1.
      No passphrase or private key in the database, so it’s easier to secure with account control or other way only the SEED ID 0 (issuer) transactions.

      This is in my opinion an extremely interesting use case of the ardor platform. It allows thanks to 0 fee transactions, HD wallets and other API features to build something like this.

      Of course a solution like this on livenet would have its cost as every new account requires a 1 ardor fee to “initiate” the new account and with all the possible accounts on twitter that will trigger the bot that could be costly, but might trigger curiosity and a bit of adoption.

      Anyway I wanted to explain a bit better the DeadFish bots in this post.

      What’s next? Maybe merging the 2 bots so that users don’t get confused. ๐Ÿ˜€

      Comments, ideas? Comment below. ๐Ÿ™‚

    • #15188

      I’m working on a little improvement on the DeFi bot adding some banking-like tools in order to replicate the real banking system. Credits to @zubin for the inspiration ๐Ÿ™‚
      I’m now testing in testnet and this is what I’m experimenting with.
      On top of the actions mentioned above:


      The following are being added:
      This allows a user to put some or all of their DeFi in a “savings account” which returns 5% annual interest rate. The calculation will be simplified so that every day at a certain time the amount deposited will be checked and the 5% will be calculated for 1 day and transferred to the user’s account
      This is the counter-action to the one above. The users can then decide to remove their DeFi from the “savings account”.
      With this action the users can ask for a debt which cannot be more than 10 times the amount of DeFi the user holds. The cost of this debt is annual 5% and will be deducted daily proportional by day.
      This is the counter-action to the one above. Users can close all or part of their debt by returning a certain amount of DeFi to the “bank” (HD wallet index 0 which is the account holding the assets)

      But how is this working under the hood. The debts and credits are represented by 2 new assets which has account control and only the DeFi “bank” is whitelisted to approve transactions of these 2 assets. This is to avoid that the users login into their Ardor account and send debts to someone else. ๐Ÿ™‚
      So everytime one of the actions above is triggered, both the main DeFi asset and the debp/credit representing asset is transferred from and to the users.
      For example twitter account wire_master asks for a BORROW action. In that case the asset representing “debt” will be transferred from the “bank” account to the wire_master account. The also the DeFi asset will be transferred to the wire_master account. The interest rate to pay the debt will be calculated on how many “debt” representing asset the wire_master account holds.
      When the user wire_master does a CLOSEDEPT action, then the asset representing debt is sent back to the “bank” account and also the Defi is sent back. The transaction of the transfer of the debt account has to be approved by the main account. The bot does this automatically. If the user wants to send the “debt” representing asset so someone else via the Ardor client, the transaction will not be approved.

      At the moment all these actions are working from an assets shifts/logic point of view, I just have to setup the cronjobs to calculate and charge the debts and credits. That should not be too much work. ๐Ÿ™‚

      Stay tuned!

    • #15189

      maybe you guys have better names for those actions. ๐Ÿ˜€

    • #15194

      Dear DeadFish fans…
      Here comes PONZI!
      The new additions to the already existing actions:
      #DeFiMAGIC SEND amount destination_twitter_account
      #DeFiMAGIC DEPOSIT amount
      #DeFiMAGIC WITHDRAW amount
      #DeFiMAGIC BORROW amount
      #DeFiMAGIC CLOSEDEBT amount

      You now have:
      #DeFiMAGIC PONZI amount
      #DeFiMAGIC NOREKT amount

      Here how they work.

      #DeFiMAGIC PONZI amount
      This allows a user to “invest” some of their DeFi into the PONZI “fund”. The bot will randomly during the day, according to the alien stocks backing the fund, inform about the increase of decrease of the fund. Whenever the BOT tweets the new increase or decrease, the amount of PONZI will be increased or decreased by the corresponding interest rate. In this case, differently from the DEPOSIT, the amount of PONZI will change. In the case of DEPOSIT, the 5% interest rate is distributed to the users DeFi holdings.

      #DeFiMAGIC NOREKT amount
      This allows the user to disinvest from the PONZI fund. Eg, the user “invests” in PONZI 1000 DeFi with command
      #DeFiMAGIC PONZI 1000
      after a full day of bot pumps and dumps, let’s say that the user checks his account with command
      and finds out that his 1000 PONZI are now 2000 PONZI. And the user decides to disinvest 1000 PONZI and move them back to his DeFi account. This can be done with command
      #DeFiMAGIC NOREKT 1000
      This means that the user will have 1000 DeFi more in his holdings and 1000 PONZI still “invested”.
      1 PONZI is always 1 DeFi.

    • #15862

      Ladies and gentlemen we now have NFT on DeadFish!
      Of course this is parody… so keep that in mind. ๐Ÿ˜Ž
      To the list of actions mentioned in the previous posts, now we have added:
      Shows the CIRCLE image, asset id, current price and the current owner
      You buy the CIRCLE NFT at the current price. A confirmation is tweeted as a reply to your tweet and a message is sent to the previous owner to inform that the NFT has been purchased by you. With every BUY the price goes up 10%. ๐Ÿ˜

      So what is this Circle NFT?
      The Circle NFT is a singleton asset on ardor (Id 16776183703928447494) with the picture information stored in base64 format in the asset description.
      The current cost in DeFi is stored as an attached message to the latest asset transfer transaction.
      The transfer of the asset can happen only via the BUY action on Twitter as the transfer transaction has to be confirmed by the DeFi main account.

      More outstanding designs will be added soon.

    • #15866

      And we have turbocharged the CIRCLE NFT to hi resolution NFTs taking advantage of the data-cloud functionality on Ardor.
      The following actions are now possible with our awesome #DeadFish bot:
      #DeFiMAGIC INFO NFTn (n=1,2,3)
      to check owner and price of the NFTn NFT
      #DeFiMAGIC BUY NFTn (n=1,2,3)
      to buy the NFTn NFT at the current price

      At the time of writing we have NFT1, NFT2, NFT3, NFT4.
      All these images are between 50kb and 400kb in size and their data is stored on the data-cloud and singleton assets refer to that data in an permanent manner. The singleton asset defines the ownership of the NFT. Who owns the asset owns the NFT.
      The reference to the data-could is stored in the asset description which cannot be edited and therefore permanent.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.

ยฉ2021ย Ardor Rocks


Log in with your credentials


Forgot your details?


Create Account