SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'{\rtf1\ansi\ansicpg1252\cocoartf2639
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww13620\viewh8400\viewkind0
\deftab560
\pard\pardeftab560\slleading20\partightenfactor0
\f0\fs26 \cf0 Function InitializePrivate() Uint64\
10 IF EXISTS("owner") THEN GOTO 100\
20 STORE("image_url","https://github.com/Azylem/AZYPCB0031/blob/main/AZYPCB0031-IC.png?raw=true/")\
30 STORE("decimals",0)\
40 STORE("symbol\'94,\'94DAV\'94)\
50 STORE("name","DAV Token")\
60 STORE("total_supply\'94,1000000000)\
70 STORE("circulating_supply",0)\
80 STORE("owner",SIGNER())\
90 RETURN 0\
100 RETURN 1\
End Function\
\
Function Issue(amount Uint64) Uint64\
10 IF SIGNER() != LOAD("owner") THEN GOTO 100\
20 IF LOAD("circulating_supply") + amount > LOAD("total_supply") THEN GOTO 100\
30 SEND_ASSET_TO_ADDRESS(SIGNER(),amount,SCID())\
40 STORE("circulating_supply",LOAD("circulating_supply")+amount)\
50 RETURN 0\
100 RETURN 1\
End Function}'] |