Skip to content

Commit

Permalink
CGP 138: Native USDT integration on Mento v2 (#442)
Browse files Browse the repository at this point in the history
* CGP 138: Native USDT integration on Mento v2

* cgp138 mainnet.json

* fixes: remove proposal-id
  • Loading branch information
nvtaveras authored May 23, 2024
1 parent 141d193 commit 67c88c9
Show file tree
Hide file tree
Showing 2 changed files with 235 additions and 0 deletions.
33 changes: 33 additions & 0 deletions CGPs/cgp-0138.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
cgp: 138
title: MU06 - Native USDT integration on Mento v2
date-created: 2024-05-23
author: "@philbow61, @nvtaveras"
status: DRAFT
discussions-to: https://forum.celo.org/t/proposal-mento-upgrade-mu06-native-usdt-integration/
governance-proposal-id:
date-executed:
---

## Overview

The team at Mento Labs is proposing the creation of a new trading pair on Mento: cUSD/USDT. This initiative aims to support our partners at Opera Mini Pay in their mission to offer accessible financial solutions to millions of users in Africa, powered by Mento. In addition to the new pair, we also propose reducing the spread of existing USDC/cUSD pools (nativeUSDC/cUSD and axlUSDC/cUSD) to 0, to facilitate easy on-and-off ramping from other stables to cUSD.

An in-depth description of the governance proposal aimed at approvers and developers can be found in the [forum post](https://forum.celo.org/t/proposal-mento-upgrade-mu06-native-usdt-integration/8010).

## Proposed Changes

Check the [forum post](https://forum.celo.org/t/proposal-mento-upgrade-mu06-native-usdt-integration/8010) for a detailed description of the proposed changes.

## Verification

Check the [forum post](https://forum.celo.org/t/proposal-mento-upgrade-mu06-native-usdt-integration/8010) for a detailed description of verification steps.

## Risks

This is a relatively low risk proposal as it only involves adding a new pools to the Mento v2 protocol and re-creating some of the existing pools with a similar configuration to the existing ones. The proposal has been thoroughly tested by the Mento team in testnet environments and in a Celo mainnet like fork.

## Useful Links

- [MU06 CGP Forum Post](https://forum.celo.org/t/proposal-mento-upgrade-mu06-native-usdt-integration/8010)
- [Mento Docs](https://docs.mento.org)
202 changes: 202 additions & 0 deletions CGPs/cgp-0138/mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
[
{
"contract": "Reserve",
"address": "0x9380fA34Fd9e4Fd14c06305fd7B6199089eD4eb9",
"function": "addCollateralAsset",
"args": [
"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"
],
"value": "0"
},
{
"contract": "Reserve",
"address": "0x9380fA34Fd9e4Fd14c06305fd7B6199089eD4eb9",
"function": "setDailySpendingRatioForCollateralAssets",
"args": [
[
"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"
],
[
"1000000000000000000000000"
]
],
"value": "0"
},
{
"contract": "BiPoolManager",
"address": "0x22d9db95E6Ae61c104A7B6F6C78D7993B94ec901",
"function": "destroyExchange",
"args": [
"0xacc988382b66ee5456086643dcfd9a5ca43dd8f428f6ef22503d8b8013bcffd7",
"9"
],
"value": "0"
},
{
"contract": "BiPoolManager",
"address": "0x22d9db95E6Ae61c104A7B6F6C78D7993B94ec901",
"function": "destroyExchange",
"args": [
"0x0d739efbfc30f303e8d1976c213b4040850d1af40f174f4169b846f6fd3d2f20",
"3"
],
"value": "0"
},
{
"contract": "BiPoolManager",
"address": "0x22d9db95E6Ae61c104A7B6F6C78D7993B94ec901",
"function": "createExchange",
"args": [
[
"0x765DE816845861e75A25fCA122bb6898B8B1282a",
"0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
"0xDebED1F6f6ce9F6e73AA25F95acBFFE2397550Fb",
"0",
"0",
"0",
[
[
"0"
],
"0xA1A8003936862E7a15092A91898D69fa8bCE290c",
"300",
"5",
"12000000000000000000000000"
]
]
],
"value": "0"
},
{
"contract": "BiPoolManager",
"address": "0x22d9db95E6Ae61c104A7B6F6C78D7993B94ec901",
"function": "createExchange",
"args": [
[
"0x765DE816845861e75A25fCA122bb6898B8B1282a",
"0xEB466342C4d449BC9f53A865D5Cb90586f405215",
"0xDebED1F6f6ce9F6e73AA25F95acBFFE2397550Fb",
"0",
"0",
"0",
[
[
"0"
],
"0xA1A8003936862E7a15092A91898D69fa8bCE290c",
"300",
"5",
"12000000000000000000000000"
]
]
],
"value": "0"
},
{
"contract": "BiPoolManager",
"address": "0x22d9db95E6Ae61c104A7B6F6C78D7993B94ec901",
"function": "createExchange",
"args": [
[
"0x765DE816845861e75A25fCA122bb6898B8B1282a",
"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e",
"0xDebED1F6f6ce9F6e73AA25F95acBFFE2397550Fb",
"0",
"0",
"0",
[
[
"0"
],
"0xE06C10C63377cD098b589c0b90314bFb55751558",
"300",
"3",
"12000000000000000000000000"
]
]
],
"value": "0"
},
{
"contract": "Broker",
"address": "0x777A8255cA72412f0d706dc03C9D1987306B4CaD",
"function": "configureTradingLimit",
"args": [
"0x773bcec109cee923b5e04706044fd9d6a5121b1a6a4c059c36fdbe5b845d4e9b",
"0x765DE816845861e75A25fCA122bb6898B8B1282a",
[
"300",
"86400",
"5000000",
"10000000",
"0",
"3"
]
],
"value": "0"
},
{
"contract": "BreakerBox",
"address": "0x303ED1df62Fa067659B586EbEe8De0EcE824Ab39",
"function": "addRateFeeds",
"args": [
[
"0xE06C10C63377cD098b589c0b90314bFb55751558"
]
],
"value": "0"
},
{
"contract": "BreakerBox",
"address": "0x303ED1df62Fa067659B586EbEe8De0EcE824Ab39",
"function": "toggleBreaker",
"args": [
"0x4DBC33B3abA78475A5AA4BC7A5B11445d387BF68",
"0xE06C10C63377cD098b589c0b90314bFb55751558",
true
],
"value": "0"
},
{
"contract": "ValueDeltaBreaker",
"address": "0x4DBC33B3abA78475A5AA4BC7A5B11445d387BF68",
"function": "setReferenceValues",
"args": [
[
"0xE06C10C63377cD098b589c0b90314bFb55751558"
],
[
"1000000000000000000000000"
]
],
"value": "0"
},
{
"contract": "ValueDeltaBreaker",
"address": "0x4DBC33B3abA78475A5AA4BC7A5B11445d387BF68",
"function": "setCooldownTimes",
"args": [
[
"0xE06C10C63377cD098b589c0b90314bFb55751558"
],
[
"1"
]
],
"value": "0"
},
{
"contract": "ValueDeltaBreaker",
"address": "0x4DBC33B3abA78475A5AA4BC7A5B11445d387BF68",
"function": "setRateChangeThresholds",
"args": [
[
"0xE06C10C63377cD098b589c0b90314bFb55751558"
],
[
"5000000000000000000000"
]
],
"value": "0"
}
]

0 comments on commit 67c88c9

Please sign in to comment.