mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 03:33:44 +03:00
[examples] Tweak.
This commit is contained in:
parent
9deaa52aa6
commit
4621b87712
@ -1,6 +1,6 @@
|
||||
// The 'interest2' main function.
|
||||
function main(capital: u32, public rate: u32, periods: u8) -> u32 {
|
||||
console.assert(periods < 50u8);
|
||||
console.assert(periods <= 50u8);
|
||||
let amount: u32 = capital;
|
||||
for i:u8 in 0u8..50u8 { // accrue for max 50 periods
|
||||
if i < periods {
|
||||
|
Loading…
Reference in New Issue
Block a user