https://github.com/clemlak/pawnda-contracts-deprecated
https://github.com/clemlak/pawnda-contracts-deprecated
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clemlak/pawnda-contracts-deprecated
- Owner: clemlak
- Created: 2019-07-02T17:37:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T00:28:39.000Z (over 3 years ago)
- Last Synced: 2025-03-15T02:23:34.245Z (over 1 year ago)
- Language: JavaScript
- Size: 1.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to Pawnda 🐼
> A decentralized pawn shop
## Install
```sh
npm install
```
## Author
👤 **Clemlak**
### Error codes
* `0`: Borrower is not the signer
* `1`: Lender is not the signer
* `2`: Wrong borrower nonce
* `3`: Wrong lender nonce
* `4`: Deadline already expired
* `5`: Collaterals array don't match
* `6`: Could not transfer a collateral
* `7`: Could not transfer funds
* `8`: Could not transfer fees
* `9`: Sender cannot pay back this loan
* `10`: Deadline has already been reached, it's too late to reimburse this loan
* `11`: Too much funds sent while trying to reimburse this loan
* `12`: Could not transfer funds to reimburse this loans
* `13`: Collaterals were already withdrawn
* `14`: The loan has not been reimbursed yet
* `15`: Could not transfer back a collateral