{"id":20669704,"url":"https://github.com/fox-one/compound","last_synced_at":"2025-04-19T18:13:04.615Z","repository":{"id":47131684,"uuid":"298940886","full_name":"fox-one/compound","owner":"fox-one","description":"An implementation of the compound protocol based on Mixin MTG technology.","archived":false,"fork":false,"pushed_at":"2022-09-22T17:20:29.000Z","size":13233,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T11:34:30.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fox-one.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-27T02:55:13.000Z","updated_at":"2023-10-08T03:27:30.000Z","dependencies_parsed_at":"2022-08-19T08:40:55.043Z","dependency_job_id":null,"html_url":"https://github.com/fox-one/compound","commit_stats":null,"previous_names":[],"tags_count":171,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fcompound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fcompound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fcompound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Fcompound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fox-one","download_url":"https://codeload.github.com/fox-one/compound/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249760150,"owners_count":21321843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T20:15:45.803Z","updated_at":"2025-04-19T18:13:04.598Z","avatar_url":"https://github.com/fox-one.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compound\n\nAn implementation of the [compound protocol](https://github.com/compound-finance/compound-protocol) based on [Mixin](https://github.com/MixinNetwork/mixin) [MTG](https://github.com/MixinNetwork/developers.mixin.one/blob/main/developers/src/i18n/en/document/mainnet/mtg.md) technology.\n\n## Key Words\n\n### [Mixin(Mixin network)](https://github.com/MixinNetwork/mixin)\nA public blockchain driven by TEE (Trusted Execution Environment) based on the DAG with aBFT. Unlike other projects which have great theories but hardly any actual implementations of blockchain transaction solution, Mixin Network provides a more secure, private, 0 fees, developer-friendly and user-friendly transaction solution with lightning speed.\n\n### [MTG(Mixin Trusted Group)](https://github.com/MixinNetwork/developers.mixin.one/blob/main/developers/src/i18n/en/document/mainnet/mtg.md)\n\nAn alternative to smart contacts on Mixin Network.\n\nBasically, MTG is a Multi-signature custodian consensus solution. Several teams will be selected and arranged as the “Trusted Group” in Pando, becoming the “Nodes”. Concensus has to be reached among the nodes to perform certain administrative actions. As a result, stable services and asset safety are guaranteed.\n\nFor example, let’s say there is a M/N multi-sig group where M represents the number of nodes, and the group manages some assets in the multi-sig address. When one of the nodes needs to transfer some assets out, it needs to collect at least N signatures from others to perform the action.\n\nMTG is the framework. Pando is an application designed using the framework on Mixin Network.\n\n### CToken\n\nThe corresponding certificate token you obtain after you supply a number of cetain encrypted currency to the market.\n\n## Functions\n\n#### Supply\n\nUsers supply encrypted currencies to the market to provide liquidity, \nand obtain the corresponding ctokens. They receive interest yields by providing liquidity.\n\n![](docs/images/uc_supply.png)\n\n#### Pledge\n\nUsers have to pledge cToken to the market before any borrow.\n\n![](docs/images/uc_pledge.png)\n\n#### Unpledge\n\nUsers take back the cToken that pledged to the market.\n\n![](docs/images/uc_unpledge.png)\n\n#### Redeem\n\nUsers return the CToken in exchange for corresponding encrypted currency that were supplied before, including interest yields as the reward for providing liquidity. \n\n![](docs/images/uc_redeem.png)\n\n#### Borrow\n\nUsers borrow encrypted currencies from the market at a certain interest rate.\n\n![](docs/images/uc_borrow.png)\n\n#### Repay\n\nUsers repay the borrowed encrypted currency and the interest accrued during the borrow period.\n\n![](docs/images/uc_repay.png)\n\n#### Liquidation\n\nDue to the fluctuation of the market price, the value of a user's loan may exceed that of his pledged assets. When that happens, the other users can use a lower price to obtain the user's pledged assets so that the user's debt that are not covered by pleged assets are repayed.     \n\n![](docs/images/uc_liquidity.png)\n\n\n## [Design](docs/design.md)\n\n## [Deployment](docs/deploy.md)\n\n## [Governance](docs/governance.md)\n\n## [Userguide](docs/userguide.pdf)\n\n## [LICENSE](LICENSE)\n\n```\n\nMIT License\n\nCopyright (c) 2020 Fox.ONE\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Fcompound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffox-one%2Fcompound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Fcompound/lists"}