mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-11 04:49:15 +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