Skip to content

Instantly share code, notes, and snippets.

@tlrjs
tlrjs / settings.json
Created November 17, 2023 15:32 — forked from leerob/settings.json
VSCode settings (2023)
{
// NORMAL SETTINGS
// ===============
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
},
"editor.suggestOnTriggerCharacters": true,
"editor.wordBasedSuggestions": true,
@tlrjs
tlrjs / gist:9cd1dbddfb14e1f414bda1dbc4202149
Last active February 11, 2022 22:56
Referral links design
Referral links design
First we lower the taker fee by 1bp and reduce maker rebate by 1bp on all markets to -3 bps maker and 4 bps taker.
Referrers receive 0.8bps of the taker fee if they have >10,000 MNGO in their mango account.
A user who creates an account from a ref link get 0.2 bps reduced fees.
If a user (referred or not) has 10k MNGO in their mango account, they will get a taker fee reduction of 1bp.
@tlrjs
tlrjs / gist:04da6561eb8b8d55e9261efd504b1d4b
Created February 11, 2022 19:16
Change base LUNA-PERP fees
Change base LUNA-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.
@tlrjs
tlrjs / gist:1972de837d512791acede9ca3e22a4b4
Created February 11, 2022 19:13
Change base AVAX-PERP fees
Change base AVAX-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.
@tlrjs
tlrjs / gist:44afb1094baea15a1d9b048f0c76a989
Created February 11, 2022 19:08
Change base BNB-PERP fees
Change base BNB-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.
@tlrjs
tlrjs / gist:f73b240fd52a04d04e4984c3c851898a
Created February 11, 2022 18:56
Change base FTT-PERP fees
Change base FTT-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.
@tlrjs
tlrjs / gist:d16c17221ea987e07dd891fe9fcab8f6
Created February 11, 2022 18:43
Change base RAY-PERP fees
Change base RAY-PERP fees to -3 bps maker and 4 bps taker. This is to accomodate the new referral links feature.
async awaitTransactionSignatureConfirmation(
txid: TransactionSignature,
timeout: number,
confirmLevel: TransactionConfirmationStatus,
) {
let done = false;
const confirmLevels: (TransactionConfirmationStatus | null | undefined)[] =
['finalized'];
Payment for 3 additional months of dedicated RPC nodes to Triton [https://rpcpool.com/](https://rpcpool.com/).
More discussion here: [https://forum.mango.markets/t/ongoing-rpc-services/171/6](https://https://forum.mango.markets/t/ongoing-rpc-services/171/6)
// Remember to bring in three.js and here is the script for the trackball controls as well:
// https://cdn.rawgit.com/mrdoob/three.js/dev/examples/js/controls/TrackballControls.js
//RENDERER
const renderer = new THREE.WebGLRenderer({
canvas: document.getElementById('canvas'),
antialias: true
});
renderer.setClearColor(0x25c8ce);
renderer.setPixelRatio(window.devicePixelRatio);