File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,20 +157,28 @@ function constructLendingSetup(api: ApiPromise) {
157157}
158158
159159function constructFundingSetup ( api : ApiPromise ) {
160- const tokens = [ { Token : "KSM" } , { Token : "KINT" } ] ;
160+ const tokens = [
161+ { Token : "KSM" } ,
162+ { Token : "KINT" } ,
163+ { ForeignAsset : 1 } ,
164+ { ForeignAsset : 2 } ,
165+ { ForeignAsset : 3 } ,
166+ { ForeignAsset : 4 } ,
167+ { ForeignAsset : 5 }
168+ ] ;
161169 const faucetSetup = tokens . map ( ( token ) => {
162170 return api . tx . tokens . setBalance (
163171 "5DqzGaydetDXGya818gyuHA7GAjEWRsQN6UWNKpvfgq2KyM7" ,
164172 token ,
165- 20000000000000 ,
173+ "1000000000000000000000000000" , //1e24 planck
166174 0
167175 ) ;
168176 } ) ;
169177 const calls = faucetSetup . concat ( [
170178 api . tx . tokens . setBalance (
171179 "a3cgeH7D28bBsHY4hGLzxkMFUcFQmjGgDa2kmxg3D9Z6AyhtL" , // treasury
172180 { Token : "KINT" } ,
173- "1000000000000000000000000 " , //1e12 KINT
181+ "1000000000000000000000000000 " , //1e15 KINT
174182 0
175183 )
176184 ] ) ;
@@ -218,12 +226,7 @@ async function constructAmmSetup(api: ApiPromise) {
218226 // workaround for broken is_exists check - TODO: remove once fixed.
219227 // see https://github.com/interlay/interbtc/blob/1a1afa90228f37c9ade4acbda8275c2f5cfe85ce/parachain/runtime/testnet-kintsugi/src/zenlink.rs#L43
220228 const isExistsWorkaround = [
221- { Token : "KBTC" } ,
222- { ForeignAsset : 1 } ,
223- { ForeignAsset : 2 } ,
224- { ForeignAsset : 3 } ,
225- { ForeignAsset : 4 } ,
226- { ForeignAsset : 5 }
229+ { Token : "KBTC" } , // foreign assets also need issuance, but faucet already has those
227230 ] . map ( ( token ) => {
228231 return api . tx . tokens . setBalance (
229232 "a3ckVDnZwjdBhkq1KJodZj3iCgYMseWfLA5fpqExuEpMy8Y5q" , // root
You can’t perform that action at this time.
0 commit comments