mortgage's Issues
collectMoney does not collectMoney
Line 120 in 0679664
collectMoney seems like a mis-named event. Also - style says capitalize the first letter of the Event as well - else this looks like a function call.
Unclear Magic Number
Line 71 in 0679664
Why is 1000 used here? It seems like you might be trying to turn things into Finney - but this would require a / rather than a *. Comments would be helpful - and declaring and constants as such, with helpful names!
Missing Tests/Truffle Structure
Any/all good contract will have some tests to go along with it. This contract would go well with a Truffle directory (and some tests!).
This would help us catch any rounding issues (which I have yet to look for [and I'll refrain for now]) - as well as any other typos that might exist.
Looking forward to checking a comprehensive test suite out :)
Msg.value used in non-payable function
Line 116 in 0679664
I think this is meant to let them withdraw parts of the balance of the contract (or at least what the borrower has sent in). However, it does not do this.
Name Event Fields
Line 63 in 0679664
This allows you to better refer to them in tests, watch for them using a web front end, etc.
90 Days
Line 203 in 0679664
90 * 1 Day == 90 Days. :)
Move Description to ReadMe
Line 8 in 0679664
Code has code (and maybe some comments). This looks like a great readme to me!
Magic Numbers Unclear
Unclear constants used throughout the contract. Hard to follow. Should define them as constant uints to help reader/auditer follow along (and to stop yourself from forgetting to update in multiple places!).
Closing other issue about this as this is a superset of that.
Here are some examples:
Line 79 in 0679664
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.