Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌾 Fix: Add TrueUSD deployment addresses on BSC #1253

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/contracts-bsc/contracts/BscTokenController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ contract BscTokenController {

// paused version of TrueCurrency in Production
// pausing the contract upgrades the proxy to this implementation
address public constant PAUSED_IMPLEMENTATION = 0x3c8984DCE8f68FCDEEEafD9E0eca3598562eD291;
address public constant PAUSED_IMPLEMENTATION = 0xccd19a52768342fc5F00b1B206D60333C3A9ABA2;

uint32 constant MILLION = 1_000_000;
uint256 constant DECIMALS = 18;
Expand Down
37 changes: 24 additions & 13 deletions packages/contracts-bsc/deployments.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{
"mainnet": {
"TokenControllerV3_proxy": {
"address": "0x0000000000075EfBeE23fe2de1bd0b7690883cc9"
"PausedTrueUSD": {
"address": "0xccd19a52768342fc5F00b1B206D60333C3A9ABA2"
},
"TokenControllerV3": {
"commitHash": "40991356a7572de7d519a52e0fe25a99d8cbc48a",
"txHash": "0x5b51bd057bbdcb8dcf12a35d60ce19e26a75857f99efebc0fb922874731c108e",
"address": "0x0cbA367Dacb539b5Fc00c31B4faa5EdD6Ab253F5"
"BscTokenControllerProxy": {
"address": "0xb25E3C3493fc61bdD02661BCc27058022716c66A"
},
"TrueUSD_proxy": {
"address": "0x0000000000085d4780B73119b644AE5ecd22b376"
"BscTokenController": {
"commitHash": "e947606aadb4a5c13f624a9014672837bc252c8b",
"txHash": "0xca47238bb7c6ea7993f615be2acb79567895592dc19511ec0a568e2475563e10",
"address": "0xcAC1b4A5b0A3400cbdB12eC0cF9e772E17f04677"
},
"TrueUSD": {
"commitHash": "40991356a7572de7d519a52e0fe25a99d8cbc48a",
"txHash": "0xbdab8e1de4f3dcf472ba9bb292dcf88f4f5594154ae1dc53c7312728688f3b70",
"address": "0xB650eb28d35691dd1BD481325D40E65273844F9b"
"BscTrueUSDProxy": {
"address": "0x40af3827F39D0EAcBF4A168f8D4ee67c121D11c9"
},
"BscTrueUSD": {
"commitHash": "e947606aadb4a5c13f624a9014672837bc252c8b",
"txHash": "0x73838bec16d15e65a8c5ba6e69a65b15f3c439e8cdceaa4ffaba6fe8fddc6bea",
"address": "0x0D7aDc70A18a5aeF0bD6ecb098E1da0244C57711"
},
"BscRegistryProxy": {
"address": "0x549C860916B097292344DcA1d266B1493eFE30be"
},
"BscRegistry": {
"commitHash": "e947606aadb4a5c13f624a9014672837bc252c8b",
"txHash": "0x7903be264423b3f673643b832afd74c8f34ba86b16a927f429efd959b04fbb32",
"address": "0xF61b97014246F2d7b8b96Bd65B14C58eEd960eA4"
}
}
}
}
2 changes: 1 addition & 1 deletion packages/contracts-bsc/test/TokenController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ describe('TokenController', () => {
await token.connect(thirdWallet).transfer(mintKey.address, parseEther('10'))
await controller.pauseToken()
expect(await tokenProxy.implementation())
.to.equal('0x3c8984DCE8f68FCDEEEafD9E0eca3598562eD291')
.to.equal('0xccd19a52768342fc5F00b1B206D60333C3A9ABA2')
})

it('non pauser cannot pause TrueUSD ', async function () {
Expand Down