SC CODE: // ---------------------------------------------------------------
// LAMBO Token – G45‑FAT standard
// Total supply : 21 000 000 000 000 (21 trillion LAMBO)
// Decimals : 5 (1 LAMBO = 100 000 atomic units)
// All tokens pre-minted to creator wallet
// ---------------------------------------------------------------
Function InitializePrivate() Uint64
1 IF EXISTS("LAMBO INITIALIZED") THEN GOTO 100
2 DIM hard_cap AS Uint64
3 LET hard_cap = 2100000000000000
10 SEND_ASSET_TO_ADDRESS(SIGNER(), hard_cap, SCID())
11 STORE("LAMBO INITIALIZED", "TRUE")
12 STORE("nameHdr", "Lambo")
13 STORE("tickerHdr", "LAMBO")
14 STORE("ownerHdr", "ahmedv")
15 STORE("iconURLHdr", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
20 STORE("owner", SIGNER())
30 STORE("image_url", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
31 STORE("type", "G45-FAT")
32 STORE("timestamp", BLOCK_TIMESTAMP())
40 STORE("name", "Lambo")
50 STORE("symbol", "LAMBO")
55 STORE("native_symbol", "LAMBO")
60 STORE("decimals", 5)
65 STORE("native_decimals", 0)
70 STORE("totalsupply", 2100000000000000)
75 STORE("minted", 2100000000000000)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// G45‑FAT wallet balance sync
// ---------------------------------------------------------------
Function DisplayToken() Uint64
1 DIM amount, stored AS Uint64
2 DIM signerStr AS String
3 LET signerStr = ADDRESS_STRING(SIGNER())
4 IF signerStr == "" THEN GOTO 100
5 LET amount = ASSETVALUE(SCID())
6 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 80
7 LET stored = LOAD("owner_" + signerStr)
80 STORE("owner_" + signerStr, amount + stored)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// Withdraw stored off‑chain balance
// ---------------------------------------------------------------
Function RetrieveToken(amount Uint64) Uint64
1 DIM stored AS Uint64
2 DIM signerStr AS String
3 LET signerStr = ADDRESS_STRING(SIGNER())
4 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 100
5 LET stored = LOAD("owner_" + signerStr)
6 IF amount > stored THEN GOTO 100
7 SEND_ASSET_TO_ADDRESS(SIGNER(), amount, SCID())
77 LET stored = stored - amount
78 IF stored == 0 THEN GOTO 99
79 STORE("owner_" + signerStr, stored)
99 RETURN 0
100 DELETE("owner_" + signerStr)
110 RETURN 1
End Function |
| SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'// ---------------------------------------------------------------
// LAMBO Token – G45‑FAT standard
// Total supply : 21 000 000 000 000 (21 trillion LAMBO)
// Decimals : 5 (1 LAMBO = 100 000 atomic units)
// All tokens pre-minted to creator wallet
// ---------------------------------------------------------------
Function InitializePrivate() Uint64
1 IF EXISTS("LAMBO INITIALIZED") THEN GOTO 100
2 DIM hard_cap AS Uint64
3 LET hard_cap = 2100000000000000
10 SEND_ASSET_TO_ADDRESS(SIGNER(), hard_cap, SCID())
11 STORE("LAMBO INITIALIZED", "TRUE")
12 STORE("nameHdr", "Lambo")
13 STORE("tickerHdr", "LAMBO")
14 STORE("ownerHdr", "ahmedv")
15 STORE("iconURLHdr", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
20 STORE("owner", SIGNER())
30 STORE("image_url", "https://raw.githubusercontent.com/ahmedv-D/ice/main/lambo.jpeg")
31 STORE("type", "G45-FAT")
32 STORE("timestamp", BLOCK_TIMESTAMP())
40 STORE("name", "Lambo")
50 STORE("symbol", "LAMBO")
55 STORE("native_symbol", "LAMBO")
60 STORE("decimals", 5)
65 STORE("native_decimals", 0)
70 STORE("totalsupply", 2100000000000000)
75 STORE("minted", 2100000000000000)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// G45‑FAT wallet balance sync
// ---------------------------------------------------------------
Function DisplayToken() Uint64
1 DIM amount, stored AS Uint64
2 DIM signerStr AS String
3 LET signerStr = ADDRESS_STRING(SIGNER())
4 IF signerStr == "" THEN GOTO 100
5 LET amount = ASSETVALUE(SCID())
6 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 80
7 LET stored = LOAD("owner_" + signerStr)
80 STORE("owner_" + signerStr, amount + stored)
99 RETURN 0
100 RETURN 1
End Function
// ---------------------------------------------------------------
// Withdraw stored off‑chain balance
// ---------------------------------------------------------------
Function RetrieveToken(amount Uint64) Uint64
1 DIM stored AS Uint64
2 DIM signerStr AS String
3 LET signerStr = ADDRESS_STRING(SIGNER())
4 IF EXISTS("owner_" + signerStr) == 0 THEN GOTO 100
5 LET stored = LOAD("owner_" + signerStr)
6 IF amount > stored THEN GOTO 100
7 SEND_ASSET_TO_ADDRESS(SIGNER(), amount, SCID())
77 LET stored = stored - amount
78 IF stored == 0 THEN GOTO 99
79 STORE("owner_" + signerStr, stored)
99 RETURN 0
100 DELETE("owner_" + signerStr)
110 RETURN 1
End Function'] |