false
false
true
false
CreationContract
0
{InstallmentInterval}
Debt<=0
{InstallmentInterval}
'Loan amount paid by lender to borrower: '+
Amount+' '+Currency+
'. Debt: '+Debt+' '+Currency+'.'
Debt:=Min(Debt*(100+InterestPerInstallment)/100,DebtLimit);
round(Debt*100)*0.01
Debt-=Installment;
round(Debt*100)*0.01
| Variable | Value |
|----------------------|------------------------------------|
| Amount | {{Amount}} {{Currency}} |
| Debt | {{Debt}} {{Currency}} |
| Installment Interval | {{InstallmentInterval}} |
| Interest/Installment | {{InterestPerInstallment}}\% |
| DebtLimit | {{DebtLimit}} {{Currency}} |
| Installment Amount | {{InstallmentAmount}} {{Currency}} |
| Commission | {{CommissionPercent}}\% |
| Cost | {{Cost}} {{Currency}} |
| Lender | {{LenderName}} |
| | {{LenderPnr}} |
| | {{LenderAddress}} |
| | {{LenderCountry}} |
| | {{Lender}} |
| Borrower | {{BorrowerName}} |
| | {{BorrowerPnr}} |
| | {{BorrowerAddress}} |
| | {{BorrowerCountry}} |
| | {{Borrower}} |
| Creator | {{CreatorName}} |
| | {{CreatorPnr}} |
| | {{CreatorAddress}} |
| | {{CreatorCountry}} |
| | {{Creator}} |
| LoanAgreement | {{LoanAgreement}} |
| NrFailedPayments | {{NrFailedPayments}} |
{{
G:=plot2dline(Amount.Timestamp, Amount.Value, "Red")+
plot2dline(Debt.Timestamp, Debt.Value, "Blue");
G.Title:="Debt over time";
G.LabelX:="Time";
G.LabelY:="Debt";
G
}}
Microloan
Example
Example token used to demonstrate how to model a *micro-loan* using a *state machine*. The *borrower* borrows a
small amount of money from a *lender*, and returns the amount in automaticly performed installments, in accordance with parameters set
into the token.
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAABFFJREFUeJztWU1IMlsYfrqTFmgLIb5yEURlLQo3YVZUCi1qFUFQUKt2QURWm7IgIkhqJ9IP1EIIWkWuIugPLIh0GVFUBC5SocCkEM2/uYvv3oPDNNM43Thwv3lgYM77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nY7ndzqdspaU6Fgks8tNyikeDAY5PpfL9a2ja27uZ79uKBRia2trJQ++srJStD/hRSSCiYkJqFQqvL+/816ZJRIJTE5OIpvNcrYvqXC73bi6ukI2m8XDwwPvJKfX63F3d4dIJIKNjQ2cnJzg5uYGkUgEDMNAr9fDaDSis7MTw8PD5IwhBFl/gv8n/PFvhRUBaBOgDUUA2gRoQxGANgHaUASgTYA2FAFoE6ANRQDaBGhDEYA2AdpQBKBNgDYUAWgToA1FANoEaONve9o8PVvYS2AAAAAASUVORK5CYII=
The part that creates the
microloan
arrangement, including the
microloan
token and the corresponding state-machine that executes the
microloan
.
La parte que crea el acuerdo de
micropréstamo
, incluido el token de
micropréstamo
y la máquina de estados correspondiente que ejecuta el
micropréstamo
.
The part that lends money to the
Borrower
.
El
prestamista
que presta dinero al
prestatario
.
The part that borrows money from the
Lender
.
El
prestatario
que toma prestado dinero del
prestamista
.
The part that acts as a host of the token and approves its creation.
La parte que actúa como anfitrión del token y aprueba su creación.
The amount of money borrowed by the
Borrower
of the
Lender
.
La cantidad de dinero que el
Prestatario
pidió prestada al
Prestamista
.
The currency of the
microloan
.
La moneda del
micropréstamo
.
The interval with which installments are paid and interest calculated.
El intervalo con el que se pagan las cuotas y se calculan los intereses.
The interest on the remaining amount of the loan, added every installment interval. Every time the installment interval elapses, the remaining amount on the loan will be incremented by this number of percent.
El interés sobre el monto restante del préstamo, se suma en cada intervalo de cuota. Cada vez que transcurra el intervalo de cuota, el monto restante del préstamo se incrementará en este porcentaje.
The accumulated debt, in case of missing payments, cannot exceed this value.
La deuda acumulada, en caso de pagos atrasados, no puede superar este valor.
Amount paid by the
Borrower
to the
Lender
each installment.
Cantidad pagada por el
Prestatario
al
Prestamista
en cada cuota.
The commission the Trust Provider gets for creating the token and managing the
microloan
. First paid by the
Creator
when creating the token, and then reimbursed by the
Borrower
to the
Creator
.
La comisión que recibe el Proveedor de Confianza por crear el token y gestionar el
micropréstamo
. Primero pagada por el
Creador
al crear el token, y luego reembolsada por el
Prestatario
al
Creador
.
The cost of creating the
microloan
will be paid by the
Borrower
to the
Creator
.
El costo de creación del
microcrédito
será pagado por el
Prestatario
al
Creador
.
The estimated
Return on Investment
for the
Lender
, if payments are made regularly according to the agreement.
La
Tasa de Retorno de la Inversión
estimada para el
Prestamista
, si los pagos se realizan regularmente según lo acordado.
Number of installments the
microloan
will be active, if payments are made regularly according to the agreement.
Número de plazos durante los cuales el
microcrédito
estará activo, si los pagos se realizan regularmente según el acuerdo.
When the
microloan
is paid back in full, if payments are made according to schedule.
Cuando se paga el
micropréstamo
en su totalidad, si los pagos se realizan según lo programado.
When the
microloan
token expires, if not resolved before.
Cuando el token de
micropréstamo
expire, si no se resuelve antes.
The country in which the
Lender
resides.
El país en el que reside el
Prestamista
.
The country in which the
Borrower
resides.
El país en el que reside el
prestatario
.
The country in which the
Creator
resides.
El país en el que reside el
Creador
.
The full name of the
Lender
.
El nombre completo del
Prestamista
.
The full address of the
Lender
.
La dirección completa del
Prestamista
.
The code of the country in which the
Lender
resides.
El código del país en el que reside el
Prestamista
.
The personal identity number of the
Lender
.
El número de identificación personal del
Prestamista
.
The full name of the
Borrower
.
El nombre completo del
Prestatario
.
The full address of the
Borrower
.
La dirección completa del
Prestatario
.
The code of the country in which the
Borrower
resides.
El código del país en el que reside el
Prestatario
.
The personal identity number of the
Borrower
.
El número de identidad personal del
Prestatario
.
The full name of the
Creator
.
El nombre completo del
Creador
.
The full address of the
Creator
.
La dirección completa del
Creador
.
The code of the country country in which the
Creator
resides.
El código del país en el que reside el
Creador
.
The personal identity number of the
Creator
.
El número de identificación personal del
Creador
.
This contract represents a
microloan
between the
Lender
(
,
,
, personal identity number
) and the
Borrower
(
,
,
, personal identity number
). The contract, once signed, also creates a token representing the
microloan
. The token will perform automatic payments and maintain information about the current state of the
microloan
. The token is created by the
Creator
(
,
,
, personal identity number
).
The
Borrower
borrows a small amount of money (
) from the
Lender
. This has a cost of
, which the
Creator
pays as the contract is signed. When the contract is signed, the
Lender
transfers the amount to the
Borrower
, which immediately reimburses the
Creator
for its expenditure for creating the
microloan
.
Every installment (
) which this
microloan
is active, the debt is incremented by
%. The
Borrower
also agrees to pay the
Lender
the amount of
each installment. The
microloan
is active until the debt is paid in full. This is estimated to occur after
installments at
, if payments are made according to schedule. The estimated
Return on Investment
(RoI) for the
Lender
is
at the end of the
microloan
.
The parts of this contract agree that all payments defined in the agreement, shall be made automatically, with no more signatures required, than the signatures provided on this agreement.
Unability to pay installment amount
If the
Borrower
is unable to pay one or more installments, the debt will be incremented and transferred to the coming installments. The installment interest will be calculated on the accumulated debt. The accumulated debt cannot exceed
however. The
microloan
token counting machine expires at
, after which the
microloan
will be transferred for manual processing.
By signing the contracts, the
Borrower
affirms that it is obliged to pay the
Lender
all its debt, and incurred interests, until the
microloan
has been repaid in full. This agreement is held to be valid under the laws of the country where the
Lender
resides, which is
.
The
Lender
may sell the rights of the
microloan
to any third party of its choosing. This is done by transferring ownership of the token corresponding to the
microloan
. The new owner will take the previous owner’s rights to payments made by the
Borrower
. The
Borrower
will continue its payments, as defined in this agreement, to the new owner.
The token can be transferred any number of times, as long as the token and the corresponding
microloan
is active.
Este contrato representa un
micropréstamo
entre el
Prestamista
(
,
,
, número de identificación personal
) y el
Prestatario
(
,
,
, número de identificación personal
). Una vez firmado el contrato, también crea un token que representa el
micropréstamo
. El token realizará pagos automáticos y mantendrá información sobre el estado actual del
micropréstamo
. El token es creado por el
Creador
(
,
,
, número de identificación personal
).
El
Prestatario
toma prestada una pequeña cantidad de dinero (
) del
Prestamista
. Esto tiene un costo de
, que el
Creador
paga al firmar el contrato. Cuando se firma el contrato, el
Prestamista
transfiere la cantidad al
Prestatario
, que inmediatamente reembolsa al
Creador
por su gasto al crear el
micropréstamo
.
Cada cuota (
) que el
micropréstamo
esté activo, la deuda se incrementa en
%. El
Prestatario
también se compromete a pagar al
Prestamista
la cantidad de
en cada cuota. El
micropréstamo
estará activo hasta que la deuda sea pagada en su totalidad. Se estima que esto ocurrirá después de
cuotas en
, si los pagos se realizan según lo programado. El
Retorno de la Inversión
estimado (RoI) para el
Prestamista
es de
al final del
micropréstamo
.
Las partes de este contrato acuerdan que todos los pagos definidos en el acuerdo se realizarán automáticamente, sin necesidad de más firmas que las proporcionadas en este contrato.
Incapacidad para pagar la cantidad de la cuota
Si el
Prestatario
no puede pagar una o más cuotas, la deuda se incrementará y se transferirá a las cuotas siguientes. El interés de la cuota se calculará sobre la deuda acumulada. Sin embargo, la deuda acumulada no puede exceder
. La máquina contador del token del
micropréstamo
expira en
, después de lo cual el
micropréstamo
se transferirá para ser procesado manualmente.
Al firmar los contratos, el
Prestatario
afirma que está obligado a pagar al
Prestamista
toda su deuda e intereses incurridos, hasta que el
micropréstamo
haya sido reembolsado en su totalidad. Este acuerdo se considera válido bajo las leyes del país donde reside el
Prestamista
, que es
.
Transferencia de Propiedad
El
Prestamista
puede vender los derechos del
micropréstamo
a cualquier tercero de su elección. Esto se hace transfiriendo la propiedad del token correspondiente al
micropréstamo
. El nuevo propietario tomará los derechos del propietario anterior sobre los pagos realizados por el
Prestatario
. El
Prestatario
continuará con sus pagos, según lo definido en este acuerdo, al nuevo propietario.
El token puede transferirse cualquier cantidad de veces, siempre y cuando el token y el
micropréstamo
correspondiente estén activos.