NFT loans allows you to have access to liquidity without loosing the ownership of your NFT's
- Secure your NFT in NFT loans and request an amount of tokens
- People loan you the amount of tokens you expect to receive
- You have the option to payback the tokens + interest or to give NFT to the loaner
CONTRACT_ID=nativoloans.testnet near call $CONTRACT_ID new '{"owner_account_id": "nativoloans.testnet","treasury_account_id": "nativoloans.testnet","contract_interest": 800,"contract_fee": 200 }' --accountId nativoloans.testnet
near view $CONTRACT_ID get_nfts_for_loan '{"from_index":"0","limit":50}'
near view $CONTRACT_ID get_last_loan
near call $CONTRACT_ID loan_for_nft '{"loan_id":1}' --accountId darkjoehank.testnet --deposit 5
near call $CONTRACT_ID pay_loan '{"loan_id":1}' --accountId joehank.testnet --deposit 100
near call $CONTRACT_ID withdraw_nft_owner ‘{“loan_id”:1}’ --accountId joeahank.testnet --depositYocto 1 --gas 100000000000000
near call $CONTRACT_ID withdraw_nft_loaner ‘{“loan_id”:15}’ --accountId joehank.testnet --depositYocto 1 --gas 100000000000000
near view $CONTRACT_ID get_loans_metrics
near call $CONTRACT_ID loan_supply_for_owner '{"account_id":"joehank.testnet"}' --accountId darkjoehank.testnet
near call $CONTRACT_ID loans_for_owner '{"account_id":"joehank.testnet"}' --accountId darkjoehank.testnet
near call $CONTRACT_ID loan_supply_for_lender '{"account_id":"darkjoehank.testnet"}' --accountId darkjoehank.testnet
near call $CONTRACT_ID loans_for_lender '{"account_id":"darkjoehank.testnet"}' --accountId darkjoehank.testnet
near call alst77.mintspace2.testnet nft_transfer_call '{"receiver_id": "dev-1648670267690-23487881027419","token_id":"0", "msg": "{"description": "list a new nft for loaning", "loan_amount_requested": 100000000000000000000000000 }"}' --accountId alan_test.testnet --depositYocto 1 --gas 300000000000000
near call alst77.mintspace2.testnet nft_transfer '{"receiver_id": "alan_test.testnet","token_id":"0","msg":""}' --accountId $CONTRACT_ID --depositYocto 1 near view alst77.mintspace2.testnet nft_token '{"token_id":"0"}'
near call paras-token-v2.testnet nft_transfer_call '{"receiver_id": "nativoloans.testnet","token_id":"1445:1", "msg": "{"description": "list a new nft for loaning", "loan_amount_requested": 1000000000000000000000000 }"}' --accountId joehank.testnet --depositYocto 1 --gas 100000000000000
near view paras-token-v2.testnet nft_token '{"token_id":"299:9"}'
near call minterv2.nativo-minter.testnet nft_transfer_call '{"receiver_id": "nativoloans.testnet","token_id":"73", "msg": "{"description": "list a new nft for loaning", "loan_amount_requested": 1000000000000000000000000 }"}' --accountId joehank.testnet --depositYocto 1 --gas 100000000000000