Menu
The Chia Plot
  • Blog
  • How-To
  • About
  • Contact
  • Security
  • Discord
The Chia Plot
defi

DeFi on Chia – A brief overview

Posted on January 15, 2022January 15, 2022 by Chris Dupres

So, first I want to preface this by saying my experience with DeFi in general is pretty limited. I haven’t used any of the major platforms like Uniswap or Sushiswap or any of these liquidity pool / token etc systems. And I don’t really have any desire to, mostly out of a lack of trust. Without the ability to thoroughly audit these platforms it is impossible to know whether they are properly hardened to avoid getting completely hosed. And that’s because they aren’t really decentralized, they are simply distributed. Each swap provider is its own central point of failure. That brings me to DeFi on Chia.

Chia Network is taking a bit of a different approach to enabling a DeFi ecosystem. Instead of requiring institutions to hold liquidity to enable swaps, Chia has written a smart contract platform called Offers which enables true peer to peer asset exchanges between asset types. For example, on the Ethereum blockchain if you wanted to exchange your Ether for USDT you would need to use a professional fee-based service that holds both and and sells one for the other. This service can be a smart contract instead of a web service, which is I think why they call it DeFI, but its still a centralized mechanism of exchange, architecturally speaking. Offers allows any two users on the Chia blockchain to directly exchange one asset type for another without sending funds to a centralized service or smart contract.

This doesn’t prevent centralized services from leveraging this technology stack to do business, but it does mean that Chia blockchain users can sidestep them entirely. In fact, I think for most of the trading that is traditionally done on DeFi, trading one volatile asset for another, a centralized service keeping track of spot pricing and protecting its users from massive price swings will probably be worth a small fee.

Offer files

An offer file is the output of creating a partial filled transaction using the Chia blockchain. Creating an offer does not actually transact on the blockchain itself, but basically uses the wallet keys to sign a commitment to fulfill a transaction. Because this doesn’t exist directly on the blockchain it does not take a transaction fee to create. It also cannot be filled by someone just watching the blockchain, so you can use them for private transactions without exposure to someone you hadn’t planned on filling the order before your intended recipient. As long as you are careful with the offer itself.

Inside the offer is just a string of text starting with “offer1” and a couple kilobytes of encrypted text. It looks a little bit like a traditional certificate file, because it kind of is, or is at least similar. It describes the offer, and is encrypted with the keys from the wallet creating the offer. When you create one, it locks up the coins used to generate that offer, but this is a client side restriction done to make your life easier and not a hard requirement. An offer can be created and a spend forced against the same coins using 3rd party software, or a wallet that doesn’t see the offer creation. This will just create a situation where the offer file fails when the other party tries to complete it, even if you still have enough balance in your wallet. An offer is not generated against a wallet but against a specific coin in that wallet, so be aware. This also means that you can lock up significantly more than you intend. The code block below is an example of a real offer file.

offer1qqp83w76wzru6cmqvpsxygqqwc7hynr6hum6e0mnf72sn7uvvkpt68eyumkhelprk0adeg42nlelk2mpafrgx923m0l475zenawhrdfdvrh7fq5q7t7mxnkv9wvff0ln2hs7n98rtxn6fyc4mvnqr92ytnnprul3nnkjekwzkw6kxju0jdx7a8n76wer2wudpanw487u6mjll0urx8vm2g4kpvvtggyt4cy2fv5g8mdu5kk3l3j7ns4ftla07ej00hllme9dtlejum0d9jumz4pc6mlsg4lcs7dv3wmm4f8m9thzme6tlwl0wd3g0sh0ad4pxxu7tfh80qxyzteskkpu3kmyw5qnc958ke9585ed58sedk8uqj6zh2650sx9m6p2y7c8jtd8mtjut66k855zp9536z7h894rxukw6qfel04svrkcmm3mw7sv5hjakd9tpc3dhfeltc073knleta5le3m8tv0unljc847698747avnttaqss5hxgplnhad2cvzxakynl8egrxvj7gnatf396ufn0elvn6jf9xzlemw9rdwau9q9h40w8valmmjljxx0m8tm8ukwrnewxl8lt3dr5szd45q8fr47dlspgy8emlzwc0yf9vp3j2dl0lqhm4uhntawv69fsc7dmelu9tzhauhzjjc08yuw98lea3knmt32pyhtphynxl6haqux756mlpc5l2mundrv864xlw7ff0mtuulztumwl35l5lyv7lx4m4a79lszyltu0f987pxwa6mfw9k0kunm370c4haz6hvnlahm0jnxldtawl80stwftu8lc92cmm70xdltnxlmed7n3m48mgd886486pd695gntxxxcx57pk6kclupw6gk5qnutlqxs5vpxy9e3ye2hctafflxasmjkudhrfs95m0ktt47uhkm4kk4wlyk434nn7h3862clgsjdqgzvfcktg4g0m60a2gls0a0lrzxfteye6js0yavmgnnsweah5e64rtelvh9t7mw5khwfx63jl6vl6t72lpalx8w03t0y8l4muqxgeqa7nh0tnwhpuz2kmasalwe34rjw08md4clm8nc2ax8jchal4t0nx6kpfxm7lkf977qcqs3l985g0vw3kr

That offer, loaded into a light wallet, will enable someone to spend 100 000 XCH and buy The Chia Plot Master token. This is an example of a straightforward transaction of 1 CAT for a set amount of XCH, but you can create them as complex as you would like with a large set of CATs and XCH for another set of CATs and/or XCH. Sky is the limit from what I can tell (although there are also probably some limits).

Decentralized Exchanges

Right now the decentralized exchanges that launched with Chia have done so as simple marketplaces for offer files. You can add offers to OfferBin and Hashgreen directly from the Chia light wallet client and the experience is pretty good. Anyone can browse those marketplaces, download an offer file and complete the transaction without communication with the original offer creator.

In a sense, this isn’t really decentralized because it involves websites that are central points to aggregate offers. But the underlying technology does not require this, and there are a nearly infinite number of platforms or mechanisms two people can use to complete an offer. I can open one up on my computer, phone someone, read them the very long string of text while they type that into a text file on their end and then complete the transaction without a file passing between us. You can post them to a discord channel, or a keybase channel – which Chia has created, and is also seeing a lot of use. You can post your offer on twitter and have people grab them and complete them.

Conclusion

As this is my first real experience delving into DeFi I am not sure what I expected. I see a ton of potential here for using offer files as payment options for assets that are represented by a CAT on the Chia blockchain. It is very easy and cheap to mint a set of tokens, and once you have a token it is very easy to sell that token using offer files. What is difficult is dealing with rapidly changing pricing, that is going to require centralized services to act as counterparties to trades so that offers do not sit so outside market rates that they don’t get filled constantly. Right now to create an offer for coins with volatile pricing, like SpaceBucks, you have really pay attention to the market and basically guess at what price to set your offer at and hope it gets picked up right away. Services are certain to spring up around this problem, but likely at the cost of decentralization and the peer to peer experience.

These are early days for DeFi on Chia. It is unlikely that what we are looking at now will be the state of the art for long. Based on the rapid development on all the marketplaces I have looked at (Offerbin, Hashgreen, and Tsunami) I think that in a month or two a lot of the rough edges will have been sanded down and the experience will be a lot more polished. If you want to see a really cool social experiment with Chia DeFi and CATs check out Freddie’s new blog 1mojo.trade. It is a fascinating journey and is likely to be cutting edge on Chia DeFi as long as it is going on.

Related

2 thoughts on “DeFi on Chia – A brief overview”

  1. Dan Clark says:
    January 15, 2022 at 8:10 am

    If I understand your article. You have made an offer posted in the article to sell thechiaplot for 100000 xch? Or at least the cat for the chia plot?

    Reply
  2. Tarawa says:
    January 15, 2022 at 11:37 pm

    in dark mode the box is white on white

    Reply

Leave a Reply Cancel reply

Advertisement

Recent Posts

  • Crypto is burning down – Chia seems fine
  • Chia CAT upgrade fiasco part 2 – Was I wrong?
  • WTF just happened?? CAT1 to CAT2 “upgrade”
  • The era of the Chia NFT is upon us
  • Chia Blockchain 1.4.0 released – NFTs and DIDs oh my
  • Discussion
  • Facts About Farmers
  • How-To
  • Information
  • News
  • pools
  • Security
  • Trademark
  • Trading
  • Uncategorized

Dark Mode Switch

©2021 The Chia Plot - Donate XCH / MRMT / SBX @ xch1p4440d6zwu9ryta2vx073lq2ge3s29d37kskz6t34jp085e8srjqnk0gcr
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
JSESSIONIDsessionUsed by sites written in JSP. General purpose platform session cookies that are used to maintain users' state across page requests.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
CookieDurationDescription
na_id1 year 1 monthThis cookie is set by Addthis.com to enable sharing of links on social media platforms like Facebook and Twitter
na_rn1 monthThis cookie is used to recognize the visitor upon re-entry. This cookie allows to collect information on user behaviour and allows sharing function provided by Addthis.com
na_sc_e1 monthThis cookie is used to recognize the visitor upon re-entry. This cookie allows to collect information on user behaviour and allows sharing function provided by Addthis.com
na_sr1 monthThis cookie is set by Addthis.com. This cookie is used for sharing of links on social media platforms.
na_srp1 minuteThis cookie is used to recognize the visitor upon re-entry. This cookie allows to collect information on user behaviour and allows sharing function provided by Addthis.com
na_tc1 year 1 monthThis cookie is set by the provider Addthis. This cookie is used for social media sharing tracking service.
ouid1 year 1 monthThe cookie is set by Addthis which enables the content of the website to be shared across different networking and social sharing websites.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
CookieDurationDescription
d3 monthsThis cookie tracks anonymous information on how visitors use the website.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
__gads1 year 24 daysThis cookie is set by Google and stored under the name dounleclick.com. This cookie is used to track how many times users see a particular advert which helps in measuring the success of the campaign and calculate the revenue generated by the campaign. These cookies can only be read from the domain that it is set on so it will not track any data while browsing through another sites.
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_199099757_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
CONSENT16 years 4 months 5 daysThese cookies are set via embedded youtube-videos. They register anonymous statistical data on for example how many times the video is displayed and what settings are used for playback.No sensitive data is collected unless you log in to your google account, in that case your choices are linked with your account, for example if you click “like” on a video.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
advanced_ads_browser_width1 monthThis cookie is set by Advanced ads plugin.This cookie is used to measure and store the user browser width for adverts.
anj3 monthsNo description available.
CMID1 yearThe cookie is set by CasaleMedia. The cookie is used to collect information about the usage behavior for targeted advertising.
CMPRO3 monthsThis cookie is set by Casalemedia and is used for targeted advertisement purposes.
CMPS3 monthsThis cookie is set by Casalemedia and is used for targeted advertisement purposes.
CMRUM31 yearThis cookie is set by Casalemedia and is used for targeted advertisement purposes.
CMST1 dayThe cookie is set by CasaleMedia. The cookie is used to collect information about the usage behavior for targeted advertising.
DSID1 hourThis cookie is setup by doubleclick.net. This cookie is used by Google to make advertising more engaging to users and are stored under doubleclick.net. It contains an encrypted unique ID.
i1 yearThe purpose of the cookie is not known yet.
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
KADUSERCOOKIE3 monthsThe cookie is set by pubmatic.com for identifying the visitors' website or device from which they visit PubMatic's partners' website.
KTPCACOOKIE1 dayThis cookie is set by pubmatic.com for the purpose of checking if third-party cookies are enabled on the user's website.
mc1 year 1 monthThis cookie is associated with Quantserve to track anonymously how a user interact with the website.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
uid1 year 1 monthThis cookie is used to measure the number and behavior of the visitors to the website anonymously. The data includes the number of visits, average duration of the visit on the website, pages visited, etc. for the purpose of better understanding user preferences for targeted advertisments.
uuid3 monthsTo optimize ad relevance by collecting visitor data from multiple websites such as what pages have been loaded.
uuid23 monthsThis cookies is set by AppNexus. The cookies stores information that helps in distinguishing between devices and browsers. This information us used to select advertisements served by the platform and assess the performance of the advertisement and attribute payment for those advertisements.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
yt-remote-connected-devicesneverThese cookies are set via embedded youtube-videos.
yt-remote-device-idneverThese cookies are set via embedded youtube-videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
__gpi1 year 24 daysNo description
adImpCountpastNo description
C3UID5 yearsNo description available.
C3UID-9245 yearsNo description
fc5 months 27 daysNo description available.
pfpastNo description
pxs5 months 27 daysNo description available.
SAVE & ACCEPT
Powered by CookieYes Logo