|
Algorithm 11 Redeem a FT |
-
1:
functionRedeemFT(id string, redeemcount int)
-
2:
▹ Calling Algorithm 2
-
3:
-
4:
if then
-
5:
return “The client is not authorized to redeem token owned by another”
-
6:
end if
-
7:
if then
-
8:
return “The token has assets, which is less than requested redeem value ”
-
9:
end if
-
10:
-
11:
-
12:
-
13:
end function
|