INVALID-TITLE

来自智能法律合约
20201027讨论 | 贡献2021年2月26日 (五) 18:23的版本
跳到导航 跳到搜索

EXAMPLE

Loan contract

  Loan contract, refers to a contract where a lender delivers a certain amount of funds to a borrower, and the latter returns the same amount of funds within a certain period of time and pays interests to the lender. There are 6 terms in the contract that consists of two aspects: 1) the borrower shall submit a loan application stating the amount he/she wants to borrow, and 2) the lender may deposit funds into the contract account until the target of loan is reached. Before borrowing, the contract requires that the borrower must confirm the loan information and check the historical loan records, and then calculate the corresponding interests. Meanwhile, the contract asserts that the borrower pays off the loan amount before the loan date comes.

Auction contract

  Auction contract involves two parties: auctioneer who is an enterprise legal person engaged in auction activities, and bidders who are some citizens, legal persons or organizations to participate in bidding for auction targets. The highest bidding process is described as the following steps. The auctioneer starts the auction system after setting a reserve price and an auction end time, and waits for the auction to end; The bidders can bid anytime during the system. If the bid is greater than the current highest price, the system records it as new highest price, puts the bid into the fund pool, and returns the bid paid by the previous highest bidder; otherwise, the bidder fails and the bid is returned; After the auction time is over, the auctioneer can collect the highest bid from the fund pool.

House-leasing contract

  House-leasing contract, takes assets as the transaction subject between lessor and lessee. There are 7 terms in the contract, including two aspects: 1) the lessor can register the house after depositing the rental deposit, and 2) the lessee can keep the right to use the house during the leasing period after depositing the rent. After confirming the leased house, the contract requires that the lessee shall pay the rent, and the lessor must transfer the right to the lessee within one week. Meanwhile, the contract stipulates the pre-condition for the lessor to charge the rent paid by the lessee, and the postcondition for both parties to get their deposits back after the house inspection.
'''HouseLease.scs'''
contract Houselease{
	party Renter{
		registerHouse()
		collectRent()
		collectBail()
		transferHouse()
		checkHouse()
	}
	
	party Tenant{
		confirmLease(endLeasingDuration:Date,
			payDuration:Date)
		payRent()
		returnHouse()
		collectBail()
	}
	
	house : House
	infos : contractInfo
	
	term term1 : Renter can registerHouse
		while deposit $infos::renterBail.
		
	term term2 : Tenant can confirmLease
		when after Renter did registerHouse
		while deposit $infos::tenantBail
		where infos::startLeasingTime = now and
			infos::endLeasingTime = endLeasingDuration + now
			and infos::payDate = payDuration + now
			and infos::payDuration = payDuration.
			
	term term3 : Renter must transferHouse
		when within 7 day after Tenant did confirmLease
		while deposit $ house::useRight.
	
	term term4 : Tenant must payRent
		when before Tenant did confirmLease		
		while deposit $infos::rental
			withdraw $house::useRight
		where infos::payDate = infos::payDate + infos::payDuration
			and infos::totalRental = infos::totalRental + infos::rental.
	
	term term5 : Renter can collectRent
		while withdraw $infos::totalRental
		where infos::totalRental = 0.
	
	term term6 : Tenant must returnHouse
		when within 7 day after Renter did checkHouse
		while deposit $house::useRight
			transfer $house::useRight to Renter.
	
	term term7_1 : Renter can collectBail
		when within 15 day after Renter did checkHouse
		while withdraw $infos::renterBail.
	
	term term7_2 : Tenant can collectBail
		when within 15 day after Renter did checkHouse
		while withdraw $infos::tenantBail.
		
		type contractInfo {
			renterBail : Money
			tenantBail : Money
			rental : Money
			totalRental : Money
			penalty : Money
			startLeasingTime : Date
			endLeasingTime : Date
			payDate : Date
			payDuration : Date
		}
		
		type House {
			ownershipNumber : integer
			location : String
			area : integer
			usage : String
			price : Money
			useRight : String
			usufruct : String
			dispositionRight : String
			possessionRight : String
		}
}

Purchase contract

  Purchase contract, transfers the ownership of goods from a seller to a buyer through logistics company. There are 10 terms in the contract, including three parts: 1) once the goods are confirmed, the seller will sign a contract and take twice the contracting price as the delivery price, 2) the goods are sent to the buyer through logistics when the buyer purchases the goods, and 3) only when the logistics successfully delivers the goods to the buyer can the seller get back the payment. According to relevant laws, the contract requires the buyer can apply for compensation if goods do not arrive within 10 days after payment, or the seller can automatically confirm the arrival if the buyer does not confirm or apply for refund within 7 days after arrival.