# Membrane Whitelisted Address for Deployment of Stablecoin Protocol contracts

**URL:** https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351
**Category:** DApps / Tooling
**Tags:** passed
**Created:** [September 15, 2023, 5:54pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351 "2023-09-15T17:54:21Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![trix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/trix/32/2708_2.png) [@trix](https://forum.osmosis.zone/u/trix)
#### Post date: [September 15, 2023, 5:54pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/1 "2023-09-15T17:54:21Z")

</div>

Membrane Whitelisted Address for Deployment of CDP Stablecoin Protocol

This proposal grants the address osmo1988s5h45qwkaqch8km4ceagw2e08vdw28mwk4n the ability to upload CosmWasm contracts to Osmosis without needing further governance approval for each upload. This address is managed by @brane\_trix.

Contracts

This proposal would allow upload of Membrane’s CDP, Governance & Launch contracts. The main CDP contracts that influence capital have been audited by Oak Security with a grant by OGP.

The launch contract initiates a Lockdrop that distributes 10% of MBRN supply, creates MBRN & CDT (the stable) OSMO LPs, incentivizes the CDT pool with 2M MBRN over a year & acquires the MBRN LP as POL. This ensures MBRN has liquidity to absorb any bad debt auctions that the protocol experiences, acting as a foundation for CDT user solvency from the jump.

Permissions

This proposal only signals approval for the initial Membrane contracts and their potential upgrades.

About Membrane

Membrane was founded in response to the survival of Terra’s collapse and is focused on creating a robust, user-first debt token as the foundation of the protocol’s economy. Cosmos still needs a resilient decentralized stablecoin & Osmosis is the best place to launch it.

With a founding team of 1 it is imperative to reduce central control of the protocol as well as decentralizing the value created by it, which is the leading incentive to enable delegatible governance power/commission & distributing a larger % of supply early on.

Docs: [What is Membrane? - Membrane Docs](https://membrane-finance.gitbook.io/membrane-docs-1/)  
Github: [Membrane · GitHub](https://github.com/MembraneFinance)  
Twitter: [https://twitter.com/insaneinthembrn](https://twitter.com/insaneinthembrn)  
Discord: [Membrane](https://discord.gg/ksT6cdHpbV)

Pre-Requisites

- Testing is still being conducted on testnet until at minimum 9/22.
- This pull request being merged and added into the next osmosis-std version to enable the incentive creation ([MsgCreateGuage incorrect type · Issue #88 · osmosis-labs/osmosis-rust · GitHub](https://github.com/osmosis-labs/osmosis-rust/issues/88))
- A proposer to submit this proposal for Membrane as I don’t have the required OSMO necessary to submit.

Target On-Chain Date: TBD

---

<div class="post-metadata">

### Author: ![faddat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/faddat/32/2098_2.png) [@faddat](https://forum.osmosis.zone/u/faddat)
#### Post date: [September 16, 2023, 4:05pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/2 "2023-09-16T16:05:46Z")

</div>

Yes:

- I have been reading your code the whole time.
- Audits
- deep contextual understanding of your market
- no feeling of “stuff is hidden”

Thanks for all the work you put in.

---

<div class="post-metadata">

### Author: ![lethang137](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@lethang137](https://forum.osmosis.zone/u/lethang137)
#### Post date: [September 18, 2023, 4:11pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/3 "2023-09-18T16:11:00Z")

</div>

Yes, I have been following your progress for a while!

---

<div class="post-metadata">

### Author: ![luisqa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/luisqa/32/1759_2.png) [@luisqa](https://forum.osmosis.zone/u/luisqa)
#### Post date: [September 18, 2023, 4:27pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/4 "2023-09-18T16:27:54Z")

</div>

Excited to see membrane coming online soon.

---

<div class="post-metadata">

### Author: ![LeonoorsCryptoman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/leonoorscryptoman/32/208_2.png) [@LeonoorsCryptoman](https://forum.osmosis.zone/u/LeonoorsCryptoman)
#### Post date: [September 18, 2023, 6:54pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/5 "2023-09-18T18:54:37Z")

</div>

I guess you can find a proposer rather sooner than later 🙂

Is there a need for new incentives for the CDT pool? Can’t we use the current external reward for that purpose?

---

<div class="post-metadata">

### Author: ![trix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/trix/32/2708_2.png) [@trix](https://forum.osmosis.zone/u/trix)
#### Post date: [September 18, 2023, 6:58pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/6 "2023-09-18T18:58:01Z")

</div>

This would be using the current external incentive mechanism, there is just an issue with the code.

---

<div class="post-metadata">

### Author: ![LeonoorsCryptoman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/leonoorscryptoman/32/208_2.png) [@LeonoorsCryptoman](https://forum.osmosis.zone/u/LeonoorsCryptoman)
#### Post date: [September 18, 2023, 7:09pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/7 "2023-09-18T19:09:40Z")

</div>

Thanks for the very quick response!

How does the external incentive for MBRN work different than compared to what all kind of other projects have already done?

---

<div class="post-metadata">

### Author: ![trix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/trix/32/2708_2.png) [@trix](https://forum.osmosis.zone/u/trix)
#### Post date: [September 18, 2023, 7:16pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/8 "2023-09-18T19:16:51Z")

</div>

It’s not different, just incentivizing 14 day locks for the LP. It likely still works on chain using manual methods but this is deployed using a smart contract which requires using osmosis-std.

---

<div class="post-metadata">

### Author: ![LeonoorsCryptoman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/leonoorscryptoman/32/208_2.png) [@LeonoorsCryptoman](https://forum.osmosis.zone/u/LeonoorsCryptoman)
#### Post date: [September 24, 2023, 6:09pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/9 "2023-09-24T18:09:07Z")

</div>

Ok, and it needs to be done with a smart contract because of the other things being used as well (like POL) or due to potential automation?

Otherwise I fail to see the use of uploading the same feature as smart contract while it is already proven with the current on-chain method.

---

<div class="post-metadata">

### Author: ![trix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/trix/32/2708_2.png) [@trix](https://forum.osmosis.zone/u/trix)
#### Post date: [September 25, 2023, 12:08am UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/10 "2023-09-25T00:08:52Z")

</div>

The entire smart contract is to automate the entire setup of Membrane’s system.

The point of allowing Osmosis smart contract’s to use Osmosis functionality is fairly simple, without it you wouldn’t be able to programmtically swap, LP, etc meaning no vaults (Quasar/Apollo), no routers, and whatever else people would build.

In our case, not having it in a smart contract would mean Membrane governance mints MBRN to a multi-sig that would then need to do it manually, which adds unnecessary risk & friction to everyone involved.

---

<div class="post-metadata">

### Author: ![LeonoorsCryptoman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/leonoorscryptoman/32/208_2.png) [@LeonoorsCryptoman](https://forum.osmosis.zone/u/LeonoorsCryptoman)
#### Post date: [September 26, 2023, 6:49pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/11 "2023-09-26T18:49:08Z")

</div>

It is moving in the right direction ^^

> **[Mintscan](https://www.mintscan.io/osmosis/proposals/637)**
>
> Interchain explorer and analytics powered by Cosmostation.

---

<div class="post-metadata">

### Author: ![Codehans](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@Codehans](https://forum.osmosis.zone/u/Codehans)
#### Post date: [September 26, 2023, 10:08pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/12 "2023-09-26T22:08:41Z")

</div>

There’s a bug in the liquidation queue contract that would allow an attacker to claim liquidated collateral belonging to all bidders

---

<div class="post-metadata">

### Author: ![trix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/trix/32/2708_2.png) [@trix](https://forum.osmosis.zone/u/trix)
#### Post date: [September 26, 2023, 11:39pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/14 "2023-09-26T23:39:56Z")

</div>

could u expand on this?

---

<div class="post-metadata">

### Author: ![trix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/trix/32/2708_2.png) [@trix](https://forum.osmosis.zone/u/trix)
#### Post date: [September 27, 2023, 12:01am UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/15 "2023-09-27T00:01:07Z")

</div>

Fixed thanks to hans

---

<div class="post-metadata">

### Author: ![faddat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/faddat/32/2098_2.png) [@faddat](https://forum.osmosis.zone/u/faddat)
#### Post date: [September 27, 2023, 4:45am UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/16 "2023-09-27T04:45:08Z")

</div>

Thank you very much for stepping in here.

---

<div class="post-metadata">

### Author: ![LeonoorsCryptoman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/leonoorscryptoman/32/208_2.png) [@LeonoorsCryptoman](https://forum.osmosis.zone/u/LeonoorsCryptoman)
#### Post date: [September 28, 2023, 6:55pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/17 "2023-09-28T18:55:30Z")

</div>

Code reviewers for smart-contracts are widely undervalued I guess.

Thanks!

---

<div class="post-metadata">

### Author: ![vini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.osmosis.zone/vini/32/331_2.png) [@vini](https://forum.osmosis.zone/u/vini)
#### Post date: [October 1, 2023, 11:38pm UTC](https://forum.osmosis.zone/t/membrane-whitelisted-address-for-deployment-of-stablecoin-protocol-contracts/351/18 "2023-10-01T23:38:52Z")

</div>

Hi all,

I’m Vini (@unl1k3ly), the managing director of SCV-Security.

I just want to further clarify this vulnerability as SCV were the ones that identified the problematic code during an audit on a client of ours. We knew Kujira were running the same underlying component and We initiated the responsible disclosure to them at the time. @Codehans identified and kindly reported the same problematic component to the Membrane team as it was missed during the audit engaged by OGP.

I feel this note is important to raise since SCV is also trying to participate in the OGP securing Osmosis projects launching on-chain along with Osmosis stack.

Cheers
