This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list1 = [1,2,3,4] | |
list2 = [1,2,3,4,5,6] | |
non_matching_items = list(set(list2).difference(set(list1))) | |
print(non_matching_items) | |
# [5, 6] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//the tenants borrow gho and pays to the pool and the RentalApp contract owner keeps the moneys and earns interest | |
function paySecurityDeposit(address tokenAddress) public { | |
require( | |
tokenAddress == ghoAddress, | |
"Only gho token can be used to pay rent" | |
); | |
require(msg.sender == tenant, "Only tenant can pay security deposit"); | |
require(leaseActive, "Lease is active"); | |
require( | |
block.timestamp <= leaseStart + securityDepositDueDate, |
OlderNewer