Skip to content

unioncredit/union-v1-contracts

Repository files navigation

Smart Contracts for Union V1

build and test coverage and slither codecov

Networks

Union is an upgradeable system. Each deployed contract is a "Proxy" that points to an "Implementation" contract. All addresses can be found in the folder deployments/${network}.

Ethereum Mainnet

Contract Address Upgradeable
UserManager 0x49c910Ba694789B58F53BFF80633f90B8631c195
MarketRegistry 0x1ddB9a1F6Bc0dE1d05eBB0FDA61A7398641ae6BE
Comptroller 0x216dE4089dCdD7B95BC34BdCe809669C788a9A5d
uDAI 0x954F20DF58347b71bbC10c94827bE9EbC8706887
AssetManager 0xb91a874D9AA8fF7E478bA61286ECc77c1A3E384d
CompoundAdapter 0x303CbdADF370F6bBa79651f680498E829cB860D5
AaveAdapter 0xE8c77A541c933Aa1320Aa2f89a61f91130e4012d
PureTokenAdapter 0x62DD06026F5f8e874eEfF362b1280CD9A2057b7d
UnionToken 0x5Dfe42eEA70a3e6f93EE54eD9C321aF07A85535C
Governor 0xe1b3F07a9032F0d3deDf3E96c395A4Da74130f6e
Timelock 0xBBD3321f377742c4b3fe458b270c2F271d3294D8
Treasury 0x6DBDe0E7e563E34A53B1130D6B779ec8eD34B4B9
Treasury Vester 0x641DD6258cb3E948121B10ee51594Dc2A8549fe1
ArbUnion Wrapper 0x20c375e822b6264E22941B74943F940A1CfE5F25
Arb Connector 0x307ED81138cA91637E432DbaBaC6E3A42699032a

Arbitrum One

Contract Address Upgradeable
UserManager 0xb71F3D4342AaE0b8D531E14D2CF2F45d6e458A5F
MarketRegistry 0x82c7cA392644a6c66fcaF9d4efF89e6d875D58D9
Comptroller 0x641DD6258cb3E948121B10ee51594Dc2A8549fe1
uDAI 0x954F20DF58347b71bbC10c94827bE9EbC8706887
AssetManager 0x7Aecd107Cb022e1DFd42cC43E9BA94C38BC83275
PureTokenAdapter 0xdC3c984f2Ecb7Ee2540bb0B9EfE9540204cdAB57
ArbUnion 0x6DBDe0E7e563E34A53B1130D6B779ec8eD34B4B9

Kovan

Contract Address Upgradeable
UserManager 0x391fDb669462FBAA5a7e228f3857281BeCf235EE
MarketRegistry 0x15B12b8dB6665B31E15Da26275fD54590f2E989c
Comptroller 0x85FD0fA5Cc2f0B3A12C146C5B5A37d9e269b3Ba8
uDAI 0x1bAa7FC92A86768D5F0Dd6Ff3AD7155eCD8cB293
AssetManager 0xB944F1f7B603Aca87B73592ce9267E0BA375f4c9
CompoundAdapter 0xD3FfB854C11096e0d5EFD6Ba6d3c1BeF4B89add9
PureTokenAdapter 0x48941f5Ad4E6b313cC691e088c7E241617C5a9B2
UnionToken 0x08AF898e65493D8212c8981FAdF60Ff023A91150
Governor 0x7C1c7330EcC771C24f5De5b0Ce925Fde3A631c45
Timelock 0x107e3811900A93940cE8694fF9C6217Be900faAF
Treasury 0x28d1999FDC8a5396b11E86F8fd247a85d4d4D7F9
Treasury Vester 0x137698a81E9384175Ab5A7D715E5df62DF5E6c16
DAI (Kovan) 0x4f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa
cDAI (Kovan) 0xf0d0eb522cfa50b716b3b1604c4f0fa6f04376ad

Rinkeby

Contract Address Upgradeable
UserManager 0xBB7c70F1dA3C9C324122bFdAE2e6765F06eAD410
MarketRegistry 0xF0719b80843D7a694f5ABfB5Da33CA0D6A27c596
Comptroller 0x491337330Fd30cAfFC93015F0f9C83419d96B413
uDAI 0x5F17893aFabbcC7E63b486807660CB727BE5E557
AssetManager 0x6aB155b8947b0067b88C1371C674559A502dDE32
CompoundAdapter 0xa7f64787603eb4fcaE868AF13146BC900F09541F
PureTokenAdapter 0x97E92f00144D3C5B5d365147e0A44962d9E57f15
UnionToken 0xC7071B73D019aE9F5CC00ac9b506643b8A6a2b05
ArbUnionWrapper 0xf5FAaC2191f0a17162Fd1E672c89556038b7dabc
Governor 0x0f991cD13a3D4e384fc303355e4f09913eEd3023
Timelock 0xd1B972Af3eeF8620f2cE33a467c99eB41E90b52F
Treasury 0x7103C2Ef543De2258F1e6a0a5637331d2C5C29b9
Treasury Vester 0x76a00ca4B0a5e44D4745CE9C3C229b395a57ccc0
ArbUnion Wrapper 0x4616b36Fb1c70a4aB05afb53eDA6E9d09efd1dC9
Arb Connector 0xA5770c37B6824f47ac9480F0bE30E2Da6b8Bc199
DAI (Rinkeby) 0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa
cDAI (Kovan) 0x6d7f0754ffeb405d23c51ce938289d4835be3b14

Arbitrum Rinkeby Testnet

Contract Address Upgradeable
UserManagerArb 0xbbEc82D7a37ef0e04671b27Bd1fd8CE952AB589E
MarketRegistry 0x29882381C17c50B2f2bf8a377B59358b01f7A026
Comptroller 0xB9A7e04e6c75C718904F0De0F5Cc6a2728a3F50C
uDAI 0x08f2F2C68f203a71a119E2293cB3854261EFAE3d
AssetManager 0x2B2f7A61489A0Aa8638790125DE0DDAD9CB5D12e
PureTokenAdapter 0xCce053B5e30310cc58020AcF922b836F67C5eD8E
ArbUnion 0xb371fe920071F73ca81b4D57C72639480F3886a7
DAI (Arbitrum) 0x5364Dc963c402aAF150700f38a8ef52C1D7D7F14

Setup

Requirements:

  • Node @14.x
  • Python @3.x (for running Slither)

Clone the repo and then install dependencies:

$ yarn install

Testing

To run the entire test suite:

$ yarn test

To run the unit tests only:

$ yarn test:unit

To run the deployment script tests:

$ yarn test:deploy

Coverage

To run tests with coverage:

$ yarn coverage

Deployment

To deploy to a supported network:

$ yarn deploy {network}

Check the deployed params:

$ yarn checkDeploy {network}

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •