├── .gitbook └── assets │ ├── CRETH2.png │ ├── c.r.e.a.m.-finance-flashloan-security-review-report.pdf │ ├── cream (1).svg │ ├── cream-1024x1024.png │ ├── cream-2048x2048.png │ ├── cream-256x256 (1).png │ ├── cream-256x256 (2).png │ ├── cream-256x256.png │ ├── cream-32x32 (1).png │ ├── cream-32x32.png │ ├── cream-512x512.png │ ├── cream.svg │ ├── creamsummary.pdf │ ├── icecream_-3-.png │ ├── icecream_-4-.png │ ├── image.png │ ├── ironbank-1024w.png │ ├── ironbank-2048w.png │ ├── ironbank-512w.png │ ├── ironbank_logo (1).svg │ ├── ironbank_logo (2).svg │ ├── ironbank_logo (3).svg │ ├── ironbank_logo.svg │ ├── jie-tu-20201210-15.04.37.png │ ├── jie-tu-20201210-15.06.02 (3) (3) (1).png │ ├── jie-tu-20201210-15.06.02 (3) (3) (2).png │ ├── jie-tu-20201210-15.06.02 (3) (3) (3).png │ ├── jie-tu-20201210-15.06.02 (3) (3).png │ ├── jie-tu-20210118-19.36.26 (2) (2) (1).png │ ├── jie-tu-20210118-19.36.26 (2) (2) (2).png │ ├── jie-tu-20210118-19.36.26 (2) (2).png │ ├── jie-tu-20210118-19.44.23.png │ ├── jie-tu-20210118-19.50.27.png │ ├── jie-tu-20210118-19.51.52.png │ ├── jie-tu-20210118-20.31.24.png │ ├── jie-tu-20210118-21.25.16 (1).png │ ├── jie-tu-20210118-21.25.16.png │ ├── jie-tu-20210118-22.01.18.png │ ├── jie-tu-20210120-10.55.01 (1).png │ ├── jie-tu-20210120-10.55.01.png │ ├── jie-tu-20210120-10.56.05.png │ ├── jie-tu-20210120-11.00.57.png │ ├── jie-tu-20210226-12.32.39.png │ ├── jie-tu-20210304-18.15.28.png │ ├── jie-tu-20210304-18.26.11.png │ ├── jie-tu-20210304-18.26.24.png │ ├── jie-tu-20210323-19.08.43.png │ ├── jie-tu-20210323-19.09.28.png │ ├── jie-tu-20210323-19.11.44.png │ ├── jie-tu-20210401-17.44.05.png │ ├── jie-tu-20210512-15.42.10.png │ ├── jie-tu-20210514-16.10.09.png │ ├── jie-tu-20210519-18.19.16.png │ ├── jie-tu-20210519-18.20.32.png │ ├── jie-tu-20210602-10.26.27.png │ ├── jie-tu-20210602-10.27.10.png │ ├── jie-tu-20210629-xia-wu-6.36.02.png │ ├── jie-tu-20210629-xia-wu-6.51.43.png │ ├── jie-tu-20210629-xia-wu-6.52.39.png │ ├── jie-tu-20210630-xia-wu-12.16.12.png │ ├── jie-tu-20210715-xia-wu-12.16.25.png │ ├── jie-tu-20210715-xia-wu-2.50.31.png │ ├── jie-tu-20210715-xia-wu-2.51.05.png │ ├── jie-tu-20210719-xia-wu-8.20.00.png │ ├── jie-tu-20210719-xia-wu-8.21.58.png │ ├── jie-tu-20210719-xia-wu-8.23.11.png │ ├── jie-tu-20210719-xia-wu-8.24.59.png │ ├── jie-tu-20210719-xia-wu-8.27.31.png │ ├── jie-tu-20210719-xia-wu-8.28.18.png │ ├── jie-tu-20210719-xia-wu-8.29.25.png │ ├── jie-tu-20210719-xia-wu-8.33.18.png │ ├── jie-tu-20210723-xia-wu-4.35.51.png │ ├── jie-tu-20210819-14.45.30.png │ ├── jie-tu-20210830-18.28.43.png │ ├── jie-tu-20210927-15.33.18.png │ ├── jie-tu-20210927-15.34.07.png │ ├── jie-tu-20211001-15.13.09.png │ ├── jie-tu-20211001-15.17.47.png │ ├── main-logo (1) (1).svg │ ├── main-logo (1).svg │ ├── main-logo (3) (1).svg │ ├── main-logo (3).svg │ ├── main-logo-1024w.png │ ├── main-logo-2048w.png │ ├── main-logo-256w (1).png │ ├── main-logo-256w.png │ ├── main-logo-512w.png │ └── timeline_deposit_contract_launch.d09b4bf3.svg ├── README.md ├── SUMMARY.md ├── about.md ├── audit-report.md ├── developer ├── crtokens.md ├── error-codes │ ├── README.md │ ├── comptroller.md │ └── crtokens.md ├── key-events.md ├── subgraph-graphql.md └── testnet.md ├── eth2 ├── ethereum-2.0-contract-address.md ├── migration-schedule.md ├── what-is-ethereum-2.0.md └── why-stake-in-ethereum-2.0.md ├── icecream ├── icecream-mechanism-phase-1.md ├── icecream-mechanism-phase-2.md └── icecream-tokenomics.md ├── legacy ├── creamy-v1.md ├── inactive-staking-pools-address.md ├── reward-pool-contract-address.md └── swap │ ├── README.md │ ├── swap-v1.md │ └── swap-v2.md ├── lending ├── collateral-factor-and-reserve-factor-1.md ├── interest-rate-model.md ├── lending-contract-address.md └── price-oracle.md ├── press-kit.md ├── price-oracle.md ├── smart-contract-address.md └── tos.md /.gitbook/assets/CRETH2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/CRETH2.png -------------------------------------------------------------------------------- /.gitbook/assets/c.r.e.a.m.-finance-flashloan-security-review-report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/c.r.e.a.m.-finance-flashloan-security-review-report.pdf -------------------------------------------------------------------------------- /.gitbook/assets/cream (1).svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/cream-1024x1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-1024x1024.png -------------------------------------------------------------------------------- /.gitbook/assets/cream-2048x2048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-2048x2048.png -------------------------------------------------------------------------------- /.gitbook/assets/cream-256x256 (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-256x256 (1).png -------------------------------------------------------------------------------- /.gitbook/assets/cream-256x256 (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-256x256 (2).png -------------------------------------------------------------------------------- /.gitbook/assets/cream-256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-256x256.png -------------------------------------------------------------------------------- /.gitbook/assets/cream-32x32 (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-32x32 (1).png -------------------------------------------------------------------------------- /.gitbook/assets/cream-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-32x32.png -------------------------------------------------------------------------------- /.gitbook/assets/cream-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/cream-512x512.png -------------------------------------------------------------------------------- /.gitbook/assets/cream.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/creamsummary.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/creamsummary.pdf -------------------------------------------------------------------------------- /.gitbook/assets/icecream_-3-.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/icecream_-3-.png -------------------------------------------------------------------------------- /.gitbook/assets/icecream_-4-.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/icecream_-4-.png -------------------------------------------------------------------------------- /.gitbook/assets/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/image.png -------------------------------------------------------------------------------- /.gitbook/assets/ironbank-1024w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/ironbank-1024w.png -------------------------------------------------------------------------------- /.gitbook/assets/ironbank-2048w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/ironbank-2048w.png -------------------------------------------------------------------------------- /.gitbook/assets/ironbank-512w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/ironbank-512w.png -------------------------------------------------------------------------------- /.gitbook/assets/ironbank_logo (1).svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/ironbank_logo (2).svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/ironbank_logo (3).svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/ironbank_logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20201210-15.04.37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20201210-15.04.37.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3) (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3) (1).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3) (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3) (2).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3) (3).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3) (3).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20201210-15.06.02 (3) (3).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-19.36.26 (2) (2) (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-19.36.26 (2) (2) (1).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-19.36.26 (2) (2) (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-19.36.26 (2) (2) (2).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-19.36.26 (2) (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-19.36.26 (2) (2).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-19.44.23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-19.44.23.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-19.50.27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-19.50.27.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-19.51.52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-19.51.52.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-20.31.24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-20.31.24.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-21.25.16 (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-21.25.16 (1).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-21.25.16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-21.25.16.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210118-22.01.18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210118-22.01.18.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210120-10.55.01 (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210120-10.55.01 (1).png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210120-10.55.01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210120-10.55.01.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210120-10.56.05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210120-10.56.05.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210120-11.00.57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210120-11.00.57.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210226-12.32.39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210226-12.32.39.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210304-18.15.28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210304-18.15.28.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210304-18.26.11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210304-18.26.11.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210304-18.26.24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210304-18.26.24.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210323-19.08.43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210323-19.08.43.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210323-19.09.28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210323-19.09.28.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210323-19.11.44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210323-19.11.44.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210401-17.44.05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210401-17.44.05.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210512-15.42.10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210512-15.42.10.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210514-16.10.09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210514-16.10.09.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210519-18.19.16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210519-18.19.16.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210519-18.20.32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210519-18.20.32.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210602-10.26.27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210602-10.26.27.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210602-10.27.10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210602-10.27.10.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210629-xia-wu-6.36.02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210629-xia-wu-6.36.02.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210629-xia-wu-6.51.43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210629-xia-wu-6.51.43.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210629-xia-wu-6.52.39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210629-xia-wu-6.52.39.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210630-xia-wu-12.16.12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210630-xia-wu-12.16.12.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210715-xia-wu-12.16.25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210715-xia-wu-12.16.25.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210715-xia-wu-2.50.31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210715-xia-wu-2.50.31.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210715-xia-wu-2.51.05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210715-xia-wu-2.51.05.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.20.00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.20.00.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.21.58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.21.58.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.23.11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.23.11.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.24.59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.24.59.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.27.31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.27.31.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.28.18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.28.18.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.29.25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.29.25.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210719-xia-wu-8.33.18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210719-xia-wu-8.33.18.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210723-xia-wu-4.35.51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210723-xia-wu-4.35.51.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210819-14.45.30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210819-14.45.30.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210830-18.28.43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210830-18.28.43.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210927-15.33.18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210927-15.33.18.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20210927-15.34.07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20210927-15.34.07.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20211001-15.13.09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20211001-15.13.09.png -------------------------------------------------------------------------------- /.gitbook/assets/jie-tu-20211001-15.17.47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/jie-tu-20211001-15.17.47.png -------------------------------------------------------------------------------- /.gitbook/assets/main-logo (1) (1).svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/main-logo (1).svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitbook/assets/main-logo (3) (1).svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.gitbook/assets/main-logo (3).svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.gitbook/assets/main-logo-1024w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/main-logo-1024w.png -------------------------------------------------------------------------------- /.gitbook/assets/main-logo-2048w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/main-logo-2048w.png -------------------------------------------------------------------------------- /.gitbook/assets/main-logo-256w (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/main-logo-256w (1).png -------------------------------------------------------------------------------- /.gitbook/assets/main-logo-256w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/main-logo-256w.png -------------------------------------------------------------------------------- /.gitbook/assets/main-logo-512w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CreamFi/cream-docs/049f43ad1103626776d9e1bc4a28097704df4e7e/.gitbook/assets/main-logo-512w.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: Ethereum Mainnet documentation 3 | --- 4 | 5 | # C.R.E.A.M. Finance 6 | 7 | {% hint style="info" %} 8 | You can switch between Ethereum Mainnet, Binance Smart Chain and Fantom Opera in top-left corner 9 | {% endhint %} 10 | 11 | ## Overview 12 | 13 | ### What is C.R.E.A.M. Finance? 14 | 15 | C.R.E.A.M. Finance is a decentralized lending protocol for individuals and protocols to access financial services. The protocol is permissionless, transparent, and non-custodial. 16 | 17 | Currently, C.R.E.A.M. is live on Ethereum, Binance Smart Chain, and Fantom. 18 | 19 | C.R.E.A.M. Finance’s smart contract money markets are focused on longtail assets -- with the goal of increasing capital efficiency for all assets in crypto markets. 20 | 21 | Users are able to lend any supported assets on our markets, and use the provided capital as collateral to borrow another supported asset. 22 | 23 | C.R.E.A.M. offers a wide range of tokens on our money markets, including: stablecoins \(USDT, USDC, BUSD\); interest-bearing stablecoins \(yCRV, yyCRV\); defi tokens \(YFI, SUSHI, CREAM, CREAM\); LP-tokens \(USDC-ETH SLP, WBTC-ETH SLP\); and other cryptocurrencies \(ETH, LINK\). This list is not exhaustive. 24 | 25 | Please check the link below for the latest list of supported tokens: 26 | 27 | {% page-ref page="lending/lending-contract-address.md" %} 28 | 29 | ### How to use C.R.E.A.M. Finance? 30 | 31 | Borrow and lend tokens on [app.cream.finance](https://app.cream.finance/) 32 | 33 | -------------------------------------------------------------------------------- /SUMMARY.md: -------------------------------------------------------------------------------- 1 | # Table of contents 2 | 3 | * [C.R.E.A.M. Finance](README.md) 4 | * [Contract Address](smart-contract-address.md) 5 | * [Audit Report](audit-report.md) 6 | * [About](about.md) 7 | * [Press Kit](press-kit.md) 8 | * [Terms of Service](tos.md) 9 | 10 | ## Lending 11 | 12 | * [Lending Contract Address](lending/lending-contract-address.md) 13 | * [Collateral Factor & Reserve Factor](lending/collateral-factor-and-reserve-factor-1.md) 14 | * [Interest Rate Model](lending/interest-rate-model.md) 15 | * [Price Oracle](lending/price-oracle.md) 16 | 17 | ## iceCREAM 18 | 19 | * [iceCREAM Tokenomics](icecream/icecream-tokenomics.md) 20 | * [iceCREAM Mechanism Phase 1](icecream/icecream-mechanism-phase-1.md) 21 | * [iceCREAM Mechanism Phase 2](icecream/icecream-mechanism-phase-2.md) 22 | 23 | ## Developer 24 | 25 | * [crTokens](developer/crtokens.md) 26 | * [Key Events](developer/key-events.md) 27 | * [Error Codes](developer/error-codes/README.md) 28 | * [crTokens](developer/error-codes/crtokens.md) 29 | * [Comptroller](developer/error-codes/comptroller.md) 30 | * [Subgraph (GraphQL)](developer/subgraph-graphql.md) 31 | * [Testnet](developer/testnet.md) 32 | * [Data API](https://api.cream.finance/api/documentations/) 33 | 34 | ## CRETH2 35 | 36 | * [What is Ethereum 2.0](eth2/what-is-ethereum-2.0.md) 37 | * [Why Stake for CRETH2](eth2/why-stake-in-ethereum-2.0.md) 38 | * [Migration Schedule](eth2/migration-schedule.md) 39 | * [CRETH2 Contract Address](eth2/ethereum-2.0-contract-address.md) 40 | 41 | ## Legacy 42 | 43 | * [Swap](legacy/swap/README.md) 44 | * [Swap v1](legacy/swap/swap-v1.md) 45 | * [Swap v2](legacy/swap/swap-v2.md) 46 | * [Reward Pool Contract Address](legacy/reward-pool-contract-address.md) 47 | * [Inactive Staking pools Address](legacy/inactive-staking-pools-address.md) 48 | * [creamY](legacy/creamy-v1.md) 49 | 50 | *** 51 | 52 | * [Give Feedback](https://forum.cream.finance/c/site-feedback) 53 | -------------------------------------------------------------------------------- /about.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | ## Steward 4 | 5 | Jeffrey Huang | [twitter.com/machibigbrother](https://twitter.com/machibigbrother) 6 | -------------------------------------------------------------------------------- /audit-report.md: -------------------------------------------------------------------------------- 1 | # Audit Report 2 | 3 | ### Trail of Bits \(January 28, 2021\) 4 | 5 | Throughout this assessment, we \[Trail of Bits\] sought to answer various questions about the security of CREAM. We focused on flaws that would allow an attacker to: 6 | 7 | * Manipulate asset prices returned by the price oracles. 8 | * Subvert the imposed caps on borrowing or supplying. 9 | * Bypass access controls to modify contract state. 10 | 11 | Trail of Bits [Publications GitHub](https://github.com/trailofbits/publications/blob/master/reviews/CREAMSummary.pdf) 12 | 13 | {% file src=".gitbook/assets/creamsummary.pdf" caption="Audit Report - Trail of Bits" %} 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /developer/crtokens.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: >- 3 | Shout out to our community member Ivan Flores for the hard work and 4 | contribution 5 | --- 6 | 7 | # crTokens 8 | 9 | ## Introduction 10 | 11 | Each asset supported by the C.R.E.A.M. Protocol is integrated through a crToken contract, which is an [EIP-20](https://eips.ethereum.org/EIPS/eip-20) compliant representation of balances supplied to the protocol. By minting crTokens, users \(1\) earn interest through the crToken's exchange rate, which increases in value relative to the underlying asset, and \(2\) gain the ability to use crTokens as collateral. 12 | 13 | crTokens are the primary means of interacting with the C.R.E.A.M. Protocol; when a user mints, redeems, borrows, repays a borrow, liquidates a borrow, or transfers crTokens, she will do so using the crToken contract. 14 | 15 | There are currently two types of crTokens: CErc20 and CEther. Though both types expose the EIP-20 interface, CErc20 wraps an underlying ERC-20 asset, while CEther simply wraps Ether itself. As such, the core functions which involve transferring an asset into the protocol have slightly different interfaces depending on the type, each of which is shown below. 16 | 17 | ## Mint 18 | 19 | The mint function transfers an asset into the protocol, which begins accumulating interest based on the current Supply Rate for the asset. The user receives a quantity of crTokens equal to the underlying tokens supplied, divided by the current [Exchange Rate](https://docs.cream.finance/api/crtokens#exchange-rate). 20 | 21 | ### CErc20 22 | 23 | ```jsx 24 | function mint(uint mintAmount) returns (uint) 25 | ``` 26 | 27 | `msg.sender:` The account which shall supply the asset, and own the minted cTokens. 28 | 29 | `mintAmount`: The amount of the asset to be supplied, in units of the underlying asset. 30 | 31 | `RETURN:` 0 on success, otherwise an Error code 32 | 33 | Before supplying an asset, users must first approve the crToken to access their token balance. 34 | 35 | ### CEther 36 | 37 | ```jsx 38 | function mint() payable 39 | ``` 40 | 41 | `msg.valuepayable:` The amount of ether to be supplied, in wei. 42 | 43 | `msg.sender:` The account which shall supply the ether, and own the minted cTokens. 44 | 45 | `RETURN:` No return, reverts on error. 46 | 47 | ### Solidity 48 | 49 | ```jsx 50 | Erc20 underlying = Erc20(0xToken...); // get a handle for the underlying asset contract 51 | CErc20 crToken = CErc20(0x3FDA...); // get a handle for the corresponding cToken contract 52 | underlying.approve(address(cToken), 100); // approve the transfer 53 | assert(crToken.mint(100) == 0); // mint the cTokens and assert there is no error 54 | ``` 55 | 56 | ### Web3 1.0 57 | 58 | ```jsx 59 | const crToken = CEther.at(0x3FDB...); 60 | await crToken.methods.mint().send({from: myAccount, value: 50}); 61 | ``` 62 | 63 | ## **Redeem** 64 | 65 | The redeem function converts a specified quantity of crTokens into the underlying asset, and returns them to the user. The amount of underlying tokens received is equal to the quantity of crTokens redeemed, multiplied by the current [Exchange Rate](https://docs.cream.finance/api/crtokens#exchange-rate). The amount redeemed must be less than the user's Account Liquidity and the market's available liquidity. 66 | 67 | ### CErc20 / CEther 68 | 69 | ```jsx 70 | function redeem(uint redeemTokens) returns (uint) 71 | ``` 72 | 73 | `msg.sender:` The account to which redeemed funds shall be transferred. 74 | 75 | `redeemTokens:` The number of cTokens to be redeemed. 76 | 77 | `RETURN:` 0 on success, otherwise an Error code 78 | 79 | ### **Solidity** 80 | 81 | ```jsx 82 | CEther crToken = CEther(0x3FDB...); 83 | require(crToken.redeem(7) == 0, "something went wrong"); 84 | ``` 85 | 86 | ### **Web3 1.0** 87 | 88 | ```jsx 89 | const crToken = CErc20.at(0x3FDA...); 90 | crToken.methods.redeem(1).send({from: ...}); 91 | ``` 92 | 93 | ## **Redeem Underlying** 94 | 95 | The redeem underlying function converts crTokens into a specified quantity of the underlying asset, and returns them to the user. The amount of crTokens redeemed is equal to the quantity of underlying tokens received, divided by the current [Exchange Rate](https://docs.cream.finance/api/crtokens#exchange-rate). The amount redeemed must be less than the user's Account Liquidity and the market's available liquidity. 96 | 97 | ### CErc20 / CEther 98 | 99 | ```jsx 100 | function redeemUnderlying(uint redeemAmount) returns (uint) 101 | ``` 102 | 103 | ### Solidity 104 | 105 | ```jsx 106 | CEther crToken = CEther(0x3FDB...); 107 | require(crToken.redeemUnderlying(50) == 0, "something went wrong"); 108 | ``` 109 | 110 | ### Web3 1.0 111 | 112 | ```jsx 113 | const crToken = CErc20.at(0x3FDA...); 114 | crToken.methods.redeemUnderlying(10).send({from: ...}); 115 | ``` 116 | 117 | ## **Borrow** 118 | 119 | The borrow function transfers an asset from the protocol to the user, and creates a borrow balance which begins accumulating interest based on the Borrow Rate for the asset. The amount borrowed must be less than the user's Account Liquidity and the market's available liquidity. 120 | 121 | To borrow Ether, the borrower must be 'payable' \(solidity\). 122 | 123 | ### **CErc20 / CEther** 124 | 125 | ```jsx 126 | function borrow(uint borrowAmount) returns (uint) 127 | ``` 128 | 129 | `msg.sender:` The account to which redeemed funds shall be transferred. 130 | 131 | `borrowAmount:` The number of crTokens to be borrowed 132 | 133 | `RETURN:` 0 on success, otherwise an Error code 134 | 135 | ### Solidity 136 | 137 | ```jsx 138 | CEther crToken = CEther(0x3FDB...); 139 | require(crToken.redeemUnderlying(50) == 0, "got collateral?"); 140 | ``` 141 | 142 | ### Web3 1.0 143 | 144 | ```jsx 145 | const crToken = CEther.at(0x3FDA...); 146 | await crToken.methods.borrow(50).send({from: 0xMyAccount}); 147 | ``` 148 | 149 | ## **Repay Borrow** 150 | 151 | The repay function transfers an asset into the protocol, reducing the user's borrow balance. 152 | 153 | ### **CErc20** 154 | 155 | ```jsx 156 | function repayBorrow(uint borrowAmount) returns (uint) 157 | ``` 158 | 159 | `msg.sender:` The account to which borrowed the asset, and shall repay the borrow. 160 | 161 | `borrowAmount:` The amount of the underlying borrowed asset to be repaid. A value of -1 \(i.e. 2^256 - 1\) can be used to repay the full amount. 162 | 163 | `RETURN:` 0 on success, otherwise an Error code 164 | 165 | Before repaying an asset, users must first approve the crToken to access their token balance. 166 | 167 | ### CEther 168 | 169 | ```jsx 170 | function repayBorrow() payable 171 | ``` 172 | 173 | `msg.value` payable: The amount of ether to be repaid, in wei. 174 | 175 | `msg.sender:` The account which borrowed the asset, and shall repay the borrow 176 | 177 | `RETURN:` 0 on success, otherwise an Error code 178 | 179 | ### Solidity 180 | 181 | ```jsx 182 | CEther crToken = CEther(0x3FDB...); 183 | require(crToken.repayBorrow.value(100() == 0, "transfer approved?");const crToken = CErc20.at(0x3FDA...); 184 | crToken.methods.repayBorrow(10000).send({from: ...}); 185 | ``` 186 | 187 | ### Web3 1.0 188 | 189 | ```jsx 190 | const crToken = CEther.at(0x3FDA...); 191 | await crToken.methods.borrow(50).send({from: 0xMyAccount}); 192 | ``` 193 | 194 | ## **Repay Borrow Behalf** 195 | 196 | The repay function transfers an asset into the protocol, reducing the target user's borrow balance. 197 | 198 | ### CErc20 199 | 200 | ```jsx 201 | function repayBorrowBehalf(address borrower, uint repayAmount) returns (uint) 202 | ``` 203 | 204 | `msg.sender:` The account to which shall repay the borrow 205 | 206 | `borrowAmount:` The account which borrowed the asset to be repaid. 207 | 208 | `repayAmount`: The amount of the underlying borrowed asset to be repaid. A value of -1 \(i.e. 2^256 - 1\) can be used to repay the full amount. 209 | 210 | `RETURN:` 0 on success, otherwise an Error code 211 | 212 | Before repaying an asset, users must first approve the crToken to access their token balance. 213 | 214 | ### **CEther** 215 | 216 | ```jsx 217 | function repayBorrowBehalf(address borrower) payable 218 | ``` 219 | 220 | `msg.valuepayable:` The amount of ether to be repaid, in wei. 221 | 222 | `msg.sender:` The account which shall repay the borrow. 223 | 224 | `borrower:` The account which borrowed the asset to be repaid. 225 | 226 | `RETURN:` No return, reverts on error. 227 | 228 | ### **Solidity** 229 | 230 | ```jsx 231 | CEther crToken = CEther(0x3FDB...); 232 | require(crToken.repayBorrowBehalf.value(100)(0xBorrower) == 0, "transfer approved?"); 233 | ``` 234 | 235 | ### **Web3 1.0** 236 | 237 | ```jsx 238 | const crToken = CErc20.at(0x3FDA...); 239 | await crToken.methods.repayBorrowBehalf(0xBorrower, 10000).send({from: 0xPayer}); 240 | ``` 241 | 242 | ## **Liquidate Borrow** 243 | 244 | A user who has negative account liquidity is subject to liquidation by other users of the protocol to return his/her account liquidity back to positive \(i.e. above the collateral requirement\). When a liquidation occurs, a liquidator may repay some or all of an outstanding borrow on behalf of a borrower and in return receive a discounted amount of collateral held by the borrower; this discount is defined as the liquidation incentive. 245 | 246 | A liquidator may close up to a certain fixed percentage \(i.e. close factor\) of any individual outstanding borrow of the underwater account. When collateral is seized, the liquidator is transferred crTokens which they may redeem the same as if they had supplied the asset themselves. Users must approve each crToken contract before calling liquidate \(i.e. on the borrowed asset which they are repaying\), as they are transferring funds into the contract. 247 | 248 | ### **CErc20** 249 | 250 | ```jsx 251 | function liquidateBorrow(address borrower, uint amount, address collateral) returns (uint) 252 | ``` 253 | 254 | `msg.sender:` The account which shall liquidate the borrower by repaying their debt and seizing their collateral. 255 | 256 | `borrower:` The account with negative account liquidity that shall be liquidated. 257 | 258 | `repayAmount:` The amount of the borrowed asset to be repaid and converted into collateral, specified in units of the underlying borrowed asset. 259 | 260 | `cTokenCollateral:` The address of the crToken currently held as collateral by a borrower, that the liquidator shall seize. 261 | 262 | `RETURN:` 0 on success, otherwise an Error code 263 | 264 | Before supplying an asset, users must first approve the crToken to access their token balance. 265 | 266 | ### CEther 267 | 268 | ```jsx 269 | function liquidateBorrow(address borrower, address crTokenCollateral) payable 270 | ``` 271 | 272 | `msg.valuepayable:` The amount of ether to be repaid and converted into collateral, in wei. 273 | 274 | `msg.sender:` The account which shall liquidate the borrower by repaying their debt and seizing their collateral. 275 | 276 | `borrower:` The account with negative [account liquidity](https://compound.finance/docs/comptroller#account-liquidity) that shall be liquidated. 277 | 278 | `crTokenCollateral:` The address of the crToken currently held as collateral by a borrower, that the liquidator shall seize. 279 | 280 | `RETURN:` No return, reverts on error. 281 | 282 | ### Solidity 283 | 284 | ```jsx 285 | CEther crToken = CEther(0x3FDB...); 286 | CErc20 crTokenCollateral = CErc20(0x3FDA...); 287 | require(crToken.liquidateBorrow.value(100)(0xBorrower, crTokenCollateral) == 0, "borrower underwater??"); 288 | ``` 289 | 290 | ### **Web3 1.0** 291 | 292 | ```jsx 293 | const crToken = CErc20.at(0x3FDA...); 294 | const crTokenCollateral = CEther.at(0x3FDB...); 295 | await crToken.methods.liquidateBorrow(0xBorrower, 33, crTokenCollateral).send({from: 0xLiquidator}); 296 | ``` 297 | 298 | ## **Exchange Rate** 299 | 300 | Each crToken is convertible into an ever increasing quantity of the underlying asset, as interest accrues in the market. The exchange rate between a crToken and the underlying asset is equal to: 301 | 302 | ```jsx 303 | exchangeRate = (getCash() + totalBorrows() - totalReserves()) / totalSupply() 304 | ``` 305 | 306 | ### CErc20/CEther 307 | 308 | ```jsx 309 | function exchangeRateCurrent() returns (uint) 310 | ``` 311 | 312 | ### Solidity 313 | 314 | ```jsx 315 | CErc20 crToken = CrToken(0x3FDA...); 316 | uint exchangeRateMantissa = crToken.exchangeRateCurrent(); 317 | ``` 318 | 319 | ### Web3 1.0 320 | 321 | ```jsx 322 | const crToken = CEther.at(0x3FDB...); 323 | const exchangeRate = (await crToken.methods.exchangeRateCurrent().call()) / 1e18; 324 | ``` 325 | 326 | Tip: note the use of call vs. send to invoke the function from off-chain without incurring gas costs. 327 | 328 | ## Get Cash 329 | 330 | Cash is the amount of underlying balance owned by this crToken contract. One may query the total amount of cash currently available to this market. 331 | 332 | ### CErc20/CEther 333 | 334 | ```jsx 335 | function getCash() returns (unit) 336 | ``` 337 | 338 | `RETURN:` The quantity of underlying asset owned by the contract. 339 | 340 | ### Solidity 341 | 342 | ```jsx 343 | CErc20 crToken = CrToken(0x3FDA...); 344 | uint cash = crToken.getCash(); 345 | ``` 346 | 347 | ### Web3 1.0 348 | 349 | ```jsx 350 | const crToken = CEther.at(0x3FDB...); 351 | const cash = (await crToken.methods.getCash().call()); 352 | ``` 353 | 354 | ## Total Borrow 355 | 356 | Total Borrows is the amount of underlying currently loaned out by the market, and the amount upon which interest is accumulated to suppliers of the market. 357 | 358 | ### CErc20/CEther 359 | 360 | ```jsx 361 | function totalBorrowCurrent() returns (unit) 362 | ``` 363 | 364 | `RETURN:` The total amount of borrowed underlying, with interest. 365 | 366 | ### Solidity 367 | 368 | ```jsx 369 | CErc20 crToken = CToken(0x3FDA...); 370 | uint borrows = crToken.totalBorrowsCurrent(); 371 | ``` 372 | 373 | ### Web3 1.0 374 | 375 | ```jsx 376 | crToken = CEther.at(0x3FDB...); 377 | const borrows = (await crToken.methods.totalBorrowsCurrent().call()); 378 | ``` 379 | 380 | ## Borrow Balance 381 | 382 | A user who borrows assets from the protocol is subject to accumulated interest based on the current borrow rate. Interest is accumulated every block and integrations may use this function to obtain the current value of a user's borrow balance with interest. 383 | 384 | ### CErc20/CEther 385 | 386 | ```jsx 387 | function borrowBalanceCurrent(addressacount) returns (unit) 388 | ``` 389 | 390 | `RETURN:` The total amount of borrowed underlying, with interest. 391 | 392 | ### Solidity 393 | 394 | ```jsx 395 | CErc20 crToken = CToken(0x3FDA...); 396 | uint borrows = crToken.borrowBalanceCurrent(msg.caller); 397 | ``` 398 | 399 | ### Web3 1.0 400 | 401 | ```jsx 402 | crToken = CEther.at(0x3FDB...); 403 | const borrows = await crToken.methods.totalBorrowsCurrent(account).call(); 404 | ``` 405 | 406 | ## Borrow Rate 407 | 408 | At any point in time one may query the contract to get the current borrow rate per block. 409 | 410 | ### CErc20/CEther 411 | 412 | ```jsx 413 | function borrowRatePerBlock() returns (unit) 414 | ``` 415 | 416 | `RETURN:` The total amount of borrowed underlying, with interest. 417 | 418 | ### Solidity 419 | 420 | ```jsx 421 | CErc20 crToken = CToken(0x3FDA...); 422 | uint borrowRateMantissa = crToken.borrowRatePerBlock(); 423 | ``` 424 | 425 | ### Web3 1.0 426 | 427 | ```jsx 428 | crToken = CEther.at(0x3FDB...); 429 | const borrowRate = (await crToken.methods.borrowRatePerBlock().call()); 430 | ``` 431 | 432 | ## Total Supply 433 | 434 | Total Supply is the number of tokens currently in circulation in this crToken market. It is part of the EIP-20 interface of the crToken contract. 435 | 436 | ### CErc20/CEther 437 | 438 | ```jsx 439 | function totalSupply() returns (unit) 440 | ``` 441 | 442 | `RETURN:` The total number of tokens in circulation for the market. 443 | 444 | ### Solidity 445 | 446 | ```jsx 447 | CErc20 crToken = CToken(0x3FDA...); 448 | uint tokens = crToken.totalSupply(); 449 | ``` 450 | 451 | ### Web3 1.0 452 | 453 | ```jsx 454 | crToken = CEther.at(0x3FDB...); 455 | const tokens = (await crToken.methods.totalSupply().call()); 456 | ``` 457 | 458 | ## Underlying Balance 459 | 460 | The user's underlying balance, representing their assets in the protocol, is equal to the user's crToken balance multiplied by the Exchange Rate. 461 | 462 | ### CErc20/CEther 463 | 464 | ```jsx 465 | function balanceOfUnderlying(address account) returns (unit) 466 | ``` 467 | 468 | `account:` The account to get the underlying balance of. 469 | 470 | `RETURN:` The amount of underlying currently owned by the account. 471 | 472 | ### Solidity 473 | 474 | ```jsx 475 | CErc20 crToken = CToken(0x3FDA...); 476 | uint tokens = crToken.balanceOfUnderlying(msg.caller); 477 | ``` 478 | 479 | ### Web3 1.0 480 | 481 | ```jsx 482 | crToken = CEther.at(0x3FDB...); 483 | const tokens = await crToken.methods.balanceOfUnderlying(account).call(); 484 | ``` 485 | 486 | ## Supply Rate 487 | 488 | At any point in time one may query the contract to get the current supply rate per block. The supply rate is derived from the borrow rate, reserve factor and the amount of total borrows. 489 | 490 | ### CErc20/CEther 491 | 492 | ```jsx 493 | function supplyRatePerBlock() returns (unit) 494 | ``` 495 | 496 | `RETURN:` The current supply rate as an unsigned integer, scaled by 1e18. 497 | 498 | ### Solidity 499 | 500 | ```jsx 501 | CErc20 crToken = CToken(0x3FDA...); 502 | uint supplyRateMantissa = crToken.supplyRatePerBlock(); 503 | ``` 504 | 505 | ### Web3 1.0 506 | 507 | ```jsx 508 | const cToken = CEther.at(0x3FDB...); 509 | const supplyRate = (await cToken.methods.supplyRatePerBlock().call()) / 1e18; 510 | ``` 511 | 512 | ## Total Reserves 513 | 514 | Reserves are an accounting entry in each crToken contract that represents a portion of historical interest set aside as cash which can be withdrawn or transferred through the protocol's governance. A small portion of borrower interest accrues into the protocol, determined by the reserve factor. 515 | 516 | ### CErc20/CEther 517 | 518 | ```jsx 519 | function totalReserves() returns (unit) 520 | ``` 521 | 522 | `RETURN:` The total amount of reserves held in the market 523 | 524 | ### Solidity 525 | 526 | ```jsx 527 | CErc20 crToken = CToken(0x3FDA...); 528 | uint reserves = crToken.totalReserves(); 529 | ``` 530 | 531 | ### Web3 1.0 532 | 533 | ```jsx 534 | const crToken = CEther.at(0x3FDB...); 535 | const reserves = (await crToken.methods.totalReserves().call()); 536 | ``` 537 | 538 | ## Reserve Factor 539 | 540 | The reserve factor defines the portion of borrower interest that is converted into reserves. 541 | 542 | ### CErc20/CEther 543 | 544 | ```jsx 545 | function reserveFactorMantissa() returns (unit) 546 | ``` 547 | 548 | `RETURN:` The current reserve factor as an unsigned itneger, scaled by 1e18. 549 | 550 | ### Solidity 551 | 552 | ```jsx 553 | CErc20 crToken = CToken(0x3FDA...); 554 | uint reserveFactorMantissa = crconst cToken = CEther.at(0x3FDB...); 555 | const reserveFactor = (await cToken.methods.reserveFactorMantissa().call()) / 1e18;Token.reserveFactorMantissa(); 556 | ``` 557 | 558 | ### Web3 1.0 559 | 560 | ```jsx 561 | const crToken = CEther.at(0x3FDB...); 562 | const reserves = (await crToken.methods.totalReserves().call()); 563 | ``` 564 | 565 | -------------------------------------------------------------------------------- /developer/error-codes/README.md: -------------------------------------------------------------------------------- 1 | # Error Codes 2 | 3 | {% page-ref page="crtokens.md" %} 4 | 5 | {% page-ref page="comptroller.md" %} 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /developer/error-codes/comptroller.md: -------------------------------------------------------------------------------- 1 | # Comptroller 2 | 3 | ## Error Codes 4 | 5 | | Code | Name | Description | 6 | | :--- | :--- | :--- | 7 | | 0 | NO\_ERROR | Not a failure. | 8 | | 1 | UNAUTHORIZED | The sender is not authorized to perform this action. | 9 | | 2 | COMPTROLLER\_MISMATCH | Liquidation cannot be performed in markets with different comptrollers. | 10 | | 3 | INSUFFICIENT\_SHORTFALL | The account does not have sufficient shortfall to perform this action. | 11 | | 4 | INSUFFICIENT\_LIQUIDITY | The account does not have sufficient liquidity to perform this action. | 12 | | 5 | INVALID\_CLOSE\_FACTOR | The close factor is not valid. | 13 | | 6 | INVALID\_COLLATERAL\_FACTOR | The collateral factor is not valid. | 14 | | 7 | INVALID\_LIQUIDATION\_INCENTIVE | The liquidation incentive is invalid. | 15 | | 8 | MARKET\_NOT\_ENTERED | The market has not been entered by the account. | 16 | | 9 | MARKET\_NOT\_LISTED | The market is not currently listed by the comptroller. | 17 | | 10 | MARKET\_ALREADY\_LISTED | An admin tried to list the same market more than once. | 18 | | 11 | MATH\_ERROR | A math calculation error occurred. | 19 | | 12 | NONZERO\_BORROW\_BALANCE | The action cannot be performed since the account carries a borrow balance. | 20 | | 13 | PRICE\_ERROR | The comptroller could not obtain a required price of an asset. | 21 | | 14 | REJECTION | The comptroller rejects the action requested by the market. | 22 | | 15 | SNAPSHOT\_ERROR | The comptroller could not get the account borrows and exchange rate from the market. | 23 | | 16 | TOO\_MANY\_ASSETS | Attempted to enter more markets than are currently supported. | 24 | | 17 | TOO\_MUCH\_REPAY | Attempted to repay more than is allowed by the protocol. | 25 | 26 | ## Failure Info 27 | 28 | | Code | Name | 29 | | :--- | :--- | 30 | | 0 | ACCEPT\_ADMIN\_PENDING\_ADMIN\_CHECK | 31 | | 1 | ACCEPT\_PENDING\_IMPLEMENTATION\_ADDRESS\_CHECK | 32 | | 2 | EXIT\_MARKET\_BALANCE\_OWED | 33 | | 3 | EXIT\_MARKET\_REJECTION | 34 | | 4 | SET\_CLOSE\_FACTOR\_OWNER\_CHECK | 35 | | 5 | SET\_CLOSE\_FACTOR\_VALIDATION | 36 | | 6 | SET\_COLLATERAL\_FACTOR\_OWNER\_CHECK | 37 | | 7 | SET\_COLLATERAL\_FACTOR\_NO\_EXISTS | 38 | | 8 | SET\_COLLATERAL\_FACTOR\_VALIDATION | 39 | | 9 | SET\_COLLATERAL\_FACTOR\_WITHOUT\_PRICE | 40 | | 10 | SET\_IMPLEMENTATION\_OWNER\_CHECK | 41 | | 11 | SET\_LIQUIDATION\_INCENTIVE\_OWNER\_CHECK | 42 | | 12 | SET\_LIQUIDATION\_INCENTIVE\_VALIDATION | 43 | | 13 | SET\_MAX\_ASSETS\_OWNER\_CHECK | 44 | | 14 | SET\_PENDING\_ADMIN\_OWNER\_CHECK | 45 | | 15 | SET\_PENDING\_IMPLEMENTATION\_OWNER\_CHECK | 46 | | 16 | SET\_PRICE\_ORACLE\_OWNER\_CHECK | 47 | | 17 | SUPPORT\_MARKET\_EXISTS | 48 | | 18 | SUPPORT\_MARKET\_OWNER\_CHECK | 49 | 50 | -------------------------------------------------------------------------------- /developer/error-codes/crtokens.md: -------------------------------------------------------------------------------- 1 | # crTokens 2 | 3 | ## Error codes 4 | 5 | | Code | Name | Description | 6 | | :--- | :--- | :--- | 7 | | 0 | NO\_ERROR | Not a failure. | 8 | | 1 | UNAUTHORIZED | The sender is not authorized to perform this action. | 9 | | 2 | BAD\_INPUT | An invalid argument was supplied by the caller. | 10 | | 3 | COMPTROLLER\_REJECTION | The action would violate the comptroller policy. | 11 | | 4 | COMPTROLLER\_CALCULATION\_ERROR | An internal calculation has failed in the comptroller. | 12 | | 5 | INTEREST\_RATE\_MODEL\_ERROR | The interest rate model returned an invalid value. | 13 | | 6 | INVALID\_ACCOUNT\_PAIR | The specified combination of accounts is invalid. | 14 | | 7 | INVALID\_CLOSE\_AMOUNT\_REQUESTED | The amount to liquidate is invalid. | 15 | | 8 | INVALID\_COLLATERAL\_FACTOR | The collateral factor is invalid. | 16 | | 9 | MATH\_ERROR | A math calculation error occurred. | 17 | | 10 | MARKET\_NOT\_FRESH | Interest has not been properly accrued. | 18 | | 11 | MARKET\_NOT\_LISTED | The market is not currently listed by its comptroller. | 19 | | 12 | TOKEN\_INSUFFICIENT\_ALLOWANCE | ERC-20 contract must allow Money Market contract to call transferFrom. The current allowance is either 0 or less than the requested supply, repayBorrow or liquidate amount. | 20 | | 13 | TOKEN\_INSUFFICIENT\_BALANCE | Caller does not have sufficient balance in the ERC-20 contract to complete the desired action. | 21 | | 14 | TOKEN\_INSUFFICIENT\_CASH | The market does not have a sufficient cash balance to complete the transaction. You may attempt this transaction again later. | 22 | | 15 | TOKEN\_TRANSFER\_IN\_FAILED | Failure in ERC-20 when transfering token into the market. | 23 | | 16 | TOKEN\_TRANSFER\_OUT\_FAILED | Failure in ERC-20 when transfering token out of the market. | 24 | 25 | ## Failure Info 26 | 27 | | Code | Name | 28 | | :--- | :--- | 29 | | 0 | ACCEPT\_ADMIN\_PENDING\_ADMIN\_CHECK | 30 | | 1 | ACCRUE\_INTEREST\_ACCUMULATED\_INTEREST\_CALCULATION\_FAILED | 31 | | 2 | ACCRUE\_INTEREST\_BORROW\_RATE\_CALCULATION\_FAILED | 32 | | 3 | ACCRUE\_INTEREST\_NEW\_BORROW\_INDEX\_CALCULATION\_FAILED | 33 | | 4 | ACCRUE\_INTEREST\_NEW\_TOTAL\_BORROWS\_CALCULATION\_FAILED | 34 | | 5 | ACCRUE\_INTEREST\_NEW\_TOTAL\_RESERVES\_CALCULATION\_FAILED | 35 | | 6 | ACCRUE\_INTEREST\_SIMPLE\_INTEREST\_FACTOR\_CALCULATION\_FAILED | 36 | | 7 | BORROW\_ACCUMULATED\_BALANCE\_CALCULATION\_FAILED | 37 | | 8 | BORROW\_ACCRUE\_INTEREST\_FAILED | 38 | | 9 | BORROW\_CASH\_NOT\_AVAILABLE | 39 | | 10 | BORROW\_FRESHNESS\_CHECK | 40 | | 11 | BORROW\_NEW\_TOTAL\_BALANCE\_CALCULATION\_FAILED | 41 | | 12 | BORROW\_NEW\_ACCOUNT\_BORROW\_BALANCE\_CALCULATION\_FAILED | 42 | | 13 | BORROW\_MARKET\_NOT\_LISTED | 43 | | 14 | BORROW\_COMPTROLLER\_REJECTION | 44 | | 15 | LIQUIDATE\_ACCRUE\_BORROW\_INTEREST\_FAILED | 45 | | 16 | LIQUIDATE\_ACCRUE\_COLLATERAL\_INTEREST\_FAILED | 46 | | 17 | LIQUIDATE\_COLLATERAL\_FRESHNESS\_CHECK | 47 | | 18 | LIQUIDATE\_COMPTROLLER\_REJECTION | 48 | | 19 | LIQUIDATE\_COMPTROLLER\_CALCULATE\_AMOUNT\_SEIZE\_FAILED | 49 | | 20 | LIQUIDATE\_CLOSE\_AMOUNT\_IS\_UINT\_MAX | 50 | | 21 | LIQUIDATE\_CLOSE\_AMOUNT\_IS\_ZERO | 51 | | 22 | LIQUIDATE\_FRESHNESS\_CHECK | 52 | | 23 | LIQUIDATE\_LIQUIDATOR\_IS\_BORROWER | 53 | | 24 | LIQUIDATE\_REPAY\_BORROW\_FRESH\_FAILED | 54 | | 25 | LIQUIDATE\_SEIZE\_BALANCE\_INCREMENT\_FAILED | 55 | | 26 | LIQUIDATE\_SEIZE\_BALANCE\_DECREMENT\_FAILED | 56 | | 27 | LIQUIDATE\_SEIZE\_COMPTROLLER\_REJECTION | 57 | | 28 | LIQUIDATE\_SEIZE\_LIQUIDATOR\_IS\_BORROWER | 58 | | 29 | LIQUIDATE\_SEIZE\_TOO\_MUCH | 59 | | 30 | MINT\_ACCRUE\_INTEREST\_FAILED | 60 | | 31 | MINT\_COMPTROLLER\_REJECTION | 61 | | 32 | MINT\_EXCHANGE\_CALCULATION\_FAILED | 62 | | 33 | MINT\_EXCHANGE\_RATE\_READ\_FAILED | 63 | | 34 | MINT\_FRESHNESS\_CHECK | 64 | | 35 | MINT\_NEW\_ACCOUNT\_BALANCE\_CALCULATION\_FAILED | 65 | | 36 | MINT\_NEW\_TOTAL\_SUPPLY\_CALCULATION\_FAILED | 66 | | 37 | MINT\_TRANSFER\_IN\_FAILED | 67 | | 38 | MINT\_TRANSFER\_IN\_NOT\_POSSIBLE | 68 | | 39 | REDEEM\_ACCRUE\_INTEREST\_FAILED | 69 | | 40 | REDEEM\_COMPTROLLER\_REJECTION | 70 | | 41 | REDEEM\_EXCHANGE\_TOKENS\_CALCULATION\_FAILED | 71 | | 42 | REDEEM\_EXCHANGE\_AMOUNT\_CALCULATION\_FAILED | 72 | | 43 | REDEEM\_EXCHANGE\_RATE\_READ\_FAILED | 73 | | 44 | REDEEM\_FRESHNESS\_CHECK | 74 | | 45 | REDEEM\_NEW\_ACCOUNT\_BALANCE\_CALCULATION\_FAILED | 75 | | 46 | REDEEM\_NEW\_TOTAL\_SUPPLY\_CALCULATION\_FAILED | 76 | | 47 | REDEEM\_TRANSFER\_OUT\_NOT\_POSSIBLE | 77 | | 48 | REDUCE\_RESERVES\_ACCRUE\_INTEREST\_FAILED | 78 | | 49 | REDUCE\_RESERVES\_ADMIN\_CHECK | 79 | | 50 | REDUCE\_RESERVES\_CASH\_NOT\_AVAILABLE | 80 | | 51 | REDUCE\_RESERVES\_FRESH\_CHECK | 81 | | 52 | REDUCE\_RESERVES\_VALIDATION | 82 | | 53 | REPAY\_BEHALF\_ACCRUE\_INTEREST\_FAILED | 83 | | 54 | REPAY\_BORROW\_ACCRUE\_INTEREST\_FAILED | 84 | | 55 | REPAY\_BORROW\_ACCUMULATED\_BALANCE\_CALCULATION\_FAILED | 85 | | 56 | REPAY\_BORROW\_COMPTROLLER\_REJECTION | 86 | | 57 | REPAY\_BORROW\_FRESHNESS\_CHECK | 87 | | 58 | REPAY\_BORROW\_NEW\_ACCOUNT\_BORROW\_BALANCE\_CALCULATION\_FAILED | 88 | | 59 | REPAY\_BORROW\_NEW\_TOTAL\_BALANCE\_CALCULATION\_FAILED | 89 | | 60 | REPAY\_BORROW\_TRANSFER\_IN\_NOT\_POSSIBLE | 90 | | 61 | SET\_COLLATERAL\_FACTOR\_OWNER\_CHECK | 91 | | 62 | SET\_COLLATERAL\_FACTOR\_VALIDATION | 92 | | 63 | SET\_COMPTROLLER\_OWNER\_CHECK | 93 | | 64 | SET\_INTEREST\_RATE\_MODEL\_ACCRUE\_INTEREST\_FAILED | 94 | | 65 | SET\_INTEREST\_RATE\_MODEL\_FRESH\_CHECK | 95 | | 66 | SET\_INTEREST\_RATE\_MODEL\_OWNER\_CHECK | 96 | | 67 | SET\_MAX\_ASSETS\_OWNER\_CHECK | 97 | | 68 | SET\_ORACLE\_MARKET\_NOT\_LISTED | 98 | | 69 | SET\_PENDING\_ADMIN\_OWNER\_CHECK | 99 | | 70 | SET\_RESERVE\_FACTOR\_ACCRUE\_INTEREST\_FAILED | 100 | | 71 | SET\_RESERVE\_FACTOR\_ADMIN\_CHECK | 101 | | 72 | SET\_RESERVE\_FACTOR\_FRESH\_CHECK | 102 | | 73 | SET\_RESERVE\_FACTOR\_BOUNDS\_CHECK | 103 | | 74 | TRANSFER\_COMPTROLLER\_REJECTION | 104 | | 75 | TRANSFER\_NOT\_ALLOWED | 105 | | 76 | TRANSFER\_NOT\_ENOUGH | 106 | | 77 | TRANSFER\_TOO\_MUCH | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /developer/key-events.md: -------------------------------------------------------------------------------- 1 | # Key Events 2 | 3 | ## crTokens 4 | 5 | | Event | Description | 6 | | :--- | :--- | 7 | | Mint\(address minter, uint mintAmount, uint mintTokens\) | Emitted upon a successful Mint | 8 | | Redeem\(address redeemer, uint redeemAmount, uint redeemTokens\) | Emitted upon a successful Redeem | 9 | | Borrow\(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows\) | Emitted upon a successful Borrow | 10 | | RepayBorrow\(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows\) | Emitted upon a successful Repay Borrow | 11 | | LiquidateBorrow\(address liquidator, address borrower, uint repayAmount, address crTokenCollateral, uint seizeTokens\) | Emitted upon a successful Liquidate Borrow | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /developer/subgraph-graphql.md: -------------------------------------------------------------------------------- 1 | # Subgraph (GraphQL) 2 | 3 | {% hint style="info" %} 4 | Everyone is welcomed to use our API key `5059cba3a9ff00f6d6878c45a8fc304e` to make queries on the subgraphs below 5 | {% endhint %} 6 | 7 | ### Lending 8 | 9 | * Playground: [https://thegraph.com/explorer/subgraph?id=0x197939c1ca20c2b506d6811d8b6cdb3394471074-0\&view=Overview](https://thegraph.com/explorer/subgraph?id=0x197939c1ca20c2b506d6811d8b6cdb3394471074-0\&view=Overview) 10 | * Query URL: `https://gateway.thegraph.com/api/5059cba3a9ff00f6d6878c45a8fc304e/subgraphs/id/0x197939c1ca20c2b506d6811d8b6cdb3394471074-0` 11 | 12 | ### Iron Bank 13 | 14 | * Playground: [https://thegraph.com/explorer/subgraph?id=0x197939c1ca20c2b506d6811d8b6cdb3394471074-1\&view=Overview](https://thegraph.com/explorer/subgraph?id=0x197939c1ca20c2b506d6811d8b6cdb3394471074-1\&view=Overview) 15 | * Query URL: `https://gateway.thegraph.com/api/5059cba3a9ff00f6d6878c45a8fc304e/subgraphs/id/0x197939c1ca20c2b506d6811d8b6cdb3394471074-1` 16 | -------------------------------------------------------------------------------- /developer/testnet.md: -------------------------------------------------------------------------------- 1 | # Testnet 2 | 3 | ## Contract Deployment Script 4 | 5 | [GitHub repo](https://github.com/CreamFi/cream-deployment) 6 | 7 | ### Installation 8 | 9 | ``` 10 | git clone https://github.com/CreamFi/cream-deployment 11 | cd cream-deployment 12 | yarn install 13 | ``` 14 | 15 | ### Setup 16 | 17 | ``` 18 | cp .env.default .env 19 | ``` 20 | 21 | Fill in environment variables 22 | 23 | ### Deploy 24 | 25 | ``` 26 | npx hardhat run scripts/deployComptroller.js --network 27 | ``` 28 | 29 | ### App in Testnet 30 | 31 | We support Göerli. Go to [testnet.cream.finance](https://testnet.cream.finance) 32 | -------------------------------------------------------------------------------- /eth2/ethereum-2.0-contract-address.md: -------------------------------------------------------------------------------- 1 | # CRETH2 Contract Address 2 | 3 | ### Ethereum 2.0 Deposit Contract 4 | 5 | [0x00000000219ab540356cbb839cbe05303d7705fa](https://etherscan.io/address/0x00000000219ab540356cbb839cbe05303d7705fa) 6 | 7 | ### CRETH2 Deposit Contract 8 | 9 | ~~~~[~~0xcbc1065255cbc3ab41a6868c22d1f1c573ab89fd~~](https://etherscan.io/address/0xcbc1065255cbc3ab41a6868c22d1f1c573ab89fd#code) (exploited) 10 | 11 | [0x49D72e3973900A195A155a46441F0C08179FdB64](https://etherscan.io/address/0x49D72e3973900A195A155a46441F0C08179FdB64) 12 | 13 | ### Staking Reward Pool 14 | 15 | | Contract | Address | 16 | | -------------- | --------------------------------------------------------------------------------------------------------------------- | 17 | | ~~CRETH2~~ | [0x9d2850c3112b5fb851c4aae23c1e97c1736898cb](https://etherscan.io/address/0x9d2850c3112b5fb851c4aae23c1e97c1736898cb) | 18 | | ~~CRETH/WETH~~ | [0x2689008DCda0c2b744B344B9e5a3D5A042c227Da](https://etherscan.io/address/0x2689008DCda0c2b744B344B9e5a3D5A042c227Da) | 19 | -------------------------------------------------------------------------------- /eth2/migration-schedule.md: -------------------------------------------------------------------------------- 1 | # Migration Schedule 2 | 3 | ## Ethereum 2.0 Migration Schedule 4 | 5 | ETH2 will be released in several phases. 6 | 7 | ![](../.gitbook/assets/timeline_deposit_contract_launch.d09b4bf3.svg) 8 | 9 | Phase 0 contains all of the machinery behind ETH2's PoS consensus, it tracks the validators and their balances. 10 | 11 | Phase 1 handles adding, storing, and retrieving the data associated with ETH2's shards. 12 | 13 | Phase 1.5 updates Ethereum as we know it today from PoW to PoS by making it a shard under 2. 14 | 15 | Phase 2 adds execution to the remaining ETH2 shards which enables smart contracts to run on all of the shards. 16 | 17 | ### The Beacon Chain 18 | 19 | [Beacon Chain](https://ethereum.org/en/eth2/beacon-chain/) is known as phase 0 in the roadmap. The beacon chain doesn't change anything about the Ethereum we use today. It will coordinate the network, and introduces proof-of-stake to the Ethereum ecosystem. 20 | 21 | This is estimated to deliver in Dec 01, 2020. 22 | 23 | ### Shard Chains 24 | 25 | [Shard Chains](https://ethereum.org/en/eth2/shard-chains/) is included in phase 1 and phase 2. Sharding is a multi-phase upgrade to improve Ethereum’s scalability and capacity. Shard chains spread the network's load across 64 new chains. They make it easier to run a node by keeping hardware requirements low. 26 | 27 | This is estimated to deliver in 2021. 28 | 29 | ### The Docking 30 | 31 | [Docking mainnet with ETH2](https://ethereum.org/en/eth2/docking/) is known as phase 1.5 in the roadmap. Eventually the current Ethereum mainnet will "dock" with the rest of the ETH2 upgrades. The docking will merge "ETH1" mainnet with the ETH2 beacon chain and sharding system. This will mark the end of proof-of-work for Ethereum, and the full transition to proof of stake. 32 | 33 | This is estimated to deliver in 2022. 34 | 35 | ## C.R.E.A.M. to Ethereum 2.0 Schedule 36 | 37 | ### Conservative Migration 38 | 39 | For the safety of the protocol, the migration process will be done conservatively. 40 | 41 | We will not deposit a large batch to [ETH2 deposit contract](https://etherscan.io/address/0x00000000219ab540356cbb839cbe05303d7705fa). Once we verify that the whole mechanism is stable and robust after phase 0 kicks off, we will continuously deposit to ETH2 contract. 42 | 43 | However, full plan is hard to reveal at the moment, for other than stable and safety there are still factors affecting our implementation like reward model and APR. The effect of these factors are dynamically changing and we will find the way to balance and optimize them all. 44 | 45 | ### Transactions 46 | 47 | | Number | ETH | Transaction Address | 48 | | :--- | :--- | :--- | 49 | | 0 | 32 | [0xee65019cfd98cd7c70d1fafb7ddf16692d8d5d4b9a6d308c55d4109d3671cf32](https://etherscan.io/tx/0xee65019cfd98cd7c70d1fafb7ddf16692d8d5d4b9a6d308c55d4109d3671cf32) | 50 | | 1 ~ 19 | 608 | [0xf8516ee875af706f4fb59627e33d1258780521502d96888226c5b5af219ac1bc](https://etherscan.io/tx/0xf8516ee875af706f4fb59627e33d1258780521502d96888226c5b5af219ac1bc) | 51 | | 20 ~ 119 | 3,200 | [0xed3859672bc9a40ae6588ad85e4e426c0bcc8b90a46fe929a041c32a894b46e1](https://etherscan.io/tx/0xed3859672bc9a40ae6588ad85e4e426c0bcc8b90a46fe929a041c32a894b46e1) | 52 | | 120 ~ 149 | 960 | [0x60c51dd40578a71981da88674894e5330c5bcf0fc825d2e0692030414e375dc6](https://etherscan.io/tx/0x60c51dd40578a71981da88674894e5330c5bcf0fc825d2e0692030414e375dc6) | 53 | | 150 ~ 249 | 3,200 | [0x0d4f41b1a23a383dd2aeb9ce66f00467196a3f5ac3c09b90d674f4ca2e964d7d](https://etherscan.io/tx/0x0d4f41b1a23a383dd2aeb9ce66f00467196a3f5ac3c09b90d674f4ca2e964d7d) | 54 | | 250 ~ 349 | 3,200 | [0x712d549398bc116dd618e3ad0da26599e8bba3632a029a8443cc338d297a69b9](https://etherscan.io/tx/0x712d549398bc116dd618e3ad0da26599e8bba3632a029a8443cc338d297a69b9) | 55 | | 350 ~ 449 | 3,200 | [0xd0f7f9889efa7fb6aca7f3c5c8c5bbc2fbbdbd4154c096755f21470e6c7ce3ee](https://etherscan.io/tx/0xd0f7f9889efa7fb6aca7f3c5c8c5bbc2fbbdbd4154c096755f21470e6c7ce3ee) | 56 | | 450 ~ 499 | 1,600 | [0xddfd735cb8f0ed15fc360b6e02ff5483639490c4657f2422fb2eaae1f73ab088](https://etherscan.io/tx/0xddfd735cb8f0ed15fc360b6e02ff5483639490c4657f2422fb2eaae1f73ab088) | 57 | | 500 ~ 529 | 960 | [0x39d906b37c5be86199637f8d324834ac69fe82921dc6d20e62f306334413db81](https://etherscan.io/tx/0x39d906b37c5be86199637f8d324834ac69fe82921dc6d20e62f306334413db81) | 58 | | 530 ~ 579 | 1600 | [0x2a8b43c163c45a9e422a933512cef90a5d52651c31f542a81f6a9e3eabc0e410](https://etherscan.io/tx/0x2a8b43c163c45a9e422a933512cef90a5d52651c31f542a81f6a9e3eabc0e410) | 59 | | 580 ~ 609 | 960 | [0xb4e80df35055d38817f2a2c3a384bf1153a11f8dffa6c2dd73b8c311f59027a7](https://etherscan.io/tx/0xb4e80df35055d38817f2a2c3a384bf1153a11f8dffa6c2dd73b8c311f59027a7) | 60 | | 610 ~ 709 | 3,200 | [0xb0e1e99cfa3fe9bb94e543511bcfee36d4882264a1fb8a58be8225a0220d5592](https://etherscan.io/tx/0xb0e1e99cfa3fe9bb94e543511bcfee36d4882264a1fb8a58be8225a0220d5592) | 61 | | 710 ~ 749 | 1,280 | [0x6faf632cb3c37b19da98823a6a73d5de3e29fc8ce81a0c34ac1d2c57132d79d2](https://etherscan.io/tx/0x6faf632cb3c37b19da98823a6a73d5de3e29fc8ce81a0c34ac1d2c57132d79d2) | 62 | | 750 ~ 769 | 640 | [0xb86d0f862470af94e88487ab867d199405da2a3619a85c1a7d19413d798e390a](https://etherscan.io/tx/0xb86d0f862470af94e88487ab867d199405da2a3619a85c1a7d19413d798e390a) | 63 | | 770 ~ 779 | 320 | [0xcac0edf507dca7b8b10c350e41fdb8a3dba61c9c7cca69f450fd3ed5f5269885](https://etherscan.io/tx/0xcac0edf507dca7b8b10c350e41fdb8a3dba61c9c7cca69f450fd3ed5f5269885) | 64 | | 780 ~ 784 | 160 | [0x38d8b9cd4d37a0d974df7a3fec4cf13b6c5f7d7b3b484e144e37392eb28818a4](https://etherscan.io/tx/0x38d8b9cd4d37a0d974df7a3fec4cf13b6c5f7d7b3b484e144e37392eb28818a4) | 65 | | 785 ~ 786 | 64 | [0xa0a492a7bce3e00c8924d7ed22e245c7ed460fb4a56dc2d73d910da470541be9](https://etherscan.io/tx/0xa0a492a7bce3e00c8924d7ed22e245c7ed460fb4a56dc2d73d910da470541be9) | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /eth2/what-is-ethereum-2.0.md: -------------------------------------------------------------------------------- 1 | # What is Ethereum 2.0 2 | 3 | Ethereum 2.0 \(hereinafter referred to as ETH2\) is the upcoming major upgrade to Ethereum Mainnet. It refers to a set of interconnected upgrades that will make Ethereum more scalable, more secure, and more sustainable. These upgrades are being built by multiple teams from across the Ethereum ecosystem. 4 | 5 | The following are the broad design goals for ETH2: 6 | 7 | * to minimize complexity, even at the cost of some losses in efficiency 8 | * to remain live through major network partitions and when very large portions of nodes go offline 9 | * to select all components such that they are either quantum secure or can be easily swapped out for quantum secure counterparts when available 10 | * to utilize crypto and design techniques that allow for a large participation of validators in total and per unit time 11 | * to allow for a typical consumer laptop with `O(C)` resources to process/validate `O(1)` shards \(including any system level validation such as the beacon chain\) 12 | 13 | ### More Scalable 14 | 15 | Ethereum needs to support 1000s of transactions per second, to make applications faster and cheaper to use. 16 | 17 | ### More Secure 18 | 19 | Ethereum needs to be more secure. As the adoption of Ethereum grows, the protocol needs to become more secure against all forms of attack. 20 | 21 | ### More Sustainable 22 | 23 | Ethereum needs to be better for the environment. The technology today requires too much computing power and energy. 24 | 25 | {% hint style="info" %} 26 | More details can be found in [Ethereum Foundation Website](https://ethereum.org/en/eth2/get-involved/) 27 | {% endhint %} 28 | 29 | -------------------------------------------------------------------------------- /eth2/why-stake-in-ethereum-2.0.md: -------------------------------------------------------------------------------- 1 | # Why Stake for CRETH2 2 | 3 | {% hint style="danger" %} 4 | 1. CRETH2 deposits have ended for C.R.E.A.M. Finance 5 | 2. Existing CRETH2 token holders can exchange CRETH2 for ETH when The Merge is complete. More info: [https://ethereum.org/en/upgrades](https://ethereum.org/en/upgrades/) 6 | {% endhint %} 7 | 8 | Eventually, people will migrate from ETH to ETH2, but here we offer more benefits for staking ETH in C.R.E.A.M. Finance during the migration process. 9 | 10 | Users on C.R.E.A.M. will be able to stake ETH and also use this staked position (CRETH2, the proof token) as collateral on the C.R.E.A.M. lending platform to borrow assets. This means by staking ETH with C.R.E.A.M., users can earn staking rewards, potential supply yield, in addition to having borrowing power on the C.R.E.A.M. lending platform. 11 | 12 | In short: 13 | 14 | 1. Stake ETH and get reward from ETH2 migration 15 | 2. Use proof token CRETH2 as collateral to borrow assets, **which is exclusive in C.R.E.A.M.** 16 | 3. Stake CRETH2 in reward pool to get CREAM, **which is also exclusive in C.R.E.A.M.** 17 | 18 | ### **How to Get Reward from ETH2 Migration** 19 | 20 | That's the best part. To get reward, you don't have to do anything except staking! 21 | 22 | Just like Miners benefit from their contribution to Ethereum, Validators also benefit from their contribution to Ethereum 2.0. Once you stake ETH and get CRETH2 back, you become one of the Validators of ETH2 migration. Validators get rewarded for proposing and attesting to blocks. The rewards are tied to the overall amount of ETH staked in the network. More details and reward formula can be found in the [Launchpad](https://launchpad.ethereum.org). 23 | 24 | And we do all the Validator works for you :) 25 | 26 | Finally, when ETH2 is ready, you can unwrap CRETH2 to ETH2 with a better exchange rate than ETH to CRETH2, and that's where you get the reward. Do whatever you want with CRETH2, but hold it when ETH2 is launched, if you want to get Validator reward. 27 | 28 | ### **Risks You Should Know Before Staking** 29 | 30 | Once staking in ETH2, you will **NOT** be able to withdraw your deposits until Ethereum Foundation finishes Ethereum 2.0 migration, which is [estimated to deliver in 2021](https://ethereum.org/en/eth2). 31 | 32 | However, your ETH is pretty safe, for the only place these ETH could be sent to is the ETH2 deposit contract. No one can move those ETH away from the CRETH2 contract, including the team. Check out [the contract](https://etherscan.io/address/0xcbc1065255cbc3ab41a6868c22d1f1c573ab89fd#code) to verify. 33 | 34 | Also, this is a custodial service, and it will incur 8% fee on your Validator reward while you unwrap your CRETH2. You should do your own research on the whole ETH2 migration plan, understand what is custodial / non-custodial service, and use at your own risk. 35 | -------------------------------------------------------------------------------- /icecream/icecream-mechanism-phase-1.md: -------------------------------------------------------------------------------- 1 | # iceCREAM Mechanism Phase 1 2 | 3 | ![](../.gitbook/assets/icecream\_-3-.png) 4 | 5 | ## Components 6 | 7 | ### Lending Protocol 8 | 9 | The lending protocol includes the comptroller, cToken markets, and cTokenAdmin. Every market will generate reserves. CTokenAdmin is a new contract that controls the cToken market. In addition to normal access control in cToken, it allows a specific reserve manager to extract reserves. 10 | 11 | Source: [https://github.com/CreamFi/compound-protocol](https://github.com/CreamFi/compound-protocol) 12 | 13 | {% content-ref url="../lending/lending-contract-address.md" %} 14 | [lending-contract-address.md](../lending/lending-contract-address.md) 15 | {% endcontent-ref %} 16 | 17 | {% content-ref url="broken-reference" %} 18 | [Broken link](broken-reference) 19 | {% endcontent-ref %} 20 | 21 | ### Reserve Manager 22 | 23 | The reserve manager is the hub of reserves extraction. It snapshots all the cToken reserves and everyone could trigger the extraction (with a 1-day cooldown period). It should take a ratio (currently 50%) of reserves and send them to the burners. 24 | 25 | Source: [https://github.com/CreamFi/reserve-manager](https://github.com/CreamFi/reserve-manager) 26 | 27 | Reserve Manager: [0x0C5Bf19618A8FCDdb132d82BC6c5ea736A1beAED](https://etherscan.io/address/0x0C5Bf19618A8FCDdb132d82BC6c5ea736A1beAED) 28 | 29 | ### Burners 30 | 31 | Burners are a group of token converters. They will burn tokens into USDC, and USDC burner will convert USDC into yvCurve-IB token. There is a special component called manual burner. It's used for tokens whose onchain liquidity (Ethereum) is not deep enough. The manual burner is an EOA that will send the tokens to a centralized exchange or another network to convert manually. In the end, all tokens will be converted to yvCurve-IB token and send to the fee distributor. 32 | 33 | ![](../.gitbook/assets/icecream\_-4-.png) 34 | 35 | Source: [https://github.com/CreamFi/curve-dao-contracts](https://github.com/CreamFi/curve-dao-contracts) 36 | 37 | ### Fee Distributor & Voting Escrow 38 | 39 | The fee distributor and the voting escrow are the final stops of iceCream phase 1. The fee distributor stores all the reserves in yvCurve-IB and it handles the fee distribution among all the iceCream stakers. The voting escrow (iceCream) is where users stake their CREAM tokens. Users could claim the rewards here. 40 | 41 | Source: [https://github.com/CreamFi/curve-dao-contracts](https://github.com/CreamFi/curve-dao-contracts) 42 | 43 | Fee Distributor: [0x0Ca0f068edad122f09a39f99E7E89E705d6f6Ace](https://etherscan.io/address/0x0Ca0f068edad122f09a39f99E7E89E705d6f6Ace) 44 | 45 | Voting Escrow: [0x3986425b96F11972d31C78ff340908832C5c0043](https://etherscan.io/address/0x3986425b96F11972d31C78ff340908832C5c0043) 46 | -------------------------------------------------------------------------------- /icecream/icecream-mechanism-phase-2.md: -------------------------------------------------------------------------------- 1 | # iceCREAM Mechanism Phase 2 2 | 3 | ### Gauge Voting 4 | 5 | \(to be discussed\) 6 | 7 | -------------------------------------------------------------------------------- /icecream/icecream-tokenomics.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: Currently Phase 1 3 | --- 4 | 5 | # iceCREAM Tokenomics 6 | 7 | ### Summary 8 | 9 | iceCREAM turns CREAM into a productive asset. It will have the same three main use cases as CRV - voting, staking, and boosting. 10 | 11 | ### How iceCREAM works: 12 | 13 | * Lock CREAM between 1 week to 4 years to receive iceCREAM. 14 | * iceCREAM is non-transferable and non-tradeable. 15 | * 50%+ of Protocol Reserves going forward will be distributed as ycrvIB tokens to iceCREAM stakers. 16 | * 1 iceCREAM = 1 vote in the future of C.R.E.A.M. Finance governance. 17 | * \[phase 2\] iceCREAM staked translates to voting power which can be used to determine allocation of CREAM token liquidity mining by chain and market \(e.g.- Ethereum, ETH\). 18 | 19 | If liquidity mining is enabled on borrow markets \(more on this as part of phase 2\) 20 | 21 | * Once you vote, your vote will remain directed at pools unless modified. 22 | * Users will have the ability to change their votes every week and will be able to allocate their iceCREAM to different pools. 23 | * iceCREAM allows the user to control CREAM emissions across all C.R.E.A.M. markets in the future. 24 | * iceCREAM increases emission from a base factor of 0.4 to a max of 2.5x, the more iceCREAM you stake, the more CREAM you earn. 25 | 26 | ### Minting iceCREAM 27 | 28 | Assuming 1000 CREAM locked: 29 | 30 | | minted | locked | 31 | | :--- | :--- | 32 | | 1000 | 4 years | 33 | | 250 | 1 year | 34 | | 127.4 | 6 month | 35 | | 63.7 | 3 month | 36 | | 21.23 | 1 month | 37 | | 4.79 | 1 week | 38 | 39 | iceCREAM decays linearly over time. At the unlock date of CREAM, your iceCREAM balance would be 0. 40 | 41 | ### Long-Term Staking CREAM can vote 42 | 43 | For the early supporters of C.R.E.A.M. Finance who locked their CREAM in the long-term staking program, these token holders should be entitled to governance alongside iceCREAM holders, but will not be eligible for emission boosts. 44 | 45 | ### References 46 | 47 | * [iceCREAM staking](https://app.cream.finance/stake/iceCream) 48 | * [iceCREAM proposal](https://vote.cream.finance/#/cream-finance.eth/proposal/QmdS9VhXsBE8wRdLMqKCmYL8XfXcqNth1jgphhRxMhnxo8) 49 | * [oSUSHI](https://forum.sushi.com/t/sushinomics-introducing-osushi/4055) 50 | * [veToken](https://ve-token-voting.vercel.app/) 51 | 52 | -------------------------------------------------------------------------------- /legacy/creamy-v1.md: -------------------------------------------------------------------------------- 1 | # creamY 2 | 3 | ### Address 4 | 5 | | Contract | Address | 6 | | :--- | :--- | 7 | | Normalizer | [0x3Ce448Eea6a158DD5937D5e9137e6b9eCe69014a](https://etherscan.io/address/0x3Ce448Eea6a158DD5937D5e9137e6b9eCe69014a) | 8 | | creamY | [0x1D09144F3479bb805CB7c92346987420BcbDC10C](https://etherscan.io/address/0x1D09144F3479bb805CB7c92346987420BcbDC10C) | 9 | | Reserve Pool | [0x590BB03b651129c7931D1cC3128F50868178dA50](https://etherscan.io/address/0x590BB03b651129c7931D1cC3128F50868178dA50) | 10 | 11 | ### Supported Tokens 12 | 13 | | Token | Address | Supported | 14 | | :--- | :--- | :--- | 15 | | USDT | 0xdAC17F958D2ee523a2206206994597C13D831ec7 | Y | 16 | | USDC | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | Y | 17 | | BUSD | 0x4Fabb145d64652a948d72533023f6E7A623C7C53 | Y | 18 | | TUSD | 0x0000000000085d4780B73119b644AE5ecd22b376 | Y | 19 | | | | | 20 | | crUSDT | 0x797AAB1ce7c01eB727ab980762bA88e7133d2157 | Y | 21 | | crUSDC | 0x44fbeBd2F576670a6C33f6Fc0B00aA8c5753b322 | Y | 22 | | crBUSD | 0x1FF8CDB51219a8838b52E9cAc09b71e591BC998e | Y | 23 | | | | | 24 | | yCRV | 0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8 | Y | 25 | | | | | 26 | | yUSDT \(iearn\) | 0x83f798e925BcD4017Eb265844FDDAbb448f1707D | Y | 27 | | yUSDC \(iearn\) | 0xd6aD7a6750A7593E092a9B218d66C0A814a3436e | Y | 28 | | yTUSD \(iearn\) | 0x73a052500105205d34Daf004eAb301916DA8190f | Y | 29 | | | | | 30 | | yyCRV \(yvault\) | 0x5dbcF33D8c2E976c6b560249878e6F1491Bca25c | Y | 31 | | | | | 32 | | cUSDT | 0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9 | Y | 33 | | cUSDC | 0x39AA39c021dfbaE8faC545936693aC917d5E7563 | Y | 34 | 35 | -------------------------------------------------------------------------------- /legacy/inactive-staking-pools-address.md: -------------------------------------------------------------------------------- 1 | # Inactive Staking pools Address 2 | 3 | {% hint style="warning" %} 4 | These are inactive pools 5 | {% endhint %} 6 | 7 | | Name | Address | 8 | | :--- | :--- | 9 | | CREAM/USDC | [0x1676fc274B65966ED0c6438a26d34c6C92A5981C](https://etherscan.io/address/0x1676fc274B65966ED0c6438a26d34c6C92A5981C) | 10 | | CREAM/WETH | [0x43a8ecE49718E22D21077000768afF91849BCEfF](https://etherscan.io/address/0x43a8ecE49718E22D21077000768afF91849BCEfF) | 11 | | crCREAM \(7 day lock\) | [0x3ba3C0e8a9E5F4a01ce8e086B3d8e8a603a2129E](https://etherscan.io/address/0x3ba3C0e8a9E5F4a01ce8e086B3d8e8a603a2129E) | 12 | | cyUSD | [0x0b471a71c3f6d4aADc7eb20AaB7D730Ae385e150](https://etherscan.io/address/0x0b471a71c3f6d4aADc7eb20AaB7D730Ae385e150) | 13 | | cyUSD/CREAM | [0xAE76E0D0C4767E94Eb2898f42A96696Ae0061cEA](https://etherscan.io/address/0xAE76E0D0C4767E94Eb2898f42A96696Ae0061cEA) | 14 | | Balancer \(v4\) | [0xCcD5cb3401704AF8462a4FFE708a180d3C5c4Da0](https://etherscan.io/address/0xCcD5cb3401704AF8462a4FFE708a180d3C5c4Da0) | 15 | | Uniswap | [0x65bC20147E2cA6F3bf0819c38E519F8792043b36](https://etherscan.io/address/0x65bC20147E2cA6F3bf0819c38E519F8792043b36) | 16 | | crCREAM/crYFI | [0xCC5f8cA88cAbA27f15746aeb481F0C446991F863](https://etherscan.io/address/0xCC5f8cA88cAbA27f15746aeb481F0C446991F863) | 17 | | crYETH/crYYCRV | [0xD032BfeDC68CE5067E3E0b766Dbcf653ceEA541a](https://etherscan.io/address/0xD032BfeDC68CE5067E3E0b766Dbcf653ceEA541a) | 18 | | YETH/WETH | [0xCF679b2E16498a866Bd4CBda60d42f208084c6E1](https://etherscan.io/address/0xCF679b2E16498a866Bd4CBda60d42f208084c6E1) | 19 | | yyCRV/USDC | [0xB8c3a282De181889EF20488e73e7A149a8C1bFe1](https://etherscan.io/address/0xB8c3a282De181889EF20488e73e7A149a8C1bFe1) | 20 | 21 | -------------------------------------------------------------------------------- /legacy/reward-pool-contract-address.md: -------------------------------------------------------------------------------- 1 | # Reward Pool Contract Address 2 | 3 | {% hint style="danger" %} 4 | Inactive Pool 5 | {% endhint %} 6 | 7 | | Contract | Address | 8 | | :--- | :--- | 9 | | Balancer \(v4\) | [0xCcD5cb3401704AF8462a4FFE708a180d3C5c4Da0](https://etherscan.io/address/0xCcD5cb3401704AF8462a4FFE708a180d3C5c4Da0) | 10 | | Uniswap | [0x65bC20147E2cA6F3bf0819c38E519F8792043b36](https://etherscan.io/address/0x65bC20147E2cA6F3bf0819c38E519F8792043b36) | 11 | | CREAM/USDC | [0x1676fc274B65966ED0c6438a26d34c6C92A5981C](https://etherscan.io/address/0x1676fc274B65966ED0c6438a26d34c6C92A5981C) | 12 | | CREAM/WETH | [0x43a8ecE49718E22D21077000768afF91849BCEfF](https://etherscan.io/address/0x43a8ecE49718E22D21077000768afF91849BCEfF) | 13 | | crCREAM/crYFI | [0xCC5f8cA88cAbA27f15746aeb481F0C446991F863](https://etherscan.io/address/0xCC5f8cA88cAbA27f15746aeb481F0C446991F863) | 14 | | crYETH/crYYCRV | [0xD032BfeDC68CE5067E3E0b766Dbcf653ceEA541a](https://etherscan.io/address/0xD032BfeDC68CE5067E3E0b766Dbcf653ceEA541a) | 15 | | YETH/WETH | [0xCF679b2E16498a866Bd4CBda60d42f208084c6E1](https://etherscan.io/address/0xCF679b2E16498a866Bd4CBda60d42f208084c6E1) | 16 | | yyCRV/USDC | [0xB8c3a282De181889EF20488e73e7A149a8C1bFe1](https://etherscan.io/address/0xB8c3a282De181889EF20488e73e7A149a8C1bFe1) | 17 | | YFI/USDC | [0x2ab765c2b4a4e197fbae769f86870f2310a04d61](https://etherscan.io/address/0x2ab765c2b4a4e197fbae769f86870f2310a04d61) | 18 | | ~~crCREAM \(Legacy\)~~ | [~~0x71A808Fd21171d992ebc17678e8ae139079922d0~~](https://etherscan.io/address/0x71A808Fd21171d992ebc17678e8ae139079922d0) | 19 | | crCREAM | [0x224061756c150e5048a1e4a3E6E066db35037462](https://etherscan.io/address/0x224061756c150e5048a1e4a3E6E066db35037462) | 20 | | UNI/WETH | [0xe539416a21F6D7eF7e143f1435484d333c274480](https://etherscan.io/address/0xe539416a21F6D7eF7e143f1435484d333c274480) | 21 | | UNI/CREAM | [0x1E5fe7bAd3672D0d0cc041B7154331EE461C3349](https://etherscan.io/address/0x1e5fe7bad3672d0d0cc041b7154331ee461c3349) | 22 | | crCREAM \(7 day lock\) | [0x3ba3C0e8a9E5F4a01ce8e086B3d8e8a603a2129E](https://etherscan.io/address/0x3ba3C0e8a9E5F4a01ce8e086B3d8e8a603a2129E) | 23 | | cyUSD | [0x0b471a71c3f6d4aADc7eb20AaB7D730Ae385e150](https://etherscan.io/address/0x0b471a71c3f6d4aADc7eb20AaB7D730Ae385e150) | 24 | | cyUSD/CREAM | [0xAE76E0D0C4767E94Eb2898f42A96696Ae0061cEA](https://etherscan.io/address/0xAE76E0D0C4767E94Eb2898f42A96696Ae0061cEA) | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /legacy/swap/README.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: >- 3 | Cream Swap is a fork of Balancer. After Yearn merger, we chose to deprecate 4 | Swap and focus on Lending. 5 | --- 6 | 7 | # Swap 8 | 9 | Cream Swap TVL on [Defipulse](https://defipulse.com/c.r.e.a.m.-swap) 10 | 11 | {% page-ref page="swap-v1.md" %} 12 | 13 | {% page-ref page="swap-v2.md" %} 14 | 15 | -------------------------------------------------------------------------------- /legacy/swap/swap-v1.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: Balancer Core Concept 3 | --- 4 | 5 | # Swap v1 6 | 7 | ### BFactory 8 | 9 | [0xf8062Eedf80D8D2527cE89435f670cb996aB4e54](https://etherscan.io/address/0xf8062Eedf80D8D2527cE89435f670cb996aB4e54) 10 | 11 | ### BPool 12 | 13 | | Pair | Address | 14 | | :--- | :--- | 15 | | CREAM/USDC | [0x4Fd2d9d6eF05E13Bf0B167509151A4EC3D4d4b93](https://etherscan.io/address/0x4Fd2d9d6eF05E13Bf0B167509151A4EC3D4d4b93) | 16 | | CREAM/WETH | [0xa49b3c7C260ce8A7C665e20Af8aA6E099A86cf8A](https://etherscan.io/address/0xa49b3c7c260ce8a7c665e20af8aa6e099a86cf8a) | 17 | | crCREAM/crYFI | [0xA65405e0dD378C65308deAE51dA9e3BcEBb81261](https://etherscan.io/address/0xA65405e0dD378C65308deAE51dA9e3BcEBb81261) | 18 | | crYETH/crYYCRV | [0xB3284F2F22563F27cEF2912637b6A00F162317c4](https://etherscan.io/address/0xB3284F2F22563F27cEF2912637b6A00F162317c4) | 19 | | YETH/WETH | [0x6a3B875854f5518E85Ef97620c5e7de75bbc3fA0](https://etherscan.io/address/0x6a3B875854f5518E85Ef97620c5e7de75bbc3fA0) | 20 | | yyCRV/USDC | [0x661b94d96ADb18646e791A06576F7905a8d1BEF6](https://etherscan.io/address/0x661b94d96ADb18646e791A06576F7905a8d1BEF6) | 21 | | YFI/USDC | [0x7350c6D00D63AB5988250aea347f277c19BEA785](https://etherscan.io/address/0x7350c6D00D63AB5988250aea347f277c19BEA785) | 22 | | 80UNI/20WETH | [0x02566303a0e860ec66d3b79168459978b1b00c8e](https://etherscan.io/address/0x02566303a0e860ec66d3b79168459978b1b00c8e) | 23 | | 50CREAM/50UNI | [0x408e75C26e6182476940ece5b0Ba6491b4F13359](https://etherscan.io/address/0x408e75C26e6182476940ece5b0Ba6491b4F13359) | 24 | | 80FARM/20WETH | [0x655AD905dEc61E4Fb7d4840a1F450685801511b2](https://etherscan.io/address/0x655AD905dEc61E4Fb7d4840a1F450685801511b2) | 25 | | 95cyUSD/5CREAM | [0xaAF841fd6409c136FA4b960e22A92B45B26c9b41](https://etherscan.io/address/0xaAF841fd6409c136FA4b960e22A92B45B26c9b41) | 26 | 27 | ### Subgraph 28 | 29 | {% embed url="https://thegraph.com/explorer/subgraph/creamfinancedev/cream-swap-beta" %} 30 | 31 | ### Staking Rewards Pool 32 | 33 | | LPToken | Address | 34 | | :--- | :--- | 35 | | CREAM/USDC | [0x1676fc274B65966ED0c6438a26d34c6C92A5981C](https://etherscan.io/address/0x1676fc274B65966ED0c6438a26d34c6C92A5981C) | 36 | | CREAM/WETH | [0x43a8ecE49718E22D21077000768afF91849BCEfF](https://etherscan.io/address/0x43a8ecE49718E22D21077000768afF91849BCEfF) | 37 | | crCREAM/crYFI | [0xCC5f8cA88cAbA27f15746aeb481F0C446991F863](https://etherscan.io/address/0xCC5f8cA88cAbA27f15746aeb481F0C446991F863) | 38 | | crYETH/crYYCRV | [0xD032BfeDC68CE5067E3E0b766Dbcf653ceEA541a](https://etherscan.io/address/0xD032BfeDC68CE5067E3E0b766Dbcf653ceEA541a) | 39 | | YETH/WETH | [0xCF679b2E16498a866Bd4CBda60d42f208084c6E1](https://etherscan.io/address/0xCF679b2E16498a866Bd4CBda60d42f208084c6E1) | 40 | | yyCRV/USDC | [0xB8c3a282De181889EF20488e73e7A149a8C1bFe1](https://etherscan.io/address/0xB8c3a282De181889EF20488e73e7A149a8C1bFe1) | 41 | | YFI/USDC | [0x2ab765c2b4a4e197fbae769f86870f2310a04d61](https://etherscan.io/address/0x2ab765c2b4a4e197fbae769f86870f2310a04d61) | 42 | | UNI/WETH | [0xe539416a21F6D7eF7e143f1435484d333c274480](https://etherscan.io/address/0xe539416a21F6D7eF7e143f1435484d333c274480) | 43 | | UNI/CREAM | [0x1E5fe7bAd3672D0d0cc041B7154331EE461C3349](https://etherscan.io/address/0x1e5fe7bad3672d0d0cc041b7154331ee461c3349) | 44 | | cyUSD/CREAM | [0xAE76E0D0C4767E94Eb2898f42A96696Ae0061cEA](https://etherscan.io/address/0xAE76E0D0C4767E94Eb2898f42A96696Ae0061cEA) | 45 | 46 | -------------------------------------------------------------------------------- /legacy/swap/swap-v2.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: Balancer Core Concept 3 | --- 4 | 5 | # Swap v2 6 | 7 | ### BFactory 8 | 9 | | Version | Address | 10 | | :--- | :--- | 11 | | v2.1 | [0x0d3303ffaf107cd732396570bf07b2dbd79b619f](https://etherscan.io/address/0x0d3303ffaf107cd732396570bf07b2dbd79b619f) | 12 | | v2 | [0x136d6F80Bb3A853D151686BFED2c9309Aea6dDec](https://etherscan.io/address/0x136d6f80bb3a853d151686bfed2c9309aea6ddec) | 13 | 14 | ### BPool 15 | 16 | | Pair | Address | 17 | | :--- | :--- | 18 | | SWAG/USDC | [0x69c2Fe4F5dFA40Dd6d09FAdd0681F9364A1aadA0](https://etherscan.io/address/0x69c2fe4f5dfa40dd6d09fadd0681f9364a1aada0) | 19 | | SWAG/CREAM | [0x73be65b1800c2ADa9592E17c22C1BcCc1481BC95](https://etherscan.io/address/0x73be65b1800c2ada9592e17c22c1bccc1481bc95) | 20 | | SWAG/CREAM 80%/20% | [0x6c19E4CC4c87adB224697A1022F262b424F44d46](https://etherscan.io/address/0x6c19e4cc4c87adb224697a1022f262b424f44d46) | 21 | | CRETH2/WETH | [0xbc338CA728a5D60Df7bc5e3AF5b6dF9DB697d942](https://etherscan.io/address/0xbc338CA728a5D60Df7bc5e3AF5b6dF9DB697d942) | 22 | 23 | ### Subgraph 24 | 25 | {% embed url="https://thegraph.com/explorer/subgraph/creamfinancedev/cream-swap-v2" %} 26 | 27 | ### Staking Rewards Pool 28 | 29 | | LPToken | Address | 30 | | :--- | :--- | 31 | | SWAG/USDC | [0xB6bcb077b9fBafcF47E7662C9a7c6D46d5c0c8f1](https://etherscan.io/address/0xB6bcb077b9fBafcF47E7662C9a7c6D46d5c0c8f1) | 32 | | SWAG/CREAM | [0x6da2226C90a0b2bD799a16b5521270BC2231D242](https://etherscan.io/address/0x6da2226C90a0b2bD799a16b5521270BC2231D242) | 33 | | SWAG/CREAM 80%/20% | [0x8fcb0cA2e16cAb45F8f0C6304d2a022B6dcDA3f3](https://etherscan.io/address/0x8fcb0ca2e16cab45f8f0c6304d2a022b6dcda3f3) | 34 | | CRETH2 | [0x9D2850c3112b5fb851c4aAE23c1E97C1736898cb](https://etherscan.io/address/0x9d2850c3112b5fb851c4aae23c1e97c1736898cb) | 35 | | CRETH2/WETH | [0x2689008DCda0c2b744B344B9e5a3D5A042c227Da](https://etherscan.io/address/0x2689008DCda0c2b744B344B9e5a3D5A042c227Da) | 36 | 37 | -------------------------------------------------------------------------------- /lending/collateral-factor-and-reserve-factor-1.md: -------------------------------------------------------------------------------- 1 | # Collateral Factor & Reserve Factor 2 | 3 | The reserve factor is the percentage of Fee paid to CREAM protocol. If the reserve factor is 10, then that would imply that 10% of the interest paid on the asset is for CREAM. 4 | 5 | In the other hand, the collateral factor is the maximum you can borrow on a particular asset. 6 | 7 | Example: The collateral factor for ETH is 75%, if the price of ETH is considered as $1000, the max you will be able to borrow in other assets is worth $750 8 | 9 | | Token | Collateral factor | Reserve factor | 10 | | --------------- | ----------------- | -------------- | 11 | | ETH | 75% | 25% | 12 | | USDT | 75% | 20% | 13 | | USDC | 75% | 15% | 14 | | YFI | 75% | 40% | 15 | | COMP | 75% | 40% | 16 | | BAL | 60% | 40% | 17 | | YCRV | 75% | 10% | 18 | | CREAM | 75% | 40% | 19 | | LINK | 60% | 40% | 20 | | ~~LEND~~ | ~~50%~~ | ~~40%~~ | 21 | | CRV | 60% | 40% | 22 | | renBTC | 65% | 30% | 23 | | BUSD | 75% | 10% | 24 | | MTA | 45% | 40% | 25 | | yyCRV | 75% | 20% | 26 | | SUSHI | 65% | 40% | 27 | | FTT | 45% | 40% | 28 | | yETH | 75% | 40% | 29 | | SRM | 50% | 40% | 30 | | UNI | 65% | 40% | 31 | | wNXM | 50% | 40% | 32 | | SWAG | 0% | 50% | 33 | | CEL | 45% | 40% | 34 | | DPI | 60% | 45% | 35 | | BBTC | 45% | 30% | 36 | | AAVE | 60% | 40% | 37 | | BOND | 45% | 40% | 38 | | KP3R | 45% | 40% | 39 | | HBTC | 45% | 30% | 40 | | HFIL | 0% | 40% | 41 | | CRETH2 | 60% | 40% | 42 | | HUSD | 0% | 20% | 43 | | DAI | 75% | 20% | 44 | | HEGIC | 25% | 40% | 45 | | ESD | 60% | 50% | 46 | | COVER | 45% | 100% | 47 | | 1INCH | 45% | 40% | 48 | | OMG | 45% | 40% | 49 | | UNI-V2-WBTC-ETH | 75% | 40% | 50 | | UNI-V2-ETH-USDT | 70% | 40% | 51 | | UNI-V2-USDC-ETH | 75% | 40% | 52 | | UNI-V2-DAI-ETH | 75% | 40% | 53 | | xSUSHI | 60% | 40% | 54 | | SLP-WBTC-ETH | 75% | 40% | 55 | | SLP-DAI-ETH | 75% | 40% | 56 | | SLP-USDC-ETH | 75% | 40% | 57 | | SLP-ETH-USDT | 70% | 40% | 58 | | SLP-SUSHI-ETH | 75% | 40% | 59 | | SLP-YFI-ETH | 60% | 40% | 60 | | WBTC | 75% | 25% | 61 | | SNX | 45% | 40% | 62 | | sUSD | 45% | 20% | 63 | | PICKLE | 45% | 40% | 64 | | AKRO | 25% | 40% | 65 | | bBADGER | 60% | 40% | 66 | | OGN | 45% | 40% | 67 | | AMP | 45% | 45% | 68 | | FRAX | 60% | 50% | 69 | | ALPHA | 60% | 40% | 70 | | UST | 45% | 20% | 71 | | FTM | 25% | 40% | 72 | | RUNE | 60% | 40% | 73 | | PERP | 45% | 40% | 74 | | RAI | 45% | 40% | 75 | | OCEAN | 45% | 40% | 76 | | RARI | 25% | 40% | 77 | | SFI | 25% | 40% | 78 | | yvCurve-IB | 75% | 40% | 79 | | yvCurve-sETH | 60% | 40% | 80 | | yvCurve-stETH | 60% | 40% | 81 | | ARMOR | 0% | 40% | 82 | | arNXM | 0% | 40% | 83 | | MLN | 25% | 40% | 84 | | VSP | 25% | 40% | 85 | | VVSP | 25% | 40% | 86 | | GNO | 25% | 40% | 87 | | yvWETH | 75% | 20% | 88 | | yUSD | 75% | 20% | 89 | | SWAP | 25% | 40% | 90 | | FEI | 25% | 20% | 91 | | WOO | 25% | 40% | 92 | | BNT | 40% | 40% | 93 | | EURT | 60% | 20% | 94 | | PAX | 75% | 10% | 95 | | PAXG | 60% | 40% | 96 | | ibBTC | 45% | 30% | 97 | | LON | 45% | 40% | 98 | | YGG | 45% | 40% | 99 | | AXS | 45% | 40% | 100 | | SAND | 45% | 40% | 101 | | MANA | 45% | 40% | 102 | 103 | {% hint style="info" %} 104 | Searching for tokens on BSC? We put them [here](https://docs.cream.finance/v/binance-smart-chain/lending/collateral-factor-and-reserve-factor) 105 | {% endhint %} 106 | -------------------------------------------------------------------------------- /lending/interest-rate-model.md: -------------------------------------------------------------------------------- 1 | # Interest Rate Model 2 | 3 | ## APY Function 4 | 5 | **Borrow APY** 6 | 7 | = \[1 + Base + Multiplier \* min\(UtilizationRate, Kink\) + max\(JumpMultiplier \* UtilizationRate - Kink, 0\)\] ^ 2102400 - 1 8 | 9 | 10 | 11 | **Supply APY** 12 | 13 | = Distribute \(Interest Paid by Borrowers Per Block - Reserve\) to all suppliers, and convert it into APY 14 | 15 | = Distribute \[\(1 + Borrow APY\) ^ \(1 / BlocksPerYear\) - 1\] \* Total Borrow \* \(1 - Reserve Factor\) to all suppliers, and convert it into APY 16 | 17 | = {\[\(1 + Borrow APY\) ^ \(1 / BlocksPerYear\) - 1\] \* Total Borrow \* \(1 - Reserve Factor\) / Total Supply}, and convert it into APY 18 | 19 | = {1 + \[\(1 + Borrow APY\) ^ \(1 / BlocksPerYear\) - 1\] \* Total Borrow \* \(1 - Reserve Factor\) / Total Supply} ^ BlocksPerYear - 1 20 | 21 | = **{1+\[\(1+Borrow APY\)^\(1/BlocksPerYear\)-1\]\*\(1-Reserve Factor\)\*Utilization Rate}^BlocksPerYear-1** 22 | 23 | {% hint style="info" %} 24 | BlocksPerYear = 2,102,400 \(15 sec per block\) 25 | {% endhint %} 26 | 27 | {% hint style="info" %} 28 | Find other variables in [Markets](https://app.cream.finance/markets/v1) 29 | {% endhint %} 30 | 31 | ## Major 32 | 33 | ![](../.gitbook/assets/jie-tu-20210715-xia-wu-12.16.25.png) 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 81 | 82 | 83 |
ParameterValue
CategoryMajor
Tokens 50 |

ETH, WBTC, renBTC, BBTC, HBTC, WBTC, yvWETH, ibBTC

51 |

52 |
UNI-V2-WBTC-ETH, UNI-V2-ETH-USDT, UNI-V2-DAI-ETH, UNI-V2-USDC-ETH

53 |

54 |

yvCurve-sETH, yvCurve-stETH

55 |
Base0%
Multiplier15%
JumpMultiplier200%
Kink 180%
Kink 290%
Contract Address0x812C0b2a2A0A74f6f6ed620Fbd2B67Fec7DB2190 80 |
84 | 85 | ## Stable 86 | 87 | ![](../.gitbook/assets/jie-tu-20210715-xia-wu-2.50.31.png) 88 | 89 | | Parameter | Value | 90 | | :--- | :--- | 91 | | Category | Stable | 92 | | Tokens | USDT, USDC, DAI, BUSD, yCRV, HUSD, sUSD, FRAX, UST, yvCurve-IB, yUSD, FEI, PAX, EURT | 93 | | Base | 0% | 94 | | Multiplier | 18% | 95 | | JumpMultiplier | 800% | 96 | | Kink 1 | 80% | 97 | | Kink 2 | 90% | 98 | | Contract Address | [0xE7dB46742c51a7bd64b8D83b8201239D759786bE](https://etherscan.io/address/0xE7dB46742c51a7bd64b8D83b8201239D759786bE) | 99 | 100 | ## Governance + Seed 101 | 102 | ![](../.gitbook/assets/jie-tu-20210723-xia-wu-4.35.51.png) 103 | 104 | | Parameter | Value | 105 | | :--- | :--- | 106 | | Category | Governance & Seeds | 107 | | Tokens | COMP, BAL, YFI, LINK, CREAM, AAVE, CRV, MTA, SRM, FTT, UNI, SUSHI, wNXM, CEL, DPI, BOND, KP3R, HFIL, HEGIC, ESD, COVER, 1INCH, OMG, xSUSHI, SNX, PICKLE, AKRO, bBADGER, OGN, ALPHA, FTM, RUNE, PERP, RAI, OCEAN, RARI, SFI, ARMOR, arNXM, MLN, VSP, VVSP, GNO, SWAP, WOO, BNT, PAXG, LON, YGG, AXS, SAND, MANA | 108 | | Base | 0% | 109 | | Multiplier | 20% | 110 | | JumpMultiplier | 500% | 111 | | Kink 1 | 70% | 112 | | Kink 2 | 80% | 113 | | Contract Address | [0xbadaC56c9aca307079e8B8FC699987AAc89813ee](https://etherscan.io/address/0xbadaC56c9aca307079e8B8FC699987AAc89813ee) | 114 | 115 | ## SushiSwap Liquidity Provider token \(SLP\) 116 | 117 | ![](../.gitbook/assets/jie-tu-20210226-12.32.39.png) 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 162 | 163 | 164 |
ParameterValue
CategorySLP
Tokens 134 |

SLP-WBTC-ETH,

135 |

SLP-DAI-ETH,

136 |

SLP-USDC-ETH,

137 |

SLP-ETH-USDT,

138 |

SLP-SUSHI-ETH,

139 |

SLP-YFI-ETH,

140 |
Base10%
Multiplier55%
JumpMultiplier180%
Kink50%
Contract Address0x66FB6cf0Af2Cb8f967F2439Ea855387cB431Fed8 161 |
165 | 166 | ### AMP \(exploit\) 167 | 168 | | Parameter | Value | 169 | | :--- | :--- | 170 | | Category | AMP | 171 | | Tokens | AMP | 172 | | Base | 0% | 173 | | Multiplier | 0% | 174 | | JumpMultiplier | 0% | 175 | | Kink | 100% | 176 | | Contract Address | [0x73D06034Ae98E2Af4eA4E0fA0320cdEf1561f493](https://etherscan.io/address/0x73D06034Ae98E2Af4eA4E0fA0320cdEf1561f493) | 177 | 178 | -------------------------------------------------------------------------------- /lending/lending-contract-address.md: -------------------------------------------------------------------------------- 1 | # Lending Contract Address 2 | 3 | ### crToken Address 4 | 5 | | Contract | Address | Flash Loans | 6 | | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------- | 7 | | crETH | [0xD06527D5e56A3495252A528C4987003b712860eE](https://etherscan.io/address/0xD06527D5e56A3495252A528C4987003b712860eE) | No | 8 | | crUSDT | [0x797AAB1ce7c01eB727ab980762bA88e7133d2157](https://etherscan.io/address/0x797AAB1ce7c01eB727ab980762bA88e7133d2157) | Yes | 9 | | crUSDC | [0x44fbebd2f576670a6c33f6fc0b00aa8c5753b322](https://etherscan.io/address/0x44fbebd2f576670a6c33f6fc0b00aa8c5753b322) | Yes | 10 | | crYFI | [0xCbaE0A83f4f9926997c8339545fb8eE32eDc6b76](https://etherscan.io/address/0xCbaE0A83f4f9926997c8339545fb8eE32eDc6b76) | Yes | 11 | | crBAL | [0xcE4Fe9b4b8Ff61949DCfeB7e03bc9FAca59D2Eb3](https://etherscan.io/address/0xcE4Fe9b4b8Ff61949DCfeB7e03bc9FAca59D2Eb3) | Yes | 12 | | crCOMP | [0x19D1666f543D42ef17F66E376944A22aEa1a8E46](https://etherscan.io/address/0x19D1666f543D42ef17F66E376944A22aEa1a8E46) | Yes | 13 | | crYCRV | [0x9baF8a5236d44AC410c0186Fe39178d5AAD0Bb87](https://etherscan.io/address/0x9baF8a5236d44AC410c0186Fe39178d5AAD0Bb87) | No | 14 | | crCREAM | [0x892B14321a4FCba80669aE30Bd0cd99a7ECF6aC0](https://etherscan.io/address/0x892B14321a4FCba80669aE30Bd0cd99a7ECF6aC0) | No | 15 | | crLINK | [0x697256CAA3cCaFD62BB6d3Aa1C7C5671786A5fD9](https://etherscan.io/address/0x697256CAA3cCaFD62BB6d3Aa1C7C5671786A5fD9) | Yes | 16 | | crLEND | [0x8B86e0598616a8d4F1fdAE8b59E55FB5Bc33D0d6](https://etherscan.io/address/0x8B86e0598616a8d4F1fdAE8b59E55FB5Bc33D0d6) | No | 17 | | crCRV | [0xc7Fd8Dcee4697ceef5a2fd4608a7BD6A94C77480](https://etherscan.io/address/0xc7Fd8Dcee4697ceef5a2fd4608a7BD6A94C77480) | Yes | 18 | | crRENBTC | [0x17107f40d70f4470d20CB3f138a052cAE8EbD4bE](https://etherscan.io/address/0x17107f40d70f4470d20CB3f138a052cAE8EbD4bE) | Yes | 19 | | crBUSD | [0x1FF8CDB51219a8838b52E9cAc09b71e591BC998e](https://etherscan.io/address/0x1FF8CDB51219a8838b52E9cAc09b71e591BC998e) | Yes | 20 | | crMTA | [0x3623387773010d9214B10C551d6e7fc375D31F58](https://etherscan.io/address/0x3623387773010d9214b10c551d6e7fc375d31f58) | Yes | 21 | | crYYCRV | [0x4EE15f44c6F0d8d1136c83EfD2e8E4AC768954c6](https://etherscan.io/address/0x4EE15f44c6F0d8d1136c83EfD2e8E4AC768954c6) | No | 22 | | crSUSHI | [0x338286C0BC081891A4Bda39C7667ae150bf5D206](https://etherscan.io/address/0x338286C0BC081891A4Bda39C7667ae150bf5D206) | Yes | 23 | | crFTT | [0x10FDBD1e48eE2fD9336a482D746138AE19e649Db](https://etherscan.io/address/0x10FDBD1e48eE2fD9336a482D746138AE19e649Db) | Yes | 24 | | crYETH | [0x01da76DEa59703578040012357b81ffE62015C2d](https://etherscan.io/address/0x01da76DEa59703578040012357b81ffE62015C2d) | No | 25 | | crSRM | [0xef58b2d5A1b8D3cDE67b8aB054dC5C831E9Bc025](https://etherscan.io/address/0xef58b2d5A1b8D3cDE67b8aB054dC5C831E9Bc025) | Yes | 26 | | crUNI | [0xe89a6D0509faF730BD707bf868d9A2A744a363C7](https://etherscan.io/address/0xe89a6D0509faF730BD707bf868d9A2A744a363C7) | Yes | 27 | | crWNXM | [0xeFF039C3c1D668f408d09dD7B63008622a77532C](https://etherscan.io/address/0xeff039c3c1d668f408d09dd7b63008622a77532c) | Yes | 28 | | crSWAG | [0x22B243B96495C547598D9042B6f94B01C22B2e9E](https://etherscan.io/address/0x22B243B96495C547598D9042B6f94B01C22B2e9E) | No | 29 | | crCEL | [0x8b3FF1ed4F36C2c2be675AFb13CC3AA5d73685a5](https://etherscan.io/address/0x8b3ff1ed4f36c2c2be675afb13cc3aa5d73685a5) | Yes | 30 | | crDPI | [0x2A537Fa9FFaea8C1A41D3C2B68a9cb791529366D](https://etherscan.io/address/0x2A537Fa9FFaea8C1A41D3C2B68a9cb791529366D) | Yes | 31 | | crBBTC | [0x7ea9C63E216D5565c3940A2B3d150e59C2907Db3](https://etherscan.io/address/0x7ea9c63e216d5565c3940a2b3d150e59c2907db3) | Yes | 32 | | crAAVE | [0x3225E3C669B39C7c8B3e204a8614bB218c5e31BC](https://etherscan.io/address/0x3225E3C669B39C7c8B3e204a8614bB218c5e31BC) | Yes | 33 | | crBOND | [0xf55BbE0255f7f4E70f63837Ff72A577fbDDbE924](https://etherscan.io/address/0xf55BbE0255f7f4E70f63837Ff72A577fbDDbE924) | Yes | 34 | | crKP3R | [0x903560b1CcE601794C584F58898dA8a8b789Fc5d](https://etherscan.io/address/0x903560b1CcE601794C584F58898dA8a8b789Fc5d) | Yes | 35 | | crHBTC | [0x054B7ed3F45714d3091e82aAd64A1588dC4096Ed](https://etherscan.io/address/0x054b7ed3f45714d3091e82aad64a1588dc4096ed) | Yes | 36 | | crHFIL | [0xd5103AfcD0B3fA865997Ef2984C66742c51b2a8b](https://etherscan.io/address/0xd5103afcd0b3fa865997ef2984c66742c51b2a8b) | Yes | 37 | | crCRETH2 | [0xfd609a03B393F1A1cFcAcEdaBf068CAD09a924E2](https://etherscan.io/address/0xfd609a03b393f1a1cfcacedabf068cad09a924e2) | Yes | 38 | | crHUSD | [0xD692ac3245bb82319A31068D6B8412796eE85d2c](https://etherscan.io/address/0xD692ac3245bb82319A31068D6B8412796eE85d2c) | Yes | 39 | | crDAI | [0x92B767185fB3B04F881e3aC8e5B0662a027A1D9f](https://etherscan.io/address/0x92b767185fb3b04f881e3ac8e5b0662a027a1d9f) | Yes | 40 | | crHEGIC | [0x10a3da2BB0Fae4D591476fd97D6636fd172923a8](https://etherscan.io/address/0x10a3da2bb0fae4d591476fd97d6636fd172923a8) | Yes | 41 | | crESD | [0x3C6C553A95910F9FC81c98784736bd628636D296](https://etherscan.io/address/0x3c6c553a95910f9fc81c98784736bd628636d296) | Yes | 42 | | ~~crCOVER~~ (protocol shutdown) | \~\~\~\~[~~0x21011bc93d9e515b9511a817a1ed1d6d468f49fc~~](https://etherscan.io/address/0x21011bc93d9e515b9511a817a1ed1d6d468f49fc)\~\~\~\~ | ~~No~~ | 43 | | cr1INCH | [0x85759961b116f1D36fD697855c57A6ae40793D9B](https://etherscan.io/address/0x85759961b116f1d36fd697855c57a6ae40793d9b) | Yes | 44 | | crOMG | [0x7Aaa323D7e398be4128c7042d197a2545f0f1fea](https://etherscan.io/address/0x7aaa323d7e398be4128c7042d197a2545f0f1fea) | Yes | 45 | | crUNI-V2-WBTC-ETH | [0x011a014d5e8Eb4771E575bB1000318D509230Afa](https://etherscan.io/address/0x011a014d5e8eb4771e575bb1000318d509230afa) | No | 46 | | crUNI-V2-ETH-USDT | [0xE6C3120F38F56deb38B69b65cC7dcAF916373963](https://etherscan.io/address/0xe6c3120f38f56deb38b69b65cc7dcaf916373963) | No | 47 | | crUNI-V2-USDC-ETH | [0x4Fe11BC316B6d7A345493127fBE298b95AdaAd85](https://etherscan.io/address/0x4fe11bc316b6d7a345493127fbe298b95adaad85) | No | 48 | | crUNI-V2-DAI-ETH | [0xcD22C4110c12AC41aCEfA0091c432ef44efaAFA0](https://etherscan.io/address/0xcd22c4110c12ac41acefa0091c432ef44efaafa0) | No | 49 | | crXSUSHI | [0x228619CCa194Fbe3Ebeb2f835eC1eA5080DaFbb2](https://etherscan.io/address/0x228619cca194fbe3ebeb2f835ec1ea5080dafbb2) | No | 50 | | crSLP-WBTC-ETH | [0x73f6cBA38922960b7092175c0aDD22Ab8d0e81fC](https://etherscan.io/address/0x73f6cba38922960b7092175c0add22ab8d0e81fc) | No | 51 | | crSLP-DAI-ETH | [0x38f27c03d6609a86FF7716ad03038881320BE4Ad](https://etherscan.io/address/0x38f27c03d6609a86ff7716ad03038881320be4ad) | No | 52 | | crSLP-USDC-ETH | [0x5EcaD8A75216CEa7DFF978525B2D523a251eEA92](https://etherscan.io/address/0x5ecad8a75216cea7dff978525b2d523a251eea92) | No | 53 | | crSLP-ETH-USDT | [0x5C291bc83d15f71fB37805878161718eA4b6AEe9](https://etherscan.io/address/0x5c291bc83d15f71fb37805878161718ea4b6aee9) | No | 54 | | crSLP-SUSHI-ETH | [0x6BA0C66C48641e220CF78177C144323b3838D375](https://etherscan.io/address/0x6ba0c66c48641e220cf78177c144323b3838d375) | No | 55 | | crSLP-YFI-ETH | [0xd532944df6DFd5Dd629E8772F03D4fC861873abF](https://etherscan.io/address/0xd532944df6dfd5dd629e8772f03d4fc861873abf) | No | 56 | | crWBTC | [0x197070723CE0D3810a0E47F06E935c30a480D4Fc](https://etherscan.io/address/0x197070723CE0D3810a0E47F06E935c30a480D4Fc) | Yes | 57 | | crSNX | [0xC25EAE724f189Ba9030B2556a1533E7c8A732E14](https://etherscan.io/address/0xC25EAE724f189Ba9030B2556a1533E7c8A732E14) | Yes | 58 | | crSUSD | [0x25555933a8246Ab67cbf907CE3d1949884E82B55](https://etherscan.io/address/0x25555933a8246Ab67cbf907CE3d1949884E82B55) | Yes | 59 | | crPICKLE | [0xc68251421edda00a10815e273fa4b1191fac651b](https://etherscan.io/address/0xc68251421edda00a10815e273fa4b1191fac651b) | Yes | 60 | | crAKRO | [0x65883978aDA0e707c3b2BE2A6825b1C4BDF76A90](https://etherscan.io/address/0x65883978ada0e707c3b2be2a6825b1c4bdf76a90) | Yes | 61 | | crBBADGER | [0x8B950f43fCAc4931D408F1fcdA55C6CB6cbF3096](https://etherscan.io/address/0x8b950f43fcac4931d408f1fcda55c6cb6cbf3096) | No | 62 | | crOGN | [0x59089279987DD76fC65Bf94Cb40E186b96e03cB3](https://etherscan.io/address/0x59089279987dd76fc65bf94cb40e186b96e03cb3) | Yes | 63 | | crAMP | [0x2Db6c82CE72C8d7D770ba1b5F5Ed0b6E075066d6](https://etherscan.io/address/0x2db6c82ce72c8d7d770ba1b5f5ed0b6e075066d6) | Yes | 64 | | crFRAX | [0xb092b4601850E23903A42EaCBc9D8A0EeC26A4d5](https://etherscan.io/address/0xb092b4601850e23903a42eacbc9d8a0eec26a4d5) | Yes | 65 | | crALPHA | [0x1d0986Fb43985c88Ffa9aD959CC24e6a087C7e35](https://etherscan.io/address/0x1d0986fb43985c88ffa9ad959cc24e6a087c7e35) | Yes | 66 | | crUST | [0x51F48b638F82e8765F7a26373A2Cb4CcB10C07af](https://etherscan.io/address/0x51f48b638f82e8765f7a26373a2cb4ccb10c07af) | Yes | 67 | | crFTM | [0xc36080892c64821fa8e396bc1bD8678fA3b82b17](https://etherscan.io/address/0xc36080892c64821fa8e396bc1bd8678fa3b82b17) | Yes | 68 | | crRUNE | [0x8379BAA817c5c5aB929b03ee8E3c48e45018Ae41](https://etherscan.io/address/0x8379BAA817c5c5aB929b03ee8E3c48e45018Ae41) | Yes | 69 | | crPERP | [0x299e254A8a165bBeB76D9D69305013329Eea3a3B](https://etherscan.io/address/0x299e254a8a165bbeb76d9d69305013329eea3a3b) | Yes | 70 | | crRAI | [0xf8445C529D363cE114148662387eba5E62016e20](https://etherscan.io/address/0xf8445C529D363cE114148662387eba5E62016e20) | Yes | 71 | | crOCEAN | [0x7C3297cFB4c4bbd5f44b450c0872E0ADA5203112](https://etherscan.io/address/0x7c3297cfb4c4bbd5f44b450c0872e0ada5203112) | Yes | 72 | | crRARI | [0x081FE64df6dc6fc70043aedF3713a3ce6F190a21](https://etherscan.io/address/0x081fe64df6dc6fc70043aedf3713a3ce6f190a21) | Yes | 73 | | crSFI | [0x28526Bb33d7230E65E735dB64296413731C5402e](https://etherscan.io/address/0x28526bb33d7230e65e735db64296413731c5402e) | Yes | 74 | | crYVCurve-IB | [0x45406ba53bB84Cd32A58e7098a2D4D1b11B107F6](https://etherscan.io/address/0x45406ba53bb84cd32a58e7098a2d4d1b11b107f6) | No | 75 | | crYVCurve-sETH | [0x6d1B9e01aF17Dd08d6DEc08E210dfD5984FF1C20](https://etherscan.io/address/0x6d1b9e01af17dd08d6dec08e210dfd5984ff1c20) | No | 76 | | crYVCurve-stETH | [0x1F9b4756B008106C806c7E64322d7eD3B72cB284](https://etherscan.io/address/0x1f9b4756b008106c806c7e64322d7ed3b72cb284) | No | 77 | | crARMOR | [0xab10586C918612BA440482db77549d26B7ABF8f7](https://etherscan.io/address/0xab10586C918612BA440482db77549d26B7ABF8f7) | Yes | 78 | | crARNXM | [0xdFFf11DFe6436e42a17B86e7F419Ac8292990393](https://etherscan.io/address/0xdFFf11DFe6436e42a17B86e7F419Ac8292990393) | Yes | 79 | | crMLN | [0xDbb5e3081dEf4b6cdD8864aC2aeDA4cBf778feCf](https://etherscan.io/address/0xDbb5e3081dEf4b6cdD8864aC2aeDA4cBf778feCf) | Yes | 80 | | crVSP | [0x71cEFCd324B732d4E058AfAcBA040d908c441847](https://etherscan.io/address/0x71cEFCd324B732d4E058AfAcBA040d908c441847) | Yes | 81 | | crVVSP | [0x1A122348B73B58eA39F822A89e6ec67950c2bBD0](https://etherscan.io/address/0x1A122348B73B58eA39F822A89e6ec67950c2bBD0) | Yes | 82 | | crGNO | [0x523EFFC8bFEfC2948211A05A905F761CBA5E8e9E](https://etherscan.io/address/0x523EFFC8bFEfC2948211A05A905F761CBA5E8e9E) | Yes | 83 | | crYVWETH | [0x4202D97E00B9189936EdF37f8D01cfF88BDd81d4](https://etherscan.io/address/0x4202D97E00B9189936EdF37f8D01cfF88BDd81d4) | No | 84 | | crYUSD | [0x4BAa77013ccD6705ab0522853cB0E9d453579Dd4](https://etherscan.io/address/0x4BAa77013ccD6705ab0522853cB0E9d453579Dd4) | No | 85 | | crSWAP | [0x98E329eB5aae2125af273102f3440DE19094b77c](https://etherscan.io/address/0x98E329eB5aae2125af273102f3440DE19094b77c) | Yes | 86 | | crFEI | [0x8C3B7a4320ba70f8239F83770c4015B5bc4e6F91](https://etherscan.io/address/0x8C3B7a4320ba70f8239F83770c4015B5bc4e6F91) | Yes | 87 | | crWOO | [0xE585c76573D7593ABF21537B607091F76c996E73](https://etherscan.io/address/0xE585c76573D7593ABF21537B607091F76c996E73) | Yes | 88 | | crBNT | [0x81E346729723C4D15d0FB1c5679b9f2926Ff13C6](https://etherscan.io/address/0x81E346729723C4D15d0FB1c5679b9f2926Ff13C6) | Yes | 89 | | crEURT | [0xC581b735A1688071A1746c968e0798D642EDE491](https://etherscan.io/address/0xC581b735A1688071A1746c968e0798D642EDE491) | Yes | 90 | | crPAX | [0xD7394428536F63d5659cc869EF69d10f9E66314B](https://etherscan.io/address/0xD7394428536F63d5659cc869EF69d10f9E66314B) | Yes | 91 | | crPAXG | [0x1241B10E7EA55b22f5b2d007e8fECDF73DCff999](https://etherscan.io/address/0x1241B10E7EA55b22f5b2d007e8fECDF73DCff999) | Yes | 92 | | crIBBTC | [0x2A867fd776B83e1bd4e13C6611AFd2F6af07EA6D](https://etherscan.io/address/0x2A867fd776B83e1bd4e13C6611AFd2F6af07EA6D) | Yes | 93 | | crLON | [0x250Fb308199FE8C5220509C1bf83D21d60b7f74A](https://etherscan.io/address/0x250Fb308199FE8C5220509C1bf83D21d60b7f74A) | Yes | 94 | | crYGG | [0x4112a717edD051F77d834A6703a1eF5e3d73387F](https://etherscan.io/address/0x4112a717edD051F77d834A6703a1eF5e3d73387F) | Yes | 95 | | crAXS | [0xF04ce2e71D32D789a259428ddcD02D3C9F97fb4E](https://etherscan.io/address/0xF04ce2e71D32D789a259428ddcD02D3C9F97fb4E) | Yes | 96 | | crSAND | [0x89e42987c39f72e2EAd95a8a5bC92114323d5828](https://etherscan.io/address/0x89e42987c39f72e2EAd95a8a5bC92114323d5828) | Yes | 97 | | crMANA | [0x58DA9c9fC3eb30AbBcbBAb5DDabb1E6e2eF3d2EF](https://etherscan.io/address/0x58DA9c9fC3eb30AbBcbBAb5DDabb1E6e2eF3d2EF) | Yes | 98 | 99 | ### Protocol Address 100 | 101 | | Contract | Address | 102 | | --------------------- | --------------------------------------------------------------------------------------------------------------------- | 103 | | Comptroller | [0x3d5BC3c8d13dcB8bF317092d84783c2697AE9258](https://etherscan.io/address/0x3d5BC3c8d13dcB8bF317092d84783c2697AE9258) | 104 | | Lens | [0xd400e22dcA840CC7E342DF1d9945684bBd587659](https://etherscan.io/address/0xd400e22dcA840CC7E342DF1d9945684bBd587659) | 105 | | ~~Lens (deprecated)~~ | [0x69F2b8D8846e3dcd94C09e4f3CBB8d2ba8D9423f](https://etherscan.io/address/0x69F2b8D8846e3dcd94C09e4f3CBB8d2ba8D9423f) | 106 | | FlashloanLender | [0xa8682Cfd2B6c714d2190fA38863d545c7a0b73D5](https://etherscan.io/address/0xa8682Cfd2B6c714d2190fA38863d545c7a0b73D5) | 107 | 108 | {% hint style="info" %} 109 | Searching for tokens on BSC? We put them [here](https://docs.cream.finance/v/binance-smart-chain/lending/lending-contract-address) 110 | {% endhint %} 111 | -------------------------------------------------------------------------------- /lending/price-oracle.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: How C.R.E.A.M. Finance get token price 3 | --- 4 | 5 | # Price Oracle 6 | 7 | {% hint style="info" %} 8 | We have Chainlink as our main price oracle 9 | {% endhint %} 10 | 11 | ### Chainlink 12 | 13 | For the following tokens, we use price feed provided by Chainlink: 14 | 15 | ETH / BTC / USDT / USDC / YFI / COMP / BAL / LINK / CRV / BUSD / UNI / wNXM / AAVE / DAI / 1INCH / CEL / COVER / FTT / HEGIC / KP3R / MTA / OMG / SRM / SNX / sUSD / SUSHI / CREAM / DPI / UST / FTM / RUNE / PERP / OCEAN / RAI / RARI / HUSD / AKRO / AMP / SFI / MLN / VSP / GNO / SWAP / FEI / WOO / BNT / PAX / PAXG / LON / YGG / AXS / SAND / MANA / FRAX 16 | 17 | For the following BTC-pegged tokens, we use BTC price instead: 18 | 19 | * WBTC 20 | * renBTC 21 | * BBTC 22 | * HBTC 23 | * ibBTC 24 | 25 | ### LP Tokens 26 | 27 | For SushiSwap LP tokens / Uniswap LP tokens, we use [Fair LP Pricing](https://blog.alphafinance.io/fair-lp-token-pricing/) introduced by [Alpha Finance](https://alphafinance.io/). 28 | 29 | Price for underlying asset is retrieved from Chainlink price feed. 30 | 31 | See [source code](https://github.com/CreamFi/compound-protocol/blob/master/contracts/PriceOracleProxy.sol#L288) for the implementation. 32 | 33 | ### Contract 34 | 35 | For the following tokens, we fetch price from contracts directly: 36 | 37 | yUSD \(v1\) / yETH / yCRV / xSushi / bBadger / yvCurve-IB / yvCurve-sETH / yvCurve-stETH / VVSP / yvWETH \(v2\) / yUSD \(v2\) 38 | 39 | ### C.R.E.A.M. Finance 40 | 41 | For the other tokens, we use our own price oracle to get the price. 42 | 43 | ### Price Oracle Address 44 | 45 | | Contract | Address | 46 | | :--- | :--- | 47 | | v1PriceOracle | [0x9A975fe93CFf8b0387b958adB9082B0ed0659AD2](https://etherscan.io/address/0x9a975fe93cff8b0387b958adb9082b0ed0659ad2) | 48 | | PriceOracleProxy | [0x338EEE1F7B89CE6272f302bDC4b952C13b221f1d](https://etherscan.io/address/0x338EEE1F7B89CE6272f302bDC4b952C13b221f1d) | 49 | | ~~PriceOracleProxy \(deprecated\)~~ | [0x647A539282e8456A64DFE28923B7999b66091488](https://etherscan.io/address/0x647a539282e8456a64dfe28923b7999b66091488#code) | 50 | | ~~PriceOracleProxy \(deprecated\)~~ | [0x940ce2a25b0BA48d213AcC13AbC21d9Fee2Ed6Dd](https://etherscan.io/address/0x940ce2a25b0BA48d213AcC13AbC21d9Fee2Ed6Dd) | 51 | | ~~PriceOracleProxy \(deprecated\)~~ | [0x9a5135157a74b753d11197a821e7f199f5b2fed0](https://etherscan.io/address/0x9a5135157a74b753d11197a821e7f199f5b2fed0) | 52 | 53 | -------------------------------------------------------------------------------- /press-kit.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: Press kit and assets for media use 3 | coverY: 0 4 | --- 5 | 6 | # Press Kit 7 | 8 | ### Main Logo 9 | 10 | ![](<.gitbook/assets/main-logo (1).svg>) 11 | 12 | {% file src=".gitbook/assets/main-logo (1) (1).svg" %} 13 | SVG 14 | {% endfile %} 15 | 16 | {% file src=".gitbook/assets/main-logo-512w.png" %} 17 | 512 x 119 PNG 18 | {% endfile %} 19 | 20 | {% file src=".gitbook/assets/main-logo-1024w.png" %} 21 | 1024 x 237 PNG 22 | {% endfile %} 23 | 24 | {% file src=".gitbook/assets/main-logo-2048w.png" %} 25 | 2048 x 474 PNG 26 | {% endfile %} 27 | 28 | ### 29 | 30 | ### CREAM Logo 31 | 32 | ![](<.gitbook/assets/cream-256x256 (1).png>) 33 | 34 | Intended use case: square logo, symbol, favicon 35 | 36 | {% file src=".gitbook/assets/cream (1).svg" %} 37 | SVG 38 | {% endfile %} 39 | 40 | {% file src=".gitbook/assets/cream-32x32 (1).png" %} 41 | 32 x 32 PNG 42 | {% endfile %} 43 | 44 | {% file src=".gitbook/assets/cream-256x256 (2).png" %} 45 | 256 x 256 PNG 46 | {% endfile %} 47 | 48 | {% file src=".gitbook/assets/cream-512x512.png" %} 49 | 512 x 512 PNG 50 | {% endfile %} 51 | 52 | {% file src=".gitbook/assets/cream-1024x1024.png" %} 53 | 1024 x 1024 PNG 54 | {% endfile %} 55 | 56 | {% file src=".gitbook/assets/cream-2048x2048.png" %} 57 | 2048 x 2048 PNG 58 | {% endfile %} 59 | 60 | ### 61 | 62 | ### Iron Bank 63 | 64 | ![](<.gitbook/assets/ironbank\_logo (3).svg>) 65 | 66 | {% file src=".gitbook/assets/ironbank-512w.png" %} 67 | 512 x 92 PNG 68 | {% endfile %} 69 | 70 | {% file src=".gitbook/assets/ironbank-1024w.png" %} 71 | 1024 x 185 PNG 72 | {% endfile %} 73 | 74 | {% file src=".gitbook/assets/ironbank-2048w.png" %} 75 | 2048 x 370 PNG 76 | {% endfile %} 77 | -------------------------------------------------------------------------------- /price-oracle.md: -------------------------------------------------------------------------------- 1 | --- 2 | description: How C.R.E.A.M. Finance get token price 3 | --- 4 | 5 | # Price Oracle 6 | 7 | {% hint style="info" %} 8 | Currently we have Chainlink, yVault and curve.fi as third-party price oracle 9 | {% endhint %} 10 | 11 | ### Chainlink 12 | 13 | ETH / LEND / LINK / COMP / YFI / BUSD / USDT / USDC 14 | 15 | ### yVault 16 | 17 | yyCRV / yETH 18 | 19 | ### Curve.fi 20 | 21 | yCRV 22 | 23 | ### C.R.E.A.M. Finance 24 | 25 | The other tokens, including BSC supported token 26 | 27 | -------------------------------------------------------------------------------- /smart-contract-address.md: -------------------------------------------------------------------------------- 1 | # Contract Address 2 | 3 | ### Cream 4 | 5 | [0x2ba592F78dB6436527729929AAf6c908497cB200](https://etherscan.io/address/0x2ba592F78dB6436527729929AAf6c908497cB200) 6 | 7 | ### Long-term CREAM Staking Address 8 | 9 | | Duration | Address | 10 | | -------- | --------------------------------------------------------------------------------------------------------------------- | 11 | | 1 Year | [0x780F75ad0B02afeb6039672E6a6CEDe7447a8b45](https://etherscan.io/address/0x780F75ad0B02afeb6039672E6a6CEDe7447a8b45) | 12 | | 2 Year | [0xBdc3372161dfd0361161e06083eE5D52a9cE7595](https://etherscan.io/address/0xBdc3372161dfd0361161e06083eE5D52a9cE7595) | 13 | | 3 Year | [0xD5586C1804D2e1795f3FBbAfB1FBB9099ee20A6c](https://etherscan.io/address/0xD5586C1804D2e1795f3FBbAfB1FBB9099ee20A6c) | 14 | | 4 Year | [0xE618C25f580684770f2578FAca31fb7aCB2F5945](https://etherscan.io/address/0xE618C25f580684770f2578FAca31fb7aCB2F5945) | 15 | 16 | ### Major Contract Address 17 | 18 | {% content-ref url="lending/lending-contract-address.md" %} 19 | [lending-contract-address.md](lending/lending-contract-address.md) 20 | {% endcontent-ref %} 21 | 22 | {% content-ref url="eth2/ethereum-2.0-contract-address.md" %} 23 | [ethereum-2.0-contract-address.md](eth2/ethereum-2.0-contract-address.md) 24 | {% endcontent-ref %} 25 | 26 | ### Repayment Contract Address 27 | 28 | | Name | Address | 29 | | --------------- | --------------------------------------------------------------------------------------------------------------------- | 30 | | CRETH2Repayment | [0xA5462BC7BB1dd43b0Db84c2De71E34A03ac11DeB](https://etherscan.io/address/0xA5462BC7BB1dd43b0Db84c2De71E34A03ac11DeB) | 31 | | USDCRepayment | [0x84858f72d991f11a760dd2d26caff7962307900c](https://etherscan.io/address/0x84858f72d991f11a760dd2d26caff7962307900c) | 32 | -------------------------------------------------------------------------------- /tos.md: -------------------------------------------------------------------------------- 1 | # Terms of Service 2 | 3 | ## Company and Interface Overview 4 | 5 | This website-hosted user interface (this “Interface”) is made available by Asia Authority International CO., Ltd., a corporation organized and existing under the laws of Samoa (the “Company”). 6 | 7 | ## Terms of Use 8 | 9 | These Terms of Use, including any documents or terms referenced within them, which includes any other terms and conditions or any agreement that the Company ( “we,” “us” and “our”) posts publicly or makes available to you or the company or other legal entity you represent (“you” or “your”) (collectively, these “Terms”), are entered into between the Company and you concerning your use of, and access to, the Company’s websites, including the Interface; web applications; mobile applications; and all associated sites linked thereto by the Interface, or us or our affiliates (collectively with any materials and services available therein, and successor website(s) or application(s) thereto, the “Site”). By accessing or using the Site or the Services, you acknowledge that you have read, understood, and agree to be bound by and comply with these Terms, including, without limitation, the mandatory arbitration provision. If you do not agree to these Terms, you must not access or use the Site or the Services. 10 | 11 | ## Modifications to These Terms 12 | 13 | The Company may revise and update these Terms and other related Policies at our sole discretion, and any changes made are effective immediately. You are expected to check this page from time to time to monitor for any changes, and any changes made will be binding to you and your use of the Services. We reserve the right to update or change the format and content of the Website, Interface or Services in our sole discretion without notifying users. 14 | 15 | ## Eligibility 16 | 17 | To use the Services, you must be legally able to enter into this Agreement, which typically means you must be the age of majority in your jurisdiction. You warrant that all information you provide is accurate, complete, and up to date. Additionally, you confirm that you are not a citizen, resident, or member of any jurisdiction subject to U.S. or international sanctions, nor are you subject to any sanctions by the Office of Foreign Assets Control (O.F.A.C.), including as a Specially Designated National (S.D.N.). You are responsible for ensuring that your use of the Services complies with local laws, and we encourage you to stay informed of any legal changes affecting your use. 18 | 19 | The open-source, self-executing smart contracts deployed on various permissionless public blockchains, such as Ethereum, ARE NOT OFFERED to persons or entities who reside in, are citizens of, are located in, are incorporated in, or have a registered office in the United States of America (collectively, “US Persons”), or in **Algeria, Bangladesh, Bolivia, Belarus, Burundi, Burma (Myanmar), Canada, Cote D’Ivoire (Ivory Coast), Crimea and Sevastopol, Cuba, Democratic Republic of Congo, Ecuador, Iran, Iraq, Liberia, Libya, Mali, Morocco, Nepal, North Korea, Somalia, Sudan, Syria, Taiwan, Venezuela, Yemen,** and **Zimbabwe** (collectively, “Restricted Territories”). Moreover, NONE OF OUR OTHER SERVICES are offered to persons or entities who reside in, are located in, are incorporated in, or have a registered office in any restricted territory, including the **United States** and the **Restricted Territories** mentioned above (any such person or entity from a restricted territory, a “Restricted Person”). We do not make exceptions. Therefore, if you are a US Person or a Restricted Person, do not attempt to use our supported contracts or any of our services. 20 | 21 | The USE OF A VIRTUAL PRIVATE NETWORK (“VPN”) to circumvent the restrictions set forth herein is strictly prohibited. 22 | 23 | ## Use of Services 24 | 25 | As a condition to accessing or using the Services or the Site, you represent and warrant to the Company the following: 26 | 27 | ### Legal Capacity 28 | 29 | * If you are entering into these Terms as an individual, you confirm that you are of legal age in your jurisdiction and have the legal capacity to be bound by these Terms. If you are entering into these Terms on behalf of an entity, you confirm that you have the legal authority to accept these Terms on behalf of that entity, in which case “you” will refer to the entity. 30 | 31 | ### Residency and Nationality Restrictions 32 | 33 | * You are not a resident, national, or agent of Algeria, Bangladesh, Bolivia, Belarus, Burundi, Burma (Myanmar), Canada, Cote D’Ivoire (Ivory Coast), Crimea and Sevastopol, Cuba, Democratic Republic of Congo, Ecuador, Iran, Iraq, Liberia, Libya, Mali, Morocco, Nepal, North Korea, Somalia, Sudan, Syria, Taiwan, United States, Venezuela, Yemen, Zimbabwe or any other country to which Canada, Panama, the United States, the United Kingdom or the European Union embargoes goods or imposes similar sanctions (collectively, “Restricted Territories”); 34 | 35 | ### Sanctions List Compliance 36 | 37 | * You are not a member of any sanctions list or equivalent maintained by the United States government, the United Kingdom government, the European Union, the United Nations, or any other applicable sanctions authority, including those of Taiwan, Samoa, or the Republic of Seychelles (collectively, “Sanctions Lists Persons”), and you do not intend to transact with any Restricted Person or Sanctions Lists Person. 38 | 39 | ### Prohibited Use of VPNs or Anonymization Tools 40 | 41 | * You do not, and will not, use VPN software or any other privacy or anonymization tools or techniques to circumvent or attempt to bypass any restrictions that apply to the Services. 42 | 43 | ### Compliance with Applicable Laws 44 | 45 | * Your access to the Services is not prohibited by, nor does it violate or assist in the violation of, any domestic or foreign law, rule, statute, regulation, by-law, order, protocol, code, decree, directive, requirement, or guideline in force that applies to or governs any person, property, transaction, activity, event, or other matter, including any rule, order, judgment, or directive issued by any domestic or foreign federal, provincial, state, municipal, local, or other governmental, regulatory, judicial, or administrative authority having jurisdiction over the Company, you, the Site, or the Services (collectively, “Applicable Laws”). Additionally, your access does not contribute to or facilitate any illegal activity. 46 | 47 | ## Limitations 48 | 49 | As a condition to accessing or using the Services or the Site, you acknowledge, understand, and agree to the following: 50 | 51 | ### Inaccessibility and Operability 52 | 53 | * From time to time, the Site and the Services may become inaccessible or inoperable for various reasons, including but not limited to: (a) equipment malfunctions; (b) periodic maintenance procedures or repairs undertaken by the Company, its suppliers, or contractors; (c) causes beyond the Company’s control or that the Company could not reasonably foresee; (d) disruptions or temporary/permanent unavailability of the underlying blockchain infrastructure; or (e) unavailability of third-party service providers or external partners for any reason. 54 | 55 | ### Right to Modify or Disable Access 56 | 57 | * We reserve the right to disable or modify access to the Site and the Services at any time in the event of any breach of these Terms. This includes, without limitation, instances where we reasonably believe any of your representations or warranties may be untrue or inaccurate, or if you are violating or have violated any geographical restrictions that apply to the Services and/or supported contracts. We will not be liable for any losses or damages you may suffer as a result of, or in connection with, the Site or Services being inaccessible to you at any time or for any reason. 58 | 59 | ### Evolution of the Site and Services 60 | 61 | * The Site and the Services may evolve, meaning the Company may, at its sole discretion, apply changes, replace, or discontinue the Services, either temporarily or permanently, at any time. 62 | 63 | ### Pricing Information 64 | 65 | * The pricing information provided on the Site does not constitute an offer, a solicitation of an offer, or advice regarding, or a recommendation to enter into, any transaction with the Company. 66 | 67 | ### Company’s Role and Responsibilities 68 | 69 | * The Company does not act as an agent for you or any other user of the Site or the Services. You are solely responsible for your use of the Services, including all transfers of Digital Assets and the custody and control of your Digital Assets. 70 | 71 | ### No Fiduciary Duties 72 | 73 | * To the fullest extent not prohibited by Applicable Laws, we owe no fiduciary duties or liabilities to you or any other party. To the extent any such duties or liabilities may exist at law or in equity, you hereby irrevocably disclaim, waive, and eliminate those duties and liabilities. 74 | 75 | ### Tax Responsibility 76 | 77 | * You are solely responsible for reporting and paying any taxes applicable to your use of the Services; 78 | 79 | ### No Control Over Transactions 80 | 81 | * We have no control over, and accept no liability for, the delivery, quality, safety, legality, or any other aspect of any Digital Assets that you may transfer to or from a third party. We are not responsible for ensuring that any entity with whom you transact completes the transaction or is authorized to do so. If you experience any issues with transactions involving Digital Assets using the Services, you bear the entire risk. 82 | 83 | ## Certifications 84 | 85 | As a condition to accessing or using the Services or the Site, you covenant to the Company the following: 86 | 87 | ### Legality of Digital Assets 88 | 89 | * In connection with using the Services, you will only transfer legally obtained Digital Assets that belong to you. 90 | 91 | ### Compliance with Applicable Laws 92 | 93 | * You agree to comply with all Applicable Laws in connection with your use of the Services, and you will not use the Site or the Services if the laws of your country, or any other Applicable Law, prohibit such use. 94 | 95 | ### Ownership of Digital Assets 96 | 97 | * Any Digital Assets you use in connection with the Services are either owned by you or you are validly authorized to perform actions using those Digital Assets 98 | 99 | ### Accuracy of Information and Security 100 | 101 | * In addition to complying with all restrictions, prohibitions, and other provisions of these Terms, you agree to ensure that all information you provide on the Site and during your use of the Services is current, complete, and accurate at all times. You also agree to maintain the security and confidentiality of your private keys associated with your public wallet address, passwords, API keys, and private keys related to your Services account and other relevant credentials. 102 | 103 | ## Prohibited Activity 104 | 105 | By using the Services, you agree not to engage in or promote any prohibited activities, including but not limited to: 106 | 107 | * Using the Services to engage in illegal activities, including fraud, money laundering, or any activity prohibited by applicable law; 108 | * Circumventing or attempting to circumvent OFAC sanctions or other legal restrictions; 109 | * Exploiting the Services for any unauthorized commercial purposes, such as reselling access or using the Services for unauthorized advertising; 110 | * Engaging in hacking, denial-of-service attacks, or exploitation of any smart contract related to the Services, even if such actions are technically permitted by the smart contract; 111 | * Interfering with or attempting to bypass the security features of the Services, or any third-party systems, networks, or resources associated with the provision of the Services; 112 | * Collecting information from the Services for unauthorized purposes, including data scraping, phishing, or other unauthorized activities that disrupt other users’ access or the functionality of the Services. 113 | 114 | ## No Warranties 115 | 116 | The Services and any information provided herein are offered on an ‘AS IS’ and ‘AS AVAILABLE’ basis. The Company disclaims any and all representations and warranties of any kind, whether express or implied, including but not limited to warranties of merchantability and fitness for a particular purpose. We disclaim any warranty regarding the accuracy, continuity, uninterrupted nature, or error-free operation of the Services or any information provided. Additionally, we do not guarantee, endorse, or assume responsibility for the accuracy, reliability, or quality of information provided by third-party services. 117 | 118 | ## No Professional Advice or Fiduciary Duties 119 | 120 | All information provided in connection with your access and use of the Site and the Services is for informational purposes only and should not be construed as professional advice. You should not take, or refrain from taking, any action based on any information available on the Site or any other content we provide, including but not limited to blog posts, articles, links to third-party content, Discord content, news feeds, tutorials, social media content, and videos. Before making any financial, legal, or other decisions related to the Services, you should seek independent professional advice from a licensed and qualified individual in the relevant field. These Terms are not intended to, and do not, create or impose any fiduciary duties on us. You further agree that the only duties and obligations we owe you are those expressly set out in these Terms. 121 | 122 | ## Assumption of Risk 123 | 124 | You acknowledge and agree that your use of the Services is at your own risk and that you will not hold the Company responsible for any resulting losses. All transactions on the blockchain are irreversible, final, and without refunds. The Company is not responsible for any loss or damage caused by another user’s conduct, or by authorized or unauthorized access or use of the Services, including viruses or other malicious code that may be used to affect the functionality or operation of the Services. The Company is not acting as an intermediary, agent, advisor, or custodian, and it does not have a fiduciary relationship or any obligation to you in connection with your use of the Services. 125 | 126 | ## Third-Party Resources 127 | 128 | Use of the Interface requires users to utilize third-party self-custodial wallets to interact with the service. The Company makes no warranties, guarantees, or assumes any responsibility for the use of such wallets. Users are responsible for accepting and adhering to any terms and conditions associated with the use of third-party self-custodial wallets. 129 | 130 | The Company is not responsible for the content, services, or promotions of any third party, including, without limitation, networks or apps such as Discord or Twitter, and makes no representations regarding the content or accuracy of third-party services or materials. If you use or access any third-party product, service, or promotion, including those accessed through the Services, you do so at your own risk. The Company does not control any third parties. 131 | 132 | ## Limitations of Liability 133 | 134 | To the maximum extent permitted by law, neither the Company and its team members, service providers, advisors nor committee members will be liable to you for any incidental, special, punitive, exemplary or consequential damages, or damages for lost profits, lost revenues, lost savings, lost business opportunity, loss of data or goodwill, service interruption, computer damage or system failure or the cost of substitute services of any kind arising out of or relating to the access of the Interface or use of the Services or the prevention thereof. 135 | 136 | The Company assumes no liability or responsibility for any errors, omissions, mistakes or inaccuracies of content, bugs, viruses, trojan horses, or the like that may be transmitted to or through the Interface or illegal conduct of any user. 137 | 138 | This limitation of liability applies regardless of whether the alleged liability is based on contract, tort, negligence, strict liability, or any other basis. The exclusions and limitations of damages set forth above are fundamental elements of the basis of the bargain between the Company and you. 139 | 140 | ## Intellectual Property 141 | 142 | The C.R.E.A.M. Finance logo, name and related logos, names, slogans, designs and media are the intellectual property of the Company or affiliates. Unauthorized use is prohibited. Nothing in the Website, Interface, or Services grants any license or rights to use these Intellectual Property without express written permission. 143 | 144 | Use of the Website, Interface, and Services is permitted for your personal, non-commercial use only. No reproduction, distribution, modification, creation of derivative works of, public display, public performance, republishing, downloading, storing or transmitting any of the material herein and therein is permitted. 145 | 146 | ## Indemnification 147 | 148 | You agree to indemnify, defend, and hold harmless the Company and its current and previous employees, contractors, service providers, and directors from any and all claims made by any third party due to or arising out of: 149 | 150 | * Your breach or alleged breach of the Agreement; 151 | * Your use or misuse of the Services; 152 | * Your violation of any laws, rules, regulations, or court orders of any governmental authority; 153 | * Your violation of the rights of any third party; or 154 | * Any misrepresentation made by you. 155 | 156 | You agree to promptly notify the Company of any claims and to cooperate in the defense of such claims. You further agree that the Company will have sole authority to assume control over the defense or settlement of any third-party claims. 157 | 158 | ## User Information 159 | 160 | Any information we collect is subject to our Privacy Policy. When you use the Website, Interface, and/or Services, you consent to all actions taken by us with respect to your information in compliance with the Privacy Policy. 161 | 162 | ## Confidential Information 163 | 164 | When you use or access the Website, Interface and/or Services, data may be transmitted over an open network in such a way that communications could be intercepted by third parties. This is not our responsibility or liability, and we cannot guarantee the confidentiality or security of any communication or data transmitted to us through the Website. 165 | 166 | ## Suspension of Services 167 | 168 | We may suspend, limit or terminate your access to the Services at any time as required by applicable law or governmental authority, or if the Company, in its sole discretion, has determined you are violating these Terms. Such suspension, limitation or termination shall not be construed as a breach of these Terms by the Company. 169 | 170 | You acknowledge and agree that we shall have no liability or obligation to you in such event that we suspend or terminate your access to the Services, and that you will not be entitled to a refund of any amounts that you have already paid to us. 171 | 172 | ## Force Majeure 173 | 174 | We will not be responsible or liable for any failure or delay in the performance of the Site or any of the Services, nor for any loss or damage you may incur, due to circumstances or events beyond our control. These include, but are not limited to, floods, extreme weather conditions, earthquakes, epidemics, pandemics, acts of God, fires, wars, insurrections, riots, labor disputes, accidents, governmental actions, communication failures, power outages, or equipment or software malfunctions. 175 | 176 | ## Arbitration Clause 177 | 178 | These Terms and any related actions will be governed by the Arbitration Law of Samoa and the laws of Samoa, without regard to conflict of law principles. Except as otherwise specified, the exclusive jurisdiction for any Disputes that are not subject to arbitration will be the courts located in Samoa. Both you and the Company waive any objections to jurisdiction and venue in those courts. 179 | --------------------------------------------------------------------------------