/core-contracts

Primary LanguageSolidityApache License 2.0Apache-2.0

Nsure Contracts

Description

Nsure is an open insurance platform for Open Finance. The project borrows the idea of Lloyd’s London, a market place to trade insurance risks, where premiums are determined by a Dynamic Pricing Model. Capital mining will be implemented to secure capital required to back the risks at any point of time. A 3-phase crowd voting mechanism is used to ensure every claim is handled professionally. You can get all the information here: https://nsure.network/Nsure_WP_0.7.pdf

Contract Functions

  • Buy.sol is used for policy purchasing, premium will be sent to each pool accordingly to: Treasury.sol(10%,for future claim assessment), Surplus.sol(40%,for claim payout), and LockFunds.sol(50%,reward for underwriters)
  • CapitalConverter.sol converts assets into a new token,when a claim is successful the asset is reduced due to payout
  • CapitalStake.sol can stake CapitalConverter.sol token for reward
  • ClaimPurchaseMint.sol is for policy mining rewards

And for the detail funds flow, please refer to: Funds Flow

Test

1.modify: migrations/1_deploy_all.js, open comments on smart contract to be tested

2.Run truffle test test/ to do testing

Audit Report

https://www.certik.org/projects/nsurenetwork

License

Nsure contracts and all other utilities are licensed under Apache 2.0.

Contact

If you want any further information, feel free to contact us at contact@nsure.network :) ...