Bank smart contract using Solidity – 使用Solidity的银行智能合约区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Bank smart contract using Solidity – 使用Solidity的银行智能合约区块链毕设代写 是一篇很好的国外资料

Bank smart contract using Solidity

Bank smart contract using Solidity - 使用Solidity的银行智能合约

This is a contract functionality.


Table of Contents

You’re sections headers will be used to reference location of destination.

  • Description
  • How To Use
  • References
  • License
  • Author Info

Description

It is becoming increasingly harder for younger and low income individuals to get loans from banks. At the same time current interest rates on savings are low, and many would like to be able to invest in areas that provide higher returns (which would also entail higher risk). Decentralised lending to anonymous individuals is very risky. A company wants to implement a Peer-to-Peer (P2P) lending system which allows for trusted third parties to provide guarantees for specific borrowers in exchange for a cut of the interest paid back by the borrower.

The following functionality encoded within:

• Individuals looking for loans can make a request for a loan by inputting the following details: the amount of Ether they would like to borrow, the date by which they promise to pay back the full amount, and the interest in Ether they promise to pay back upon paying back the full amount.

• Third-party guarantors can choose to provide a guarantee that the amount being requested by the borrower will be paid back to the lender by sending the amount of Ether being requested by the borrower. This amount is to be sent into the smart contract after individuals have made a request for loans, and before borrowers have granted a loan. The guarantor must also specify the amount of interest in Ether they will keep from the amount to be paid by the borrower. Once a guarantee is placed, the borrower must accept or reject the guarantee. Rejecting the guarantee will result in the guarantor’s money being returned to the guarantor.

• Lenders should be able to view: (i) the current requests for loans; (ii) whether a guarantee has been placed on a specific request; (iii) the guarantor’s address (this address could then be translated into a third party’s identity off-chain); and (iv) the amount of interest in Ether that the lender will make once the full amount is paid (i.e. the full interest amount less the amount of interest that the guarantor will keep).

• A lender can then chose to provide the loan by sending the appropriate Ether along with identification of the specific loan request they are sending funds for. The funds should be sent to the borrower at this point.

• If a lender does not receive the full loan amount and the expected interest by the date agreed upon, then the lender can withdrawn the guarantee placed by the guarantor.

• If the borrower pays back the full loan amount and the full interest amount then: (i) the guarantor’s funds should immediately be sent back to the guarantor along with the interest amount to be sent to the guarantor; and (ii) the lender should receive the full loan amount along with the amount of interest due to the lender.

The contract stipulates that users cannot abuse the functionality in any way.

Back To The Top


How To Use

Installation

Open your terminal and type the next commands

  1. Open link with the REMIX IDE

  2. Create a new file and name it Bank.sol

  3. Copy and paste the code from the current Bank.sol repository file into the Bank.sol file in the REMIX IDE that you created earlier.

  4. Go to the Solidity compiler section and click the Compile Bank.sol button

Bank smart contract using Solidity - 使用Solidity的银行智能合约

  1. Go to the Deploy & run transactions section

Bank smart contract using Solidity - 使用Solidity的银行智能合约

  1. Now you can use the contract as described in the Description section.

Bank smart contract using Solidity - 使用Solidity的银行智能合约

Back To The Top


References

Solidity language for implementing smart contracts

REMIX IDE

Back To The Top


License

MIT License

Copyright (c) [2020] [Viacheslav Taranushenko]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back To The Top


Author Info

  • LinkedIn – Viacheslav Taranushenko
  • GitHub – @taranchik
  • GitLab – @taranchik
  • Twitter – @viataranushenko

Back To The Top

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.


Bank smart contract using Solidity

Bank smart contract using Solidity - 使用Solidity的银行智能合约

This is a contract functionality.


Table of Contents

You’re sections headers will be used to reference location of destination.

  • Description
  • How To Use
  • References
  • License
  • Author Info

Description

It is becoming increasingly harder for younger and low income individuals to get loans from banks. At the same time current interest rates on savings are low, and many would like to be able to invest in areas that provide higher returns (which would also entail higher risk). Decentralised lending to anonymous individuals is very risky. A company wants to implement a Peer-to-Peer (P2P) lending system which allows for trusted third parties to provide guarantees for specific borrowers in exchange for a cut of the interest paid back by the borrower.

The following functionality encoded within:

• Individuals looking for loans can make a request for a loan by inputting the following details: the amount of Ether they would like to borrow, the date by which they promise to pay back the full amount, and the interest in Ether they promise to pay back upon paying back the full amount.

• Third-party guarantors can choose to provide a guarantee that the amount being requested by the borrower will be paid back to the lender by sending the amount of Ether being requested by the borrower. This amount is to be sent into the smart contract after individuals have made a request for loans, and before borrowers have granted a loan. The guarantor must also specify the amount of interest in Ether they will keep from the amount to be paid by the borrower. Once a guarantee is placed, the borrower must accept or reject the guarantee. Rejecting the guarantee will result in the guarantor’s money being returned to the guarantor.

• Lenders should be able to view: (i) the current requests for loans; (ii) whether a guarantee has been placed on a specific request; (iii) the guarantor’s address (this address could then be translated into a third party’s identity off-chain); and (iv) the amount of interest in Ether that the lender will make once the full amount is paid (i.e. the full interest amount less the amount of interest that the guarantor will keep).

• A lender can then chose to provide the loan by sending the appropriate Ether along with identification of the specific loan request they are sending funds for. The funds should be sent to the borrower at this point.

• If a lender does not receive the full loan amount and the expected interest by the date agreed upon, then the lender can withdrawn the guarantee placed by the guarantor.

• If the borrower pays back the full loan amount and the full interest amount then: (i) the guarantor’s funds should immediately be sent back to the guarantor along with the interest amount to be sent to the guarantor; and (ii) the lender should receive the full loan amount along with the amount of interest due to the lender.

The contract stipulates that users cannot abuse the functionality in any way.

Back To The Top


How To Use

Installation

Open your terminal and type the next commands

  1. Open link with the REMIX IDE

  2. Create a new file and name it Bank.sol

  3. Copy and paste the code from the current Bank.sol repository file into the Bank.sol file in the REMIX IDE that you created earlier.

  4. Go to the Solidity compiler section and click the Compile Bank.sol button

Bank smart contract using Solidity - 使用Solidity的银行智能合约

  1. Go to the Deploy & run transactions section

Bank smart contract using Solidity - 使用Solidity的银行智能合约

  1. Now you can use the contract as described in the Description section.

Bank smart contract using Solidity - 使用Solidity的银行智能合约

Back To The Top


References

Solidity language for implementing smart contracts

REMIX IDE

Back To The Top


License

MIT License

Copyright (c) [2020] [Viacheslav Taranushenko]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back To The Top


Author Info

  • LinkedIn – Viacheslav Taranushenko
  • GitHub – @taranchik
  • GitLab – @taranchik
  • Twitter – @viataranushenko

Back To The Top

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/18081.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Bank smart contract using Solidity – 使用Solidity的银行智能合约区块链毕设代写

提供最优质的资源集合

立即查看 了解详情