ricochet-exchange / rex-bank Goto Github PK
View Code? Open in Web Editor NEWFixed-rate Collateral-backed Lending on Ethereum
License: Apache License 2.0
Fixed-rate Collateral-backed Lending on Ethereum
License: Apache License 2.0
Use the "mainnet forking" strategy for testing to make it easier to use the Tellor oracle and Sushiswap LPs.
reserve.debtBalance
) which requires all deposits to call reserveDeposit()
balanceOf
methodLine 120 in 213ec54
transfer
red or anything else will be locked and unaccounted for in the contractLine 130 in 213ec54
transfer
red tokens, will NOT be withdrawable, because they're not properly accounted for in the contractdebtBalance
using the balanceOf
method instead of tracking it in a variable within the contract, which is very prone to errordebtBalance()
debtBalance
method:fuction debtBalance() public view returns (uint256 balance) {
return this.debtToken.balanceOf(address(this));
}
this.debtToken.balanceOf(address(this))
all over the codebasedebtBalance()
, all the references to reserve.debtBalance
will be replaced with debtBalance()
This issue involves setting up contract gas sizer. This is part of hardhat so depends on #24, look here: https://www.npmjs.com/package/hardhat-gas-reporter
This task involves converting the project to a Hardhat project, including moving over the tests. Probably dependant on #23
There needs to be a way to delegate liquidation management to keepers. Project teams are fine providing liquidity but do not want to be responsible for managing liquidations. There needs to be an allow list for adding keepers and allowing them to call liquidate
.
There isn't currently a simple way to track how much was loaned out. This issue involves tracking these aggregate statistics somewhere in the contract and creating a getTotalDebtOwned()
Go through and upgrade the contracts to version 0.8.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.